Cumulative Distribution Function (Edexcel International A Level (IAL) Maths: Statistics 2): Revision Note

Exam code: YMA01

Paul

Written by: Paul

Reviewed by: Dan Finlay

Updated on

Cumulative Distribution Function

What is the cumulative distribution function (c.d.f.)?

  • For a continuous random variable,X , with probability density function f(x) the cumulative distribution function (c.d.f.) is defined as

F(x0)=P(Xx0)=x0f(t) dt

  • Compare this to the cumulative distribution function for a discrete random variable

F(x0)=P(Xx0)=xx0P(X=x)

  • F(x0) is the probability that X is a value less than or equal to x0

  • Notice the use of uppercase F for the c.d.f. but lowercase f  for the p.d.f.

  • On the graph of the p.d.f. y= f(x)  this would be the area under the graph up to the (vertical) line x=x0

  •  F(x) should be defined for all values of x

  • The graph of the c.d.f. y = F(x) will

    • start on the x-axis (i.e. start at a probability of 0)

    • end at x = 1  (i.e. finish at a probability of 1)

    • will be continuous function, even when defined piecewise

e.g.

F(x)={0x<00.5x20x10.51x1.5x11.5x21x>2

BSM6-gbH_1-4-1-ial-fig1-cdf-graph

 

  • The horizontal lines at F(x) = 0 and F(x) = 1 may not always be shown

How do I find probabilities using the cumulative frequency distribution?

  • P(aXb)=F(b)F(a)

  • Although P(X=k), for all values of k , F(k) is not necessarily zero

How do I find the cumulative frequency distribution (c.d.f.) from the probability density function (p.d.f.) and vice versa?

  • To find the c.d.f.,F(x)  , from the p.d.f.,f(x), integrate

F(x)=xf(t) dt

  • Ensure you define F(x) fully forx  so include values of x for which F(x) = 0  and values of x for which F(x) = 1

  • For piecewise functions as well as integrating you will need to add on the value of the c.d.f. at the end of the previous part

    • Suppose there are two sections to a p.d.f. xa and x>a

    • For x>a:

F(x)=xf(t) dt =af(t) dt +axf(t) dt = F(a)+axf(t) dt

  • Therefore the c.d.f can be calculated for the interval a < x < b  by using

F(x) = F(a) + axf(t) dt

  • See part (b) in the Worked Example below

  • To find the p.d.f from the c.d.f., differentiate

f(x)=ddxF(x)

  • Any part of a c.d.f that is constant corresponds to the p.d.f. for that part being zero (the derivative of a constant is zero)

How do I find the median, quartiles and percentiles using the cumulative frequency distribution (c.d.f.)?

  • For piecewise functions, first identify the section the required value lies in

    • To do this find the upper limit of each section of the c.d.f.

  • To find the medianm, solve the equation F(m) = 0.5

    • The median is sometimes referred to as the second quartile, Q2

  • To find the lower quartile, Q1, solve the equation F(Q1) = 0.25

  • To find the upper quartile,Q3  , solve the equation F(Q3 ) = 0.75

  • To find the nth percentile, solve the equation  F(p)=n100

Worked Example

a) The continuous random variable, X , has cumulative distribution function

 

F(x)={       0x<014x(4x)0x2       1x>2

Find

(i) P(X>1.5)

(ii) P(0.5X1)

(iii) The lower quartile of X.

(b) The continuous random variable, X, has probability density function

 f(x)={0.5x0x10.51x2.50otherwise 

Find the cumulative frequency distribution, F(x) .

Answer:

1-4-1-ial-fig2-we-solution-part-1
1-4-1-ial-fig2-we-solution-part-2

Examiner Tips and Tricks

  • Remember that P(X=k) = 0  , for any value of k, is zero

    • This can be easily missed when working with c.d.f. rather than a p.d.f.

  • A quick check you can do is verify that your c.d.f. is continuous

    • The value of the c.d.f. at the upper limit of one section should equal the value of the c.d.f at the lower limit of the next section

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Paul

Author: Paul

Expertise: Maths Content Creator

Paul has taught mathematics for 20 years and has been an examiner for Edexcel for over a decade. GCSE, A level, pure, mechanics, statistics, discrete – if it’s in a Maths exam, Paul will know about it. Paul is a passionate fan of clear and colourful notes with fascinating diagrams.

Dan Finlay

Reviewer: Dan Finlay

Expertise: Portfolio Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.