3

What is the difference between a probability density function and a probability mass function?

Deekor
  • 263

2 Answers2

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
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
  • So the only difference is that a PDF is continuous? – Deekor Mar 07 '14 at 00:28
  • 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