PDF vs. PMF: Key Differences in Probability Explained
PDF (Probability Density Function) is the smooth curve that tells us the likelihood of a continuous random variable landing on any exact value. PMF (Probability Mass Function) is the bar chart that lists the exact probabilities for discrete outcomes, like rolling a 3 on a die.
People swap them because both names end in “Function” and both talk about probability. In casual chat, “distribution” is used loosely, so the fine line between countable and continuous feels blurred.
Key Differences
PDF outputs density; you must integrate over an interval to get probability. PMF outputs probability directly for each discrete point. Graphically, PDF is a curve with area = 1; PMF is a set of bars with heights summing to 1.
Which One Should You Choose?
Counting Instagram likes? Use PMF. Measuring exact rainfall amounts? Use PDF. Match the data type: discrete → PMF, continuous → PDF.
Examples and Daily Life
PMF: probability of zero, one, or two WhatsApp messages in the next minute. PDF: probability density of waiting anywhere from 5.0 to 5.1 minutes for the next message.
Can a variable have both PDF and PMF?
No. A variable is either discrete (PMF) or continuous (PDF). Mixed cases use a CDF or a combined distribution.
Why integrate PDF instead of just reading it?
Because the PDF value at a single point isn’t a probability; only areas under the curve give meaningful likelihoods.