pdf at a single point

Hi all,
A probably very silly question:
since the probability that a normal random variable X equals any particular value is zero, how come, for example, normpdf(0.421) does not return zero?
Cheers!

답변 (1개)

Wayne King
Wayne King 2011년 10월 7일

0 개 추천

Don't confuse the value of the PDF at a point with the probability that the random variable takes on that value. Those are different things. The probability that the random variable takes on any single value is the integral of the PDF with the lower and upper limits of integration the same (the value) and hence that is always zero.

댓글 수: 2

Wayne King
Wayne King 2011년 10월 7일
What you want to verify is always zero is (for example):
x = 2; % or any value
normcdf(x,0,1)-normcdf(x,0,1)
Lucas
Lucas 2011년 10월 7일
I understand. Thanks a lot!
Just one clarification:
If I am comparing two normal distributions, say, height of men and women and I want to know if height = 1.9m is more likely to be drawn from the men's distribution. It makes sense to compare the value of the pdf's at this point (normpdf outputs), although the probability of the pdf's assuming the value of 1.9 is zero, right?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

질문:

2011년 10월 7일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by