Medians, Quartiles, Mode and Skewness of a Continuous Random Variable | Analysis and Approaches IB Maths notes

Free preview: Medians, Quartiles, Mode and Skewness of a Continuous Random Variable

The Cumulative Distribution Function F(x)

Analysis and approaches: HL only (AHL 4.14)

Every probability for a continuous variable so far has meant a fresh integral. What if one function could give you every "less than" probability instantly?

Let's start with the median. Half the probability is below it, so the area under the pdf from the lowest value of X up to the median m is 0.5. To work with that, it helps to name the area so far: F(x) = P(X โ‰ค x). (AHL 4.14 does not list F(x) or the "cdf", but the idea is exactly this integral.)

F(x)=P(X⩽x)=∫−∞xf(t)dtf(x)=F′(x)

  • F is the cumulative distribution function (cdf).
  • t is a dummy variable, used because x is already the upper limit.
  • Differentiating F gives f back. That's the fundamental theorem of calculus.
  • So the median equation is ∫lowest xmf(x)dx=0.5, which is the same as F(m) = 0.5.
  • Any probability: P(a<X<b)=F(b)−F(a). No more integrating.

๐Ÿ’ก In plain words

  • F(x) is the area under f to the left of x.
  • It starts at 0, climbs, never goes down, and ends at 1.

โœ๏ธ YOUR TURN 1

Try this first:

X has pdf f(x)=x2 for 0⩽x⩽2, 0 otherwise. Find F(x) and use it to find P(0.5<X<1.5).

Answer:

  • F(x)=∫0xt2dt=x24 for 0⩽x⩽2 (0 below, 1 above).
  • F(1.5)−F(0.5)=2.25−0.254=0.5.

Building F for a piecewise pdf

Use the pdf from the previous note: f(x)=x3 on [0, 2] and 23(3−x) on (2, 3].

  1. First piece: integrate from the start of the range up to x.
  2. Find the area up to the join. Why: the next piece must start from there.
  3. Later piece: area up to the join + integral from the join to x.
  4. Check: the pieces meet at each join, and F reaches 1 at the end.

๐Ÿ‘€ Watch me do it: build F(x) for the triangle pdf

What I writeWhy I do it
F(x)=∫0xt3dt=x26 for 0⩽x⩽2First piece.
F(2)=46=23Area up to the join.
F(x)=23+∫2x23(3−t)dt for 2<x⩽3Carry the area so far.
=23+23(3x−x22−4)=2x−x23−2At t = 2, 3t−t22=4. Then simplify.
Check: at x = 3, 6−3−2=1; at x = 2, 4−43−2=23Joins up and ends at 1. Good.

F(x)={0x<0x260⩽x⩽22x−x23−22<x⩽31x>3

๐Ÿ“ Here's the trap

  • Don't start the second piece from 0. Each piece of F must carry the total area of all earlier pieces.
  • Check that the pieces join up (F is always continuous) and that F reaches 1.
  • Give F for all x, including the 0 and 1 lines.

Diagram: The blue part is F(x) = x^26 for 0 x 2. It reaches F(2) = 23.

What the picture shows

  • The blue part is F(x)=x26 for 0⩽x⩽2. It reaches F(2)=23.
  • Wrong: ∫2x23(3−t)dt on its own starts the second piece at 0. F drops at x = 2 and ends at 13. A running total can never go down, and it must finish at 1.
  • Right: start from the area so far, F(x)=23+∫2x23(3−t)dt=2x−x23−2.
  • Check: the pieces join at (2,23) and F reaches 1 at x = 3.

โœ๏ธ YOUR TURN 2

Try this first:

X has pdf f(x)=0.25 for 0⩽x<2, f(x)=0.25(4−x) for 2⩽x⩽4, 0 otherwise. Find F(x) for all x.

Answer:

  • For 0⩽x<2: F(x)=x4. So F(2)=0.5.
  • For 2⩽x⩽4: F(x)=0.5+0.25[4t−t22]2x=0.5+0.25(4x−x22−6)=x−x28−1.
  • F = 0 for x < 0 and F = 1 for x > 4. Check: F(4) = 4 โˆ’ 2 โˆ’ 1 = 1.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in ยท Subscribe ยท Start free trial

All notes in HL: Continuous random variables (AHL 4.14)

  1. Variance of a Discrete Random Variable and Coding with aX + b
  2. Continuous Random Variables: Probability Density Functions and Areas
  3. Medians, Quartiles, Mode and Skewness of a Continuous Random Variable
  4. Mean and Variance of a Continuous Random Variable

What's inside for this topic

4 teacher notes, 72 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Previous note: Continuous Random Variables: Probability Density Functions and Areas Next note: Mean and Variance of a Continuous Random Variable

All Analysis and Approaches IB Maths topics ยท IB Maths