Why is norm pdf 0 .3989?
이전 댓글 표시
Wouldn't normpdf(0) be .5? The probability of getting below 0 given a mean of 0 for a normal standard distribution function should be .5.
댓글 수: 2
Adam
2019년 11월 15일
What code are you using?
pdf( 0 )
is not valid syntax unless you have some 3rd party pdf function.
the cyclist
2019년 11월 15일
They mean normpdf(0), not the norm of pdf(0). It's a function from the Statistics and Machine Learning Toolbox.
답변 (2개)
the cyclist
2019년 11월 15일
You want
normcdf(0)
not
normpdf(0)
Chase Weinberg
2019년 11월 15일
편집: Chase Weinberg
2019년 11월 15일
0 개 추천
댓글 수: 3
the cyclist
2019년 11월 15일
It's the value of the probability density function (not the cumulative probability, as you wanted) of a standard normal distribution, evaluated at x=0.
Chase Weinberg
2019년 11월 15일
the cyclist
2019년 11월 15일
편집: the cyclist
2019년 11월 15일
I'm not sure this is the best forum for a probability lesson. :-)
One has to be careful not to confuse the probability density with the probability itself.
Assuming a normal distribution, the probability that the event happens in the interval [x1 x2] is given by the integral of
normpdf(x) * dx
over the interval [x1 x2].
normpdf is not the probability. It's the probability density. You have to integrate the density over an interval to get a probability.
So, the "practical explanation" of normpdf(0) is that if you wanted to know the probability of something happening in the interval, say, x = 0.00 to x = 0.01, it would be approximately
normpdf(0) * ((0.01) - (0.00))
= 0.3989 * 0.01
= 0.003989
This is only approximate, because the pdf itself actually also changes a tiny bit from 0.00 to 0.01.
카테고리
도움말 센터 및 File Exchange에서 Descriptive Statistics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!