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.
Statistics · Chapter test
Statistical Inference: Estimation
Work this sheet on paper and show every step: the solutions are written out as methods, so that you can check your route and not just your final number. Name every result you lean on (“by the bias–variance decomposition”, “by the invariance of maximum likelihood”, “by the pivotal method”) and state the hypotheses it needs — normal population? known ? independence? — each time you use it. No calculator is needed: every number has been chosen to come out exactly, and wherever a critical value is required it is given in the question. 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
A population has mean and variance , and is an i.i.d. sample from it with . Three estimators of are proposed:
- (a)Find the bias and the variance of each estimator.
- (b)Find the mean squared error of each, and show that beats on MSE exactly when . Then evaluate all three MSEs for , , .
- (c)Which of the three are consistent for ? Where a theorem settles it, name the theorem; where an estimator is not consistent, argue directly from the definition.
Show the solution to question 1
(a) Expectations and variances. By the theorem Mean and variance of the sample mean, and , so has bias and variance .
is itself the sample mean of a sample of size , so and the bias is ; by independence the variances add, .
For , linearity of expectation gives , so
the constant coming out of the variance squared.
(b) Bias–variance decomposition. , so
if and only if . Expanding the right side, , which is , i.e. . Shrinking toward zero pays when the true mean is within about population standard deviations of zero: the bias it introduces is then smaller than the variance it removes.
With , , : , , and . Check against the criterion: ✓, so should win, and it does.
(c) Consistency. is consistent by the corollary The sample mean is consistent. For , the bias and the variance , so and the theorem MSE consistency gives consistency.
has , which does not vanish — but that alone proves nothing, because the theorem runs one way only (MSE to zero implies consistency). Argue from the definition. The estimator does not depend on at all, so for each the number is the same for every , and the limit as is simply . If for every , then taking and a countable union gives , so — contradicting . Hence some has , the probability does not tend to , and is not consistent.
The moral: discarding observations keeps unbiasedness perfectly intact and destroys consistency.
- 2.Proof · 7 min
Two independent, unbiased estimators and of the same parameter have variances and — think of the means of two independent surveys of different sizes. For a real number define the combination
- (a)Prove that is unbiased for every , and find as a function of .
- (b)Prove that the variance is minimised at and that the minimum value is .
- (c)Prove that this minimum is strictly smaller than both and . Then take and , the means of independent samples of sizes and from one population with variance : identify and its variance.
Show the solution to question 2
(a) Linearity. for every real — no restriction to is needed for unbiasedness. Since the two estimators are independent, the variance of the sum is the sum of the variances, and constants come out squared:
(b) Minimise the parabola. , which vanishes when , i.e. at . Since , is a convex parabola and the stationary point is its global minimum. With ,
Equivalently : the precisions (reciprocal variances) add, and each estimator is weighted in proportion to its precision.
(c) The combination beats both. is equivalent, after multiplying by the positive and dividing by , to , i.e. , which holds. By symmetry the minimum is also below .
So throwing the noisier estimator away (which is or ) is never optimal: however poor it is, it carries some information, and the right weight extracts it. For instance if the minimum is , a reduction bought from an estimator nine times noisier.
Sample means. Here , so
and therefore
the grand mean of the pooled sample. Its variance is , which agrees with the formula: ✓. Sample means are to be weighted by sample size, not averaged equally.
- 3.Computation · 7 min
Lifetimes are modelled as i.i.d. exponential with rate , density for , for which . Three observed lifetimes are , and .
- (a)Find the method of moments estimator of and evaluate it on the data.
- (b)Find the maximum likelihood estimator of : write the log-likelihood, solve the score equation, and confirm that the stationary point is the global maximum over .
- (c)By naming the theorem that allows it, write down the MLE of the mean lifetime and of the survival probability . Then decide, with justification, whether the MLE of the mean is unbiased and whether the MLE of is unbiased.
Show the solution to question 3
(a) Match the first moment. One parameter needs one equation: set the population mean equal to the sample mean, , so . On the data and .
(b) Maximum likelihood. The likelihood is
The score is , which vanishes at . Second derivative: for every , so is strictly concave on ; a strictly concave function has at most one stationary point and it is the global maximum. The boundary check confirms it: as (the term) and as (the term dominates), so nothing larger hides at the edges. On the data , agreeing with the method of moments.
(c) Invariance. By the theorem Invariance of maximum likelihood, the MLE of any function of is that function of . So the MLE of the mean is , and the MLE of is .
Is unbiased for ? Yes: by linearity.
Is unbiased for ? No. The map is strictly convex on and is not a constant, so Jensen's inequality gives : the MLE of the rate is biased upward. (One can show for , so for these three observations the estimator overshoots by on average.) Invariance transports the maximiser through ; it says nothing about expectations, which is why unbiasedness has no invariance property.
- 4.Sketch · 8 min
Four observations from a Uniform population are and . The density is for and otherwise.
- (a)Write the likelihood as an explicit piecewise formula valid for every , and explain why it is zero on part of its domain.
- (b)Sketch for , measuring the vertical axis in units of . Mark the maximum likelihood estimate and the value of there, plot the exact values at , and , and mark where the method of moments estimate falls. Every feature you draw must be justified.
- (c)Explain why solving produces nothing here, and say which step of the maximum likelihood recipe locates the estimate instead.
- (d)Given that for the sample maximum, produce an unbiased estimator from the MLE and evaluate it. Explain why it must sit to the right of the MLE on your sketch.
Show the solution to question 4
(a) The likelihood is a product of indicator-like factors. Each factor equals if and otherwise, so the product is nonzero only when is at least every observation, i.e. :
It is zero below because a Uniform population with cannot produce the observation : such a assigns the observed data density zero, and a single zero factor kills the whole product.
(b) The sketch. Axes: from to horizontally, vertically in units of , so that is unit.
Zero segment. From to the graph runs along the horizontal axis.
Jump at . At the value is unit, and it belongs to the curve (a filled dot), because is allowed with equality. So the graph jumps vertically from to unit; the point just to the left is at height .
Decreasing tail. For , is strictly decreasing () and convex (), bending toward the axis without reaching it. Exact values, in units of : , , .
The MLE. The highest point of the graph is the top of the jump, at : mark with .
The method of moments estimate. , so . Mark on the axis; there . The sketch shows at a glance what is wrong with it: the estimate lies in the region the data have ruled out, since the observed cannot come from Uniform.
(c) No stationary point. On , and , never zero; below the likelihood is identically zero and is undefined. So "differentiate and solve" returns nothing. It is step 4 of the recipe, check the boundary, that finds the answer: the parameter values compatible with the data form , is decreasing there, so the maximum is at the left endpoint , a point where the derivative is not zero because the graph has a jump, not a peak.
(d) The unbiased correction. From , the estimator has expectation . With it is .
It lies to the right of the MLE because the correction multiplies by , and the reason it should is visible on the sketch: the maximum of four draws can never exceed , so it systematically falls short of the true ceiling and must be inflated to be right on average. On the graph, sits on the decreasing tail at height units — a lower likelihood than the MLE, but a positive one. The two estimators disagree because they optimise different things: fit to the data in hand, against correctness on average over repeated samples.
- 5.Computation · 10 min
Let be i.i.d. Uniform with . Three estimators of are in play: the maximum likelihood estimator , its unbiased correction , and the method of moments estimator . You may use that has density on , and that a Uniform variable has variance .
- (a)Compute and , and hence show that .
- (b)Find the mean squared error of each of the three estimators as an exact function of and .
- (c)Rank the three by MSE for , proving each inequality, and find the one value of at which two of them tie. Evaluate all three MSEs for , .
- (d)The Cramér–Rao bound says an unbiased estimator's variance is at least , which is of order — yet is unbiased with variance of order . Identify the hypothesis of the theorem that fails for this model, and demonstrate the failure by computing the expectation of the score.
Show the solution to question 5
(a) Moments of the maximum. Integrate against the given density:
Then
since .
(b) Three MSEs by the bias–variance decomposition.
MLE. Bias , so
Unbiased correction. Zero bias, and the constant comes out squared:
Method of moments. , unbiased, and , so .
(c) Ranking. iff iff iff : true for every . iff iff iff iff iff . So for ,
and the tie is at , where .
With , : , , . The corrected maximum has half the error of the method of moments, and the gap widens with : the maximum-based errors fall like , the moment-based error like , so the ratio grows like .
(d) The regularity conditions fail. The Cramér–Rao theorem rests on the lemma The score has mean zero, which is proved by differentiating under the integral sign. That step needs the support of not to depend on ; here the support is , and moving moves the endpoint of the integral, producing a boundary term the lemma ignores. The failure is checkable: on the support, , so the score is , a constant, and
The first conclusion of the lemma is false for this model, so the bound built on it does not apply, and there is nothing to stop an unbiased estimator from converging at the faster rate . This is the general pattern: when the parameter sets the edge of the support, the extreme observations carry far more information than any average of the sample.
- 6.Computation · 10 min
In each model below a single observation has the stated mass function. Work with one observation first, then with an i.i.d. sample of size .
- (a)Poisson: for , with . Find the score, verify directly that it has mean zero, and compute twice — once as the variance of the score and once as the expected curvature — checking that the two agree.
- (b)State the Cramér–Rao bound for unbiased estimators of from observations, and show that attains it.
- (c)Bernoulli: for . Show that and that is efficient.
- (d)In the Poisson model, is unbiased for . Find its efficiency as a function of , check that the value at is what it must be, and describe what happens as .
Show the solution to question 6
(a) Poisson. , so the score is
Its mean is , as the lemma The score has mean zero promises. As a variance: . As curvature: , so . The two agree ✓. Note the information decreases as grows: a Poisson with large mean is also a Poisson with large spread, and each count pins down less tightly.
(b) The bound and . By the theorem Cramér–Rao lower bound, every unbiased estimator of has . The sample mean is unbiased, , with by the theorem Mean and variance of the sample mean. It sits exactly on the bound, so it is efficient: no unbiased estimator of a Poisson mean can do better.
(c) Bernoulli. , so
Using and ,
The bound is , and is unbiased with variance . Efficient. (Information is smallest at , where a coin is least predictable, and blows up near and .)
(d) A deliberately lopsided estimator. Unbiasedness: . For the variance, and are not independent, since is one of the terms in :
the other covariances vanishing by independence. Hence
The efficiency is the bound over the actual variance:
At this is , as it must be: then , , and is the efficient estimator itself. At the efficiency is , and as it tends to — keeps half its weight on a single observation forever, so its variance never falls below while the bound falls like . An estimator can be unbiased for every and still waste almost all of a large sample.
- 7.Proof · 11 min
Let be i.i.d. and write for the parameter of interest. You may quote three facts: for , ; a variable has mean and variance ; and .
- (a)With known, prove that , and state the Cramér–Rao bound for unbiased estimators of .
- (b)Prove that is unbiased and attains the bound.
- (c)Now let be unknown. Compute and the efficiency of relative to the bound in (a). What has estimating cost?
- (d)Prove that the maximum likelihood estimator has strictly smaller mean squared error than for every , despite being biased.
Show the solution to question 7
(a) Information about a variance. For one observation, . Differentiating in ,
Since , the score has mean (as the lemma requires), and by the curvature form of the lemma The score has mean zero, and information as curvature,
The theorem Cramér–Rao lower bound then says every unbiased estimator of satisfies .
(b) The known-mean estimator is efficient. Unbiasedness is linearity: . For the variance, write with . Then , so , and by independence
exactly the bound. is efficient.
(c) The price of not knowing . Write with . Then (unbiased, as known) and
Its efficiency relative to the bound of (a) is
behaves as if it had one observation fewer: the variance it achieves with data points is what achieves with . Estimating has cost exactly one degree of freedom — the same one that appears in the divisor and in the distribution. The loss vanishes as .
(d) The biased MLE wins on MSE. has , so its bias is , and
By the theorem Bias–variance decomposition,
Now iff (both denominators positive) iff iff , which holds for every . So the inequality is strict for all .
At the biased estimator's MSE is against ; at it is against . Neither divisor is actually MSE-optimal: minimising over gives , so the best estimator in this family divides by and is more biased still. Unbiasedness is a constraint, and constraints cost.
- 8.Critique · 9 min
A machine's fill volumes are normal with known ml. A sample of bottles has ml. Use and . A student submits the following.
Step 1. The standard error is .
Step 2. The interval is .
Step 3. Therefore the probability that lies in is .
Step 4. Since the interval captures of the distribution, about of individual bottles contain between and ml.
Step 5. The interval is . It is narrower, so it is a more precise estimate of and should be preferred.
Step 6. If a second sample of bottles were taken, its mean would fall inside with probability .
- (a)Steps 1 and 2 are correct. For each of Steps 3–6, say whether it is correct; where it is not, name precisely what is wrong and write the statement that is correct.
- (b)Suppose were in fact . What interval contains the middle of individual fill volumes, and by what factor is it wider than the confidence interval? Explain why the confidence interval shrinks to a point as grows while this one does not.
- (c)For Step 6, write the correct probability as a statement about a standard normal variable, and show without tables that it is less than .
Show the solution to question 8
(a) Four claims, four verdicts.
Step 3 is wrong: it assigns a probability to a constant. In the pivotal argument , the random quantities are the endpoints; is a fixed number. Once the sample is in, is a fixed interval too, and it either contains or it does not — there is no randomness left and so no probability to assign. Correct statement: "the interval was produced by a procedure which, over repeated samples, captures of the time." The describes the procedure, not this interval.
Step 4 is wrong: it confuses the precision of an estimate of with the spread of the population. The interval's half-width is , which measures how well locates ; individual bottles scatter with standard deviation , four times larger here. Correct statement: the interval says nothing about individual bottles; see (b).
Step 5 is wrong: narrowing by lowering the level is not precision, it is a lower success rate. At fixed and the only thing a interval buys with its shorter length is that the procedure misses twice as often — of the time rather than . Correct statement: the interval is , and it is not a better estimate but a riskier one. Genuine precision at a fixed level comes only from a larger or a smaller .
Step 6 is wrong: the interval is about , not about future data. A second sample mean is itself random with standard deviation , and the interval's centre is random as well; the gap has two sources of variability. The correct probability is computed in (c) and is well below .
(b) Population band versus confidence interval. If , an individual volume lies in with probability . Its width is ml against the confidence interval's ml: a factor of , because the interval's half-width is while the band's is .
As grows, and the confidence interval collapses onto — more data locates the mean ever more precisely. The population band is whatever is: no amount of sampling makes individual bottles less variable. The two intervals answer different questions, and only the first is what a confidence interval is for.
(c) The chance a second mean lands in the interval. Let be the second sample mean, independent of , with . Then , with standard deviation . The event in Step 6 is , so
Since and is increasing, this is strictly less than . (From a table it is about .) To capture the next sample mean with probability one would need the wider margin , a prediction interval — a different object from a confidence interval.
- 9.Computation · 8 min
A normal population has unknown mean and unknown variance. A sample of gives the values . Use , and .
- (a)Compute , and the estimated standard error exactly.
- (b)State the pivot, name its distribution and the two facts about normal samples that the distribution rests on, and construct the confidence interval for .
- (c)Construct the interval, and explain why it must be wider.
- (d)A classmate uses in place of and reports . Write this interval's true coverage as a probability about a variable, and explain in terms of the pivot why it is below .
Show the solution to question 9
(a) Summary statistics. The sum is , so . The deviations are , with squares summing to , so
(b) The pivot. Because is unknown, the pivot is the studentised mean
by the theorem The studentised mean is pivotal. That distribution rests on two facts about a normal sample: , and and are independent — which is what lets be written as with and independent, the definition of Student's . Both hypotheses need the population to be normal, which is given.
By the pivotal method, ; multiplying through by and rearranging around gives . With and ,
(c) The interval replaces by :
It must be wider because : to trap the pivot with probability instead of the central region must extend further into the tails, and with only degrees of freedom those tails are heavy, so the cost is large — the interval is times as long. Confidence is bought with length at a fixed .
(d) What the -interval really covers. The interval contains exactly when , where is the same pivot as in (b). Its true coverage is therefore
and since and is increasing, this is strictly less than . (It is about .) The classmate's error is to treat as if it were the known : with the estimate varies a great deal from sample to sample, the pivot has the heavy tails of rather than the normal's, and a margin sized for the normal traps too rarely. The interval is not "more precise" — it is under-covering.
- 10.Proof · 11 min
Independent samples of sizes and are drawn from and , where both variances are known and need not be equal. Write and .
- (a)Derive, by the pivotal method, a confidence interval for : state the distribution of with justification, exhibit the pivot, and carry out the rearrangement.
- (b)Suppose the total budget is fixed. Prove that the interval's half-width is minimised when , and show that the minimal half-width is .
- (c)Prove that equal allocation inflates by the factor , with equality if and only if . Evaluate the factor when and translate it into extra observations.
Show the solution to question 10
(a) The pivot. By the proposition A normal population gives an exactly normal mean, and , and they are independent because the samples are. A difference of independent normals is normal, and by the lemma Linearity of expectation and variance of an independent sum,
where is a known constant. Standardising,
a distribution involving no unknown at all — a pivot. By definition of , . Multiply the chain by , subtract , and multiply by , which reverses both inequalities and swaps the ends:
The event is unchanged, so its probability is still : the interval is .
(b) Optimal allocation. The half-width is with
treating as continuous; since the square root is increasing, minimise . Then
which vanishes iff , i.e. (all quantities positive) , i.e. . This is the global minimum because makes convex on , and at both ends of the interval. Explicitly , , and
so the minimal half-width is . (An alternative route is the Cauchy–Schwarz inequality, , with equality exactly when . In practice is rounded to an integer.) The rule says: spend the budget in proportion to the standard deviations, not the variances — the noisier population gets more observations, but only linearly more.
(c) The cost of splitting evenly. With , , and dividing by the optimum gives the stated factor. It is at least because
with equality iff .
With the factor is . Since the variance scales as , an even split needs observations — more — to match the width the optimal split achieves with , which puts three quarters of the budget on the noisier population. When the variances are equal the optimum is the even split, which is why the pooled interval, whose hypotheses assume a common variance, is at its best with .
- 11.Computation · 11 min
Throughout this question take — the value rounded, so that every number comes out exactly; the level is then approximately . A sample of independent trials is observed.
- (a)With successes, compute the Wald interval and the Wilson score interval for exactly.
- (b)The Wilson interval is by definition the set of satisfying . Verify by direct substitution that both Wilson endpoints from (a) satisfy this with equality. Then show that the lower Wald endpoint fails the inequality while the upper one satisfies it strictly, and say what that means about the Wald interval.
- (c)With successes, compute both intervals, verify the upper Wilson endpoint with equality, and say which interval is an honest report of what trials established.
- (d)Prove that with the Wilson centre is exactly for every and , and interpret the formula.
Show the solution to question 11
(a) Two intervals at . Here and .
Wald. , so the interval is . Since , this is about .
Wilson. With : , , . The centre is
and the half-width is
The Wilson interval is . It is shifted toward relative to Wald and slightly longer.
(b) Checking the defining inequality. At : left side ; right side . Equality ✓. At : left side ; right side . Equality ✓. (At the left side is , so is inside, as it must be.)
The Wald endpoints solve a different equation, , whose right side is a constant rather than a function of . Consider the lower one, . Since and is increasing on , we have , so the honest right side is smaller than : the inequality fails at , which lies outside the honest set. For the upper one, , we have (as ), so and the honest right side exceeds : the inequality holds strictly, and is an interior point of the honest set. So Wald reaches too far down and stops too short going up — it is the honest interval shifted the wrong way, because it pretends the standard error is the same at every .
(c) No successes. . Wald: , so the interval is . Wilson: and , giving .
Check : left side ; right side . Equality ✓. (At both sides are , so the lower endpoint is exactly , as it should be when nothing was observed.)
The honest report is Wilson's. Zero events in trials is entirely consistent with a rate of : the chance of seeing none is then , exactly the sort of borderline value an endpoint of a interval should have. Wald's asserts, with confidence, that the rate is exactly zero on the strength of trials — a zero-width interval from a finite sample, which is not a confidence statement at all. (The rule of three gives as the upper bound, close to Wilson's .)
(d) Add two successes and two failures. With and ,
Check against (a) and (c): ✓ and ✓. The Wilson centre is the sample proportion after two phantom successes and two phantom failures are appended: a shrinkage of toward whose weight is fixed while the data's weight grows, so it matters at and vanishes as , where Wilson collapses back onto Wald. It is precisely this pull away from the endpoints that keeps the interval inside and gives it positive width at .
- 12.Critique · 9 min
A polling firm's planning memo reads as follows. Take and (both rounded) throughout, and measure margins as proportions, so that “ points” means .
Baseline. Our last poll used . At the worst case the margin is , i.e. points, which is what we reported.
Claim A. To halve the margin to points, double the sample: .
Claim B. The next poll is in a town of rather than a country of million. The population is times smaller, so gives the same -point margin.
Claim C. The client wants confidence at the same -point margin. As , about more respondents will do: .
Claim D. Our pilot puts support near . Using , respondents guarantee a -point margin.
- (a)The baseline is correct. For each of Claims A–D, decide whether it is right; where it is wrong, name the error precisely and compute the correct sample size.
- (b)Prove that if it is known that for some , then guarantees a margin of at most , and that this requirement never exceeds the worst-case one. Then find the true at which Claim D's delivers a margin of exactly (about points), and comment.
- (c)The firm settles on at and reports a -point margin. Its respondents were recruited from the firm's own website. Does the margin account for this? Say what a confidence interval does and does not measure.
Show the solution to question 12
(a) Four claims.
Claim A is wrong: the margin scales as , not . The margin is , so halving it needs multiplied by : the correct figure is . Check: , i.e. points ✓. Doubling to would give , about points — the quadratic cost of precision, by the proposition Sample size for a target margin of error.
Claim B is wrong: the population size does not appear anywhere. The formula contains and and nothing else, because the model is independent draws from a population large enough that each draw is a fresh Bernoulli trial; that holds for a town of as well as a country. The correct figure is again. Taken at its word, gives a margin of — fifty points, which is no poll at all.
Claim C is wrong: scales with the square of the critical value, not with the confidence level. By the proposition Worst-case sample size for a proportion,
The factor over the figure is , so more respondents, not . (With the unrounded it is about .)
Claim D is half right. The arithmetic is correct: . The word "guarantee" is not. With the margin is , which is at most only if , i.e. only if or . A pilot figure is an estimate, not a bound; if support is really or the promise is broken. Correct planning takes the worst case over the range of that is genuinely plausible — for instance if can be relied on, — or falls back to if nothing can.
(b) Planning with a bound on . Let . Then on , so is increasing there, and implies . Hence the margin obeys
Since (the maximum of on is at ), this is never more than the worst-case . Knowledge that is far from is worth real money, but only knowledge of a bound, not a point guess.
For Claim D's , the margin equals when , i.e. , i.e. . Clearing denominators, , which factors as , so or . If true support is rather than the pilot's , the advertised -point margin is really points — and a small pilot being ten points off is not unusual.
(c) What the margin measures. No. The margin of error quantifies sampling variability only: how much would move across repeated random samples of from the population the model describes. Visitors to the firm's website are self-selected, so the sample is drawn from a different population than the electorate, and the interval is a precise statement about that wrong population. Raising from to narrows the interval without moving it toward the truth; the bias is invisible to the formula and is fixed only by the sampling design. The interval does measure the uncertainty from having observations rather than all of them; it does not measure, and cannot measure, non-response, self-selection, or a leading question.
Solutions: calc-path.com/statistics/test/estimation/answers