What is the difference between a probability density function and a probability mass function?
Asked
Active
Viewed 3,949 times
3
-
2Does this answer your question? Probability density function vs. probability mass function – Jan 01 '22 at 05:30
2 Answers
4
One is for discrete variables, the other for continuous.
They are also interpreted differently. The PDF is a probability density. If f(x) is a PDF, f(x) doesn't tell you the probability of getting x (In fact, the probability of getting precisely x is 0). The way you use a PDF is through integration. So, the probability of getting a value that is in a dx area around x is approximately f(x)*dx.
elexhobby
- 1,607
- 11
- 18
-
1
-
Can discrete random variables can be treated as continuous (and thus be described by a PDF as well)? – ryanwebjackson Mar 08 '22 at 03:49
3
To be precise, a probability mass is a probability distribution. However, it is not a probability density - probability masses are discrete, while probability densities are continuous.
Ayesha
- 2,640
-
-
More or less. Keep in mind that the discrete-ness of a PMF gives rise to some other differences. For example, the value of a PMF for an element of the sample space is a probability, while we must integrate the PDF to obtain a probability. – Ayesha Mar 07 '14 at 00:30