Print this page and work through it on paper. Revealed answers are never printed, so you can check one question and still print a clean sheet.
Probability · Chapter test
Continuous Random Variables
Work this sheet on paper, showing every step — the method is what is being tested, and the solutions are written so you can check your route rather than just your answer. Name every result you use (“by memorylessness”, “by the inverse transform theorem”, “by the computational formula for the variance”) and check its hypotheses, especially independence. No calculator is needed anywhere: leave answers in exact form such as or , and the few values of a question needs are printed with it. Full worked solutions are on a separate page; each question also has its own reveal, so you can check one answer without seeing the rest.
- 1.Computation · 7 min
Let for and otherwise, where is a constant, and let have density .
- (a)Find , and verify that both conditions in the definition of a density then hold.
- (b)Find the distribution function for every real , and check that on .
- (c)Compute and by subtraction from , and explain why the second answer is unchanged if either is replaced by .
- (d)Compute and . They are different numbers; say in one sentence what each of them measures.
Show the solution to question 1
(a) Impose total area one. The density vanishes outside , so
giving . Non-negativity: on both factors and are , so there, and elsewhere. Both conditions hold, so is a genuine density.
(b) Integrate from the left. For nothing has accumulated, so . For ,
For all the mass is to the left, so ; as a check, , so the pieces join continuously. Differentiating on : , as the theorem that density and distribution determine each other requires.
(c) Subtract. First the two values of :
Hence and .
The endpoints do not matter because is continuous, so by the theorem Point probabilities vanish ; moving an endpoint in or out of the interval adds or removes an event of probability zero.
Sanity check: is symmetric about , so should equal . Indeed , and . ✓
(d) Height against area. , while by the theorem Point probabilities vanish.
The number is a rate, probability per unit length near : for a short interval of length centred at , . The number is the probability of the single point , which has no length and therefore no area under the curve.
- 2.Proof · 6 min
Let have a density that is even, for every real , and let be its distribution function.
- (a)Prove that for every real .
- (b)Deduce that is a median of , and that for every .
- (c)Exhibit an even density for which the statement “ by symmetry” is false, and say precisely what goes wrong.
Show the solution to question 2
(a) Substitute in the defining integral. By definition . Put , so ; as runs from up to , runs from down to . Hence
the last step because is even. Finally the total area is one, so .
(b) Two specialisations. Put in (a): , so , which is exactly the statement that is a median.
For , property (4) of a distribution function gives , and the left endpoint may be included because for a continuous distribution function (the theorem Point probabilities vanish). Therefore
With these are precisely the symmetry identities for the standard normal; the proof shows they have nothing to do with the exponential in , only with its evenness.
(c) The Cauchy density. Take , which is even, positive, and integrates to . The symmetry argument for says: is odd, so its integral over the line is zero. But the definition of first requires , and here
So does not exist at all, and “ by symmetry” is an integral that was never defined. Note that (b) is untouched: the median of the Cauchy distribution is , because a median needs only and never a moment.
- 3.Computation · 9 min
Let have the density for all real .
- (a)Verify that is a density.
- (b)Show that exists and find it. Then find .
- (c)Find separately for and for , and hence find the quartiles and exactly.
- (d)Compute , and explain why does not exist.
Show the solution to question 3
(a) Non-negative with total area one. Clearly . By the evenness of ,
(b) Check absolute convergence first. Integrating by parts with , ,
so exists. Now is an odd function, so (legitimate precisely because the integral converges absolutely).
For the variance use the computational formula. Since , , and by evenness and one more integration by parts (, ),
So and .
(c) Integrate from the left in two regimes. For the density is on , so
For , the left half contributes and the rest is
The lower quartile satisfies , so it lies in the branch: gives . The upper quartile lies in the branch: gives , so . They are mirror images, as they must be for an even density.
(d) Law of the unconscious statistician. Split at so that can be removed:
For the right-hand integrand is , a constant, and diverges. The expectation is : the density's tail decays exactly as fast as grows, so nothing is left to make the integral converge.
- 4.Computation · 8 min
Let and, independently, .
- (a)Write down the density of , find on the whole real line, and compute and .
- (b)Compute and .
- (c)Use the inverse transform theorem to write as a function of , and confirm its mean and variance by the linearity and scaling rules.
- (d)Use the inverse transform theorem to write, as a function of , a random variable with density on . Verify directly that comes out the same whether computed from 's density or from .
Show the solution to question 4
(a) Constant density, linear cdf. The interval has length , so for and otherwise. Then for , for , and for . By the uniform formulas,
(b) Turn each event into an interval. means , so
means or , two disjoint events:
Both answers are also visible as lengths: each event occupies half of the width- interval.
(c) Invert the cdf. Solving , that is , gives , so by the inverse transform theorem has distribution function . Check: and , agreeing with (a).
(d) A non-linear inverse. The density on has cdf , which is continuous and strictly increasing on , so the theorem applies. Solving gives , hence
From the density: . From : , since . They agree. Note the cube root pushes uniform draws upward — only one draw in eight lands below — which is what a density that grows like towards requires.
- 5.Sketch · 9 min
Let denote the density of , so . A drawing with no calculations beside it earns nothing here: every feature you mark must be justified.
- (a)For a general density , compute and . Hence show the maximum is at with height , and that the inflection points are at .
- (b)Find exactly the two values of at which the curves and cross, and say which curve is higher between them.
- (c)Sketch and on the same axes for , marking both peak heights, all four inflection points and the crossing points from (b). Shade, under each curve, the region over . Express each shaded area in terms of , say which is larger, and explain why the total areas under the two curves are nevertheless equal.
Show the solution to question 5
(a) Differentiate the exponential. Write with . By the chain rule,
Since everywhere, has the sign of : positive for , zero at , negative for . So rises to a single maximum at , where the exponential is and the height is .
Differentiating again with the product rule,
This vanishes exactly at , is negative between them (concave, the cap of the bell) and positive outside (convex, the tails). The sign changes, so these are genuine inflection points, at height .
(b) Set the densities equal. With ,
Taking logarithms, , so the crossings are at
At the narrow curve is higher ( against ), so is above between the crossings and below it outside them: the narrow bell wins in the middle and the wide bell wins in both tails.
(c) The drawing. Both curves are symmetric about , where each has its peak: and , exactly half. By (a), has inflection points at (height ) and at (height ). Mark the crossings at , where both curves have height . The tails: at , is already invisible while is still clearly off the axis, and at both are negligible.
Shaded areas. Under the region over has area . Under , the variable is , so the same region has area . The narrow curve's shaded area is larger, as the picture shows: it is taller over the whole of .
Yet both total areas are . The wide curve is half as tall but twice as wide: , so substituting gives . What loses over it recovers in the tails beyond the crossing points.
- 6.Computation · 9 min
Two machines fill bags of flour. Bags from machine have weight and bags from machine have weight , measured in grams above a nominal weight; all bags are independent. You may use , , and , and nothing else from the table.
- (a)Find and .
- (b)Find the weight such that exactly of machine- bags weigh less than .
- (c)One bag is taken from each machine. Find the probability that the bag is lighter than the bag.
- (d)Four bags are packed together. Find the probability that their total weight exceeds . Then find how many bags must be averaged for the standard deviation of the average to equal .
Show the solution to question 6
(a) Standardise, then read left tails. For : , so
For the endpoints standardise to and , a symmetric band, so by the symmetry identity
Sanity check: a band should hold more than the band () and less than the band (). ✓
(b) The inverse problem. We need with . That is below , so , and , giving . Untransform with the standard deviation, not the variance:
(c) The difference of two independent normals. Let . By the theorem on linear combinations of independent normals, with , ,
The variances add even though the variables are subtracted. The event “ lighter than ” is , so
(d) Sums and averages. By the corollary on sums of an independent sample, , so — not . Then
The average of bags has standard deviation ; setting this equal to gives , so . Quadrupling the sample halves the spread, and the spread here must be quartered.
- 7.Computation · 8 min
Buses pass a stop as a Poisson process at rate per hour, and you arrive at a random moment. Let be your waiting time in hours. Give every answer in exact form.
- (a)Write down the density and the survival function of , and state the mean and the standard deviation of the wait in minutes. Find .
- (b)Find the median wait in minutes, and explain why it must lie below the mean.
- (c)You have already waited minutes. Find the probability that you wait more than minutes in total, naming the theorem you use.
- (d)Find the probability that your wait lies strictly between the median and the mean. Then find the probability that no bus passes in a -minute window by using the Poisson count, and check it against the survival function.
Show the solution to question 7
(a) The rate is , so the mean is . By the theorem Poisson counts and exponential gaps, :
The mean is hour minutes, and the standard deviation equals the mean for an exponential, so it is also minutes. Finally : the chance of waiting longer than the average wait is about , well under a half.
(b) The median. Solve : , so hours minutes, a little under minutes.
It lies below the mean because (a) showed : more than half of the probability sits below the mean, so the point that splits the probability in half must be to its left. This is the signature of a right-skewed distribution — most waits are short, and the long ones drag the average up without moving the median.
(c) Memorylessness. In hours, the question is . By the theorem Memorylessness with and ,
Ten minutes of waiting has bought nothing: the remaining wait is distributed exactly as it was on arrival.
(d) Two more survival calculations. With and mean ,
For the -minute window, hour and the count is Poisson with mean , so . The survival function gives , the same number — as it must be, since “no bus by time ” and “the wait exceeds ” are the same event.
- 8.Proof · 10 min
Let and be independent. Work from survival functions throughout, and say at each step why a survival function is enough to identify a distribution.
- (a)Prove that for any constant , .
- (b)Prove that , and write down .
- (c)The hazard rate of is . Show that it is the constant , and explain in a sentence or two how a constant hazard is memorylessness in another guise.
- (d)Two components have independent lifetimes and , in thousands of hours, and a device fails as soon as either does. Find the probability the device is still working after hours, and its expected lifetime.
Show the solution to question 8
Why survival functions suffice. , so the survival function determines the distribution function and hence, by the theorem that density and distribution determine each other, the whole distribution. Showing that a variable has survival function for therefore proves it is .
(a) Rescaling. For and ,
which is the survival function of . As a check on the direction, , consistent with the rule that the mean is the reciprocal of the rate: stretching the time scale by divides the rate by .
(b) The minimum of independent exponentials. The minimum exceeds exactly when both variables do, so . By independence the probabilities multiply:
This is the survival function of , so and . Note that this is smaller than both and : waiting for the first of two things is faster than waiting for either alone, and the rates simply add.
(c) Constant hazard. With and ,
The hazard is the instantaneous failure rate given survival so far: for small ,
A constant hazard says the chance of failing in the next instant does not depend on the age already reached, which is exactly what memorylessness asserts: indeed the memoryless identity gives directly. Ageing would show up as a hazard that increases with .
(d) Apply (b). The device's lifetime is with and , so it is . Then
and the expected lifetime is thousand hours, about hours — shorter than the hours of the weaker component on its own.
- 9.Computation · 9 min
Let be independent standard normals. You may quote and .
- (a)Let . Name its distribution, state and , and compute in two ways: from the variance, and by expanding the square.
- (b)Let . Find the distribution function and density of , and compute and exactly.
- (c)Let . Express in terms of , and find the median of in terms of the quantile function . Is the median above or below ?
- (d)For , find and . Say what happens as , and why that forces the distribution towards .
Show the solution to question 9
(a) A chi-squared with three degrees of freedom. By definition , so and . From the computational formula for the variance,
Expanding instead, , with three fourth-power terms and three cross terms. Independence gives for , so
The two routes agree; the cross terms are where independence enters.
(b) Fold the normal. For , by the symmetry identities,
and for . Both halves of the bell are folded onto , which is why the density doubles. For the mean, the substitution is immediate:
Since , , and so
(c) The square of a standard normal. (about ). For the median we need , so and
This is below : the density is unbounded at and has a long right tail, so it is strongly right-skewed and the median sits well below the mean.
(d) The denominator of a . By linearity and the scaling of variance, with and ,
So has mean and a standard deviation that shrinks to zero: it concentrates at . In the denominator therefore tends to and behaves like the numerator alone, which is . For finite the denominator still wobbles, and the wobble is what fattens the tails of .
- 10.Computation · 9 min
A fair coin is tossed times and is the number of heads. You may use , , , and .
- (a)Check that the normal approximation is legitimate, and write down the mean and standard deviation of the approximating normal.
- (b)Approximate with and without the continuity correction. The exact value is ; comment on the two errors.
- (c)Approximate with the continuity correction. The exact value is .
- (d)Now the coin is tossed times. Using the normal approximation without the continuity correction, find the smallest for which the proportion of heads lies within of with probability at least .
Show the solution to question 10
(a) Both halves of the validity condition. and , so the rule is satisfied. The approximating normal has
(b) Where the bar for ends. The bars up to and including end at , so with the correction
Cutting at instead gives and .
Against the exact , the corrected value is off by and the uncorrected one by — more than a hundred times worse. The uncorrected version has thrown away half of the bar at , whose area is about , which accounts for almost the whole of its error. Sanity check: is above the mean, so the answer must exceed . ✓
(c) Two whole bars. The event is the pair of bars spanning , so
against the exact . Without the correction the “interval” would have width one and would cover only half of each bar. Note that the mean sits exactly on the boundary between the two bars, so by symmetry and each is about .
(d) The inverse problem. With , and . The event is , and standardising,
We need this to be at least , that is . Since is strictly increasing this holds exactly when , i.e. , so the smallest is
Including the continuity correction would only enlarge the band (to ) and so only raise the probability, so certainly suffices under either convention. The is the whole story: to halve the tolerance to at the same confidence would need , four times as many tosses.
- 11.Critique · 9 min
Three arguments follow. Each reaches a false conclusion. For each one: identify the false step, name the definition or rule whose hypothesis it violates, and then give the correct treatment asked for.
Argument A. “Let be independent standard normals and , so . Since and , the ratio has the -distribution with degrees of freedom.”
Argument B. “Let . Then , so , and therefore is constant.”
Argument C. “Let and . By the symmetry of , as well. So is a sum of two squared standard normals, hence , with mean and variance .”
- (a)For Argument A: show that with probability one, and prove that no -distributed variable can be bounded. Then say how a genuine variable could be built from and further independent standard normals.
- (b)For Argument B: compute correctly, showing the integration, and hence .
- (c)For Argument C: find the actual mean and variance of , and say which of the three quoted facts about it survives.
Show the solution to question 11
(a) Argument A ignores the independence hypothesis. The definition of the -distribution requires the numerator and the chi-squared to be independent. Here is a function of , so the pair is not independent and the definition simply does not apply. The conclusion is also false, and the cleanest way to see it is that is bounded:
because the numerator is at most the denominator. So with probability one.
No variable is bounded. Let with and independent, and fix any . On the event we have and hence . The two events are independent, since everywhere, and since has mean and so cannot exceed with probability one. Their intersection therefore has positive probability, and for every : exceeds any bound. A variable confined to cannot be .
The repair is to use a chi-squared built from other normals: with independent of , the variable is genuinely , because now the numerator and denominator are independent.
(b) Argument B swaps expectation and squaring. The step is false: expectation does not commute with a non-linear function, and holds only for linear . In fact with equality only for a constant , and is plainly not constant — so the “conclusion” is the very thing that shows the step was wrong.
Correctly, integrate by parts with and , so :
Hence , which is the case of .
(c) Argument C ignores independence in the definition of . The claim is correct: by the symmetry identity. The false step is “hence ”: the definition requires the standard normals being squared to be independent, and is a function of .
In fact . By linearity, , so the quoted mean is right — the mean never needed independence. But by the scaling of variance and (b),
not . Of the three quoted facts — the distribution, the mean and the variance — only the mean survives. (The distribution is wrong too: , and there is no reason for a variable to match that.)
- 12.Proof · 12 min
Let be a continuous random variable with , density , survival function and finite mean.
- (a)Prove the tail formula . (Write inside the defining integral for , and exchange the order of integration; the integrand is non-negative, so the exchange is permitted.)
- (b)Use (a) to recover for and for .
- (c)Let be independent . Find the survival functions of and , and use (a) to compute and .
- (d)Verify that , and explain why this identity was guaranteed in advance. Then account for the value of using memorylessness.
Show the solution to question 12
(a) Exchange the order of integration. Since , the density vanishes on and
The region can be described the other way round as . The integrand , so the double integral may be evaluated in either order (Tonelli's theorem), and integrating over first gives
An alternative is integration by parts with , , , giving ; the boundary term vanishes because , the tail of a convergent integral. That is where the finite mean is used.
(b) Two checks. For , and
with no integration by parts required. For , on and beyond, so
the midpoint, as the uniform formula says.
(c) Minimum and maximum. The minimum exceeds when both do; by independence,
so and by (a) .
The maximum is at most when both are, so and
This is not an exponential survival function, but (a) does not care:
(d) The identity and its explanation. . ✓
It had to hold because for any two numbers the smaller plus the larger is their sum: as random variables, outcome by outcome. Expectation is linear, so the expectations agree — no independence, and no exponential distribution, is needed for that step.
The value also has a direct reading. The first of the two variables to finish arrives after , an wait of mean . At that moment the survivor has already lasted units, but by memorylessness its remaining life is a fresh with mean . So , exactly as computed.
Solutions: calc-path.com/probability/test/continuous-distributions/answers