4.9.3 · D3Probability Theory & Statistics

Worked examples — Discrete random variables — PMF, CDF

1,966 words9 min readBack to topic

The scenario matrix

Before solving anything, let's map the whole battlefield. A PMF/CDF problem can only ever land in one of these cells:

# Case class What is different / dangerous Example
A Finite uniform support all masses equal — pure counting Ex 1
B Non-uniform finite support masses differ; must track each Ex 2
C Endpoint bracketing ( vs ) points carry mass, so which bracket matters Ex 3
D Solve for a parameter use to pin an unknown constant Ex 4
E Degenerate RV all mass on one point; PMF/CDF collapse Ex 5
F Recover PMF from a CDF staircase read jumps, not heights Ex 6
G Countably infinite support infinite sum must still total 1 (geometric series) Ex 7
H Real-world word problem translate English RV probability Ex 8
I Exam twist and left limits the subtle inclusive-both-ends formula Ex 9

We now hit every cell.


Example 1 — Finite uniform (cell A)

Figure — Discrete random variables — PMF, CDF

Look at the staircase: it is flat on , so anywhere in that gap — including — gives the same height .


Example 2 — Non-uniform finite (cell B)


Example 3 — Endpoint bracketing (cell C)


Example 4 — Solve for a parameter (cell D)


Example 5 — Degenerate RV (cell E)

Figure — Discrete random variables — PMF, CDF

Example 6 — Recover PMF from a CDF (cell F)

Figure — Discrete random variables — PMF, CDF

Example 7 — Countably infinite support (cell G)


Example 8 — Word problem (cell H)


Example 9 — Exam twist: inclusive both ends & left limits (cell I)


Active recall

Recall Which formula gives

and why? ::: using (just left of ) keeps the mass in, unlike which would remove it.

Recall How do you find a point mass

from a CDF staircase? Measure the jump height ::: .

Recall For

, , why does the total equal 1? Geometric series ::: .

Recall What is the variance of a degenerate RV

? Zero ::: all mass on one point means no spread, so variance .

Related core notes: Discrete random variables — PMF, CDF · Probability Axioms · Continuous random variables — PDF, CDF · Expectation and Variance of Discrete RVs.

Case map

count values

values go forever

equal

differ

solve normalization

single value

A PMF or CDF question

Finite support

Infinite support

Uniform masses

Non uniform masses

Unknown constant

All mass one point

Geometric series sums to 1

Watch endpoint brackets

Read jumps not heights