Probability functions and cumulative distribution functions

Probability functions and cumulative distribution functions

Spec 5.1–2 · Edexcel International A Level Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A discrete random variable XX takes separate values; P(X=x)P(X=x) is the probability that it takes the value xx.
  • The probability function p(x)=P(X=x)p(x)=P(X=x) has 0≤p(x)≤10\le p(x)\le1 and ∑p(x)=1\sum p(x)=1.
  • The cumulative distribution function is F(x0)=P(X≤x0)F(x_0)=P(X\le x_0): add the probabilities up to x0x_0.
  • Convert probabilities into differences of FF: P(X=x)=F(x)−F(x−1)P(X=x)=F(x)-F(x-1) and P(X>a)=1−F(a)P(X>a)=1-F(a).
  • For 'largest' or 'smallest' questions, working with FF is often quicker.

Discrete random variables

A random variable takes values that depend on a random experiment; it is discrete if the values are separate, such as whole numbers.

A random variable XX is a variable whose value depends on the outcome of a random experiment. It is discrete if it takes separate values, usually whole numbers, such as the score on a die.

A capital letter, XX, names the variable; a lower-case letter, xx, is a particular value. P(X=x)P(X=x) means 'the probability that XX takes the value xx'.

The possible values and their probabilities form the probability distribution of XX.

00.050.10.15123456xP(X = x)
Probability distribution of the score on a fair die: every value has probability 16\frac16.

In the notation P(X=3)P(X=3), what does the lower-case 3 represent?

The probability function p(x)

The probability function is p(x)=P(X=x)p(x)=P(X=x). Every probability lies between 0 and 1 and they sum to 1.

The probability function is p(x)=P(X=x)p(x)=P(X=x). It can be given as a table, a list or a formula such as P(X=x)=kxP(X=x)=kx for x=1,2,3,4x=1,2,3,4.

Two rules always hold. Use the second to find an unknown constant.

After finding a constant, check that every probability is between 0 and 1.

00.10.20.30.41234xp(x)
P(X = x) = kx for x = 1, 2, 3, 4: the probabilities sum to 1, so 10k = 1 and k = 0.1.
  • Each probability0≤p(x)≤10\le p(x)\le1
  • All probabilities∑p(x)=1\sum p(x)=1

Worked example

P(X=x)=kxP(X=x)=kx for x=1,2,3,4x=1,2,3,4. Find kk and P(X≥3)P(X\ge3).

Worked example

P(X=x)=k(x2+1)P(X=x)=k(x^2+1) for x=0,1,2,3x=0,1,2,3. Find kk.

P(X=x)=kxP(X=x)=kx for x=1,2,3x=1,2,3. What is kk?

The cumulative distribution function

F(x0)=P(X≤x0)F(x_0)=P(X\le x_0) adds the probabilities from the smallest value up to x0x_0.

The cumulative distribution function is F(x0)=P(X≤x0)=∑x≤x0p(x)F(x_0)=P(X\le x_0)=\sum_{x\le x_0}p(x). It adds up the probabilities from the smallest value up to x0x_0.

FF never decreases, and FF for the largest value is 1. For a value that is not possible, use the next lower possible value: if XX takes whole numbers, F(2.5)=F(2)F(2.5)=F(2).

For probabilities 0.1,0.2,0.3,0.40.1,0.2,0.3,0.4 on x=1,2,3,4x=1,2,3,4: F(1)=0.1F(1)=0.1, F(2)=0.3F(2)=0.3, F(3)=0.6F(3)=0.6, F(4)=1F(4)=1.

00.20.40.60.811234xF(x)
F(x) for the same distribution adds up the probabilities: F(1) = 0.1, F(2) = 0.3, F(3) = 0.6, F(4) = 1.

x = 1

p(x):
0.1
F(x):
0.1

x = 2

p(x):
0.2
F(x):
0.3

x = 3

p(x):
0.3
F(x):
0.6

x = 4

p(x):
0.4
F(x):
1
  • Cumulative distribution functionF(x0)=P(X≤x0)F(x_0)=P(X\le x_0)

XX takes whole numbers and F(2)=0.3F(2)=0.3. What is F(2.5)F(2.5)?

Using F to find probabilities

Convert each probability into differences of FF; to go the other way, add the probabilities cumulatively.

Convert each probability into differences of FF (for whole-number values):

  • P(X=x)=F(x)−F(x−1)P(X=x)=F(x)-F(x-1)
  • P(X>a)=1−F(a)P(X>a)=1-F(a)
  • P(X≥a)=1−F(a−1)P(X\ge a)=1-F(a-1)
  • P(a<X≤b)=F(b)−F(a)P(a<X\le b)=F(b)-F(a)

To go the other way, add the probabilities cumulatively: p(x)p(x) gives F(x)F(x).

00.511.522.533.5413
  • P(X=x)P(X=x)F(x)−F(x−1)F(x)-F(x-1)
  • P(X>a)P(X>a)1−F(a)1-F(a)
  • P(X≥a)P(X\ge a)1−F(a−1)1-F(a-1)

Worked example

F(1)=0.15F(1)=0.15, F(2)=0.40F(2)=0.40, F(3)=0.75F(3)=0.75, F(4)=1F(4)=1. Find P(X=3)P(X=3) and P(X≥2)P(X\ge2).

Using the same FF, what is P(X>2)P(X>2)?

Building a distribution from a situation

List the possible values, work out each probability, and check the total is 1. For 'largest' or 'smallest', work with FF.

To find a distribution from a situation, list the possible values, count or calculate each probability, and check the total is 1.

Example: a fair four-sided die is rolled twice and XX is the larger score. Of the 16 outcomes, X=3X=3 for 5, so P(X=x)=2x−116P(X=x)=\frac{2x-1}{16} for x=1,2,3,4x=1,2,3,4.

A shortcut: P(X≤x)=(x4)2P(X\le x)=\left(\frac x4\right)^2, so F(x)=x216F(x)=\frac{x^2}{16}.

For three rolls, F(x)=x364F(x)=\frac{x^3}{64} and P(X=3)=2764−864=1964P(X=3)=\frac{27}{64}-\frac8{64}=\frac{19}{64}.

00.10.20.30.41234xP(X = x)
Larger of two rolls of a fair four-sided die: P(X=x)=2x−116P(X=x)=\frac{2x-1}{16}.

A fair four-sided die is rolled twice and XX is the larger score. What is P(X=4)P(X=4)?

Try an exam question

The discrete random variable XX has probability function P(X=x)=k(5−x)P(X=x)=k(5-x) for x=1,2,3,4x=1,2,3,4. (a) Find the value of kk. (b) Find F(2)F(2). (c) Find P(X≥3)P(X\ge3).

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the value of kk.

1 mark, marked against the mark scheme

Revision notes