Why does scipy.norm.pdf sometimes give PDF > 1? How to correct it?

后端 未结 2 1737
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 12:28

Given mean and variance of a Gaussian (normal) random variable, I would like to compute its probability density function (PDF).

I referred this post: Calcu

2条回答
  •  北海茫月
    2020-11-28 12:47

    It's not a bug. It's not an incorrect result either. Probability density function's value at some specific point does not give you probability; it is a measure of how dense the distribution is around that value. For continuous random variables, the probability at a given point is equal to zero. Instead of p(X = x), we calculate probabilities between 2 points p(x1 < X < x2) and it is equal to the area below that probability density function. Probability density function's value can very well be above 1. It can even approach to infinity.

提交回复
热议问题