S3.3 - Estimation, confidence intervals and tests

Syllabus
2019
Topic
S3.3
Level
A2

Learning objectives

S3.3.1Concepts of standard error,Concepts of standard error, The sample mean, x, and the sample variance, estimator, bias. 1 n s2 = ∑(x − x)2, as unbiased estimates of the n −1 i i=1 corresponding population parameters.S3.3.2Distribution of the sample meanKnow that the sample mean X̄ has mean μ and variance σ²/n; if X is normal, then X̄ ~ N(μ, σ²/n). Proofs are not required.S3.3.3Concept of a confidence intervalConcept of a confidence interval and its interpretation.; Link confidence intervals with hypothesis tests.S3.3.4Confidence limits for a NormalConfidence limits for a Normal Students will be expected to know how to apply the Normal mean, with variance known. distribution and use the standard error and obtain confidence intervals for the mean, rather than be concerned with any theoretical derivations.S3.3.5Hypothesis tests for the mean of a Normal distributionHypothesis tests for the mean of a X −µ Use of ∼ N(0, 1).; Normal distribution with variance σ/ n known.S3.3.6Central Limit theorem for sample meansUse of Central Limit theorem to X −µ can be treated as N(0, 1) when n is large. extend hypothesis tests and S / n confidence intervals to samples from non-Normal distributions.; Use A knowledge of the t-distribution is not required. of large sample results to extend to the case in which the variance is unknown.S3.3.7Hypothesis test for the differenceHypothesis test for the difference (X −Y)−(µ −µ) between the means of two Normal x y Use of ∼ N(0, 1). distributions with variances known. σ2 σ2 x + y n n x y.S3.3.8Use of large sample resultsUse of large sample results to (X −Y)−(µ −µ) Use of x y ∼ N(0, 1). extend to the case in which the S2 S2 population variances are unknown. x + y n n x y A knowledge of the t-distribution is not required.

Estimate parameters without systematic bias

An estimator is a rule calculated from a random sample to estimate a population parameter. Its observed value is an estimate. An estimator θ^\hat\theta is unbiased when E(θ^)=θE(\hat\theta)=\theta; its bias is E(θ^)θE(\hat\theta)-\theta.

The standard error is the standard deviation of an estimator's sampling distribution. It measures how much estimates would vary across repeated samples, rather than how much individual observations vary.

\bar x=\frac1n\sum_{i=1}^{n}x_i,\qquad s^2=\frac1{n-1}\sum_{i=1}^{n}(x_i-\bar x)^2

The sample mean xˉ\bar x is an unbiased estimate of μ\mu. Dividing the squared deviations by n1n-1, not nn, makes s2s^2 an unbiased estimate of σ2\sigma^2. When σ\sigma is unknown, s/ns/\sqrt n estimates the standard error of the sample mean.

For the sample 2, 4, 6, xˉ=4\bar x=4 and (xixˉ)2=8\sum(x_i-\bar x)^2=8, so s2=8/(31)=4s^2=8/(3-1)=4. The estimated standard error of xˉ\bar x is 2/32/\sqrt3.

Unbiased does not mean that one estimate equals the true parameter, and it does not by itself mean most precise. Among unbiased estimators, a smaller variance means greater efficiency.

Use the sampling distribution of the mean

For independent observations from a population with mean μ\mu and variance σ2\sigma^2, the sample mean Xˉ\bar X has the same mean μ\mu but the smaller variance σ2/n\sigma^2/n. Averaging therefore preserves the centre while reducing sampling variability.

E(\bar X)=\mu,\qquad \operatorname{Var}(\bar X)=\frac{\sigma^2}{n},\qquad \operatorname{se}(\bar X)=\frac{\sigma}{\sqrt n}

If each observation is Normal, XN(μ,σ2)X\sim N(\mu,\sigma^2), then the result is exact: XˉN(μ,σ2/n)\bar X\sim N(\mu,\sigma^2/n). No proof is required.

If bag weights are N(50,62)N(50,6^2) and n=36n=36, then XˉN(50,12)\bar X\sim N(50,1^2). Thus P(Xˉ<48.5)=P(Z<1.5)0.0668P(\bar X<48.5)=P(Z<-1.5)\approx0.0668.

Use σ/n\sigma/\sqrt n, not σ/n\sigma/n, for the standard deviation of Xˉ\bar X. Exact Normality here comes from a Normal population; the large-sample Central Limit theorem for non-Normal populations belongs to the later objective.

Interpret a confidence interval and link it to a test

A confidence interval is a range produced by a sampling procedure for an unknown fixed parameter. A 95% procedure is designed so that, over many independent samples, about 95% of the intervals constructed in the same way contain the true parameter.

After one interval has been calculated, the parameter and its endpoints are fixed: the interval either contains the parameter or it does not. The confidence level describes the long-run success rate of the method, not a 95% probability assigned to this particular fixed interval.

For a two-sided test of H0:μ=μ0H_0:\mu=\mu_0 at significance level α\alpha, use the matching 100(1α)%100(1-\alpha)\% confidence interval. Reject H0H_0 exactly when μ0\mu_0 lies outside the interval; if it lies inside, do not reject H0H_0.

If a 95% confidence interval for μ\mu is (22.24,22.56)(22.24,22.56), the value 22.50 is compatible with the data at the 5% two-sided level, whereas 23.00 would be rejected.

A value inside the interval is not proved true, and failing to reject it is not the same as accepting it. Match the confidence level to a two-sided test; one-sided tests require the corresponding one-sided procedure.

Find a confidence interval for a Normal mean

For a random sample from a Normal population whose variance σ2\sigma^2 is known, a two-sided 100(1α)%100(1-\alpha)\% confidence interval for μ\mu is centred on the sample mean and extends by a critical value times its standard error.

\bar x;\pm;z_{1-\alpha/2}\frac{\sigma}{\sqrt n}

Find xˉ\bar x, calculate σ/n\sigma/\sqrt n, select the standard Normal critical value for the required confidence level, then subtract and add the margin of error. State both limits with appropriate accuracy.

For xˉ=22.4\bar x=22.4, known σ=0.4\sigma=0.4 and n=36n=36, a 98% interval uses z0.99=2.3263z_{0.99}=2.3263. The margin is 2.3263(0.4/6)=0.15512.3263(0.4/6)=0.1551, giving (22.245,22.555)(22.245,22.555), or approximately (22.25,22.56)(22.25,22.56).

This formula assumes the population variance is known and the sample is random; with a small sample, the population itself must be Normal. Do not use ss in place of σ\sigma under this objective, and no theoretical derivation is required.

Test a Normal mean when the variance is known

To test a Normal population mean when σ2\sigma^2 is known, compare the observed sample mean with the null value μ0\mu_0 in units of its standard error.

Z=\frac{\bar X-\mu_0}{\sigma/\sqrt n}\sim N(0,1)\quad\text{under }H_0

State H0H_0 and a one- or two-sided H1H_1 in terms of μ\mu. Calculate zz, compare it with the appropriate standard Normal critical value (or use its pp-value), then give a conclusion about H0H_0 and a contextual conclusion.

Suppose H0:μ=1010H_0:\mu=1010 against H1:μ1010H_1:\mu\ne1010, with known σ=8\sigma=8, n=100n=100 and xˉ=1008.47\bar x=1008.47. Then z=(1008.471010)/(8/10)=1.9125z=(1008.47-1010)/(8/10)=-1.9125. Since z<1.96|z|<1.96, do not reject H0H_0 at 5%.

Choose the tail before seeing the result. A non-significant result means insufficient evidence against H0H_0; it does not prove H0H_0. This exact test requires a Normal population and known variance.

Use large-sample inference for one mean

The Central Limit theorem makes the sampling distribution of Xˉ\bar X approximately Normal for a sufficiently large independent random sample, even when the population distribution is not Normal. This extends Normal confidence intervals and hypothesis tests beyond Normal populations.

\frac{\bar X-\mu}{S/\sqrt n};\text{is treated approximately as }N(0,1)\text{ when }n\text{ is large.}

When σ2\sigma^2 is unknown, use the unbiased sample variance s2s^2 and estimated standard error s/ns/\sqrt n. Then use standard Normal critical values for the required large-sample confidence interval or test.

For a large sample with n=100n=100, xˉ=12.4\bar x=12.4 and s=3.0s=3.0, an approximate 95% interval is 12.4±1.96(3/10)12.4\pm1.96(3/10), giving (11.812,12.988)(11.812,12.988). The same standard error is used to standardise a hypothesised mean.

Large sample size supports both the Normal approximation and replacing σ\sigma by ss; it does not remove the need for random, independent observations or protect against a badly biased sample. Knowledge of the tt-distribution is not required.

Test the difference between two Normal means

For two independent Normal populations with known variances, the difference of sample means is Normal. Test a claimed population-mean difference δ0\delta_0 by comparing XˉYˉ\bar X-\bar Y with δ0\delta_0 using the combined standard error.

Z=\frac{(\bar X-\bar Y)-\delta_0}{\sqrt{\sigma_x^2/n_x+\sigma_y^2/n_y}}\sim N(0,1)\quad\text{under }H_0:\mu_x-\mu_y=\delta_0

Independence makes the variances of the two sample means add. The null difference is often 0, but use the value actually claimed and keep the subtraction order consistent in the hypotheses, numerator and conclusion.

With xˉ=52\bar x=52, yˉ=48\bar y=48, σx=6\sigma_x=6, nx=36n_x=36, σy=8\sigma_y=8, ny=64n_y=64 and δ0=0\delta_0=0, the standard error is 1+1=2\sqrt{1+1}=\sqrt2. Hence z=4/2=2.83z=4/\sqrt2=2.83, so reject equality at the 5% two-sided level.

This result requires independent samples from Normal populations and known variances. Do not subtract standard errors; variances add. Paired observations require a different analysis of within-pair differences.

Compare two means with large samples and unknown variances

For two independent large samples, the Central Limit theorem allows inference for μxμy\mu_x-\mu_y even when the populations are not Normal. If the population variances are unknown, estimate each one from its own sample.

Z=\frac{(\bar X-\bar Y)-\delta_0}{\sqrt{S_x^2/n_x+S_y^2/n_y}};\text{is treated approximately as }N(0,1).

State hypotheses in terms of μxμy\mu_x-\mu_y, calculate the two-sample standard error from sx2s_x^2 and sy2s_y^2, standardise, then compare with the correct one- or two-tailed Normal critical value. Interpret the decision in context.

For nx=64n_x=64, xˉ=75.2\bar x=75.2, sx=8s_x=8 and ny=81n_y=81, yˉ=71.8\bar y=71.8, sy=9s_y=9, testing H0:μxμy=0H_0:\mu_x-\mu_y=0 gives standard error 82/64+92/81=2\sqrt{8^2/64+9^2/81}=\sqrt2 and z=3.4/2=2.40z=3.4/\sqrt2=2.40. This exceeds 1.6449 for a 5% upper-tail test.

The samples must be independently and randomly obtained, and both must be large enough for the approximations. Do not pool the two sample variances unless a separate model justifies it. Knowledge of the tt-distribution is not required.