Hard Further Maths The continuous uniform distribution Questions
Challenging, exam-style Further Maths The continuous uniform distribution questions with worked solutions. Stretch yourself on the hardest continuous-uniform-distribution, second-moment, derivation, integration problems.
The continuous random variable X is uniformly distributed over the interval [0,3]. Which of the following is the exact value of E((X+1)2)?
Show worked solution
Worked solution
Write down the probability density function
f(x)=3−01=31,0≤x≤3
For a rectangular distribution the height of the density is one over the width of the interval.
Write down the integral defining E((X+1)2)
E((X+1)2)=∫03(x+1)2×31dx
The expectation of a function of X weights g(x) by the density.
Integrate
E((X+1)2)=[9x(x2+3x+3)]03
The constant density 31 can be taken outside the integral.
Substitute the limits
E((X+1)2)=7−0
Upper limit minus lower limit.
Note that this is not the same as substituting the mean
E((X+1)2)=g(E(X))
The expectation of a function is not the function of the expectation unless g is linear.
Compare with the value of g at the mean
g(E(X))=g(23)=425=7
Substituting the mean into g is a common error; the two values differ.
Identify the antiderivative used
∫(x+1)2×31dx=9x(x2+3x+3)+c
Only a single power rule is needed once the density is taken outside.
Interpret the answer as a weighted average
E((X+1)2)=31∫03(x+1)2dx
Because the density is constant, E((X+1)2) is just the average value of g(x) across the interval.
Check the answer numerically
E((X+1)2)≈7.0
A decimal check confirms the exact value is of a sensible size.
Find the width of the interval
b−a=3−0=3
Every result for a rectangular distribution is built from this width.
Note the danger of leaving out the density
∫03(x+1)2dx=21=7
Integrating g(x) without the factor f(x) gives the wrong answer.
Note the mean and the variance of X
E(X)=23,Var(X)=43
These are the standard results for the interval in the question.
Integrate the density to obtain the cumulative distribution function
F(x)=∫0x31dt=3x
The cdf is the accumulated area under the density up to x.
Recall the probability density function of a rectangular distribution
f(x)=b−a1,a≤x≤b,f(x)=0otherwise
The density is constant on the interval, which is what makes the distribution rectangular.
Recall that the total area under the density must be 1
∫abb−a1dx=b−ab−a=1
The graph is a rectangle of width b−a and height b−a1, so its area is 1.
State the exact value
E((X+1)2)=7
This is the exact value of E((X+1)2).
Answer
7
Question 2
9 markschallenging
The independent continuous random variables X and Y are uniformly distributed over the intervals [0,4] and [1,3] respectively. Which of the following is the value of P(X>Y)?
Show worked solution
Worked solution
Write down the two densities
fX(x)=41,fY(y)=21
Each variable has a constant density equal to one over its own width.
Condition on the value of Y
P(X>Y)=∫13P(X>y)fY(y)dy
Fix Y=y, find the probability that X beats it, then average over y.
Write down P(X>y) for y inside the range of X
P(X>y)=44−y,0≤y≤4
This is the tail probability of the rectangular distribution of X.
Identify the range of y that contributes
1≤y≤3
Outside this overlap the tail probability is 0 or 1, which is dealt with separately.
Integrate over the overlap
∫1321×44−ydy=21
The integrand is linear in y, so this is a routine integration.
Add the contribution from y<0
21×0=0
There are no such values of y, so this contributes nothing.
Write down the joint density
f(x,y)=fX(x)fY(y)=81
Independence means the joint density is the product of the two densities.
Write the probability as a double integral
P(X>Y)=∬x>y81dxdy
The region x>y is the part of the rectangle below the line y=x.
Interpret the answer geometrically
P(X>Y)=area of the rectanglearea of the regionx>y
The joint density is constant, so the probability is a ratio of areas.
Check the complementary probability
P(X<Y)=1−21=21
The event X=Y has probability zero, so the two probabilities sum to 1.
Compare the two means as a sanity check
E(X)=2,E(Y)=2
The larger mean belongs to the variable more likely to come out on top.
Note that the answer is a probability, not an area of overlap
0≤21≤1
The two intervals overlapping is not the same as one variable exceeding the other.
Recall the probability density function of a rectangular distribution
f(x)=b−a1,a≤x≤b,f(x)=0otherwise
The density is constant on the interval, which is what makes the distribution rectangular.
Recall that the total area under the density must be 1
∫abb−a1dx=b−ab−a=1
The graph is a rectangle of width b−a and height b−a1, so its area is 1.
State the probability
P(X>Y)=21+0=21
This is the exact probability that X exceeds Y.
Answer
21
Question 3
9 markschallenging
The independent continuous random variables X and Y are uniformly distributed over the intervals [0,6] and [1,5] respectively. Which of the following is the value of Var(X+Y)?
Show worked solution
Worked solution
Find the mean and variance of X
E(X)=3,Var(X)=3
Use 2a+b and 12(b−a)2 for the first interval.
Find the mean and variance of Y
E(Y)=3,Var(Y)=34
The same two results applied to the second interval.
Recall the variance of a linear combination of INDEPENDENT variables
Var(cX+dY)=c2Var(X)+d2Var(Y)
Each coefficient is squared, so a minus sign makes no difference.
Substitute the two variances
Var(X+Y)=(1)2×3+(1)2×34
Here c2=1 and d2=1.
Note that the variances ADD
Var(X−Y)=Var(X)+Var(Y)
Subtracting a variable still adds its variability.
Note that independence is essential
Cov(X,Y)=0becauseXandYare independent
Without independence a covariance term would be needed.
State the two distributions
X∼U[0,6],Y∼U[1,5]
Each variable is rectangular on its own interval.
Find the standard deviation of the combination
σ=313=339
The standard deviation is the square root of the variance just found.
Note the mean of the combination
E(X+Y)=6
The mean is not needed for the variance, but it locates the distribution.
Note that the combination is NOT uniform
the sum of two independent uniforms is triangular, not rectangular
The rules used here need only the mean and the variance, not the shape.
Recall the probability density function of a rectangular distribution
f(x)=b−a1,a≤x≤b,f(x)=0otherwise
The density is constant on the interval, which is what makes the distribution rectangular.
Recall that the total area under the density must be 1
∫abb−a1dx=b−ab−a=1
The graph is a rectangle of width b−a and height b−a1, so its area is 1.
Recall the cumulative distribution function
F(x)=∫axb−a1dt=b−ax−a,a≤x≤b
The cdf grows linearly from 0 at x=a to 1 at x=b.
Recall the values of F at the ends of the interval
F(a)=0,F(b)=1
Below a nothing has happened yet; above b everything has.
Recall how a probability is read off the rectangle
P(c<X<d)=b−ad−c,a≤c<d≤b
A probability is the fraction of the interval that the event occupies.
Recall that a single value has probability zero
P(X=c)=0
For a continuous variable the strict and weak inequalities give the same probability.
State the value of Var(X+Y)
Var(X+Y)=313
This is the exact value for the combination X+Y.
Answer
313
Question 4
9 markschallenging
The continuous random variable X has a rectangular distribution on the interval [a,b], with probability density function f(x)=b−a1 for a≤x≤b and f(x)=0 otherwise. Which of the following is E(X2)?
Show worked solution
Worked solution
Write down the integral defining E(X2)
E(X2)=∫abx2×b−a1dx
For a function of X the rule is E(g(X))=∫g(x)f(x)dx.
Take the constant density outside the integral
E(X2)=b−a1∫abx2dx
The density is constant across the whole interval.
Integrate
E(X2)=b−a1[3x3]ab
Raise the power by one and divide by the new power.
Substitute the limits
E(X2)=3(b−a)b3−a3
Upper limit minus lower limit.
Factorise the difference of two cubes
b3−a3=(b−a)(b2+ab+a2)
This produces the factor b−a that cancels with the denominator.
Cancel the factor b−a
E(X2)=3(b−a)(b−a)(a2+ab+b2)=3a2+ab+b2
The width cancels, leaving a symmetric expression in a and b.
Check the result on a simple case
a=0,b=1⇒E(X2)=31
Integrating x2 over [0,1] does indeed give 31.
Note that this is not the square of the mean
3a2+ab+b2=(2a+b)2
Their difference is exactly the variance.
Use the result to write down the variance
Var(X)=3a2+ab+b2−4(a+b)2=12(b−a)2
This second moment is exactly what is needed for the variance.
Check the result on a second case
a=1,b=3⇒E(X2)=31+3+9=313
Direct integration over [1,3] gives the same value.
Note the symmetry of the expression
a2+ab+b2is unchanged whenaandbare swapped
Swapping the endpoints cannot change any moment of the distribution.
Recall the probability density function of a rectangular distribution
f(x)=b−a1,a≤x≤b,f(x)=0otherwise
The density is constant on the interval, which is what makes the distribution rectangular.
Recall that the total area under the density must be 1
∫abb−a1dx=b−ab−a=1
The graph is a rectangle of width b−a and height b−a1, so its area is 1.
Recall the cumulative distribution function
F(x)=∫axb−a1dt=b−ax−a,a≤x≤b
The cdf grows linearly from 0 at x=a to 1 at x=b.
Recall the values of F at the ends of the interval
F(a)=0,F(b)=1
Below a nothing has happened yet; above b everything has.
State the result
E(X2)=3a2+ab+b2
This is the standard result quoted in the formula book, now derived.
Answer
3a2+ab+b2
Question 5
9 markschallenging
A thin rod of length 90 cm is cut at a point chosen at random along its length. The distance X cm from the left-hand end of the rod to the cut is modelled by a continuous uniform distribution over the interval [0,90]. Find the probability that the shorter of the two pieces is less than 20 cm long.
Show worked solution
Worked solution
Write down the probability density function
f(x)=90−01=901,0≤x≤90
For a rectangular distribution the height of the density is one over the width of the interval.
Express the length of the shorter piece in terms of X
shorter piece=min(X,90−X)
The cut divides the rod into pieces of length X and 90−X.
Translate the condition into a condition on X
min(X,90−X)<20⟺X<20orX>70
The shorter piece is short exactly when the cut is near one of the ends.
Add the probabilities of the two disjoint regions
P=∫020901dx+∫7090901dx
The two regions cannot both happen, so the probabilities add.
Evaluate the two integrals
P=901×20+901×20=94
Each region has length 20 cm.
Interpret the answer as a fraction of the rod
902×20=94
The cut must land in one of two end-sections, each of length 20 cm.
Note the symmetry of the situation
P(X<20)=P(X>70)=92
The two end-sections are the same length, so they are equally likely.
Write down the complementary probability
P(shorter piece≥20)=1−94=95
The cut then lands in the middle section of the rod.
State the mean position of the cut
E(X)=20+90=45
On average the cut is made at the midpoint, though any point is equally likely.
Note the range of the shorter piece
0≤min(X,90−X)≤45
The shorter piece can never be longer than half the rod.
Note that the shorter piece is NOT uniform on the whole rod
min(X,90−X)∼U[0,45]
Folding the rod in half maps the cut position onto the shorter piece, so it is uniform on the HALF interval.
Check the answer with the cumulative distribution function
F(20)+1−F(70)=94
The same answer comes straight from the cdf of X.
Recall the probability density function of a rectangular distribution
f(x)=b−a1,a≤x≤b,f(x)=0otherwise
The density is constant on the interval, which is what makes the distribution rectangular.
Recall that the total area under the density must be 1
∫abb−a1dx=b−ab−a=1
The graph is a rectangle of width b−a and height b−a1, so its area is 1.
State the probability
P(shorter piece<20)=94
This is the exact probability that the shorter piece is under 20 cm.
Answer
94
Unlock 29 more The continuous uniform distribution questions
Create a free account to work through every Further Maths The continuous uniform distribution question with instant step-by-step worked solutions, progress tracking and interactive lessons.