Probability density and cumulative distribution functions

Probability density and cumulative distribution functions

Spec 2.1–3 · Edexcel International A Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A continuous random variable takes any value in an interval; probabilities are areas, and P(X=a)=0P(X=a)=0.
  • A pdf has f(x)≥0f(x)\ge0 and total area 11; P(a<X≤b)=∫abf(x) dxP(a<X\le b)=\int_a^bf(x)\,dx.
  • The cdf is F(x0)=P(X≤x0)F(x_0)=P(X\le x_0); P(a<X≤b)=F(b)−F(a)P(a<X\le b)=F(b)-F(a).
  • f(x)=dFdxf(x)=\frac{dF}{dx} and F(x)=∫f(x) dxF(x)=\int f(x)\,dx.
  • For a piecewise pdf, each later cdf piece must include the earlier pieces' probability.

Continuous random variables

Probabilities are areas, so any single value has probability zero.

A continuous random variable can take any value in an interval, such as a time, a mass or a length, so it cannot be listed value by value. Probabilities are found as areas, not heights.

For a continuous variable P(X=a)=0P(X=a)=0 for every single value aa. So P(a<X<b)P(a<X<b), P(a≤X≤b)P(a\le X\le b) and P(a<X≤b)P(a<X\le b) are all equal.

Discrete

Values:
Values can be listed
Single value:
P(X=a)P(X=a) can be positive
Probabilities:
Probabilities are summed

Continuous

Values:
Any value in an interval
Single value:
P(X=a)=0P(X=a)=0
Probabilities:
Probabilities are areas

XX is continuous. Which statement is true?

The probability density function

It describes how probability is spread out; probabilities are areas under it, and the total area is 1.

The probability density function f(x)f(x) must satisfy f(x)≥0f(x)\ge0 and ∫−∞∞f(x) dx=1\int_{-\infty}^{\infty}f(x)\,dx=1. Then

P(a<X≤b)=∫abf(x) dx.P(a<X\le b)=\int_a^bf(x)\,dx.

Here f(x)f(x) is restricted to simple polynomials, often piecewise: a different expression on each interval, and 0 outside. To find an unknown constant kk, set the total area equal to 1.

0.20.40.60.811.21.41.61.820.20.40.60.811.2xy(2, 1)f(x) = x/2
The pdf f(x)=x2f(x)=\frac x2 on 0≤x≤20\le x\le2. The shaded area is P(1<X<1.5)P(1<X<1.5).

Worked example

f(x)=kxf(x)=kx for 0≤x≤20\le x\le2, and 0 otherwise, is a pdf. Find kk.

f(x)=kf(x)=k for 0≤x≤50\le x\le5, and 0 otherwise. What is kk?

The cumulative distribution function

The cdf F(x0)F(x_0) gives the probability of being at or below x0x_0.

The cumulative distribution function is F(x0)=P(X≤x0)=∫−∞x0f(x) dxF(x_0)=P(X\le x_0)=\int_{-\infty}^{x_0}f(x)\,dx. It rises from 0 to 1 and never decreases. Then P(a<X≤b)=F(b)−F(a)P(a<X\le b)=F(b)-F(a) and P(X>a)=1−F(a)P(X>a)=1-F(a).

For a piecewise pdf, the cdf for a later piece must include the total probability of the earlier pieces.

0.20.40.60.811.21.41.61.820.20.40.60.811.2xyF(1) = 1/4F(2) = 1F(x) = x²/4
The cdf F(x)=x24F(x)=\frac{x^2}{4} on 0≤x≤20\le x\le2 rises from 0 to 1.

F(x)=x24F(x)=\dfrac{x^2}{4} for 0≤x≤20\le x\le2. What is P(X>1)P(X>1)?

Try an exam question

The continuous random variable XX has pdf f(x)=kx2f(x)=kx^2 for 0≤x≤30\le x\le3, and f(x)=0f(x)=0 otherwise. Find kk and find P(X>2)P(X>2).

[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