← STAT 20070

Section 2 · Lecture 06 · Binomial Distribution

PMF vs PDF Explorer

For a discrete random variable, probability is the height of a bar. For a continuous random variable, probability is the area under a curve between two points, and never the height of the curve at a single point. Both are shown below.

Discrete / categorical

Probability mass function · pmf

Click one or more bars to add up their probabilities

Each bar’s height is a probability: Pr(Y = y) = p(y). Every bar lies between 0 and 1, and all the bars add up to 1. Try Select all bars.

Continuous

Probability density function · student height

Y = the height (cm) of a randomly selected student. The curve is a density curve for height.

Drag the handles to set the interval from a to b, or click one and use the arrow keys

Interval

Width, b − a

Area = probability