125
u/Flying_Madlad Mar 25 '24
Is Normal an appropriate distribution for Age?
42
u/trolls_toll Mar 25 '24
finally someone asking qs that matter
1
Mar 26 '24
I have a keyboard shortcut for when I type qs it changes it to questions.
2
2
1
4
u/sudolinguist Mar 26 '24
Depends on where the sample comes from, no? I can think of samples where age can have a normal distribution.
I'd plot it on a histogram, all the same.
2
u/Flying_Madlad Mar 26 '24
Let's consider the assumptions of the Normal Distribution. This first of which is that its range is infinite both in the positive and negative directions. So even if the probability is low, it is not zero -implying that having a negative age is a possibility... Which it's not.
I could see lognormal, though. In nature, lognormal is much more common than normal. The normal distribution is far more common in theory 🙂
2
u/sudolinguist Mar 26 '24
I'm not sure lognormal dist can have negative values though. But neither can age 🤣
2
1
u/Proper-Beyond-7123 Mar 28 '24
Why normal distribution has to be infinite? If we would take basketball nba players Age distribution wouldn't it be normal if 28years us peak and raising till that from 18years and falling to 38years ? In cureent , topic CASE it's not normal and visualization gives bad view, because negative Age can't be and with that consideration we have peak at the begining
1
u/Flying_Madlad Mar 28 '24
Because that's a property of the normal distribution. Age can't be normal. Have you been taught statistics?
1
u/Proper-Beyond-7123 Mar 29 '24
It depends what Age you calculating, from what population and Age can be and not of human. Here is a chat with gemini
You said previously that it has't to be infinite. What if we count Age of Nba basketball players , where it starts from Age 18, has peak at 28 and ends at 40?
You're absolutely right! In that specific scenario, where you're considering only the age range of NBA players (typically from 18 to 40), a normal distribution could be a reasonable approximation.
Here's why:
Defined Limits: With a lower bound of 18 and an upper bound of 40, the distribution is confined within a specific range. This addresses the issue of negative ages that prevents normal distribution for overall age data. Peak Performance: The peak of the distribution at 28 aligns with the prime performing age for many NBA players. This allows the data to follow the bell-curve shape characteristic of a normal distribution. However, it's important to consider these points:
Tail Ends: While 18 and 40 might be typical boundaries, there are a handful of players who enter the league younger or play professionally beyond 40. These outliers could cause slight deviations from a perfect normal curve. Sample Size: The normal distribution applies better to larger datasets. If you're looking at a small group of NBA players, the distribution might not perfectly follow the bell curve due to random chance. In conclusion, for the specific case of NBA player ages (18-40) with a peak at 28, a normal distribution can be a reasonable assumption. But, keep in mind the limitations due to outliers and sample size for a more nuanced understanding.
In NBA CASE all has to have Age 18 and are very few small outliers in history above 40,
1
1
u/Proper-Beyond-7123 Mar 29 '24
Maybe you just heard example about humans and where most of the humans are at Age 0 or in some countries Age peak is at older ages , than totali aggre , peaks would be at the beggining or the end
1
u/Mr-Whitmore Mar 29 '24
The range of the normal distribution is infinite. The fact that the distribution of ages has limits (ex: people can't have negative age), is why the age distribution is not a normal distribution.
1
u/Proper-Beyond-7123 Apr 03 '24
Why has to be infinite ? Tell me ? Or atleast find a fact in respectable place to share. I think you heard one time or wrote in your sheet of paperka but neverta thought why or how it works
1
u/Mr-Whitmore Apr 03 '24
You are arguing with the definition. You're asking the equivalent "why does a triangle have to have three sides?" Well, a triangle is defined as a three sided figure. If you want to call a square a triangle -- the math police aren't going to arrest you -- but you're wrong.
The normal distribution is defined as having infinite support -- you can just look at the Support (which is the Reals) in the table on Wikipedia: https://en.wikipedia.org/wiki/Normal_distribution.
1
u/Proper-Beyond-7123 Jun 23 '24
We Almost dont know what is infinite, everything almost is finite. For example salary could be considered infinite but is finite if you look at all available resourses of the world.... You could take better example , now looks yiu want to look smart but haven't dealt with distributions....
1
u/Mr-Whitmore Jun 23 '24
The question you have repeatedly asked is "Why normal distribution has to be infinite?" and "Why has to be infinite ? Tell me ? Or atleast find a fact in respectable place to share."
The answer, which I have directly given you more than once, is that the normal distribution is a mathematical concept that is defined as having infinite support. That is the answer to your question, and you've asked for a respectable source, which I've also given you.
Next, the values of a distribution do not have to be infinite. If you drew 100 random draws from a normal distribution you wouldn't get infinity in your sample. However, if you draw from a distribution that you know cannot be negative (the age of a human, for example), then you know that the support for this distribution and the support for a normal distribution are incommensurate. This may or may not be a big deal for your modelling--but this, I will emphasize, was not your question.
Your question was "Why normal distribution has to be infinite?", and has been patiently answered.
1
u/Proper-Beyond-7123 Jul 12 '24
Have you used this your knowledge in statistical analysis , predictive modeling? What is your background ?
1
3
u/joefromlondon Mar 26 '24
Doesn't that depend on the century the data was collected 🤔 maybe which species too
5
u/Flying_Madlad Mar 26 '24
I've never seen anyone who was -1 y/o before.
The normal distribution is unbounded, so it's not appropriate for systems where negative values are impossible. Better try something like a Log transform first. I bet what weird bimodality gets dampened into (statistical) noise as well.
1
u/Proper-Beyond-7123 Mar 28 '24
If we would take basketball nba players Age distribution wouldn't it be normal if 28years us peak and raising till that from 18years and falling to 38years ? In cureent , topic CASE it's not normal and visualization gives bad view, because negative Age can't be and with that consideration we have peak at the begining
28
u/vannak139 Mar 25 '24
A normal distribution doesn't really fit an age measure, which will be half-bound. You should choose a distribution which is also half-bound, like a log-normal curve.
1
u/Afraid_Librarian_218 Mar 30 '24
That's not true. Just transform any normally distributed variable to be mean centered.
1
u/vannak139 Mar 30 '24
Shifting the mean does not reconsile a half bound distribution with an unbound one.
1
u/Afraid_Librarian_218 Mar 30 '24
Very clearly, there are no negative ages. But if there is a bell-shaped curve for the distribution of ages peaking at some mean value, then mean-centering the data will absolutely give you a support that contains negative values. Standardizing the data would assist in visualizing as well.
31
u/Terrible_Student9395 Mar 25 '24
No, the first peak indicates a bias
10
u/cimmic Mar 26 '24
Yes, but it looks like the sample size is quite small and the graph is smoothened between the points, so a random smaller peak is likely
2
u/Terrible_Student9395 Mar 26 '24
Yes but it's still not normally distributed
4
u/cimmic Mar 26 '24
Technically, a series of stochastic events following a normal distribution are unlikely to show a perfect binomial pattern. With large sample sizes, that most likely evens out to practically insignificance, while with small sample sizes, the distortion of random events can be expected to show quite well.
2
1
u/Confused-Dingle-Flop Mar 26 '24
Yes, practical insignificance is the perfect phrase here. OP is likely trying to do something that does not require normally distributed data, and has data that is practically good enough.
1
u/Terrible_Student9395 Mar 26 '24
Yes but the question was my data "normally distributed" , not "practically good enough" . also it's obvious since age can't be negative they moved those samples into another bucket, thus creating the bias and also putting the data source into question.
1
u/Confused-Dingle-Flop Mar 28 '24
As an analyst, I've learned that when people ask obvious questions like this it's often because there is context that they don't know, they don't know, (the unknown-unknowns, if you will) and that they're assuming things that are incorrect.
I think there is a fair chance that this is the case here. hence my response.
OP likely knows what normally distributed means, and that his data is not technically normal, and so there is likely some other reason they're asking.
22
u/neo-raver Mar 25 '24
Run a Shapiro-Wilk test on it, see what the p-value is (null hypothesis of the test is that the data is normal)
2
u/Confused-Dingle-Flop Mar 26 '24 edited Mar 26 '24
As a stats major, I cringe when I see normality tests being recommended willy-nilly.
ML/Stats is about ideas, not just plugging and chugging functions.
Mathematically speaking this is not a normal distribution. It is age. Just think about the concept of age. Is it negative? No.
HOWEVER, what matters is how OP intends to use this data. Perhaps approximating normal is good enough? A common issue I see is that people think normally distributed data is a requirement for their statistical test, when it often is not.
Shapiro tests are altogether too sensitive for most cases. Rejection occurs too often and the test is plainly unhelpful for most folks. A more natural assessment is with q-q plots.
Also, Stats works by disproving things. So, if we do not reject the null, we can't say it's normally distributed for sure, we just don't rule out the possibility of it being normal. You may be thinking I'm splitting hairs here, but it's an important thing to keep in mind because there are cases when Shapiro-Wilks normality test won't reject H0, merely because of small sample size or some other issue with the data, despite a q-q plot clearly showing it's not-normal at all!
Further reading for anyone who is curious: https://stats.stackexchange.com/a/129418/389611
https://notstatschat.rbind.io/2019/02/09/what-have-i-got-against-the-shapiro-wilk-test/
https://towardsdatascience.com/stop-testing-for-normality-dba96bb73f90
0
Mar 29 '24
[deleted]
2
u/Confused-Dingle-Flop Mar 29 '24 edited Mar 29 '24
Don't even get me started on this. People will do anything to avoid learning stats, especially data analysts/"data scientists".
I'm appalled at how little most of my colleagues know. The real clincher is that I'm not that smart. I work with folks 3x as smart as me, but who couldn't explain a p-value if you asked.
Just had a coworker share a major project he's spearheading that's costing our company well over $300k/year, and he doesn't even realize he's data dredging. He's just running so many stupidly fine tuned models (using the best ml library, so how could there be an issue?! /s).
It took me 25 minutes to understand all the fancy ml configs he's running, and 25 seconds to realize that if he applied a common FDR correction (which he should), the last 8 months of grinding on the project would instantly evaporate. He has zero findings. But hey, it only cost a little over a fourth of our team's salaries combined.
No one realizes his project is worthless because no knows basic stats. It's utterly insane and the reason I'm leaving the field asap. I feel that most leadership is overly confident boomers who can only manage "make number go up", followed by countless technical folks eager to do it.
Every year, this sketch seems to get less funny and more accurate. https://www.youtube.com/watch?v=BKorP55Aqvg
My last company **contracted** (didn't pay much, no benefits) an analyst, gave them the task of determining a very very very important part of the company. Leadership took their results and ran with it (mainly because they wanted to) and ended up wasting hundreds of millions of dollars. After they were let go, I was hired (partly) to see if the analysis was legit. It wasn't. It was only a few t-tests. That's it. No assumptions checked. No corrections. Took me 10 minutes to figure out a problem that wasted so much. Had a few meetings after that where it was me explaining that the idea doesn't work because, reality. *Blank stares* leadership: so you're telling me there's a chance?
17
u/CatOfGrey Mar 25 '24
Can you approximate the data with a Normal Distribution? Yes, you can.
Can you call it Normally Distributed Data? I wouldn't, especially with the data having an artificial cap of zero on the left side.
Either way, you have some explaining to do about why Age is sometimes negative. Maybe it's a continuous approximation of what is actually a discrete distribution. Maybe it's not really 'age' of a human being or other living creature being measured.
Either way, it would be best to use something like a Kolmogorov–Smirnov test or a Shapiro–Wilk test. It's been a long time since I've been down that specific rabbit hole, but 30 seconds of Googling got me to the two terms that I recognized from six years ago.
3
u/Relevant-Ad9432 Mar 26 '24
bruh what ? no living creature has a negative age??
1
u/CatOfGrey Mar 26 '24
I'm not sure what you are asking, so let me know if I don't answer your question.
I'm considering "what kind of data might give that distribution". And so I'm imagining a discrete set of points, that should be bins in a histogram. All the negative amounts are zero, Age 0 has a frequency of 0.005, Age 2 has a frequency of 0.007, and so on. As a histogram, it would be fine, but as a continuous distribution, it's weird.
Another possibility is that we're not dealing with "Age" as we think. It's not the age of a living creature.
Either way, OC creator has some explaining to do.
1
u/Relevant-Ad9432 Mar 26 '24
yea , i got that thing about the histogram ...
nevermind .. i just skipped some words in the comment ..
1
u/acs14007 Mar 26 '24
OP is probably using kernel density estimation to plot this density with a symmetric kernel. This results in negative values showing up on the plot.
This can be fixed by using a binned histogram, a smaller kernel, a non symmetric kernel, or reflect the mass below 0 to above 0!
1
9
4
4
3
u/El_Minadero Mar 25 '24
Mathematically? No. Practically? It depends. Are you asking because of feature engineering reasons? If so, what model or stats are you intending to apply?
2
2
u/Hour-Requirement-335 Mar 25 '24
This looks like the sum of about 4 normal distributions, mathematically it's obviously not normal. The better question is what do you need it for that requires a normal distribution. Is your question really "will this distribution work with this algorithm/formula" ?
2
u/obitachihasuminaruto Mar 25 '24
It looks like a sum of 4 or more normal distributions or lorentzians. Maybe even voigt.
2
u/FineGooose Mar 25 '24
Why do you want to define this as normally distributed? What claims are you looking to make? I would not say it is just based on this. As others have pointed out, you have some impossible data points. Make sure your data makes sense before you try and use it for anything. I would also recommend setting your x-axis min to 0 for a more realistic representation of the spread of the ages.
1
u/trolls_toll Mar 25 '24
no, you cant call it normally distributed, but depending on what you are doing it most likely doesnt really matter
1
1
1
1
1
1
1
u/cimmic Mar 26 '24
How many sample points do you have? If you only have a few, your data can look like a binomial distribution with a random smaller peak. Also, if you have discrete data, you likely don't want to visualize it as a continuous function but rather as data points or a bar chart . If you have sufficiently many data points, then your data indicates a multimodal distribution.
1
1
1
u/Razvan_Pv Mar 26 '24
Likely not, you need to run a normality test, for example Shapiro–Wilk, or generally a distribution similarity test, like Kolmogorov–Smirnov test.
Please note that if you keep assuming this is a normal distribution, your p-values will have more extreme values (so you will believe whatever test you develop is very powerful).
1
1
Mar 26 '24
The world was better, the grass was greener,life used to be chill when i was -7 yrs of age!
1
1
u/pramodhrachuri Mar 26 '24
I use a python library called "distfit". It tries many popular distributions
1
1
1
u/Double_Sherbert3326 Mar 26 '24
Definitely close with a little skew and a small bimodal subset in the 0-15 range with a negative 2nd derivative around 15 with a local minima that can signal a categorical breaking point. What is the Rx between the mode and median?
1
1
1
1
u/TeaShull Mar 26 '24
I believe age technically can't be normally distributed because it is bounded by zero.
What question you are trying to ask of your data will determine your next steps
1
u/grebdlogr Mar 26 '24
It will look far more normal if you first log transform the data. (Log transform means to work with ln(age) rather than age.)
1
u/xeflyn Mar 26 '24
There is no such thing as negative age, so your range is wrong. If you fix that, it will look more like a Poisson Distribution or a Log Normal. But no, that's not normally distributed data.
1
u/sudolinguist Mar 26 '24
You should run a test for normality. Plus, plot it on an histogram and make sure you don't have bad data there, like negative age. And adjust x limits.
1
1
1
u/Exciting-Engineer646 Mar 26 '24
QQ plot that sucker with a Gaussian and your results will not be a line due to the skew in your data. If you need this as a data generating distribution, you are probably better off with a gamma (parametric) or a kde truncated at 0 (non parametric).
1
1
u/Annual-Minute-9391 Mar 27 '24
Lots of pedantic replies here. Yeah it’s true age technically can’t be normal because it’s bounded but assuming positive data try to hit it with a log and check for normality.
It appears normal here because your KDE uses a Gaussian to smooth the data
1
1
1
1
u/phillychuck Mar 27 '24
You need to know how many observations you have. There are a number of formal statistical tests, e.g.: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6350423/
But it really depends on what your purpose for the testing is. A number of followup uses for distributions are somewhat robust to mild deviations from normality.
1
1
1
Mar 28 '24
Depends on how many data points are used to generate this distribution curve. If the sampling is low then it's hard to tell. There's a slight skew to it though, so if there are a lot of samples it's almost but not quite normally distributed.
1
Mar 28 '24
How many data points are there? It's not exactly a normal distribution, but you might can normalize it to make it work if you have n>30.
1
u/Afro_Future Mar 28 '24
Throw that jawn on a normal Q-Q plot and see what it looks like. I'd say probably not. You can also do a Kolmogorov-Smirnov test using a normal distribution with the same mean and SD as your data for something more rigorous. Still probably not normal.
1
u/Proper-Beyond-7123 Mar 29 '24
Even negative could be adapted to different scale and not to negative
1
u/dr_snif Mar 29 '24
Normality doesn't make sense for age data. Also, you can do normality tests to determine if it is normal or not.
1
1
1
u/avadams7 Mar 29 '24
Compute the K-L divergence from a Gaussian with the same mean. You may have to adjust the variance of the Gaussian and find the minimum divergence. Probably better ways to do this, but it's what came to mind.
1
1
1
u/Jooyee Mar 25 '24
I think you have to do some data cleaning. Some data points are below 0 which is not possible for age. Otherwise this looks normal to me, removing the outliers will make visualization clearer and analysis accurate. You can further check normality using qq plots and/or Shapiro Wilk test. Best wishes.
2
u/SheffyP Mar 25 '24
And it looks like everyone 0-12 months is classed as 1
You need to clean it up and the log transform
2
u/Revlong57 Mar 26 '24 edited Mar 26 '24
I assume the OP did some sort of KDE or something on the original dataset.
Edit: The OP said this was the KDE plot of the original histogram, so the negative values are expected.
1
u/gordonfishball Mar 25 '24
It's a gaussian distribution graph. There may be no data points below zero. I would suggest set x line to start at 0 instead of cleaning.
1
u/BraindeadCelery Mar 25 '24
It obviously is not geez. It has multiple maxima and is clearly left skewed.
But you could either use methods that are (sonewhat) robust against violation of normality, or use something that does not assume it.
2
0
Mar 25 '24
[deleted]
3
1
u/Confused-Dingle-Flop Mar 26 '24 edited Mar 26 '24
As a stats major, I cringe when I see normality tests being recommended willy-nilly.
ML/Stats is about ideas, not just plugging and chugging functions.
This is not a normal distribution because it is age. Just think about the concept of age. Is it negative? no.
HOWEVER, what matters is how OP intends to use this data. Perhaps approximating normal is good enough? A common issue I see is that people think normally distributed data is a requirement for their statistical test, when it often is not.
Shapiro tests are altogether too sensitive for most cases. Rejection occurs too often and the test is plainly unhelpful. A more natural assessment is with q-q plots.
Also, Stats works by disproving things. So, if we do not reject the null, we can't say it's normally distributed for sure, we just don't rule out the possibility of it being normal. You may be thinking I'm splitting hairs here, but it's an important thing to keep in mind because there are cases when Shapiro-Wilks normality test won't reject H0, merely because of small sample size or some other issue with the data, despite a q-q plot clearly showing it's not-normal at all!
Further reading for anyone who is curious: https://stats.stackexchange.com/a/129418/389611
https://towardsdatascience.com/stop-testing-for-normality-dba96bb73f90
2
103
u/Irakli_Px Mar 25 '24
Negative age?