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
Sampling and Data Distributions
Work this sheet on paper, showing every step — the solutions are written so you can check your method, not just your final number. Name every result you use (“by linearity of expectation”, “by Chebyshev's inequality”, “by the Central Limit Theorem”) and say why its hypotheses hold; in particular, say at each step whether independence is being used. No calculator is needed: every answer is an exact fraction or root, and the few normal-table values required are printed in the question. Full worked solutions are on a separate page, and each question also has its own reveal, so you can check one answer without seeing the rest.
- 1.Computation · 7 min
A population consists of the four values , each equally likely to be drawn. Samples of size are drawn with replacement, so the two draws are i.i.d.
- (a)Classify each of the following as a parameter, a statistic, or neither, with one sentence of justification each: (i) ; (ii) ; (iii) ; (iv) ; (v) .
- (b)Compute and , then list all ordered samples and tabulate the sampling distribution of : every value it can take, with its probability.
- (c)From your table compute and directly, and confirm that they equal and .
Show the solution to question 1
(a) Parameter, statistic, or neither. (i) is a fixed numerical feature of the population: a parameter. It does not change from sample to sample and is not known from the data.
(ii) can be computed from the data alone: a statistic. It is also a random variable — it takes a different value on a different sample.
(iii) Neither. It is not a parameter, because it depends on which sample was drawn; and it is not a statistic, because evaluating it needs , which the data do not supply. (Replacing by turns it into a statistic.)
(iv) The sample maximum is a function of the observations alone: a statistic.
(v) is a fixed constant determined by the population (and the chosen ); it is not random and cannot be computed from a sample. It is a parameter — specifically the standard error of — and the statistic that estimates it is .
(b) The population and the sampling distribution. The population mean is
and the population variance, dividing by because this is the whole population and not a sample, is
The ordered samples are equally likely, each with probability , and . Arranging them in a grid with down the rows and across the columns, the sample means are
Counting along the anti-diagonals, the sampling distribution of is
— a triangle centred on . The probabilities sum to .
(c) Mean and variance from the table.
For the variance, the deviations are with frequencies , so
Both theorems check. Note that the averaging halved the variance ( to ) — this is the whole reason for taking a mean — and that the independence of the two draws is what licensed the ; the equality would have held even for dependent draws.
- 2.Computation · 7 min
Keep the population , with and , and the equally likely ordered samples of size drawn with replacement. Two candidate estimators of are the sample variance and the divide-by- version .
- (a)Show that for a sample of size , and .
- (b)Tabulate over the samples, and hence compute and exactly. Which estimator is unbiased, and by what factor is the other one off?
- (c)Compute exactly and compare it with . State the general fact this illustrates.
Show the solution to question 2
(a) The two formulas. With the deviations are
equal and opposite, as deviations from the sample mean must be (they always sum to zero). Each squares to , so the sum of squared deviations is . Dividing by gives ; dividing by gives .
(b) The expectations. Over the ordered samples, takes the value on the diagonal samples ; the value on the samples ; the value on the samples ; and the value on the samples . Check: . Hence
(Cross-check without the table: has mean and, being a difference of independent draws, variance , so . The table agrees.)
Therefore
is unbiased. The divide-by- estimator is biased downward by the factor : on average it reports half the true variance. The reason is visible in the diagonal samples, where both observations coincide with and the estimator reports ; deviations from the sample's own centre are systematically too small.
(c) . Since ,
Compare with by squaring both (both are positive): . So — roughly against .
The general fact: is unbiased for , but is not unbiased for . Unbiasedness is not preserved by taking square roots, because the square root is strictly concave and whenever is not constant. The sample standard deviation underestimates on average.
- 3.Computation · 7 min
A town's workers split into two strata of each. Those living in the town have a daily commute with mean km and standard deviation km; those living outside have mean km and standard deviation km. A sample of workers is to be asked their commute distance.
- (a)Compute the population mean , the within-strata and between-strata components of the population variance, and itself.
- (b)Find the standard error of under simple random sampling, and under stratified sampling with proportional allocation. State the stratum sample sizes.
- (c)How many simple-random-sample interviews would be needed to match the stratified standard error? Then say what would happen to the gain from stratifying if the two strata had the same mean commute, and why.
Show the solution to question 3
(a) Decompose the variance. The stratum weights are , so
The within-strata component is . The between-strata component is
By the law of total variance applied to the stratum label, , so . Almost two-thirds of the population variance is between the groups.
(b) The two standard errors. Under simple random sampling (treating as small enough to ignore the finite population correction),
Proportional allocation takes from each stratum. The strata are sampled independently, so
which is exactly , the within-strata variance divided by . Hence km. Stratifying cut the standard error from to for the same hundred interviews.
(c) The price in interviews, and the source of the gain. An SRS matches when , i.e. , so interviews — nearly three times as many.
The difference between the two variances is exactly the between-strata term divided by : . If both strata had mean , the between-strata component would be , would be , and both designs would give . Stratification would then buy nothing. Stratification deletes the between-strata variance and only that, so the variable you stratify on must be one that separates the stratum means; strata that differ only in spread are worthless.
- 4.Critique · 7 min
A city council wants to know what proportion of its residents oppose a new road toll. It posts a survey on its website; residents respond, of whom oppose. The council's report reads:
Step 1. The sample proportion is .
Step 2. With the standard error is , so the margin of error is about .
Step 3. Therefore between and of all residents oppose the toll. A sample this large has essentially no sampling error, so the figure is almost exact.
The arithmetic in Steps 1 and 2 is correct.
- (a)Identify what is wrong, naming the kinds of sampling bias involved. Say precisely which claim in Step 3 is false, and which phrase in it is doing the damage.
- (b)A councillor proposes keeping the survey open until responses arrive. Using the way bias and sampling variability each depend on , explain why this does not help.
- (c)Describe a design under which Steps 2 and 3 would be legitimate, and compute the margin of error it would deliver with and the conservative planning value (take ). Name the one source of bias that even this design must still plan for.
Show the solution to question 4
(a) Where the argument fails. Two design failures, neither of them arithmetical.
First, undercoverage: the sampling frame is "people who visit the council website", not "residents of the city". Residents who never visit the site cannot be selected at all.
Second, voluntary response bias: nobody selected these — they selected themselves, and people who feel strongly (here, drivers who would pay the toll) are far more likely to bother. The sample is also a convenience sample from the council's point of view.
Both failures shift away from : the survey estimates, quite precisely, the proportion of self-selected website visitors who oppose the toll, which is a different parameter from the one the council wants.
Step 2's number is the standard error would have if the were an i.i.d. Bernoulli sample. The formula's hypothesis fails, so the number describes nothing.
The false claim in Step 3 is that the interval contains the population proportion. The phrase doing the damage is "no sampling error". That phrase is nearly true — sampling variability really is tiny at — but variability is not the error here. The error is bias, which the margin of error does not measure at all. The report has a very narrow interval around the wrong centre: a precise answer to the wrong question.
(b) Why more responses cannot help. Sampling variability shrinks like : quadrupling halves the standard error, from about to about . Bias is , and it does not depend on at all: the extra self-selected responses come from the same distorted frame with the same self-selection, so they estimate the same wrong quantity. The councillor would obtain a still narrower interval around the same wrong centre. (This is the Literary Digest mistake: million responses, off by nearly twenty points.)
(c) A legitimate design. Draw a simple random sample from a complete frame of residents — the electoral roll or the register of residential addresses — with the council choosing the respondents, each with equal probability, rather than the respondents choosing themselves. (Stratifying by district would do even better.) Then the responses are i.i.d. Bernoulli and the formulas of Steps 2 and 3 apply.
With and ,
about points. Four hundred properly chosen residents give an honest ; fifty thousand self-selected ones give a meaningless .
The remaining hazard is nonresponse bias: some of the selected residents will decline, and if decliners differ from responders the estimate shifts again. Plan for it in advance — a follow-up protocol on a random subsample of the non-responders — rather than hoping it away.
- 5.Proof · 9 min
Let each have mean and finite variance , and let . You may use linearity of expectation and the expansion .
- (a)Assuming the are independent, prove that and . Mark the one step in which independence is used, and say what the argument gives without it.
- (b)Now drop independence and suppose instead that for every pair — the situation for units drawn from a single cluster. Prove that
- (c)Deduce from (b) that necessarily , and that when the variance of does not tend to as . Say what this means for someone who quotes as the standard error of a clustered sample.
Show the solution to question 5
(a) Mean and variance of . The mean. By linearity of expectation, pulling the constant out of the sum,
Only the fact that every has mean was used; independence plays no role.
The variance. Write , so , and . Then , and expanding the square of the sum (which is the two-variable expansion applied term by term),
Independence is used here, and only here: independent variables have , so every covariance is and the double sum vanishes, leaving . Finally, scaling by the constant multiplies a variance by :
Without independence the mean result survives intact, and the variance becomes — the formula is exactly the uncorrelated case.
(b) Equicorrelated observations. Return to the general expansion of (a). There are ordered pairs with , and each contributes , so
Dividing by ,
Sanity checks: recovers ; (all observations identical) gives , the variance of a single observation, which is right because copies of one number carry one number's worth of information.
(c) Consequences. A variance is never negative and , so (b) forces , that is . Observations cannot be strongly negatively correlated with all of each other at once; for large the common correlation is essentially non-negative.
For , split the formula:
The standard error has a floor of that no amount of further sampling from the same cluster can breach: once the shared component of the cluster has been learned, extra units only repeat it.
Someone quoting for such data understates the true standard error by the factor . With and that factor is : the reported uncertainty is less than a third of the real one, and the confidence intervals built on it are far too narrow. The correct hypothesis for is uncorrelated observations, and a cluster design breaks exactly that.
- 6.Computation · 9 min
A population of measurements has standard deviation . Give every standard error exactly.
- (a)For a sample of i.i.d. observations, find . Then find the smallest for which , and say by what factor the sample had to grow to cut the standard error by a factor of .
- (b)Now suppose the population is finite, with units, and the observations are drawn without replacement. Find . Is the usual convention for ignoring the correction applicable here? What happens to when , and why is that the right answer?
- (c)Verify the without-replacement formula by direct enumeration: from the population (so and ) list the samples of size drawn without replacement, compute from the list, and compare it with what the formula predicts.
Show the solution to question 6
(a) The square-root law. For i.i.d. observations , so at
For we need , i.e. , i.e. . The smallest such is . The standard error fell by a factor of (from to ) and the sample grew by a factor of : dividing the standard error by costs a factor in sample size, because sits under a square root.
(b) Finite population correction. Without replacement from ,
The convention is to ignore the correction when . Here , so it is not applicable: ignoring it would report instead of , overstating the uncertainty by a third. Sampling without replacement is more precise than the i.i.d. formula says, because later draws cannot repeat information already collected.
At the factor is , so . That is correct: a sample of the whole population is a census, equals identically, and there is no sampling variability left to measure.
(c) Enumeration check. Drawing of the values without replacement, the unordered samples are equally likely (each ordered sample has probability , and each unordered sample corresponds to two of them). Their means:
The mean of the six values is , so is still unbiased. The deviations from are , with squares summing to , so
The formula predicts
in exact agreement. With replacement the same population gives ; forbidding repeats removed the two extreme samples and and their kin, and the variance dropped by the factor .
- 7.Proof · 10 min
Let be i.i.d. with mean and finite variance , with , and let . You may quote and .
- (a)Prove the identity for every real constant , and deduce that is the value of that minimises .
- (b)Take and prove that . Then find for , and say in one sentence where the missing piece of went.
- (c)Prove that , with equality only when is constant with probability . Use nothing beyond (b) and the fact that a variance is never negative.
Show the solution to question 7
(a) The identity. Insert and remove inside the square: . Squaring and summing over ,
where came out of the middle sum because it does not depend on . Now , so the middle term is , and
Rearranged, , with equality exactly when . So the sample mean is the constant about which the sum of squared deviations is smallest — which is why deviations measured from are systematically smaller than deviations measured from .
(b) Unbiasedness of . Put in the identity and take expectations of both sides, using linearity:
Each , since every has the population distribution; that gives . And because , the quantity is — this is where independence enters, through the variance formula. Hence
For the divide-by- estimator,
biased low by exactly . The missing piece is : it is the expected squared error incurred by measuring deviations from instead of from — one observation's worth of variance, spent on estimating the mean.
(c) is biased for . First, is finite: and for every , so . So has a well-defined variance, and by (b),
Hence , and since and , taking square roots gives . Equality holds if and only if , which is if and only if equals a constant with probability .
For any population in which actually varies — which is every population that takes more than one value — the inequality is strict: the sample standard deviation underestimates on average, even though its square is unbiased. Nothing about concavity or Jensen's inequality was needed; the non-negativity of a variance already contains the whole fact.
- 8.Computation · 8 min
Markov's inequality: for with finite mean and any , . Chebyshev's inequality: for with mean and variance and any , . Both hold for every distribution; this question is about how tight they are.
- (a)A non-negative random variable has . Bound from above. Then construct a distribution for with for which the bound is attained exactly, and say what that shows about improving Markov's inequality.
- (b)Observations are i.i.d. with unknown shape, unknown mean and known . Using only Chebyshev's inequality, find the smallest that guarantees . Say which two earlier results feed into the bound you use.
- (c)Construct a distribution with mean and standard deviation for which equals exactly, and verify both moments. For a normal distribution the same probability is about ; explain why Chebyshev must be loose for it.
Show the solution to question 8
(a) Markov, and a case of equality. Markov's inequality with gives
To attain it, let take only the values and , with and . Then as required, and — equality.
Why this is the equality case: Markov's proof rests on the pointwise inequality , and that is an equality precisely when is whenever it is below and exactly whenever it is at or above . Since a distribution with achieves the bound, no inequality of the form with can hold for all non-negative : Markov's constant cannot be improved without adding hypotheses.
(b) Chebyshev applied to the sample mean. Two earlier results are needed. First, the theorem on the mean and variance of the sample mean: for i.i.d. observations and . Second, Chebyshev's inequality applied to the random variable with :
Requiring gives ; the smallest such is . This is a guarantee valid for every population with , whatever its shape. (A normal approximation would ask for only about a hundred observations; the difference is the price of assuming nothing.)
(c) Chebyshev's constant is also sharp. Take the three-point distribution
Mean: the distribution is symmetric about , so ; explicitly, .
Variance: . ✓
The tail: , exactly Chebyshev's bound with .
Chebyshev's inequality must hold for this distribution as well as for the normal, so the constant cannot be lowered. The normal distribution keeps most of its mass close to and puts only about beyond — a factor of more than five below the bound. The bound is loose for the normal precisely because it is tight for the worst case: universality is paid for in slack.
- 9.Sketch · 9 min
A sequence of coin flips begins with four heads and then alternates strictly for ever: . (The sequence is chosen by hand rather than by a coin, so it is a picture of a mechanism, not a random experiment.) Let be the number of heads among the first flips, the running proportion, and the running excess of heads.
- (a)For find closed forms for , and the excess , treating even and odd separately, and show that in both cases .
- (b)Sketch against for , on axes running from to , with the horizontal lines , and drawn. Find the last at which is not strictly inside the band , and prove that it stays strictly inside for every later .
- (c)On separate axes sketch the excess for . Explain from your formulas why the excess never tends to although , and say which of the two quantities the Law of Large Numbers makes a claim about.
Show the solution to question 9
(a) Closed forms. For every flip is a head: , , and the excess is , i.e. .
From flip onward the flips come in pairs , each pair contributing exactly one head.
Even with . Flips form complete pairs, so
Odd with . One more flip, a tail, so still, and
In both cases — which is in fact an identity for every , since . The excess is at even and at odd , for ever.
(b) The sketch of , and the band. The drawing must show: four dots at height for ; then a sawtooth that descends towards from above and never crosses it, since is always positive. The even- points lie on the upper envelope and the odd- points on the lower envelope ; some values to plot are , , , , , , and . The teeth shrink as grows. Draw the three horizontal lines; the line is never approached, because the deviation is one-sided.
Entering the band. Strictly inside means . For even this is , i.e. , so even are inside and even are not: , , and sits exactly on the boundary. For odd it is , i.e. , so odd are inside: and . The sequence therefore dips into the band at , leaves at , re-enters at , touches the edge at , and the last not strictly inside is . Mark – on the sketch: this in-and-out is exactly the behaviour the weak law permits.
Proof that it stays inside. For every , whichever parity, , using for the odd case. So for all .
(c) The sketch of the excess, and the moral. The drawing shows points at for , and then a flat zigzag between (odd ) and (even ) all the way to and beyond. It never approaches the axis ; in fact it never drops below again.
Why the two pictures differ: after the fourth flip a surplus of two heads exists, and nothing in the later flips ever pays it back — each pair has zero net effect on the excess. Yet , a bounded numerator over a growing denominator, so the proportion converges to all the same. The proportion returns to by dilution, not by compensation.
The Law of Large Numbers is a statement about the proportion — the sample mean of the indicators — and nothing else. It says nothing about the count. For a genuinely random coin the situation is worse than in this hand-made sequence: the excess is not even bounded, its standard deviation being , which grows without limit. Anyone expecting a run of heads to be "corrected" by later tails is expecting the count to converge, and it never does.
- 10.Proof · 11 min
Let be i.i.d. fair coin flips coded for heads and for tails, let be the number of heads, and let
You may quote: the MGF of a sum of independent variables is the product of their MGFs; ; the MGF of is ; the continuity theorem for MGFs; the series ; the limit ; and .
- (a)Find and for a single flip, and show that is both the standardised sample mean and the standardised sum. Then show that , where takes the values with probability each.
- (b)Compute the MGF and show that .
- (c)Prove that for every fixed , controlling the remainder of the series explicitly, and conclude that .
- (d)Deduce , and reconcile the fact that this limit is positive with the Law of Large Numbers.
Show the solution to question 10
(a) Standardising. A single flip has and , so and .
The standardised mean is
and the standardised sum is , the same expression: mean and sum standardise to one and the same variable.
With : heads gives , tails gives , each with probability , and the are independent because the are. Summing, , so
(b) The MGF. . Since is a sum of independent variables, its MGF is the product of theirs, and each factor is by the scaling rule. Hence
(c) The limit, with the remainder controlled. Fix and write , so for all . From the series,
For , , so
Substituting gives , which is and therefore as with fixed. So
by the quoted limit with . The right-hand side is the MGF of , and the convergence holds for every real , in particular on a neighbourhood of ; by the continuity theorem for MGFs, .
This is the Central Limit Theorem for a fair coin, and the proof is the general MGF argument with every step made explicit: the population is symmetric, so has no odd terms, and is entire, so the remainder is under complete control rather than merely .
(d) A tail probability for the count. The event rewrites as
Since is a continuity point of , convergence in distribution gives
Reconciling with the Law of Large Numbers. The event says the surplus of heads is at least — and that stays about likely however large becomes, because the excess count is of order and does not converge. But in terms of the proportion the same event is , a deviation that shrinks to . The Law of Large Numbers says for each fixed , and there is no conflict: for any fixed , eventually , so the CLT event lies inside the band the LLN says is almost certain. The two theorems look at the same deviation at different magnifications — the LLN at a fixed scale, where it vanishes; the CLT at scale , where it is a bell curve.
- 11.Critique · 8 min
An insurer's individual claim sizes, in thousands, are independent draws from a strongly right-skewed population with mean and standard deviation ; every claim is non-negative. A trainee analyses a batch of claims and writes:
Step 1. Since , the Central Limit Theorem applies, so each claim is approximately .
Step 2. Hence the probability that a single claim exceeds is .
Step 3. The total of the claims has mean and standard deviation , so the probability that the total exceeds is , which is zero for all practical purposes.
You may use and .
- (a)Identify every error. For each, name the theorem or result being misapplied and the hypothesis or conclusion being misread.
- (b)With the information given, what can honestly be said about the probability that a single claim exceeds ? Obtain one bound from Markov's inequality and another from Chebyshev's inequality, and say which is sharper.
- (c)Correct Step 3: find the approximate probability that the total exceeds . Then say, with reference to the population's shape and where the event sits, how far that figure should be trusted.
Show the solution to question 11
(a) Three errors.
Step 1 applies the Central Limit Theorem to the wrong object. The theorem's conclusion is about the sample mean (equivalently the sum ): the standardised mean converges in distribution to . It says nothing whatever about an individual , which has the population's distribution — strongly right-skewed — no matter how many other claims are collected alongside it. Collecting claims does not reshape any one of them.
Step 1 also misreads "". That is a rule of thumb calibrated on moderately skewed populations, not a hypothesis of the theorem, whose actual hypotheses are i.i.d. observations with . For a strongly right-skewed population the normal approximation to may need in the hundreds, and it fails first in the tails. Even for the mean, earns only cautious trust here.
Step 2 inherits the error. The figure is the upper tail of a normal distribution that does not describe a claim. Nothing in the data supports it.
Step 3 confuses the standard deviation of the mean with that of the sum. The standard error belongs to . By the CLT for sums, is approximately , with standard deviation , not . The spread of a total grows with . A -score of should itself have triggered a sanity check: it claims that a total only above its mean is seventy-two standard deviations out, which no real quantity ever is.
(b) What can honestly be said. Let be one claim. Since with , Markov's inequality with gives
Chebyshev's inequality with gives ; and since ,
Chebyshev is the sharper of the two here (, since ), because it uses the variance as well as the mean. The honest statement is: the probability is at most about , and could be anything below that. It may well be much smaller than , but there is no basis for — a heavy right tail is exactly the kind of population that puts several percent of its mass beyond .
(c) Step 3 corrected. has mean and standard deviation , so
How far to trust it. The Central Limit Theorem licenses the approximation, but its accuracy at depends on the population's skewness, and this population is strongly right-skewed — the regime where the rule of thumb is least reliable. Worse, the event is a right-tail probability of about , and the tails are where a skewed sample mean departs from normality most stubbornly; for a right-skewed population the normal figure typically understates the right-tail probability at moderate . The figure is therefore a rough guide — "a few percent, plausibly somewhat more" — and not a number to underwrite a reserve on. A decision that hinges on it needs an exact calculation from the claim distribution or a bootstrap, not the CLT.
- 12.Computation · 10 min
Throughout, use for confidence, with , and keep the arithmetic exact.
- (a)Prove that for , with equality only at , and explain why this makes the safe planning value in a sample-size calculation.
- (b)A poll is to estimate a proportion with margin of error at most . Find the required with the conservative planning value, and again with a prior estimate . For the second, check the conditions for the normal approximation, and say exactly what goes wrong if the true proportion turns out to be .
- (c)Two independent trials record a side effect in of patients on treatment A and in of patients on treatment B. Check the conditions, find the standard error of , give a confidence interval for , and state the interval a student who added the two standard errors would have reported and why it is wrong.
Show the solution to question 12
(a) The worst case is . Complete the square:
Since , this is at most , with equality exactly when .
The required sample size for margin is , which increases with . Choosing therefore gives the largest any could demand, so the margin is achieved whatever the true proportion turns out to be. Any other planning value gambles that is at least as far from as the guess.
(b) Two sample sizes. With the conservative and ,
which happens to be an exact integer, so . (It is .)
With the prior estimate ,
and rounding up gives — about of the conservative figure. Conditions: and , both comfortably satisfied, so the normal approximation behind the formula is legitimate.
If the truth is , the standard error at is rather than the planned — larger by the factor . The margin of error scales the same way: , well over the that was promised. The poll would be interviews spent on a guarantee it cannot keep.
(c) Difference of two proportions. The estimates are and . Conditions: successes and failures are and for A, and for B, all at least , so both sampling distributions may be treated as normal.
Standard errors of the two estimates:
The two samples are independent, so the variances add — the minus sign in is squared away:
(The three numbers , , are a –– triangle: the standard error of a difference is the hypotenuse, not the sum of the legs.) The point estimate is , the margin is , and the interval is
It excludes , so the data are reasonably strong evidence that treatment B produces the side effect more often — by somewhere between and points.
The student who adds standard errors would take , margin , and report : an interval too wide. It is wrong because standard deviations of independent quantities do not add; variances do. Adding them overstates the uncertainty of every comparison and quietly throws away the power to detect a real difference. For two equal standard errors the inflation is exactly ; here it is .
Solutions: calc-path.com/statistics/test/sampling/answers