9709/71

Mathematics 9709/71October/November 2012

Cambridge A-Level · Probability & Statistics 2 · worked solutions for every part, with the mark scheme

7
questions
50
marks
75
minutes

Topics Continuous Random Variables · Hypothesis Tests · Linear Combinations of Random Variables · Sampling and Estimation · The Poisson Distribution

Q13MContinuous Random VariablesFree sample

The diagram shows the graph of the probability density function, ff, of a random variable XX. Find the median of XX.

DifficultyMedium-Easy
Worked solution

Approach

The median mm of a continuous random variable is the value that splits the total area under the probability density function (PDF) in half, so that 0mf(x)dx=12\int_0^m f(x)\,dx = \frac{1}{2}. First, determine the equation of f(x)f(x) from the graph, then set up and solve the integral equation.

Working

From the graph, f(x)=0f(x) = 0 for x<0x < 0 and x>2x > 2. For 0x20 \leq x \leq 2, the graph is a straight line from (0,0)(0, 0) to (2,1)(2, 1).

The gradient of this line is:

1020=12\frac{1 - 0}{2 - 0} = \frac{1}{2}

Since the line passes through the origin, the equation is:

f(x)=12xfor 0x2f(x) = \frac{1}{2}x \quad \text{for } 0 \leq x \leq 2

The median mm satisfies the condition that the area under the PDF from 00 to mm equals 12\frac{1}{2}:

0m12xdx=12\int_0^m \frac{1}{2}x \, dx = \frac{1}{2}

Evaluating the integral:

[x24]0m=12\left[\frac{x^2}{4}\right]_0^m = \frac{1}{2} m24=12\frac{m^2}{4} = \frac{1}{2} (m2)2=12\left(\frac{m}{2}\right)^2 = \frac{1}{2}

Solving for m2m^2:

m2=2m^2 = 2 m=21.41 (to 3 s.f.)m = \sqrt{2} \approx 1.41 \text{ (to 3 s.f.)}

Since mm must lie in the interval [0,2][0, 2], we take the positive root.

Answer

m=21.41m = \sqrt{2} \approx 1.41
Final answer

m = sqrt(2) or 1.41 (to 3 s.f.)

Detailed explanation

Walkthrough

The median of a continuous random variable XX with PDF f(x)f(x) is the value mm such that the probability P(Xm)=0.5P(X \leq m) = 0.5. This means the area under the PDF from the lower bound of the support up to mm must equal 12\frac{1}{2}.

Step 1: Determine the equation of f(x)f(x) from the graph.

The graph shows that f(x)=0f(x) = 0 outside the interval [0,2][0, 2]. Inside [0,2][0, 2], the PDF is a straight line from (0,0)(0, 0) to (2,1)(2, 1). The gradient is 1020=12\frac{1-0}{2-0} = \frac{1}{2}, and since the line passes through the origin, the equation is f(x)=12xf(x) = \frac{1}{2}x.

We can verify this is a valid PDF by checking the total area: 0212xdx=[x24]02=44=1\int_0^2 \frac{1}{2}x \, dx = \left[\frac{x^2}{4}\right]_0^2 = \frac{4}{4} = 1. ✓

Step 2: Set up the median equation.

Since f(x)=0f(x) = 0 for x<0x < 0, the median equation simplifies to:

0m12xdx=12\int_0^m \frac{1}{2}x \, dx = \frac{1}{2}

Step 3: Evaluate the integral.

0m12xdx=12[x22]0m=12m22=(m2)2=m24\int_0^m \frac{1}{2}x \, dx = \frac{1}{2} \cdot \left[\frac{x^2}{2}\right]_0^m = \frac{1}{2} \cdot \frac{m^2}{2} = \left(\frac{m}{2}\right)^2 = \frac{m^2}{4}

Step 4: Solve for mm.

Setting m24=12\frac{m^2}{4} = \frac{1}{2} gives m2=2m^2 = 2, so m=21.41m = \sqrt{2} \approx 1.41 (taking the positive root since m0m \geq 0).

Key Takeaways

  • The median of a continuous random variable is found by solving mf(x)dx=12\int_{-\infty}^m f(x)\,dx = \frac{1}{2}.
  • When the PDF is zero over part of the range, the integral limits can be adjusted accordingly.
  • Reading a linear PDF from a graph requires finding the equation of the line (gradient and intercept).
  • Always verify the solution lies within the support of the PDF.

Common Mistakes

  • Forgetting to set the integral equal to 12\frac{1}{2}: Some students integrate and forget the right-hand side should be 0.50.5, not 11.
  • Using ±2\pm\sqrt{2} as the final answer: The median must be positive (and within [0,2][0, 2]), so only the positive root is valid. The mark scheme explicitly awards A0 for ±2\pm\sqrt{2}.
  • Incorrect PDF equation: Misreading the gradient or intercept of the line from the graph.
  • Not checking that mm is in the valid range: The median must satisfy 0m20 \leq m \leq 2.

Things to Be Careful About

  • The PDF is zero for x<0x < 0, so the lower limit of integration is 00, not -\infty.
  • The answer m=2m = -\sqrt{2} is mathematically valid for m2=2m^2 = 2 but physically meaningless here since mm must be in [0,2][0, 2]. Always state the valid root.
  • When writing the final answer, give 2\sqrt{2} to 3 significant figures as 1.411.41 if required by the mark scheme.
  • Verify that the total area under the PDF equals 1 as a sanity check before proceeding.
Techniques used
determine equation of line from graphapply median condition for continuous random variableevaluate definite integralsolve quadratic equation

The rest of this paper

6 more questions
  • Q2Hypothesis Tests5M
  • Q3Linear Combinations of Random Variables6M
  • Q4Hypothesis Tests8M
  • Q5Continuous Random Variables8M
  • Q6Sampling and Estimation9M
  • Q7Linear Combinations of Random Variables · The Poisson Distribution11M
Loading the full paper…