Peak in probability distribution moves in normpdf when changing lower bound for input vector
Show older comments
I am trying to compare some data with a computed normal approximation to the dataset. I computed the sample mean and standard deviation the normal ways (mean and std)', I've come up with 40K and 6K (to 1 SF). When I try to plot this distribution using a simple statement:
plot(normpdf(10e3:70e3,40e3,6e3))
It shows the peak in the probability distribution as 30K! When I use a different lower bound for the vector to plot, it moves the probability peak further (e.g., if I start at 20K, the peak moves to 20K).
It appears that the peak in the distribution is appearing at $MEAN- /$LOWER_BOUND, as when I set the lower bound to zero, I get the expected behavior of a normal PDF centered at 40K. The standard deviation of 6K appears to be correctly used in all cases.
Similar behavior is manifested when using a negative lower bound: using the below command changes the peak in the probability displayed to 60K
plot(normpdf(-20e3:70e3,40e3,6e3))
Accepted Answer
More Answers (0)
Categories
Find more on Descriptive Statistics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!