The time required, in hours, to repair a car at a garage is a random variable X with probability density function (p.d.f.)
f(x) = c(4x − x²), 0 ≤ x ≤ 4, c is a constant
Find the value of c. Obtain the probabilities that for a car which arrives now at the garage—
(1) X is at least one but less than three;
(2) X is more than two.
9 marks · directive: Find
Answer
The core of a good answer
∫₀⁴ (4x − x²) dx = 32/3, so c = 3/32; then P(1 ≤ X < 3) = 11/16 = 0.6875 and P(X > 2) = 1/2 = 0.5.
An outline written by upsc.help, not an official UPSC answer; every fact checked by a separate review. How we work
What the question asks
Normalise the density to find c, then integrate it over each interval. For a continuous variable, 'at least' and 'less than' do not change the probability. Symmetry of 4x − x² about x = 2 gives a quick check of part (2).
Answer outline
Introduction
Given f(x) = c(4x − x²) on [0, 4], with time in hours.
Step 1: Find c
- ∫₀⁴ (4x − x²) dx = [2x² − x³/3]₀⁴ = 32 − 64/3 = 32/3.
- c × 32/3 = 1 ⇒ c = 3/32.
Step 2: P(1 ≤ X < 3)
- (3/32)[2x² − x³/3]₁³ = (3/32)[(18 − 9) − (2 − 1/3)] = (3/32)(22/3) = 22/32 = 11/16 = 0.6875.
Step 3: P(X > 2)
- (3/32)[2x² − x³/3]₂⁴ = (3/32)[32/3 − 16/3] = (3/32)(16/3) = 1/2.
- Check: f(2 + u) = f(2 − u), so the density is symmetric about 2 and P(X > 2) = 1/2.
Conclusion
c = 3/32; the probability that repair takes from 1 hour up to (not including) 3 hours is 11/16 = 0.6875, and the probability that it takes more than 2 hours is 0.5. Values verified in Python.
Examples and data to cite
- Densities of the form c x(a − x) on (0, a) are scaled Beta(2, 2) densities; here X/4 ~ Beta(2, 2).
Facts
Facts to remember
- A pdf must satisfy f(x) ≥ 0 and ∫ f(x) dx = 1.
- P(a ≤ X < b) = ∫ₐᵇ f(x) dx; for continuous X, P(X = a) = 0.
- Beta(2, 2) on (0, 1) has density 6u(1 − u) and is symmetric about 1/2.