0

Why is a pmf called a probability mass function and why is a pdf called a probability density function?

What do "mass" and "density" represent for a pmf and pdf? Basically my question is, why use the words mass and density? I'm not getting it. Is it simply just part of the name? I know for a pdf you measure the area under the density function to find probability. But why is it called a "density" function. And what does "mass" even mean in a pmf? Please help.

RobPratt
  • 50,938
Laskas
  • 93

2 Answers2

3

To get some intuition, we can draw some parallels between physics and probability science!

In physics, mass is the weight over gravity: $$m=\frac{W}{g}$$ In probability science, the probability of a discrete random variable is: $$P(A)=\frac{n(A)}{n(all)}$$ For example, in the experiment of tossing a fair six-sided die, the probability of getting a $5$ is: $$PMF(X=5)=f(X=5)=P(X=5)=\frac{n(5)}{n(all)}=\frac16$$

So, the weight (W) is analogous to the number of ways an event A can occur (n(A)) and the gravity is analogous to the sample space (n(all)).

In physics, density is the mass over volume: $$\rho = \frac{m}{V}$$

In probability science, the probability of a continuous random variable over some interval is: $$P(a\le X\le b)=\int_a^b f_{X}(x)\, dx$$

For example, let the bus waiting time be uniformly distributed: $X \sim [10,30]$. The probability of waiting between $15$ and $20$ minutes is: $$P(X<15)=\int_{15}^{20} \frac{1}{20}\, dx=\frac1{20}\cdot (20-15)=\frac14=0.25.$$

So, the mass is analogous to the interval ($[a,b]=[15,20]$) and the volume is analogous to the entire range ($[c,d]=[10,30]$).

In general, the term "probability distribution function" can be used to imply either probability mass function (for discrete r.v.) or probability density function (for continuous r.v.).

farruhota
  • 32,168
2

We used to refer to the probability of events as a weighted bias.   Possibly a reference to a practice of using lead weights to introduce a bias into gambling dice.

So if a cumulative probability measure has something analogous to 'weight' (or rather mass), then its natural to likewise compare its derivative (when appropriate to take it) to a 'density'.

Graham Kemp
  • 133,231