How do I create/calculate the probability density curve in a histogram which is scaled to the frequency axis with ABSOLUTE values (example)? The curve should be based on the calculated average and the deviation.
Thanks!
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityHow do I create/calculate the probability density curve in a histogram which is scaled to the frequency axis with ABSOLUTE values (example)? The curve should be based on the calculated average and the deviation.
Thanks!
I found it myself finally:
As known the relative frequency $H$ at a certain value $x$ is calculated by the probability density function:
$$ H = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{(x-\mu)^2}{2\sigma^2}} $$
in order to create a density curve which is scaled to a histogram the class width $K$ used in the histogram is needed. Now the absolute frequency for a class width $K$ at a certain value $x$ is now simply calculated by:
$$ H = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{(x-\mu)^2}{2\sigma^2}}Kn $$
So, in order to fit the ideal Gaussian curve for normal distributed values in the histogram with absolute frequencies the class width $K$ is needed.