4.9.7 · D3Probability Theory & Statistics

Worked examples — Continuous random variables — PDF, CDF, percentiles

2,738 words12 min readBack to topic

This page is the workout for Continuous random variables — PDF, CDF, percentiles. The parent note built the ideas; here we drill every kind of question the topic can hand you, one worked example per case. Read the parent's [!definition] boxes first if any symbol below feels new.

Recall the vocabulary from the parent, in one breath:

  • ==== = the density — how thickly probability is spread at the point . Height, not probability.
  • ==== = the cumulative — the total area swept from the far left up to .
  • The link: and (backwards) by the Fundamental Theorem of Calculus.
  • The ==-th percentile== solves .

The scenario matrix

Each row is a case class — a kind of situation that behaves differently and can trip you if you never saw it. The final column names the example that covers it.

# Case class What's tricky about it Covered by
C1 Given , finite support, find + interval prob must state below, above Ex 1
C2 Given , half-line support (waiting time) integral runs to ; percentile via logs Ex 2
C3 Given , recover by differentiating reverse direction; check total area Ex 3
C4 Piecewise (triangle) — probability crosses a corner must split the integral at the corner Ex 4
C5 Normalising constant unknown () solve for first from total-area Ex 5
C6 Degenerate / zero inputs: , below support, empty interval answers are exactly or Ex 6
C7 Uniform — constant density, every percentile is linear density is legal; check the "" myth Ex 7
C8 Word problem with units + a real decision translate "at least", carry units Ex 8
C9 Exam twist: mixed conditional probability use ratios, not raw Ex 9
C10 Limiting behaviour: what do as edges sanity checks, not a full solve Ex 10

C1 — Given , finite support

The figure below draws this density and shades the interval — look at how the shaded red strip is exactly the "area" our subtraction computed. The dashed mint lines mark where the support begins and ends (outside them ), a visual reminder of Step 3.

Notice the density rises from left to right: that slope is why a middle strip still captures half the probability — the extra height on the right compensates for its distance from the peak.


C2 — Half-line support (exponential)


C3 — Given , recover


C4 — Piecewise density (probability crosses a corner)

The figure below shows why this problem needs two integrals, not one: follow the dashed mint line at the corner — to its left the density climbs as , to its right it falls as , so the shaded red region (our ) is really two differently-shaped pieces glued at the corner. Trying to integrate one formula across the corner would miss the switch.


C5 — Unknown normalising constant


C6 — Degenerate & zero inputs


C7 — Uniform (constant density, the "" myth)


C8 — Word problem with units and a decision


C9 — Exam twist: conditional probability (memorylessness)


C10 — Limiting behaviour (sanity, not a solve)


Recall Which tool for which question?

Given , asked for a probability ::: integrate / use . Given , asked for a percentile ::: build , then solve . Given , asked for ::: differentiate: . Asked or a zero-width interval ::: it is exactly . Asked below support / above support ::: / . Asked "at least " ::: . Asked ::: ratio of tails .

Connections

Case Map

given f

given F

area

place

A continuous RV question

Given f or F

Need area or place

Differentiate f = F prime

Integrate or F b minus F a

Solve F xp = p

Zero width or off support

Answer is 0 or 1

Conditional or at least

Use tail 1 minus F