Skip to the content

Topics Covered

Single Mean Difference of Means Single Proportion Difference of Proportions SD Tests Correlation Test CIs Single Variance Two Correlation Coefficients Standard Error Sampling Distribution Critical Values Testing Procedure
On this page
  1. 1. When are Large Sample Tests Used?
  2. 2. Z-test for Single Mean
  3. 3. Z-test for Difference of Two Means
  4. 4. Z-test for Single Proportion
  5. 5. Z-test for Difference of Two Proportions
  6. 6. Z-test for Standard Deviation
  7. 7. Z-test for Correlation Coefficient
  8. Worked Problems on Large Sample Tests
  9. Summary Table — Large Sample Tests
  10. Key Take-aways

1. When are Large Sample Tests Used?

When the sample size \(n\) is large (rule of thumb: \(n \ge 30\)) and the population SD \(\sigma\) is known (or can be reliably estimated by \(s\)), the sampling distribution of any statistic that is a sum or average is approximately normal by the Central Limit Theorem.

Hence we use the standard normal \(Z\)-statistic for testing.

WHAT MAKES A SAMPLE “LARGE”

The whole theory of a test of significance turns on the sample size. In practice, if the sample size is greater than or equal to 30, the sample is called a large sample. The number is a working threshold, not a theorem.

What earns it is that for large \(n\) the sampling distribution of a sum or mean drawn from almost any population met in practice — Binomial, Poisson, Negative Binomial, Exponential — tends to the normal (the central limit theorem); the population itself stays as skewed as it was. So the normal distribution can be used to test the hypothesis whatever the parent population was, and the area property of the standard normal curve does the rest. If \(X \sim N(\mu, \sigma^2)\) then

\[ z = \frac{X - \mu}{\sigma} \sim N(0,1), \qquad\text{usually written}\qquad z = \frac{X - E(X)}{\sqrt{\operatorname{Var}(X)}} \sim N(0,1). \]

The second form is the one that generalises: it is the shape of every statistic on this page.

WHY \(|z| > 3\) SETTLES IT OUTRIGHT

From the standard normal tables,

\[ P(-3 < z < 3) = 0.9973, \qquad P(|z| \le 3) = 0.9973, \] \[ P(|z| > 3) = 1 - P(|z| \le 3) = 0.0027 . \]

A standard normal variate is expected to lie between \(\pm 3\). So if \(|z| > 3\) the null hypothesis \(H_0\) is always rejected, at any level of significance in ordinary use. If \(|z| \le 3\) the rule settles nothing: \(z\) is then compared with the critical value for the level chosen (1.96 or 2.58 two-tailed, 1.645 or 2.33 one-tailed). Several of the problems below finish on this rule alone, without consulting a table.

Distribution of the sample mean x̄ as sample size n grows Parent (n = 1): skewed n = 5: less skewed n = 30: ~ normal density
Fig 3.1 — The Central Limit Theorem in action. The parent population is right-skewed (an exponential), yet the sampling distribution of the mean \(\bar X\) becomes progressively more symmetric and bell-shaped as \(n\) increases from 1 to 5 to 30. This is why, for \(n \ge 30\), the \(Z\)-statistic based on the normal curve is a good approximation even when the population itself is not normal. (Curves are the exact densities of \(\bar X\); the dashed line marks the common mean.)

Population, Sample, Parameter and Statistic

DEFINITIONS

A caution. For the family-income population, “a group of low-income families” is a subset of the population, but it cannot tell us the average income of the locality: it is biased by construction. A sample that is to stand for the population must be drawn from all of it, at random.

Sampling Distribution and Standard Error

DEFINITIONS

A statistic is computed from observations that are themselves random (another sample would give other values), so a statistic is a random variable. Its probability distribution is its sampling distribution. For a random sample from \(N(\mu, \sigma^2)\), for example, \(\bar x \sim N(\mu, \sigma^2/n)\).

The standard error (S.E.) of a statistic is the standard deviation of its sampling distribution.

EXAMPLE — A SAMPLING DISTRIBUTION LISTED IN FULL

Population \(\{2, 4, 6, 8\}\): \(\mu = 5\), \(\sigma^2 = \tfrac{9 + 1 + 1 + 9}{4} = 5\). Draw \(n = 2\) units with replacement: there are \(4 \times 4 = 16\) equally likely samples, and their means are

\(\bar x\)2345678
number of samples1234321

The mean of this sampling distribution is \(\tfrac{80}{16} = 5 = \mu\), and its variance is \(\tfrac{1}{16}\big[9 + 2(4) + 3(1) + 0 + 3(1) + 2(4) + 9\big] = \tfrac{40}{16} = \tfrac52 = \tfrac{\sigma^2}{n}\). So \(\text{S.E.}(\bar x) = \sqrt{5/2} = \sigma/\sqrt n\), exactly as the formula below says.

THE STANDARD ERRORS USED IN THIS UNIT \[ \text{S.E.}(\bar x) = \frac{\sigma}{\sqrt n}, \qquad \text{S.E.}(\bar x_1 - \bar x_2) = \sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}, \] \[ \text{S.E.}(p) = \sqrt{\frac{PQ}{n}}, \qquad \text{S.E.}(p_1 - p_2) = \sqrt{\frac{P_1Q_1}{n_1} + \frac{P_2Q_2}{n_2}}, \]

with \(Q = 1 - P\). The two-sample forms assume the samples are independent, so that the variances add. Sections 2–5 derive each one.

Utility of the Standard Error

  1. It is the yardstick of large-sample theory: every test statistic on this page has the form \((t - E(t))/\text{S.E.}(t)\).
  2. It decides whether a null hypothesis is rejected or not: a difference is judged significant by how many standard errors it amounts to.
  3. It gives the probable limits within which a population parameter may be expected to lie, such as \(\bar x \pm 1.96\,\text{S.E.}(\bar x)\) for 95% confidence.
  4. Its size is an index of the precision of an estimate: the smaller the standard error, the more precise the estimate. Because \(\text{S.E.}(\bar x) = \sigma/\sqrt n\), quadrupling the sample halves it.

Critical Values of Z

Significance αOne-tailedTwo-tailed
0.101.2821.645
0.051.6451.96
0.012.3262.576

How the Critical Values are Derived

The critical value (or significant value, or tabulated value) is the value of a test statistic that separates the rejection region from the acceptance region. It depends on two things: the level of significance, and the alternative hypothesis — because it is \(H_1\) that decides whether the test is two-tailed or one-tailed. The table above is the answer; this is where it comes from.

TWO-TAILED

Let the critical value at level \(\alpha\) be \(z_\alpha\). By the definition of \(\alpha\),

\[ P(|z| > z_\alpha) = \alpha \;\Longrightarrow\; P(z > z_\alpha) + P(z < -z_\alpha) = \alpha . \]

The standard normal curve is symmetric, so the two tails are equal:

\[ P(z > z_\alpha) + P(z > z_\alpha) = \alpha \;\Longrightarrow\; 2P(z > z_\alpha) = \alpha \;\Longrightarrow\; P(z > z_\alpha) = \frac{\alpha}{2}, \]

and likewise \(P(z < -z_\alpha) = \alpha/2\). Equivalently the middle carries the rest:

\[ P(-z_\alpha < z < z_\alpha) = 1 - \alpha . \]
−∞ −z₀ z = 0 z₀ ∞ α/2 α/2 acceptance region, area 1 − α Two-tailed: the rejection region is split equally between the tails
Fig 3.2 — The two-tailed critical value. Each shaded tail carries area \(\alpha/2\), so together they carry \(\alpha\); the unshaded middle carries \(1-\alpha\).
ONE-TAILED

For a one-tailed test the whole of \(\alpha\) sits in a single tail. For a right-tailed test \(z_\alpha\) is fixed by \(P(z > z_\alpha) = \alpha\); for a left-tailed test \(-z_\alpha\) is fixed by \(P(z < -z_\alpha) = \alpha\). Both are read off the same table entry,

\[ P(z < z_\alpha) = 1 - \alpha . \]
−∞ z = 0 z₀ ∞ α Right-tailed: the whole rejection region sits in one tail
Fig 3.3 — The one-tailed critical value. The single shaded tail carries the whole of \(\alpha\), which is why \(z_\alpha\) is nearer the centre than its two-tailed counterpart at the same \(\alpha\). A left-tailed test is the mirror image.
THE FOUR VALUES IN CONSTANT USE

Two-tailed, 5%. From the standard normal tables,

\[ P(-1.96 < z < 1.96) = 0.95,\qquad P(|z| \le 1.96) = 0.95,\qquad P(|z| > 1.96) = 0.05 . \]

So if \(|z| > 1.96\), \(H_0\) may be rejected at the 5% level; otherwise, if \(|z| \le 1.96\), \(H_0\) is not rejected.

Two-tailed, 1%.

\[ P(-2.58 < z < 2.58) = 0.99,\qquad P(|z| \le 2.58) = 0.99,\qquad P(|z| > 2.58) = 0.01 . \]

So if \(|z| > 2.58\), \(H_0\) may be rejected at the 1% level.

One-tailed, 5%.

\[ P(z > 1.645) = 1 - P(-\infty < z < 1.645) = 1 - 0.95 = 0.05 . \]

One-tailed, 1%.

\[ P(z > 2.33) = 1 - P(-\infty < z < 2.33) = 1 - 0.99 = 0.01 . \]

Notice that at the same \(\alpha\) the one-tailed value is always the smaller: putting the whole rejection region in one tail makes it easier to reach.

The Five-Step Testing Procedure

Every one of the thirty-two worked problems below runs through these same five steps, in this order. Learning the shape once is worth more than learning nine formulae.

  1. Null hypothesis. Formulate \(H_0\), suitable to the problem under study.
  2. Alternative hypothesis. Formulate a meaningful \(H_1\) against \(H_0\). This is the step that decides one tail or two.
  3. Level of significance. Fix \(\alpha\) in advance.
  4. Test statistic. Compute \(\;z = \dfrac{t - E(t)}{\text{S.E.}(t)} \sim N(0,1)\) under \(H_0\), where \(t\) is a statistic depending on the sample drawn from the population.
  5. Comparison and conclusion. Compare the calculated \(z\) with the tabulated \(z_\alpha\) at the specified level. If \(|z| > z_\alpha\) we may reject \(H_0\) at \(\alpha\%\); if \(|z| \le z_\alpha\), \(H_0\) is not rejected.

Step 4 is the only one that changes from test to test, and all it ever needs is \(E(t)\) and \(\text{S.E.}(t)\) for the statistic in hand. The subsections that follow derive exactly those two quantities, nine times over.

2. Z-test for Single Mean

\(H_0: \mu = \mu_0\). Test statistic:

\[ Z \;=\; \dfrac{\bar X - \mu_0}{\sigma/\sqrt n} \]

If \(\sigma\) is unknown but \(n\) large, replace \(\sigma\) by sample SD \(s\).

Under \(H_0\), \(Z \sim N(0, 1)\).

Where the Single-Mean Statistic Comes From

Let \(x_1, x_2, \ldots, x_n\) be a random sample of size \(n\) drawn from a normal population with mean \(\mu\) and variance \(\sigma^{2}\), with \(\sigma^{2}\) known.

Hypotheses. \(H_0: \mu = \mu_0\) — the sample has been drawn from that population, or equivalently there is no significant difference between the sample mean and the population mean. Against it, \(H_1: \mu \ne \mu_0\), or \(\mu > \mu_0\), or \(\mu < \mu_0\).

Statistic. Since the \(x_i\) are normal, the sample mean \(\bar x\) is a normal variate too, and

\[ \bar x \sim N\!\left(\mu,\; \frac{\sigma^{2}}{n}\right) \;\Longrightarrow\; E(\bar x) = \mu, \qquad \text{S.E.}(\bar x) = \frac{\sigma}{\sqrt n}. \]

Feeding those two into the standard shape \(z = \big(t - E(t)\big)/\text{S.E.}(t)\),

\[ z = \frac{\bar x - E(\bar x)}{\text{S.E.}(\bar x)} = \frac{\bar x - \mu}{\sigma/\sqrt n} \sim N(0,1), \qquad\text{and under } H_0,\qquad z = \frac{\bar x - \mu_0}{\sigma/\sqrt n} \sim N(0,1). \]

If \(\sigma\) is not known we estimate it by the sample standard deviation, \(\hat\sigma = s\), which for a large sample costs nothing:

\[ z = \frac{\bar x - \mu_0}{\hat\sigma/\sqrt n} = \frac{\bar x - \mu_0}{s/\sqrt n} \sim N(0,1). \]

That substitution is exactly what fails for a small sample, and is why Unit 4 needs Student's \(t\).

Confidence Interval for μ

\[ \bar X \;\pm\; z_{\alpha/2}\cdot \dfrac{\sigma}{\sqrt n}. \]
EXAMPLE 1

A drug company claims their tablets weigh on average 500 mg with σ = 6 mg. A sample of 64 tablets gives \(\bar X = 498.5\) mg. Test at 5 %.

\(Z = (498.5 - 500)/(6/8) = -2.0\). \(|Z| = 2.0 > 1.96\) ⇒ reject \(H_0\). The mean weight differs significantly.

EXAMPLE 2

A school principal claims average IQ = 100 (σ = 15). Sample of 100 students has \(\bar X = 104\). Test if IQ is higher (one-tailed).

\(Z = (104 - 100)/(15/10) = 2.67 > 1.645\) ⇒ reject \(H_0\) at 5 %. Evidence that mean IQ > 100.

3. Z-test for Difference of Two Means

\(H_0: \mu_1 = \mu_2\). Independent samples of sizes \(n_1, n_2\) (both large) with means \(\bar X_1, \bar X_2\) and SDs \(\sigma_1, \sigma_2\). Test statistic:

\[ Z \;=\; \dfrac{\bar X_1 - \bar X_2}{\sqrt{\sigma_1^2/n_1 + \sigma_2^2/n_2}} \;\sim\; N(0, 1). \]

Where the Two-Mean Statistic Comes From

Let \(x_1, \ldots, x_{n_1}\) be a random sample of size \(n_1\) from a normal population with mean \(\mu_1\) and variance \(\sigma_1^{2}\), and let \(y_1, \ldots, y_{n_2}\) be another sample from a second normal population with mean \(\mu_2\) and variance \(\sigma_2^{2}\).

For large \(n_1\) and \(n_2\) both sample means are normal:

\[ \bar x \sim N\!\left(\mu_1, \frac{\sigma_1^{2}}{n_1}\right), \qquad \bar y \sim N\!\left(\mu_2, \frac{\sigma_2^{2}}{n_2}\right). \]

Take the standard normal variate for the difference \(\bar x - \bar y\). Its mean is the difference of the means, and — because the two samples are independent — its variance is the sum of the variances, not the difference:

\[ E(\bar x - \bar y) = E(\bar x) - E(\bar y) = \mu_1 - \mu_2, \] \[ \operatorname{Var}(\bar x - \bar y) = \operatorname{Var}(\bar x) + \operatorname{Var}(\bar y) = \frac{\sigma_1^{2}}{n_1} + \frac{\sigma_2^{2}}{n_2}, \qquad \text{S.E.}(\bar x - \bar y) = \sqrt{\frac{\sigma_1^{2}}{n_1} + \frac{\sigma_2^{2}}{n_2}}. \]

Hence

\[ \begin{gathered} z = \frac{\bar x - \bar y - (\mu_1 - \mu_2)} {\sqrt{\dfrac{\sigma_1^{2}}{n_1} + \dfrac{\sigma_2^{2}}{n_2}}} \sim N(0,1), \qquad \text{and under } H_0: \mu_1 = \mu_2, \\ z = \frac{\bar x - \bar y} {\sqrt{\dfrac{\sigma_1^{2}}{n_1} + \dfrac{\sigma_2^{2}}{n_2}}} \sim N(0,1). \end{gathered} \]

Three cases then arise, and the worked problems below use all three.

Case 1 — a common, known \(\sigma\). If \(\sigma_1^{2} = \sigma_2^{2} = \sigma^{2}\) is known, it comes outside:

\[ z = \frac{\bar x - \bar y}{\sigma\sqrt{\dfrac{1}{n_1} + \dfrac{1}{n_2}}} \sim N(0,1). \]

Case 2 — neither \(\sigma\) known. Estimate each from its own sample, \(\hat\sigma_1 = s_1\) and \(\hat\sigma_2 = s_2\):

\[ z = \frac{\bar x - \bar y} {\sqrt{\dfrac{s_1^{2}}{n_1} + \dfrac{s_2^{2}}{n_2}}} \sim N(0,1). \]

Case 3 — a common but unknown \(\sigma\). Pool the two samples into a single estimate, weighting each by its own size, and use Case 1 with it:

\[ \hat\sigma^{2} = \frac{n_1 s_1^{2} + n_2 s_2^{2}}{n_1 + n_2}, \qquad z = \frac{\bar x - \bar y}{\hat\sigma\sqrt{\dfrac{1}{n_1} + \dfrac{1}{n_2}}} \sim N(0,1). \]

CI for μ₁ − μ₂

\[ (\bar X_1 - \bar X_2) \;\pm\; z_{\alpha/2}\sqrt{\dfrac{\sigma_1^2}{n_1} + \dfrac{\sigma_2^2}{n_2}}. \]
EXAMPLE 1

Boys: \(n_1 = 100,\; \bar X_1 = 165\) cm, \(\sigma_1 = 5\). Girls: \(n_2 = 80,\; \bar X_2 = 158\) cm, \(\sigma_2 = 4\).

\(Z = (165 - 158)/\sqrt{25/100 + 16/80} = 7/\sqrt{0.45} = 10.43\) ⇒ highly significant.

EXAMPLE 2

Two methods of teaching: \(n_1 = 50,\bar X_1 = 72,\sigma_1 = 8\); \(n_2 = 60,\bar X_2 = 75,\sigma_2 = 7\). Test at 5 %.

\(Z = (72 - 75)/\sqrt{64/50 + 49/60} = -3/\sqrt{2.097} = -2.07\). \(|Z| > 1.96\) ⇒ reject \(H_0\).

4. Z-test for Single Proportion

\(H_0: p = p_0\). Sample proportion \(\hat p = X/n\). Under \(H_0\):

\[ Z \;=\; \dfrac{\hat p - p_0}{\sqrt{p_0(1-p_0)/n}} \;\sim\; N(0, 1). \]

Where the Proportion Statistic Comes From

Let \(A\) be an attribute observed on \(n\) persons; count the presence of the attribute as a success and its absence as a failure. Let \(x\) be the number of successes in \(n\) independent trials with probability \(P\) of success at each. Then \(x\) is binomial, so

\[ E(x) = nP, \qquad \operatorname{Var}(x) = nPQ, \qquad Q = 1 - P, \]

and for large \(n\) the binomial tends to the normal, which is what licenses a \(z\) test at all.

Hypotheses. \(H_0: P = P_0\) — the sample proportion is coming from the population proportion. Against it \(H_1: P \ne P_0\), or \(P > P_0\), or \(P < P_0\).

Statistic. Let the sample proportion be \(p = x/n\). Dividing a random variable by the constant \(n\) divides its mean by \(n\) and its variance by \(n^{2}\):

\[ E(p) = E\!\left(\frac{x}{n}\right) = \frac{E(x)}{n} = \frac{nP}{n} = P, \] \[ \operatorname{Var}(p) = \operatorname{Var}\!\left(\frac{x}{n}\right) = \frac{1}{n^{2}}\operatorname{Var}(x) = \frac{1}{n^{2}}\,nPQ = \frac{PQ}{n}, \qquad \text{S.E.}(p) = \sqrt{\frac{PQ}{n}} . \]

So the sample proportion is an unbiased estimator of \(P\), and

\[ \begin{gathered} z = \frac{p - E(p)}{\text{S.E.}(p)} = \frac{p - P}{\sqrt{\dfrac{PQ}{n}}} \sim N(0,1), \qquad \text{and under } H_0: P = P_0, \\ z = \frac{p - P_0}{\sqrt{\dfrac{P_0 Q_0}{n}}} \sim N(0,1). \end{gathered} \]

Inference. Compute \(|z|\), read the tabulated \(z_\alpha\) at level \(\alpha\) from the standard normal tables. If \(|z| > z_\alpha\) we may reject \(H_0\); otherwise, if \(|z| \le z_\alpha\), \(H_0\) is not rejected.

CI for p

\[ \hat p \;\pm\; z_{\alpha/2}\sqrt{\hat p(1-\hat p)/n}. \]
EXAMPLE 1

Out of 1000 customers, 540 prefer brand A. Test \(H_0: p = 0.5\) at 5 %.

\(\hat p = 0.54\). \(Z = (0.54 - 0.5)/\sqrt{0.5(0.5)/1000} = 0.04/0.01581 = 2.53\) ⇒ reject \(H_0\). Significant majority for A.

EXAMPLE 2

A coin is tossed 400 times yielding 230 heads. Test fairness.

\(\hat p = 0.575\). \(Z = (0.575 - 0.5)/\sqrt{0.25/400} = 0.075/0.025 = 3.0\) ⇒ reject \(H_0\). Coin is biased.

5. Z-test for Difference of Two Proportions

\(H_0: p_1 = p_2\). Pooled proportion \(\hat p = (X_1 + X_2)/(n_1 + n_2)\). Test statistic:

\[ Z \;=\; \dfrac{\hat p_1 - \hat p_2}{\sqrt{\hat p(1-\hat p)\left(\dfrac{1}{n_1} + \dfrac{1}{n_2}\right)}}. \]

Where the Two-Proportion Statistic Comes From

Here two different populations are compared with respect to one attribute. Let \(x_1\) and \(x_2\) be the numbers of persons having the attribute in samples of sizes \(n_1\) and \(n_2\) drawn from the two populations. Both counts are binomial, with parameters \((n_1, P_1)\) and \((n_2, P_2)\), where \(P_1\) and \(P_2\) are the population proportions. With sample proportions \(p_1 = x_1/n_1\) and \(p_2 = x_2/n_2\), the single-proportion result gives

\[ E(p_1) = P_1, \quad \operatorname{Var}(p_1) = \frac{P_1 Q_1}{n_1}; \qquad E(p_2) = P_2, \quad \operatorname{Var}(p_2) = \frac{P_2 Q_2}{n_2}. \]

Hypotheses. \(H_0: P_1 = P_2\) — there is no significant difference between the two sample proportions, or the population proportions are equal. Against it \(H_1: P_1 \ne P_2\), or \(P_1 > P_2\), or \(P_1 < P_2\).

Statistic. Take the standard normal variate for \(p_1 - p_2\). As with two means, the variances add because the samples are independent:

\[ E(p_1 - p_2) = E(p_1) - E(p_2) = P_1 - P_2, \] \[ \begin{gathered} \operatorname{Var}(p_1 - p_2) = \operatorname{Var}(p_1) + \operatorname{Var}(p_2) = \frac{P_1 Q_1}{n_1} + \frac{P_2 Q_2}{n_2}, \\ \text{S.E.}(p_1 - p_2) = \sqrt{\frac{P_1 Q_1}{n_1} + \frac{P_2 Q_2}{n_2}}, \end{gathered} \] \[ z = \frac{p_1 - p_2 - (P_1 - P_2)} {\sqrt{\dfrac{P_1 Q_1}{n_1} + \dfrac{P_2 Q_2}{n_2}}} \sim N(0,1). \]

Under \(H_0\) the two proportions are one and the same, say \(P_1 = P_2 = P\) and therefore \(Q_1 = Q_2 = Q\). The numerator's \((P - P)\) vanishes and the common \(PQ\) factors out of the denominator:

\[ z = \frac{p_1 - p_2 - (P - P)}{\sqrt{\dfrac{PQ}{n_1} + \dfrac{PQ}{n_2}}} = \frac{p_1 - p_2}{\sqrt{PQ\left(\dfrac{1}{n_1} + \dfrac{1}{n_2}\right)}} \sim N(0,1). \]

When \(P\) is not known. If nothing is known about the population proportion, estimate it by pooling both samples — every observed success over every observed trial:

\[ \hat P = \frac{n_1 p_1 + n_2 p_2}{n_1 + n_2} = \frac{x_1 + x_2}{n_1 + n_2}, \qquad \hat Q = 1 - \hat P, \] \[ z = \frac{p_1 - p_2}{\sqrt{\hat P \hat Q\left(\dfrac{1}{n_1} + \dfrac{1}{n_2}\right)}} \sim N(0,1). \]

The two forms of \(\hat P\) are the same number written two ways, and the problems below use whichever is more convenient from the data given.

Conclusion. If \(|z| > z_\alpha\) we may reject \(H_0\) at level \(\alpha\); otherwise, if \(|z| \le z_\alpha\), \(H_0\) is not rejected.

EXAMPLE 1

Town A: 60 of 200 favoured proposal. Town B: 90 of 250. Test \(H_0: p_1 = p_2\).

\(\hat p_1 = 0.30,\; \hat p_2 = 0.36;\; \hat p = 150/450 = 1/3\). SE = \(\sqrt{(1/3)(2/3)(1/200 + 1/250)} = 0.0447\).

\(Z = -0.06/0.0447 = -1.34\); \(|Z| = 1.34 < 1.96\) ⇒ do not reject; no significant difference.

EXAMPLE 2

Defective rates of two factories: F1: 50 defective in 500; F2: 30 in 400. Test \(p_1 = p_2\).

\(\hat p_1 = 0.10, \hat p_2 = 0.075, \hat p = 80/900 = 0.0889\). SE = \(\sqrt{0.0889 \cdot 0.9111(1/500 + 1/400)} = 0.0190\).

\(Z = 0.025/0.01909 = 1.31\) ⇒ not significant at 5 %.

6. Z-test for Standard Deviation

6.1 Single SD

For large \(n\), the sampling distribution of sample SD \(s\) is approximately \(N(\sigma,\; \sigma^2/2n)\).

\[ Z \;=\; \dfrac{s - \sigma_0}{\sigma_0/\sqrt{2n}} \;\sim\; N(0, 1). \]

6.2 Difference of Two SDs

\[ Z \;=\; \dfrac{s_1 - s_2}{\sqrt{\sigma_1^2/(2n_1) + \sigma_2^2/(2n_2)}}. \]

6.3 Test for a Single Variance

Sections 6.1 and 6.2 test a standard deviation. The same data can be asked about in terms of variance instead, and for large \(n\) that has its own statistic.

Let \(x_1, \ldots, x_n\) be a random sample from a normal population with mean \(\mu\) and variance \(\sigma^{2}\). Test \(H_0: \sigma^{2} = \sigma_0^{2}\) — the sample variance is drawn from the population variance — against \(H_1: \sigma^{2} \ne \sigma_0^{2}\).

If \(s^{2}\) is the sample variance, then from the chi-square distribution

\[ \frac{n s^{2}}{\sigma^{2}} \sim \chi^{2}_{(n-1)} . \]

For large \(n\) the chi-square distribution itself tends to normal, and its mean and variance are known outright:

\[ E\!\left(\frac{n s^{2}}{\sigma^{2}}\right) = n - 1 \simeq n, \qquad \operatorname{Var}\!\left(\frac{n s^{2}}{\sigma^{2}}\right) = 2(n-1) \simeq 2n . \]

Standardising \(ns^{2}/\sigma^{2}\) with those two,

\[ z = \frac{\dfrac{n s^{2}}{\sigma^{2}} - n}{\sqrt{2n}} \sim N(0,1), \qquad\text{and under } H_0,\qquad z = \frac{\dfrac{n s^{2}}{\sigma_0^{2}} - n}{\sqrt{2n}} \sim N(0,1). \]

If \(|z| > z_\alpha\) we reject \(H_0\) at level \(\alpha\); otherwise, if \(|z| \le z_\alpha\), it is not rejected. For a small sample the normal approximation is unavailable and the chi-square statistic is used directly, which is Unit 4's business.

Where the Spread Statistics Come From

A single standard deviation. For large \(n\), the sample standard deviation \(s\) itself follows a normal distribution with mean \(\sigma\) and variance \(\sigma^{2}/2n\):

\[ s \sim N\!\left(\sigma, \frac{\sigma^{2}}{2n}\right) \;\Longrightarrow\; E(s) = \sigma, \qquad \operatorname{Var}(s) = \frac{\sigma^{2}}{2n}, \qquad \text{S.E.}(s) = \frac{\sigma}{\sqrt{2n}} . \]

Hence, testing \(H_0: \sigma = \sigma_0\) against \(H_1: \sigma \ne \sigma_0\),

\[ z = \frac{s - E(s)}{\text{S.E.}(s)} = \frac{s - \sigma}{\sigma/\sqrt{2n}} \sim N(0,1), \qquad\text{under } H_0,\qquad z = \frac{s - \sigma_0}{\sigma_0/\sqrt{2n}} \sim N(0,1). \]

Two standard deviations. Both sample standard deviations are normal for large \(n_1, n_2\), so take the standard normal variate for \(s_1 - s_2\); once again the variances add, because \(s_1\) and \(s_2\) are independent:

\[ s_1 \sim N\!\left(\sigma_1, \frac{\sigma_1^{2}}{2n_1}\right), \qquad s_2 \sim N\!\left(\sigma_2, \frac{\sigma_2^{2}}{2n_2}\right), \] \[ \begin{gathered} E(s_1 - s_2) = \sigma_1 - \sigma_2, \qquad \operatorname{Var}(s_1 - s_2) = \frac{\sigma_1^{2}}{2n_1} + \frac{\sigma_2^{2}}{2n_2}, \\ \text{S.E.}(s_1 - s_2) = \sqrt{\frac{\sigma_1^{2}}{2n_1} + \frac{\sigma_2^{2}}{2n_2}}, \end{gathered} \] \[ \begin{gathered} z = \frac{s_1 - s_2 - (\sigma_1 - \sigma_2)} {\sqrt{\dfrac{\sigma_1^{2}}{2n_1} + \dfrac{\sigma_2^{2}}{2n_2}}} \sim N(0,1), \qquad \text{under } H_0: \sigma_1 = \sigma_2, \\ z = \frac{s_1 - s_2} {\sqrt{\dfrac{\sigma_1^{2}}{2n_1} + \dfrac{\sigma_2^{2}}{2n_2}}} \sim N(0,1). \end{gathered} \]

The same three cases arise as for two means. Case 1: a common known \(\sigma\), which comes outside as \(\sigma\sqrt{1/(2n_1) + 1/(2n_2)}\). Case 2: neither known, so estimate each from its own sample, \(\hat\sigma_1 = s_1\) and \(\hat\sigma_2 = s_2\), giving \(\sqrt{s_1^{2}/(2n_1) + s_2^{2}/(2n_2)}\). Case 3: a common but unknown \(\sigma\), pooled exactly as before,

\[ \hat\sigma^{2} = \frac{n_1 s_1^{2} + n_2 s_2^{2}}{n_1 + n_2}, \qquad z = \frac{s_1 - s_2}{\hat\sigma\sqrt{\dfrac{1}{2n_1} + \dfrac{1}{2n_2}}} \sim N(0,1). \]
EXAMPLE 1

From a sample of 200, \(s = 14.5\); test \(H_0: \sigma = 15\).

\(Z = (14.5 - 15)/(15/\sqrt{400}) = -0.5/0.75 = -0.67\) ⇒ not significant at 5 %.

EXAMPLE 2

\(n_1 = 100,\; s_1 = 8;\; n_2 = 150,\; s_2 = 6\). \(Z = (8-6)/\sqrt{64/200 + 36/300} = 2/\sqrt{0.44} = 3.02\). Reject \(H_0\).

7. Z-test for Correlation Coefficient

To test \(H_0: \rho = 0\) (no correlation in the population), use:

\[ Z \;=\; r\sqrt{n - 2}/\sqrt{1 - r^2}\;\;\text{(for }H_0: \rho = 0)\!. \]

(Strictly a t-statistic with \(n-2\) df, but for large \(n\) treated as Z.)

The Large-Sample Form for a Single Correlation

Let \((x_1,y_1), (x_2,y_2), \ldots, (x_n,y_n)\) be a bivariate random sample of size \(n\) from a normal population. Write \(r\) for the sample correlation coefficient and \(\rho\) for the population one. Test \(H_0: \rho = \rho_0\) against \(H_1: \rho \ne \rho_0\). Which statistic to use depends on how large \(\rho\) is, and the split is sharp.

Case 1 — \(\rho\) small, tending to zero. For large \(n\) the sampling distribution of \(r\) is normal with mean \(\rho\) and variance \((1-\rho^{2})^{2}/n\), so

\[ z = \frac{r - E(r)}{\text{S.E.}(r)} = \frac{r - \rho}{\sqrt{\dfrac{(1-\rho^{2})^{2}}{n}}} = \frac{r - \rho}{(1 - \rho^{2})/\sqrt n} \sim N(0,1), \]

and under \(H_0\),

\[ z = \frac{r - \rho_0}{(1 - \rho_0^{2})/\sqrt n} \sim N(0,1). \]

At \(\rho_0 = 0\) this collapses to the memorable \(z = r\sqrt n\). That is a shade more conservative than the \(t\)-form \(r\sqrt{n-2}/\sqrt{1-r^{2}}\) given above, which uses the sample \(r\) in the denominator rather than the hypothesised \(\rho_0\); for large \(n\) the two agree closely, and either is acceptable. Use whichever form the question's own notation points at.

Case 2 — \(\rho\) tending to 1 (in practice \(|\rho| > 0.7\)). The variance \((1-\rho^{2})^{2}/n\) collapses towards zero and the normal approximation fails. Fisher's transformation, below, is what rescues it.

Fisher's Z-transformation (for \(\rho = \rho_0 \ne 0\))

\[ Z' = \dfrac{1}{2}\ln\!\left(\dfrac{1 + r}{1 - r}\right) \;\sim\; N\!\left(\dfrac{1}{2}\ln\!\left(\dfrac{1+\rho_0}{1-\rho_0}\right),\; \dfrac{1}{n - 3}\right). \]

Test statistic: \(Z = (Z' - \zeta_0)\sqrt{n - 3}\) where \(\zeta_0 = \frac{1}{2}\ln((1+\rho_0)/(1-\rho_0))\).

EXAMPLE 1 (\(\rho = 0\))

\(r = 0.4,\; n = 100\). Test \(H_0: \rho = 0\). \(Z = 0.4\sqrt{98}/\sqrt{0.84} = 4.32\) ⇒ highly significant.

EXAMPLE 2 (\(\rho = 0.5\))

\(r = 0.7,\; n = 28\). Test \(H_0: \rho = 0.5\) using Fisher's Z.

\(Z' = 0.5\ln(1.7/0.3) = 0.867\). \(\zeta_0 = 0.5\ln(1.5/0.5) = 0.549\). \(Z = (0.867 - 0.549)\sqrt{25} = 1.59\) ⇒ not significant at 5 %.

Test for Two Correlation Coefficients

Let \((x_1,y_1), \ldots, (x_{n_1}, y_{n_1})\) be a bivariate random sample of size \(n_1\) from one normal population, and \((x_1,y_1), \ldots, (x_{n_2}, y_{n_2})\) another of size \(n_2\) from a second. Write \(r_1, r_2\) for the sample correlation coefficients and \(\rho_1, \rho_2\) for the population ones.

Hypotheses. \(H_0: \rho_1 = \rho_2\) — the two population correlation coefficients are equal, or there is no significant difference between the sample correlation coefficients. Against it \(H_1: \rho_1 \ne \rho_2\).

Statistic. Correlation coefficients cannot be compared directly, because the variance of \(r\) depends on \(\rho\) itself. Fisher's transformation removes that dependence: apply it to each sample,

\[ z_1 = \frac{1}{2}\log_e\frac{1+r_1}{1-r_1}, \qquad z_2 = \frac{1}{2}\log_e\frac{1+r_2}{1-r_2}, \]

whose means and variances are

\[ E(z_1) = \frac{1}{2}\log_e\frac{1+\rho_1}{1-\rho_1}, \qquad E(z_2) = \frac{1}{2}\log_e\frac{1+\rho_2}{1-\rho_2}, \] \[ \operatorname{Var}(z_1) = \frac{1}{n_1 - 3}, \qquad \operatorname{Var}(z_2) = \frac{1}{n_2 - 3}. \]

The variances no longer involve \(\rho\), which is the whole point of the transformation. Now take the standard normal variate for the difference \(z_1 - z_2\); the variances add, because the two samples are independent:

\[ E(z_1 - z_2) = \frac{1}{2}\log_e\frac{1+\rho_1}{1-\rho_1} - \frac{1}{2}\log_e\frac{1+\rho_2}{1-\rho_2}, \] \[ \operatorname{Var}(z_1 - z_2) = \frac{1}{n_1 - 3} + \frac{1}{n_2 - 3}, \qquad \text{S.E.}(z_1 - z_2) = \sqrt{\frac{1}{n_1 - 3} + \frac{1}{n_2 - 3}}, \] \[ V = \frac{z_1 - z_2 - E(z_1 - z_2)}{\text{S.E.}(z_1 - z_2)} \sim N(0,1). \]

Under \(H_0: \rho_1 = \rho_2\) the two transformed means are equal, so \(E(z_1 - z_2) = 0\) and the numerator reduces to the observed difference alone:

\[ V = \frac{\dfrac{1}{2}\log_e\dfrac{1+r_1}{1-r_1} - \dfrac{1}{2}\log_e\dfrac{1+r_2}{1-r_2}} {\sqrt{\dfrac{1}{n_1 - 3} + \dfrac{1}{n_2 - 3}}} \sim N(0,1). \]

Inference. If \(|V| > V_\alpha\) we reject \(H_0\) at level \(\alpha\); otherwise, if \(|V| \le V_\alpha\), \(H_0\) is not rejected. The critical values \(V_\alpha\) are the ordinary standard normal ones, because \(V\) is a standard normal variate.

Worked Problems on Large Sample Tests

Thirty-two problems, grouped by the test they use: five on a single proportion, seven on two proportions, six on a single mean, six on two means, four on variance and standard deviation, and four on correlation coefficients, all worked in full. Every one runs the same five steps from §1: null hypothesis, alternative hypothesis, level of significance, test statistic, conclusion (at the 5% level where none is stated). Read as a run rather than picked over, they show that nine different-looking formulae are one formula with nine different standard errors. Every value is carried at full precision and rounded only when it is written down.

A. Tests for a Single Proportion

PROBLEM 1 — is the die fair?

A die is thrown 720 times and a face of 1 or 6 turns up 270 times. Test whether the die is fair.

Given \(n = 720\), \(x = 270\), so \(p = 270/720 = 0.375\); and \(P_0 = \tfrac{1}{3}\), \(Q_0 = \tfrac{2}{3}\). For a fair die \(P(\text{1 or 6}) = 2/6\).

(1) \(H_0: P = \tfrac{1}{3}\), the die is fair. (2) \(H_1: P \ne \tfrac{1}{3}\), it is not. Two-tailed.

(3)

\[ z = \frac{p - P_0}{\sqrt{P_0 Q_0/n}} = \frac{0.375 - 0.3333}{\sqrt{(0.3333)(0.6667)/720}} = \frac{0.04167}{0.01757} = 2.372 . \]

(4) \(|z| = 2.37\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| > z_\alpha\), so \(H_0\) is rejected: the die is not fair.

−1.96 1.96 |z| = 2.37 z = 0 P = 1/3 in the rejection region → reject H₀ ±zα = ±1.96
Fig 3.4 — Problem 1. The statistic clears 1.96, so the die is judged biased at 5%.
PROBLEM 2 — is the coin fair?

A coin is tossed 625 times and shows heads 360 times. Test at the 1% level whether the coin is fair.

Given \(n = 625\), \(x = 360\), so \(p = 360/625 = 0.576\); and \(P_0 = \tfrac{1}{2}\), \(Q_0 = \tfrac{1}{2}\).

(1) \(H_0: P = \tfrac{1}{2}\), the coin is fair. (2) \(H_1: P \ne \tfrac{1}{2}\), it is biased. Two-tailed.

(3)

\[ z = \frac{p - P_0}{\sqrt{P_0 Q_0/n}} = \frac{0.576 - 0.5}{\sqrt{(0.5)(0.5)/625}} = \frac{0.076}{0.02} = 3.8 . \]

(4) \(|z| = 3.8 > 3\), so \(H_0\) is rejected at any usual level without consulting a table: the coin is biased.

−2.58 2.58 |z| = 3.8 → off the scale z = 0 P = 1/2 in the rejection region → reject H₀ ±zα = ±2.58
Fig 3.5 — Problem 2. Past 3, so H₀ falls at any usual level.
PROBLEM 3 — ragi or rice?

In a sample of 1600 households in Karnataka, 850 name ragi as their main cereal and the rest name rice. Can the two be taken as equally popular, at the 1% level?

Given \(n = 1600\), \(x = 850\), so \(p = 850/1600 = 0.5312\); and \(P_0 = \tfrac{1}{2}\), \(Q_0 = \tfrac{1}{2}\).

(1) \(H_0: P = \tfrac{1}{2}\), both are equally popular. (2) \(H_1: P \ne \tfrac{1}{2}\), they are not. Two-tailed.

(3)

\[ z = \frac{p - P_0}{\sqrt{P_0 Q_0/n}} = \frac{0.5312 - 0.5}{\sqrt{(0.5)(0.5)/1600}} = \frac{0.03125}{0.0125} = 2.5 . \]

(4) \(|z| = 2.5\) and \(z_\alpha = 2.58\) at the 1% level, two-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: both may be taken as equally popular.

Note how narrowly: at the 5% level, where \(z_\alpha = 1.96\), the same data would reject \(H_0\). A verdict this close to the boundary depends on the level chosen before looking.

−2.58 2.58 |z| = 2.5 z = 0 P = 1/2 outside the rejection region → do not reject H₀ ±zα = ±2.58
Fig 3.6 — Problem 3. A close verdict at 1%; at 5%, where the boundary is 1.96, the same data reject H₀.
PROBLEM 4 — a recovery rate, one-tailed

Of 20 patients given a new treatment, 19 recovered. Is there evidence, at the 5% level, that the recovery rate is higher than the usual 85%?

Given \(n = 20\), \(x = 19\), so \(p = 19/20 = 0.95\); and \(P_0 = 0.85\), \(Q_0 = 0.15\).

(1) \(H_0: P = 0.85\), the recovery rate is 85%. (2) \(H_1: P > 0.85\), it is higher. One-tailed.

(3)

\[ z = \frac{p - P_0}{\sqrt{P_0 Q_0/n}} = \frac{0.95 - 0.85}{\sqrt{(0.85)(0.15)/20}} = \frac{0.1}{0.07984} = 1.252 . \]

(4) \(|z| = 1.25\) and \(z_\alpha = 1.645\) at the 5% level, one-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: the data do not show a recovery rate above 85%.

Sample-size check. Here \(nQ_0 = 20 \times 0.15 = 3\), below the usual guide that \(nP_0\) and \(nQ_0\) should both be at least 5, so the normal approximation is rough. The exact binomial tail agrees: \(P(X \ge 19) = 0.1368 + 0.0388 = 0.1756\) when \(P = 0.85\), far above 0.05.

1.645 z = 1.25 z = 0 P = 0.85 outside the rejection region → do not reject H₀ zα = 1.645
Fig 3.7 — Problem 4. A one-tailed test, so the whole rejection region is on the right; the statistic does not reach it.
PROBLEM 5 — a supplier's claim, with confidence limits

A supplier says that 3% of its fuses are defective. A day's delivery of 300 fuses has 15 defective. Test at the 5% level whether the defective rate is higher than claimed, and find 95% confidence limits for it.

Given \(n = 300\), \(x = 15\), so \(p = 15/300 = 0.05\); and \(P_0 = 0.03\), \(Q_0 = 0.97\).

(1) \(H_0: P = 0.03\), the defective rate is 3%. (2) \(H_1: P > 0.03\), it is higher. One-tailed.

(3)

\[ z = \frac{p - P_0}{\sqrt{P_0 Q_0/n}} = \frac{0.05 - 0.03}{\sqrt{(0.03)(0.97)/300}} = \frac{0.02}{0.00985} = 2.031 . \]

(4) \(|z| = 2.03\) and \(z_\alpha = 1.645\) at the 5% level, one-tailed. \(|z| > z_\alpha\), so \(H_0\) is rejected: the claim is not borne out; the defective rate is higher than 3%.

Confidence limits. The claimed \(P\) has been rejected, so the limits are built from the estimate \(\hat P = p = 0.05\), \(\hat Q = 0.95\):

\[ p \pm 1.96\sqrt{\frac{\hat P \hat Q}{n}} = 0.05 \pm 1.96\sqrt{\frac{(0.05)(0.95)}{300}} = (0.0253,\; 0.0747) . \]

So the 95% limits are \((2.53,\; 7.47)\) per cent. The interval contains 3%, although the test rejected \(P = 0.03\): the test is one-tailed and uses the standard error at the claimed 3%, while the two-sided interval uses the larger one at \(p\). A one-tailed rejection and a two-sided interval need not agree.

1.645 z = 2.03 z = 0 P = 0.03 in the rejection region → reject H₀ zα = 1.645
Fig 3.8 — Problem 5. One-tailed, and this time the statistic clears the boundary.

B. Tests for Two Proportions

PROBLEM 6 — anaemia in two schools, P known

A national survey puts the rate of anaemia among teenagers at 2%. In school A, 12 of 500 students are anaemic; in school B, 20 of 1500. Is the difference between the schools significant?

Given \(n_1 = 500\), \(n_2 = 1500\), \(x_1 = 12\), \(x_2 = 20\):

\[ p_1 = \frac{12}{500} = 0.024, \qquad p_2 = \frac{20}{1500} = 0.0133 . \]

Here \(P\) is known, \(P = 0.02\), \(Q = 0.98\), so no pooled estimate is needed.

(1) \(H_0: P_1 = P_2\), the two schools do not differ. (2) \(H_1: P_1 \ne P_2\), they do. Two-tailed.

(3)

\[ z = \frac{p_1 - p_2}{\sqrt{PQ\left(\dfrac{1}{n_1} + \dfrac{1}{n_2}\right)}} = \frac{0.024 - 0.0133}{\sqrt{(0.02)(0.98)\left(\dfrac{1}{500} + \dfrac{1}{1500}\right)}} = \frac{0.01067}{0.00723} = 1.475 . \]

(4) \(|z| = 1.48\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: the difference between the schools is within chance.

−1.96 1.96 |z| = 1.48 z = 0 P₁ = P₂ outside the rejection region → do not reject H₀ ±zα = ±1.96
Fig 3.9 — Problem 6. The difference sits well inside the acceptance region.
PROBLEM 7 — men and women on a metro line

Random samples of 500 men and 700 women were asked whether they favour a new metro line; 260 men and 392 women said yes. Do men and women differ in their support?

Given \(n_1 = 500\), \(n_2 = 700\), \(x_1 = 260\), \(x_2 = 392\):

\[ p_1 = \frac{260}{500} = 0.52, \qquad p_2 = \frac{392}{700} = 0.56 . \]

\(P\) is not known, so pool the two samples:

\[ \hat P = \frac{x_1 + x_2}{n_1 + n_2} = \frac{652}{1200} = 0.5433, \qquad \hat Q = 0.4567 . \]

(1) \(H_0: P_1 = P_2\), men and women support it equally. (2) \(H_1: P_1 \ne P_2\), they differ. Two-tailed.

(3)

\[ \begin{aligned} z &= \frac{p_1 - p_2}{\sqrt{\hat P \hat Q\left(\dfrac{1}{n_1} + \dfrac{1}{n_2}\right)}} = \frac{0.52 - 0.56}{\sqrt{(0.5433)(0.4567)\left(\dfrac{1}{500} + \dfrac{1}{700}\right)}} = \frac{-0.04}{0.02917} \\ &= -1.371 . \end{aligned} \]

(4) \(|z| = 1.37\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: men and women may be taken to support it equally.

−1.96 1.96 |z| = 1.37 z = 0 P₁ = P₂ outside the rejection region → do not reject H₀ ±zα = ±1.96
Fig 3.10 — Problem 7. The statistic is negative and marked on the left; a two-tailed test cares about its distance from the centre, not its sign.
PROBLEM 8 — short sight in two cities, one-tailed

Samples of 800 students in Vijayawada and 1200 in Guntur show 22% and 17% with short sight. Test at the 1% level whether the rate is higher in Vijayawada.

Given \(n_1 = 800\), \(n_2 = 1200\), \(p_1 = 0.22\), \(p_2 = 0.17\).

\(P\) is not known and the counts are given as percentages, so pool with weights:

\[ \hat P = \frac{n_1 p_1 + n_2 p_2}{n_1 + n_2} = \frac{800(0.22) + 1200(0.17)}{2000} = 0.19, \qquad \hat Q = 0.81 . \]

(1) \(H_0: P_1 = P_2\), the rates are equal. (2) \(H_1: P_1 > P_2\), the Vijayawada rate is higher. One-tailed.

(3)

\[ z = \frac{p_1 - p_2}{\sqrt{\hat P \hat Q\left(\dfrac{1}{n_1} + \dfrac{1}{n_2}\right)}} = \frac{0.22 - 0.17}{\sqrt{(0.19)(0.81)\left(\dfrac{1}{800} + \dfrac{1}{1200}\right)}} = \frac{0.05}{0.01791} = 2.792 . \]

(4) \(|z| = 2.79\) and \(z_\alpha = 2.33\) at the 1% level, one-tailed. \(|z| > z_\alpha\), so \(H_0\) is rejected: short sight is more common among the Vijayawada students.

PROBLEM 9 — sugar in tea before and after a price rise

Before a rise in the price of sugar, 900 of 1200 households surveyed took sugar in tea. After the rise, 840 of 1400 did. Has the proportion fallen?

Given \(n_1 = 1200\), \(n_2 = 1400\), \(x_1 = 900\), \(x_2 = 840\):

\[ p_1 = \frac{900}{1200} = 0.75, \qquad p_2 = \frac{840}{1400} = 0.6 . \]

\(P\) is not known, so pool the two samples:

\[ \hat P = \frac{x_1 + x_2}{n_1 + n_2} = \frac{1740}{2600} = 0.6692, \qquad \hat Q = 0.3308 . \]

(1) \(H_0: P_1 = P_2\), the proportion has not changed. (2) \(H_1: P_1 > P_2\), it has fallen. One-tailed.

(3)

\[ \begin{aligned} z &= \frac{p_1 - p_2}{\sqrt{\hat P \hat Q\left(\dfrac{1}{n_1} + \dfrac{1}{n_2}\right)}} = \frac{0.75 - 0.6}{\sqrt{(0.6692)(0.3308)\left(\dfrac{1}{1200} + \dfrac{1}{1400}\right)}} = \frac{0.15}{0.01851} \\ &= 8.104 . \end{aligned} \]

(4) \(|z| = 8.1 > 3\), so \(H_0\) is rejected at any usual level without consulting a table: the proportion has fallen.

1.645 z = 8.1 → off the scale z = 0 P₁ = P₂ in the rejection region → reject H₀ zα = 1.645
Fig 3.11 — Problem 9. Far beyond the boundary; no table is needed.
PROBLEM 10 — two-wheeler owners in two towns

In a sample of 600 households from one town, 372 own a two-wheeler; in a sample of 1200 from another, 696 do. Do the towns differ?

Given \(n_1 = 600\), \(n_2 = 1200\), \(x_1 = 372\), \(x_2 = 696\):

\[ p_1 = \frac{372}{600} = 0.62, \qquad p_2 = \frac{696}{1200} = 0.58 . \]

\(P\) is not known, so pool the two samples:

\[ \hat P = \frac{x_1 + x_2}{n_1 + n_2} = \frac{1068}{1800} = 0.5933, \qquad \hat Q = 0.4067 . \]

(1) \(H_0: P_1 = P_2\), the towns do not differ. (2) \(H_1: P_1 \ne P_2\), they do. Two-tailed.

(3)

\[ \begin{aligned} z &= \frac{p_1 - p_2}{\sqrt{\hat P \hat Q\left(\dfrac{1}{n_1} + \dfrac{1}{n_2}\right)}} = \frac{0.62 - 0.58}{\sqrt{(0.5933)(0.4067)\left(\dfrac{1}{600} + \dfrac{1}{1200}\right)}} = \frac{0.04}{0.02456} \\ &= 1.629 . \end{aligned} \]

(4) \(|z| = 1.63\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: the difference between the towns is within chance.

PROBLEM 11 — two ways of storing onions

Of 1200 kg of onions kept in one kind of store, 5% spoiled; of 1800 kg kept in another, 4% spoiled. Is the second store better?

Given \(n_1 = 1200\), \(n_2 = 1800\), \(p_1 = 0.05\), \(p_2 = 0.04\).

\(P\) is not known and the counts are given as percentages, so pool with weights:

\[ \hat P = \frac{n_1 p_1 + n_2 p_2}{n_1 + n_2} = \frac{1200(0.05) + 1800(0.04)}{3000} = 0.044, \qquad \hat Q = 0.956 . \]

(1) \(H_0: P_1 = P_2\), the stores are equally good. (2) \(H_1: P_1 > P_2\), the second spoils less, so \(P_1\) is the larger. One-tailed.

(3)

\[ \begin{aligned} z &= \frac{p_1 - p_2}{\sqrt{\hat P \hat Q\left(\dfrac{1}{n_1} + \dfrac{1}{n_2}\right)}} = \frac{0.05 - 0.04}{\sqrt{(0.044)(0.956)\left(\dfrac{1}{1200} + \dfrac{1}{1800}\right)}} = \frac{0.01}{0.00764} \\ &= 1.308 . \end{aligned} \]

(4) \(|z| = 1.31\) and \(z_\alpha = 1.645\) at the 5% level, one-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: the second store is not shown to be better.

PROBLEM 12 — has the press improved?

A press produces 20 faulty washers in a batch of 400. After servicing, it produces 4 faulty washers in a batch of 100. Has it improved?

Given \(n_1 = 400\), \(n_2 = 100\), \(x_1 = 20\), \(x_2 = 4\):

\[ p_1 = \frac{20}{400} = 0.05, \qquad p_2 = \frac{4}{100} = 0.04 . \]

\(P\) is not known, so pool the two samples:

\[ \hat P = \frac{x_1 + x_2}{n_1 + n_2} = \frac{24}{500} = 0.048, \qquad \hat Q = 0.952 . \]

(1) \(H_0: P_1 = P_2\), it has not improved. (2) \(H_1: P_1 > P_2\), it now produces a smaller proportion of faulty washers. One-tailed.

(3)

\[ z = \frac{p_1 - p_2}{\sqrt{\hat P \hat Q\left(\dfrac{1}{n_1} + \dfrac{1}{n_2}\right)}} = \frac{0.05 - 0.04}{\sqrt{(0.048)(0.952)\left(\dfrac{1}{400} + \dfrac{1}{100}\right)}} = \frac{0.01}{0.0239} = 0.418 . \]

(4) \(|z| = 0.42\) and \(z_\alpha = 1.645\) at the 5% level, one-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: the press is not shown to have improved; a drop from 5% to 4% on 100 washers is well within chance.

C. Tests for a Single Mean

PROBLEM 13 — a mean score, σ known

A random sample of 900 candidates has mean score 61. Could it come from a population with mean 62 and S.D. 12?

Given \(n = 900\), \(\bar x = 61\), \(\mu_0 = 62\), \(\sigma = 12\) (known).

(1) \(H_0: \mu = 62\), the sample comes from that population. (2) \(H_1: \mu \ne 62\), it does not. Two-tailed.

(3)

\[ z = \frac{\bar x - \mu_0}{\sigma/\sqrt n} = \frac{61 - 62}{12/\sqrt{900}} = \frac{-1}{0.4} = -2.5 . \]

(4) \(|z| = 2.5\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| > z_\alpha\), so \(H_0\) is rejected: the sample does not come from that population.

−1.96 1.96 |z| = 2.5 z = 0 μ = μ₀ in the rejection region → reject H₀ ±zα = ±1.96
Fig 3.12 — Problem 13. A single mean against a known population value, rejected at 5%.
PROBLEM 14 — mean height

A sample of 64 students has mean height 150 cm. Can the population mean be 154 cm, with S.D. 8 cm?

Given \(n = 64\), \(\bar x = 150\), \(\mu_0 = 154\), \(\sigma = 8\) (known).

(1) \(H_0: \mu = 154\), the population mean is 154 cm. (2) \(H_1: \mu \ne 154\), it is not. Two-tailed.

(3)

\[ z = \frac{\bar x - \mu_0}{\sigma/\sqrt n} = \frac{150 - 154}{8/\sqrt{64}} = \frac{-4}{1} = -4 . \]

(4) \(|z| = 4 > 3\), so \(H_0\) is rejected at any usual level without consulting a table: the population mean is not 154 cm.

PROBLEM 15 — the same gap at two sample sizes

A sample of 100 items from a population with mean 80 and S.D. 6 has mean 79. Is the difference significant? What if the sample had 225 items?

Given \(n = 100\), \(\bar x = 79\), \(\mu_0 = 80\), \(\sigma = 6\) (known).

(1) \(H_0: \mu = 80\), the difference is not significant. (2) \(H_1: \mu \ne 80\), it is. Two-tailed.

(3)

\[ z = \frac{\bar x - \mu_0}{\sigma/\sqrt n} = \frac{79 - 80}{6/\sqrt{100}} = \frac{-1}{0.6} = -1.667 . \]

(4) \(|z| = 1.67\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: the difference is not significant.

If instead \(n = 225\), with everything else unchanged,

\[ z = \frac{79 - 80}{6/\sqrt{225}} = \frac{-1}{0.4} = -2.5, \]

and now \(|z| = 2.5 > 1.96\), so \(H_0\) is rejected. The same one-unit gap becomes significant by enlarging the sample alone: the standard error shrinks like \(1/\sqrt n\). That is why “significant” and “large” are different questions.

−1.96 1.96 |z| = 1.67 z = 0 μ = μ₀ outside the rejection region → do not reject H₀ ±zα = ±1.96
Fig 3.13 — Problem 15 with n = 100. At n = 225 the same gap gives z = −2.5, past the boundary: the data did not change, the standard error did.
PROBLEM 16 — mean height, one-tailed at 1%

A sample of 625 adults has mean height 170.6 cm and S.D. 5 cm. Is the population mean more than 170.2 cm, at the 1% level?

Given \(n = 625\), \(\bar x = 170.6\), \(\mu_0 = 170.2\), \(s = 5\); \(\sigma\) is not known, and in a large sample \(s\) stands in for it.

(1) \(H_0: \mu = 170.2\), the population mean is 170.2 cm. (2) \(H_1: \mu > 170.2\), it is more. One-tailed.

(3)

\[ z = \frac{\bar x - \mu_0}{s/\sqrt n} = \frac{170.6 - 170.2}{5/\sqrt{625}} = \frac{0.4}{0.2} = 2 . \]

(4) \(|z| = 2\) and \(z_\alpha = 2.33\) at the 1% level, one-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: the data do not show a mean above 170.2 cm.

PROBLEM 17 — a test and two confidence intervals

A sample of 225 bolts has mean length 12.4 mm and S.D. 1.5 mm. Could the population mean be 12.13 mm? Also find 95% and 99% confidence limits for the population mean if the population S.D. is 2 mm.

Given \(n = 225\), \(\bar x = 12.4\), \(\mu_0 = 12.13\), \(s = 1.5\); \(\sigma\) is not known, and in a large sample \(s\) stands in for it.

(1) \(H_0: \mu = 12.13\), the population mean is 12.13 mm. (2) \(H_1: \mu \ne 12.13\), it is not. Two-tailed.

(3)

\[ z = \frac{\bar x - \mu_0}{s/\sqrt n} = \frac{12.4 - 12.13}{1.5/\sqrt{225}} = \frac{0.27}{0.1} = 2.7 . \]

(4) \(|z| = 2.7\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| > z_\alpha\), so \(H_0\) is rejected: the population mean is not 12.13 mm.

Confidence limits. For these the population S.D. is given, \(\sigma = 2\), so use it rather than \(s\).

\[ \bar x \pm 1.96\frac{\sigma}{\sqrt n} = 12.4 \pm 1.96\cdot\frac{2}{\sqrt{225}} = (12.139,\; 12.661) . \] \[ \bar x \pm 2.58\frac{\sigma}{\sqrt n} = 12.4 \pm 2.58\cdot\frac{2}{\sqrt{225}} = (12.056,\; 12.744) . \]

The 95% interval excludes 12.13 and the 99% interval contains it; the 99% interval is the wider, as more confidence always costs precision. Neither is a re-run of the test: the test used \(s = 1.5\), the intervals use the stated \(\sigma = 2\).

PROBLEM 18 — confidence limits only

The mean and S.D. of the monthly electricity use of 80 households are 210 and 36 units. Find 95% and 98% confidence limits for the population mean.

Given \(n = 80\), \(\bar x = 210\), \(s = 36\); in a large sample \(s\) stands in for \(\sigma\).

\[ \bar x \pm 1.96\frac{s}{\sqrt n} = 210 \pm 1.96\cdot\frac{36}{\sqrt{80}} = (202.111,\; 217.889) . \] \[ \bar x \pm 2.33\frac{s}{\sqrt n} = 210 \pm 2.33\cdot\frac{36}{\sqrt{80}} = (200.622,\; 219.378) . \]

So the 95% limits are \((202.11,\; 217.89)\) and the 98% limits \((200.62,\; 219.38)\). The multiplier for 98% two-sided is 2.33, the same number as the 1% one-tailed critical value, because both put 1% in the upper tail.

D. Tests for Two Means

PROBLEM 19 — same population? (common known σ)

Two random samples of sizes 600 and 500 have means 42 and 45. Could both come from one population with S.D. 10?

Given \(n_1 = 600\), \(n_2 = 500\), \(\bar x_1 = 42\), \(\bar x_2 = 45\) and a common known \(\sigma = 10\).

(1) \(H_0: \mu_1 = \mu_2\), both come from one population. (2) \(H_1: \mu_1 \ne \mu_2\), they do not. Two-tailed.

(3)

\[ z = \frac{\bar x_1 - \bar x_2}{\sigma\sqrt{\dfrac{1}{n_1} + \dfrac{1}{n_2}}} = \frac{42 - 45}{10\sqrt{\dfrac{1}{600} + \dfrac{1}{500}}} = \frac{-3}{0.60553} = -4.954 . \]

(4) \(|z| = 4.95 > 3\), so \(H_0\) is rejected at any usual level without consulting a table: the samples do not come from one population.

−1.96 1.96 |z| = 4.95 off the scale z = 0 μ₁ = μ₂ in the rejection region → reject H₀ ±zα = ±1.96
Fig 3.14 — Problem 19. Far off the scale in the left tail.
PROBLEM 20 — two large samples of heights

The means of two samples of 1500 and 2500 adults are 162.4 cm and 162.0 cm. Could both come from one population with S.D. 3 cm?

Given \(n_1 = 1500\), \(n_2 = 2500\), \(\bar x_1 = 162.4\), \(\bar x_2 = 162\) and a common known \(\sigma = 3\).

(1) \(H_0: \mu_1 = \mu_2\), both come from one population. (2) \(H_1: \mu_1 \ne \mu_2\), they do not. Two-tailed.

(3)

\[ z = \frac{\bar x_1 - \bar x_2}{\sigma\sqrt{\dfrac{1}{n_1} + \dfrac{1}{n_2}}} = \frac{162.4 - 162}{3\sqrt{\dfrac{1}{1500} + \dfrac{1}{2500}}} = \frac{0.4}{0.09798} = 4.082 . \]

(4) \(|z| = 4.08 > 3\), so \(H_0\) is rejected at any usual level without consulting a table: the samples do not come from one population. A 0.4 cm gap is small, but on samples this size it is far beyond chance: the \(1/\sqrt n\) effect again.

PROBLEM 21 — heights in two states (σ's unknown)

A sample of 4900 men from state A has mean height 168 cm, S.D. 7 cm; a sample of 2500 men from state B has mean 169.5 cm, S.D. 6.5 cm. Are the men of state B taller on average?

Given \(n_1 = 4900\), \(n_2 = 2500\), \(\bar x_1 = 168\), \(\bar x_2 = 169.5\), \(s_1 = 7\), \(s_2 = 6.5\). The \(\sigma\)'s are not known, so each is estimated by its own sample's \(s\).

(1) \(H_0: \mu_1 = \mu_2\), the mean heights are equal. (2) \(H_1: \mu_1 < \mu_2\), state B men are taller. One-tailed.

(3)

\[ z = \frac{\bar x_1 - \bar x_2}{\sqrt{\dfrac{s_1^2}{n_1} + \dfrac{s_2^2}{n_2}}} = \frac{168 - 169.5}{\sqrt{\dfrac{(7)^2}{4900} + \dfrac{(6.5)^2}{2500}}} = \frac{-1.5}{0.16401} = -9.146 . \]

(4) \(|z| = 9.15 > 3\), so \(H_0\) is rejected at any usual level without consulting a table: state B men are taller on average.

PROBLEM 22 — two samples of 500

Two samples of 500 each have means 320 and 305 and S.D.s 45 and 60. Test at the 1% level whether the population means are equal.

Given \(n_1 = 500\), \(n_2 = 500\), \(\bar x_1 = 320\), \(\bar x_2 = 305\), \(s_1 = 45\), \(s_2 = 60\). The \(\sigma\)'s are not known, so each is estimated by its own sample's \(s\).

(1) \(H_0: \mu_1 = \mu_2\), the population means are equal. (2) \(H_1: \mu_1 \ne \mu_2\), they are not. Two-tailed.

(3)

\[ z = \frac{\bar x_1 - \bar x_2}{\sqrt{\dfrac{s_1^2}{n_1} + \dfrac{s_2^2}{n_2}}} = \frac{320 - 305}{\sqrt{\dfrac{(45)^2}{500} + \dfrac{(60)^2}{500}}} = \frac{15}{3.3541} = 4.472 . \]

(4) \(|z| = 4.47 > 3\), so \(H_0\) is rejected at any usual level without consulting a table: the population means differ.

PROBLEM 23 — two brands of LED lamp

The lives of two brands of LED lamp were recorded.

BrandSizeMean life (hrs)S.D. (hrs)
A60145090
B80148070

Can brand A be taken to last longer than brand B, at the 1% level?

Given \(n_1 = 60\), \(n_2 = 80\), \(\bar x_1 = 1450\), \(\bar x_2 = 1480\), \(s_1 = 90\), \(s_2 = 70\). The \(\sigma\)'s are not known, so each is estimated by its own sample's \(s\).

(1) \(H_0: \mu_1 = \mu_2\), the mean lives are equal. (2) \(H_1: \mu_1 > \mu_2\), brand A lasts longer. One-tailed.

(3)

\[ z = \frac{\bar x_1 - \bar x_2}{\sqrt{\dfrac{s_1^2}{n_1} + \dfrac{s_2^2}{n_2}}} = \frac{1450 - 1480}{\sqrt{\dfrac{(90)^2}{60} + \dfrac{(70)^2}{80}}} = \frac{-30}{14.00893} = -2.141 . \]

(4) \(z = -2.14\) and the 1% one-tailed value is \(z_\alpha = 2.33\). The alternative predicts a positive statistic, and this one has the opposite sign, so no level could reject: brand A is not shown to last longer — its sample mean is in fact the lower of the two, and comparing \(|z|\) with a one-tailed value is valid only when \(z\) has the sign \(H_1\) predicts.

PROBLEM 24 — a reading test, boys and girls

A reading test was given to boys and girls of the same age in one school.

SizeMeanS.D.
Boys1206812
Girls8070.510

Is the difference between the means significant?

Given \(n_1 = 120\), \(n_2 = 80\), \(\bar x_1 = 68\), \(\bar x_2 = 70.5\), \(s_1 = 12\), \(s_2 = 10\). The \(\sigma\)'s are not known, so each is estimated by its own sample's \(s\).

(1) \(H_0: \mu_1 = \mu_2\), the mean scores are equal. (2) \(H_1: \mu_1 \ne \mu_2\), they differ. Two-tailed.

(3)

\[ z = \frac{\bar x_1 - \bar x_2}{\sqrt{\dfrac{s_1^2}{n_1} + \dfrac{s_2^2}{n_2}}} = \frac{68 - 70.5}{\sqrt{\dfrac{(12)^2}{120} + \dfrac{(10)^2}{80}}} = \frac{-2.5}{1.56525} = -1.597 . \]

(4) \(|z| = 1.6\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: there is no significant difference between the mean scores.

E. Tests for Variance and Standard Deviation

PROBLEM 25 — a single variance

A random sample of size 98 has variance 152. Could the population variance be 110, at the 1% level?

Given \(n = 98\), \(s^2 = 152\), \(\sigma_0^2 = 110\).

(1) \(H_0: \sigma^2 = 110\). (2) \(H_1: \sigma^2 \ne 110\). Two-tailed.

(3)

\[ z = \frac{\dfrac{n s^2}{\sigma_0^2} - n}{\sqrt{2n}} = \frac{\dfrac{98 \times 152}{110} - 98}{\sqrt{2 \times 98}} = \frac{135.418 - 98}{14} = 2.673 . \]

(4) \(|z| = 2.67\) and \(z_\alpha = 2.58\) at the 1% level, two-tailed. \(|z| > z_\alpha\), so \(H_0\) is rejected: the population variance is not 110. It is a near thing, and a slightly smaller sample would have gone the other way.

PROBLEM 26 — a single standard deviation

A sample of 50 from a normal population has S.D. 23.8. Could the population S.D. be 20?

Given \(n = 50\), \(s = 23.8\), \(\sigma_0 = 20\).

(1) \(H_0: \sigma = 20\). (2) \(H_1: \sigma \ne 20\). Two-tailed.

(3)

\[ z = \frac{s - \sigma_0}{\sigma_0/\sqrt{2n}} = \frac{23.8 - 20}{20/\sqrt{2 \times 50}} = \frac{3.8}{2} = 1.9 . \]

(4) \(|z| = 1.9\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: the population S.D. may be 20.

Compare Problem 25's variance form on these same figures: \(z = (50 \times 566.44/400 - 50)/10 = 2.081\), which is past 1.96, where the S.D. form gave 1.9. The two are different large-sample approximations and need not agree near the boundary; with a sample this small the exact \(\chi^2\) test of Unit 4 is the one to trust.

PROBLEM 27 — two standard deviations

Two samples of 150 each have S.D.s 3.4 and 2.6. Is the difference significant, if the population S.D. is 3?

This is Case 1 of §6: a common known \(\sigma = 3\), so

\[ z = \frac{s_1 - s_2}{\sigma\sqrt{\dfrac{1}{2n_1} + \dfrac{1}{2n_2}}} . \]

(1) \(H_0: \sigma_1 = \sigma_2\). (2) \(H_1: \sigma_1 \ne \sigma_2\). Two-tailed.

(3)

\[ z = \frac{3.4 - 2.6}{3\sqrt{\dfrac{1}{300} + \dfrac{1}{300}}} = \frac{0.8}{0.24495} = 3.266 . \]

(4) \(|z| = 3.27 > 3\), so \(H_0\) is rejected at any usual level without consulting a table: the standard deviations differ significantly.

PROBLEM 28 — one data set, two questions

Two samples of adult heights, of sizes 900 and 1600, have means 64.6 and 64.45 inches and S.D.s 2.7 and 2.6 inches. Test (i) whether the means differ, and (ii) whether the S.D.s differ.

(i) Means. \(H_0: \mu_1 = \mu_2\) against \(H_1: \mu_1 \ne \mu_2\); the \(\sigma\)'s are estimated by the \(s\)'s:

\[ z = \frac{64.6 - 64.45}{\sqrt{\dfrac{(2.7)^2}{900} + \dfrac{(2.6)^2}{1600}}} = 1.351 . \]

(4) \(|z| = 1.35\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: there is no significant difference between the means.

(ii) Standard deviations. The same samples, now asked about spread. \(H_0: \sigma_1 = \sigma_2\) against \(H_1: \sigma_1 \ne \sigma_2\), with the \(2n\) that marks a spread test:

\[ z = \frac{2.7 - 2.6}{\sqrt{\dfrac{(2.7)^2}{2 \times 900} + \dfrac{(2.6)^2}{2 \times 1600}}} = 1.274 . \]

(4) \(|z| = 1.27\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: there is no significant difference between the S.D.s either. The two populations look alike in both respects.

F. Tests for Correlation Coefficients

PROBLEM 29 — a sample correlation against a population one

A sample of 900 pairs has correlation coefficient 0.42. Could the population correlation be 0.5?

(1) \(H_0: \rho = 0.5\). (2) \(H_1: \rho \ne 0.5\). Two-tailed.

(3) \(\rho_0\) is moderate, so Case 1 applies:

\[ z = \frac{r - \rho_0}{(1 - \rho_0^2)/\sqrt n} = \frac{0.42 - 0.5}{(1 - 0.5^2)/\sqrt{900}} = \frac{-0.08}{0.025} = -3.2 . \]

(4) \(|z| = 3.2 > 3\), so \(H_0\) is rejected at any usual level without consulting a table: the population correlation is not 0.5.

PROBLEM 30 — is there any correlation at all?

For 64 students, the correlation between hours of sleep and test score is 0.22. Is it significant?

“Is it significant” with no population value named means testing against zero.

(1) \(H_0: \rho = 0\). (2) \(H_1: \rho \ne 0\). Two-tailed.

(3) With \(\rho_0 = 0\) the Case 1 statistic reduces to \(r\sqrt n\):

\[ z = r\sqrt n = 0.22\sqrt{64} = 1.76 . \]

(4) \(|z| = 1.76\) and \(z_\alpha = 1.96\) at the 5% level, two-tailed. \(|z| < z_\alpha\), so \(H_0\) is not rejected: the correlation is not significant; an \(r\) of 0.22 on 64 students does not establish a relationship.

PROBLEM 31 — a high correlation, needing Fisher

A sample of 84 pairs has correlation coefficient 0.9. Could the population correlation be 0.8?

(1) \(H_0: \rho = 0.8\). (2) \(H_1: \rho \ne 0.8\). Two-tailed.

(3) \(\rho_0\) is past the 0.7 mark, where \(r\)'s distribution is badly skewed, so Fisher's transformation is used:

\[ \begin{aligned} V &= \frac{\tfrac12\log_e\dfrac{1+r}{1-r} - \tfrac12\log_e\dfrac{1+\rho_0}{1-\rho_0}}{\sqrt{1/(n-3)}} = \frac{\tfrac12\log_e\dfrac{1.9}{0.1} - \tfrac12\log_e\dfrac{1.8}{0.2}}{\sqrt{1/81}} \\ &= \frac{1.4722 - 1.0986}{0.1111} = 3.362 . \end{aligned} \]

(4) \(|V| = 3.36 > 3\), so \(H_0\) is rejected at any usual level without consulting a table: the population correlation is not 0.8.

PROBLEM 32 — two sample correlations against each other

Two samples of sizes 300 and 200 have correlation coefficients 0.68 and 0.6. Is the difference significant at the 1% level?

(1) \(H_0: \rho_1 = \rho_2\). (2) \(H_1: \rho_1 \ne \rho_2\). Two-tailed.

(3) Transform each, then compare:

\[ V = \frac{\tfrac12\log_e\dfrac{1.68}{0.32} - \tfrac12\log_e\dfrac{1.6}{0.4}}{\sqrt{\dfrac{1}{297} + \dfrac{1}{197}}} = \frac{0.8291 - 0.6931}{0.0919} = 1.48 . \]

(4) \(|V| = 1.48\) and \(V_\alpha = 2.58\) at the 1% level, two-tailed. \(|V| < V_\alpha\), so \(H_0\) is not rejected: there is no significant difference between the two correlation coefficients.

Try it. Samples of sizes 52 and 43 have correlation coefficients 0.5 and 0.7. Do they differ significantly? (Answer: the transforms are \(0.549\) and \(0.867\), the standard error is \(\sqrt{1/49 + 1/40} = 0.213\), and \(|V| = 1.49 < 1.96\): not significant.)

Summary Table — Large Sample Tests

HypothesisTest Statistic
\(\mu = \mu_0\)\((\bar X - \mu_0)/(\sigma/\sqrt n)\)
\(\mu_1 = \mu_2\)\((\bar X_1 - \bar X_2)/\sqrt{\sigma_1^2/n_1 + \sigma_2^2/n_2}\)
\(p = p_0\)\((\hat p - p_0)/\sqrt{p_0(1-p_0)/n}\)
\(p_1 = p_2\)\((\hat p_1 - \hat p_2)/\sqrt{\hat p \hat q (1/n_1 + 1/n_2)}\)
\(\sigma = \sigma_0\)\((s - \sigma_0)/(\sigma_0/\sqrt{2n})\)
\(\rho = 0\)\(r\sqrt{n-2}/\sqrt{1 - r^2}\)
\(\sigma^2 = \sigma_0^2\)\(\left(ns^2/\sigma_0^2 - n\right)/\sqrt{2n}\)
\(\sigma_1 = \sigma_2\)\((s_1 - s_2)/\sqrt{\sigma_1^2/(2n_1) + \sigma_2^2/(2n_2)}\)
\(\rho = \rho_0\) (small \(\rho\))\((r - \rho_0)/\big((1-\rho_0^2)/\sqrt n\big)\)
\(\rho_1 = \rho_2\)\((z_1 - z_2)/\sqrt{1/(n_1-3) + 1/(n_2-3)}\), \(z_i\) Fisher-transformed

Nine rows, one shape. Every statistic is \(\big(\text{estimate} - \text{hypothesised value}\big)/\text{standard error}\); only the standard error changes, and deriving it is the whole of the work.

Key Take-aways

Where this goes next. Every test above borrowed its normality from the Central Limit Theorem, through the working rule \(n \ge 30\). Below that the prop is gone twice over: the population must now be assumed normal, and estimating \(\sigma\) by \(s\) is no longer free — the extra uncertainty thickens the tails. That is the whole reason Unit 4 exists, and why \(Z\) gives way to Student's \(t\), with \(\chi^2\) and \(F\) for questions about variance rather than about means.

→ Unit 4 — Small Sample Tests