Lecture 9 Large-Sample Tests of Hypotheses Part 2

1. Large-sample tests of hypotheses for the difference between two population means

This section details the methodology for conducting hypothesis tests on the difference between two population means when sample sizes are sufficiently large, relying on the Central Limit Theorem (CLT).

1.1 Introduction to large-sample tests for the difference between means

When dealing with large independent samples, the sampling distribution of the difference between two sample means, xˉ1−xˉ2\bar{x}_1 - \bar{x}_2, approximates a normal distribution. This property allows for the construction of test statistics to evaluate hypotheses about the difference between the true population means, μ1−μ2\mu_1 - \mu_2 3.

1.2 Core components of the hypothesis test

The formal procedure for conducting a large-sample statistical test for the difference between two population means involves several key steps:

  • Null Hypothesis (H0H_0): This hypothesis proposes a specific value for the difference between the population means. It is typically stated as H0:(μ1−μ2)=D0H_0: (\mu_1 - \mu_2) = D_0, where D0D_0 is the hypothesized difference. A common scenario is testing for no difference, in which case D0=0D_0 = 0 4.
  • Alternative Hypothesis (HAH_A): This hypothesis contradicts the null hypothesis and can be directional (one-tailed) or non-directional (two-tailed) 5.
    • One-tailed test: HA:(μ1−μ2)>D0H_A: (\mu_1 - \mu_2) > D_0 or HA:(μ1−μ2)<D0H_A: (\mu_1 - \mu_2) < D_0.
    • Two-tailed test: HA:(μ1−μ2)≠D0H_A: (\mu_1 - \mu_2) \neq D_0.
  • Test Statistic: For large samples, the test statistic is a z-score calculated using the sample means, sample standard deviations, and the hypothesized difference. The formula is: z=(xˉ1−xˉ2)−D0s12n1+s22n2z = \frac{(\bar{x}_1 - \bar{x}_2) - D_0}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}} where:
    • xˉ1\bar{x}_1 and xˉ2\bar{x}_2 are the sample means.
    • s12s_1^2 and s22s_2^2 are the sample variances.
    • n1n_1 and n2n_2 are the sample sizes.
  • Rejection Region: This is the set of values for the test statistic that lead to the rejection of the null hypothesis. The determination of the rejection region depends on the type of alternative hypothesis and the chosen significance level (α\alpha).
    • One-tailed test: Reject H0H_0 if z>zαz > z_\alpha (for HA:(μ1−μ2)>D0H_A: (\mu_1 - \mu_2) > D_0) or if z<−zαz < -z_\alpha (for HA:(μ1−μ2)<D0H_A: (\mu_1 - \mu_2) < D_0).
    • Two-tailed test: Reject H0H_0 if z>zα/2z > z_{\alpha/2} or z<−zα/2z < -z_{\alpha/2}. The rejection region can also be defined using the p-value: reject H0H_0 if p-value<αp\text{-value} < \alpha 6.

1.3 Assumptions for large-sample tests

The validity of these large-sample tests relies on specific assumptions 7:

  • The samples are selected randomly and independently from their respective populations.
  • The sample sizes are large, typically n1≥30n_1 \geq 30 and n2≥30n_2 \geq 30. This ensures that the Central Limit Theorem is applicable.

1.4 Example application: Academic achievement and car ownership

Consider a study investigating whether car ownership affects student academic achievement. Random samples of 100 non-owners (n1=100n_1=100) and 100 car owners (n2=100n_2=100) were taken. The sample mean GPA for non-owners was xˉ1=2.70\bar{x}_1 = 2.70 with a variance s12=0.36s_1^2 = 0.36, and for car owners, xˉ2=2.54\bar{x}_2 = 2.54 with s22=0.40s_2^2 = 0.40. We want to test if there is a difference in mean achievements between the two groups at a significance level α=0.05\alpha = 0.05 8.

1.4.1 Hypothesis formulation

The null hypothesis is that there is no difference in mean academic achievement: H0:(μ1−μ2)=D0=0H_0: (\mu_1 - \mu_2) = D_0 = 0

The alternative hypothesis is that there is a difference: HA:(μ1−μ2)≠0H_A: (\mu_1 - \mu_2) \neq 0 9.

1.4.2 Calculating the test statistic

Using the provided data and the formula for the z-statistic: z=(2.70−2.54)−00.36100+0.40100=0.160.0036+0.0040=0.160.0076≈0.160.0872≈1.84z = \frac{(2.70 - 2.54) - 0}{\sqrt{\frac{0.36}{100} + \frac{0.40}{100}}} = \frac{0.16}{\sqrt{0.0036 + 0.0040}} = \frac{0.16}{\sqrt{0.0076}} \approx \frac{0.16}{0.0872} \approx 1.84

1.4.3 Critical value approach

For a two-tailed test with α=0.05\alpha = 0.05, the critical values are z=±1.96z = \pm 1.96. Since the calculated test statistic z=1.84z = 1.84 falls within the range −1.96<1.84<1.96-1.96 < 1.84 < 1.96, we do not reject H0H_0. 10.

Note: The calculated z-statistic (1.84) is not in the rejection region (z > 1.96 or z < -1.96) 11.

1.4.4 p-value approach

The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, assuming H0H_0 is true. For z=1.84z=1.84: p-value=P(z>1.84)+P(z<−1.84)p\text{-value} = P(z > 1.84) + P(z < -1.84) p-value=(1−0.9671)+0.0329=0.0329+0.0329=0.0658p\text{-value} = (1 - 0.9671) + 0.0329 = 0.0329 + 0.0329 = 0.0658.

Since the p-value (0.06580.0658) is greater than the significance level (α=0.05\alpha = 0.05), H0H_0 is not rejected.

Important: The p-value of 0.0658 indicates that if there were truly no difference in the mean GPA between car owners and non-owners, there would be a 6.58% chance of observing a difference in sample means as large as or larger than the one found. Since this probability is greater than our threshold of 0.05, we do not have sufficient evidence to conclude a difference exists. 13.

1.4.5 Conclusion

There is insufficient evidence to declare a difference in the average academic achievements between car owners and non-owners 12.

1.5 Hypothesis testing and confidence intervals

A strong connection exists between hypothesis tests and confidence intervals. A confidence interval provides a range of plausible values for the population parameter. If the hypothesized value of the parameter under the null hypothesis falls outside this interval, the null hypothesis is rejected at the corresponding significance level. 14 15.

1.5.1 Constructing a confidence interval for the difference in means

To construct a confidence interval for the difference between two population means (μ1−μ2\mu_1 - \mu_2), the formula is: (xˉ1−xˉ2)±zα/2s12n1+s22n2(\bar{x}_1 - \bar{x}_2) \pm z_{\alpha/2} \sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}

Using the data from Example 9.9, with a 95% confidence interval (α=0.05\alpha = 0.05, so zα/2=1.96z_{\alpha/2} = 1.96): 0.16±1.960.36100+0.401000.16 \pm 1.96 \sqrt{\frac{0.36}{100} + \frac{0.40}{100}} 0.16±1.960.00760.16 \pm 1.96 \sqrt{0.0076} 0.16±1.96(0.0872)0.16 \pm 1.96 (0.0872) 0.16±0.170.16 \pm 0.17 17.

The 95% confidence interval is −0.01<(μ1−μ2)<0.33-0.01 < (\mu_1 - \mu_2) < 0.33.

1.5.2 Interpreting the confidence interval in relation to the hypothesis test

Since the hypothesized difference, (μ1−μ2)=0(\mu_1 - \mu_2) = 0, is contained within the 95% confidence interval [−0.01,0.33][-0.01, 0.33], we do not reject H0H_0 at the α=0.05\alpha = 0.05 significance level.

Reminder: If the confidence interval includes 0, it suggests that a difference of zero between the population means is a plausible value, and thus, there is not enough statistical evidence to conclude that a significant difference exists. 18.

The interpretation of the confidence interval aligns with the conclusion from the hypothesis test: there is not enough evidence to indicate a difference in the average academic achievements for car owners versus non-owners 19.

2. Large-sample test of hypothesis for a binomial proportion

This section details the methodology for conducting hypothesis tests concerning a population proportion when sample sizes are sufficiently large.

2.1 Framework for large-sample tests of hypothesis for a binomial proportion

Large-sample hypothesis tests for a binomial proportion rely on the Central Limit Theorem (CLT), which states that for a large sample size nn, the sample proportion p^\hat{p} is approximately normally distributed. The mean of this distribution is the true population proportion pp, and the standard error is given by:

SE(p^)=p(1−p)nSE(\hat{p}) = \sqrt{\frac{p(1-p)}{n}}

However, when testing hypotheses, the true population proportion pp is unknown. Under the null hypothesis, H0:p=p0H_0: p = p_0, the standard error is estimated using p0p_0:

SE(p^)=p0(1−p0)nSE(\hat{p}) = \sqrt{\frac{p_0(1-p_0)}{n}}

The general steps involved in performing a large-sample test of hypothesis for a binomial proportion are as follows:

  • Step 1: State the hypotheses.

    • Null Hypothesis (H0H_0): This is a statement of no effect or no difference, typically proposing a specific value for the population proportion, pp. It is always stated with an equality sign.
      • H0:p=p0H_0: p = p_0
    • Alternative Hypothesis (HaH_a): This is the statement that contradicts the null hypothesis and is what the researcher aims to find evidence for. It can be one-tailed or two-tailed.
      • One-tailed test: Ha:p>p0H_a: p > p_0 or Ha:p<p0H_a: p < p_0
      • Two-tailed test: Ha:p≠p0H_a: p \neq p_0
  • Step 2: Define the significance level (α\alpha). The significance level is the probability of rejecting the null hypothesis when it is actually true (Type I error). Common values include 0.05 or 0.10.

  • Step 3: Calculate the test statistic. For a large-sample test of a binomial proportion, the test statistic is a z-score calculated as:

    z=p^−p0p0(1−p0)nz = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1-p_0)}{n}}}

    where:

    • p^\hat{p} is the sample proportion (x/nx/n).
    • xx is the number of successes in the sample.
    • nn is the sample size.
    • p0p_0 is the hypothesized population proportion under the null hypothesis.
  • Step 4: Determine the rejection region or calculate the p-value.

    • Rejection Region: This approach involves comparing the calculated test statistic (zz) to critical values from the standard normal distribution.
      • For a one-tailed test (Ha:p>p0H_a: p > p_0), reject H0H_0 if z>zαz > z_{\alpha}.
      • For a one-tailed test (Ha:p<p0H_a: p < p_0), reject H0H_0 if z<−zαz < -z_{\alpha}.
      • For a two-tailed test (Ha:p≠p0H_a: p \neq p_0), reject H0H_0 if z>zα/2z > z_{\alpha/2} or z<−zα/2z < -z_{\alpha/2}.
    • P-value: The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, assuming the null hypothesis is true.
      • For Ha:p>p0H_a: p > p_0, the p-value is P(Z>z)P(Z > z).
      • For Ha:p<p0H_a: p < p_0, the p-value is P(Z<z)P(Z < z).
      • For Ha:p≠p0H_a: p \neq p_0, the p-value is 2×P(Z>∣z∣)2 \times P(Z > |z|). Reject H0H_0 if the p-value is less than the significance level (α\alpha).
  • Step 5: Make a decision and interpret the results. If the test statistic falls within the rejection region or if the p-value is less than α\alpha, reject the null hypothesis. Otherwise, fail to reject the null hypothesis. The conclusion should be stated in the context of the problem, addressing whether there is sufficient evidence to support the alternative hypothesis.

2.2 Assumptions for large-sample binomial proportion tests

For the large-sample approximation to be valid and the test to be reliable, certain assumptions must be met:

  • Binomial experiment: The sampling process must satisfy the requirements of a binomial experiment. This includes a fixed number of trials (nn), each trial having only two possible outcomes (success/failure), the probability of success (pp) being constant for each trial, and the trials being independent.
  • Large sample size: The sample size must be large enough for the sampling distribution of p^\hat{p} to be approximated by a normal distribution. The common rule of thumb is that the expected number of successes and failures under the null hypothesis should both be at least 5.
    • np0≥5n p_0 \ge 5
    • n(1−p0)≥5n (1-p_0) \ge 5

Note: If these conditions are not met, alternative methods such as the exact binomial test or the Agresti-Caffo method might be more appropriate, although they are not covered in this section 24.

2.3 Example: Testing for a decrease in participation rate

Consider a survey investigating whether the participation rate in fitness activities at least twice a week has decreased for adults over 40 years old, given that the general participation rate is about 20%.

  • Scenario: A local survey of n=100n = 100 adults over 40 years old found that 15 participated in fitness activities at least twice a week. The significance level is α=0.10\alpha = 0.10 25.

  • Hypotheses:

    • H0:p=0.20H_0: p = 0.20 (The participation rate for adults over 40 is 20%)
    • Ha:p<0.20H_a: p < 0.20 (The participation rate for adults over 40 is less than 20%).
  • Assumptions:

    • The sampling procedure satisfies the binomial experiment requirements.
    • np0=100×0.20=20≥5n p_0 = 100 \times 0.20 = 20 \ge 5
    • n(1−p0)=100×(1−0.20)=100×0.80=80≥5n (1-p_0) = 100 \times (1-0.20) = 100 \times 0.80 = 80 \ge 5 Both conditions for a large sample size are met.
  • Sample Proportion: The observed sample proportion is p^=15100=0.15\hat{p} = \frac{15}{100} = 0.15 26.

  • Test Statistic: z=0.15−0.200.20(1−0.20)100=−0.050.20×0.80100=−0.050.16100=−0.050.0016=−0.050.04=−1.25z = \frac{0.15 - 0.20}{\sqrt{\frac{0.20(1-0.20)}{100}}} = \frac{-0.05}{\sqrt{\frac{0.20 \times 0.80}{100}}} = \frac{-0.05}{\sqrt{\frac{0.16}{100}}} = \frac{-0.05}{\sqrt{0.0016}} = \frac{-0.05}{0.04} = -1.25

  • P-value Calculation: The p-value is the probability of observing a z-score less than -1.25 (since the alternative hypothesis is p<0.20p < 0.20). p-value=P(Z<−1.25)\text{p-value} = P(Z < -1.25) Using a standard normal distribution table or calculator, P(Z<−1.25)=0.1056P(Z < -1.25) = 0.1056. 27.

  • Decision and Conclusion: Compare the p-value to the significance level: 0.1056>0.100.1056 > 0.10. Since the p-value is greater than α\alpha, we fail to reject the null hypothesis.

    Conclusion: There is insufficient evidence at the 0.10 significance level to conclude that the participation rate for adults over 40 years of age in fitness activities at least twice a week is significantly less than 20% 28.

2.4 Statistical significance versus practical importance

A key distinction in hypothesis testing is between statistical significance and practical importance.

  • Statistical significance means that the observed result is unlikely to have occurred by random chance alone, given the null hypothesis. It indicates that there is a statistically detectable effect.
  • Practical importance refers to whether the observed effect is large enough to be meaningful or consequential in a real-world context.

Important: A statistically significant result does not automatically imply practical importance. The magnitude of the effect and the context of the problem are crucial for determining practical significance. 29.

2.4.1 Illustrative example: Impact of sample size

Let's revisit the fitness activity example but with a larger sample size, n=400n=400, and assume the same sample proportion of p^=0.15\hat{p}=0.15 30.

  • New Test Statistic: z=0.15−0.200.20(1−0.20)400=−0.050.16400=−0.050.0004=−0.050.02=−2.50z = \frac{0.15 - 0.20}{\sqrt{\frac{0.20(1-0.20)}{400}}} = \frac{-0.05}{\sqrt{\frac{0.16}{400}}} = \frac{-0.05}{\sqrt{0.0004}} = \frac{-0.05}{0.02} = -2.50

  • New P-value: p-value=P(Z<−2.50)=0.0062\text{p-value} = P(Z < -2.50) = 0.0062

  • Decision and Conclusion (with larger sample): If α=0.10\alpha = 0.10, then 0.0062<0.100.0062 < 0.10. In this case, we would reject H0H_0.

    Conclusion: With a larger sample size, the results become statistically significant. There is sufficient evidence to indicate that the percentage of adults over 40 participating in fitness activities is less than 20% 31.

2.4.2 Assessing practical importance

Despite the statistical significance with the larger sample, we need to consider if the observed decrease is practically important. Suppose physicians are only concerned if the participation rate drops by more than 10 percentage points (i.e., if p<0.10p < 0.10) 32.

To assess this, we can construct a confidence interval for the true proportion pp using the sample data (p^=0.15\hat{p} = 0.15, n=400n=400, and assuming α=0.10\alpha=0.10 which implies zα/2=z0.05=1.645z_{\alpha/2} = z_{0.05} = 1.645 for a 90% confidence interval):

p^±zα/2p^(1−p^)n\hat{p} \pm z_{\alpha/2} \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}

While the document presents a calculation using p^\hat{p} in the standard error formula for the confidence interval, it's more common and often more conservative to use p0p_0 in the SE calculation under the null hypothesis when comparing against it. However, following the provided calculation:

0.15±1.6450.15×(1−0.15)400=0.15±1.6450.15×0.854000.15 \pm 1.645 \sqrt{\frac{0.15 \times (1-0.15)}{400}} = 0.15 \pm 1.645 \sqrt{\frac{0.15 \times 0.85}{400}} =0.15±1.6450.1275400=0.15±1.6450.00031875= 0.15 \pm 1.645 \sqrt{\frac{0.1275}{400}} = 0.15 \pm 1.645 \sqrt{0.00031875} =0.15±1.645×0.01785≈0.15±0.029= 0.15 \pm 1.645 \times 0.01785 \approx 0.15 \pm 0.029

The 90% confidence interval is approximately [0.121, 0.179.

  • Interpretation: The confidence interval suggests that the true participation rate for adults aged 40 and older lies between 12.1% and 17.9%. Although the participation rate has dropped from 20%, the confidence interval does not extend below 10%. Therefore, we cannot conclude that the true proportion is less than 0.10.

Conclusion on Practicality: The results, while statistically significant, are not practically important because the observed decrease in participation is not substantial enough to meet the threshold of concern (a drop of more than 10 percentage points) 33.

A summary of the comparison between statistical significance and practical importance can be seen in the table below:

AspectDescriptionExample Context
Statistical SignificanceThe result is unlikely to have occurred by random chance, leading to the rejection of the null hypothesis.The observed decrease in fitness participation for adults over 40 is statistically significant when n=400n=400.
Practical ImportanceThe observed effect is large enough to be meaningful or consequential in a real-world scenario.The decrease in fitness participation is not practically important if it is less than a 10 percentage point drop, as physicians might only be concerned then.
RelationshipStatistical significance is a prerequisite for practical importance in hypothesis testing, but does not guarantee it.A large sample size can make small, practically irrelevant effects statistically significant.

3. Large-sample test of hypothesis for the difference between two binomial proportions

This section details the methodology for conducting hypothesis tests on the difference between two population binomial proportions when dealing with large sample sizes, focusing on the formulation of hypotheses, calculation of the test statistic using a pooled proportion estimate, and determination of the rejection region.

3.1 Framework for testing the difference between two binomial proportions

When independent random samples are drawn from two binomial populations, the primary interest may be in the difference between the proportions of individuals or items possessing a specific characteristic in these populations, denoted as p1−p2p_1 - p_2. A large-sample statistical test utilizing the difference in sample proportions and its standard error, expressed as a z-statistic, can be employed to assess for significant differences between these population proportions 35.

The steps involved in this hypothesis test are as follows 36:

  • 1. Null Hypothesis (H0H_0):

    • The null hypothesis typically states that there is no difference between the two population proportions: H0:(p1−p2)=0H_0: (p_1 - p_2) = 0, which is equivalent to H0:p1=p2H_0: p_1 = p_2.
  • 2. Alternative Hypothesis (HaH_a):

    • One-Tailed Test: The alternative hypothesis can be directional, proposing that one proportion is greater than the other. This can be expressed as Ha:(p1−p2)>0H_a: (p_1 - p_2) > 0 or Ha:(p1−p2)<0H_a: (p_1 - p_2) < 0.
    • Two-Tailed Test: The alternative hypothesis can also state that the proportions are simply not equal: Ha:(p1−p2)≠0H_a: (p_1 - p_2) \neq 0.
  • 3. Test Statistic:

    • The general form of the test statistic for the difference between two proportions is: z=(p^1−p^2)−(p1−p2)0p1(1−p1)n1+p2(1−p2)n2z = \frac{(\hat{p}_1 - \hat{p}_2) - (p_1 - p_2)_0}{\sqrt{\frac{p_1(1-p_1)}{n_1} + \frac{p_2(1-p_2)}{n_2}}} where p^1\hat{p}_1 and p^2\hat{p}_2 are the sample proportions, and (p1−p2)0(p_1 - p_2)_0 is the hypothesized difference (usually 0 under the null hypothesis).
    • When the null hypothesis H0:p1=p2H_0: p_1 = p_2 is assumed to be true, the common value of p1=p2=pp_1 = p_2 = p is unknown and must be estimated. This is done using a pooled estimate of the proportion, denoted by p^\hat{p}, which is calculated as: p^=n1p^1+n2p^2n1+n2=x1+x2n1+n2\hat{p} = \frac{n_1\hat{p}_1 + n_2\hat{p}_2}{n_1 + n_2} = \frac{x_1 + x_2}{n_1 + n_2} where x1x_1 and x2x_2 are the number of successes in each sample.
    • The test statistic then becomes: z=p^1−p^2p^(1−p^)(1n1+1n2)z = \frac{\hat{p}_1 - \hat{p}_2}{\sqrt{\hat{p}(1-\hat{p})\left(\frac{1}{n_1} + \frac{1}{n_2}\right)}} 37.
  • 4. Rejection Region:

    • The decision to reject or fail to reject the null hypothesis is based on comparing the calculated test statistic to critical values or by using p-values.
    • One-Tailed Test: Reject H0H_0 if z>zαz > z_{\alpha} (for Ha:(p1−p2)>0H_a: (p_1 - p_2) > 0) or if z<−zαz < -z_{\alpha} (for Ha:(p1−p2)<0H_a: (p_1 - p_2) < 0).
    • Two-Tailed Test: Reject H0H_0 if z>zα/2z > z_{\alpha/2} or if z<−zα/2z < -z_{\alpha/2}.
    • Alternatively, reject H0H_0 if the p-value is less than the significance level α\alpha 38.

3.2 Assumptions for the large-sample test

For the validity of this large-sample test, several assumptions must be met:

  • Random and Independent Samples: The samples must be selected randomly and independently from their respective binomial populations.
  • Large Sample Sizes: The sample sizes, n1n_1 and n2n_2, must be sufficiently large such that the sampling distribution of the difference in sample proportions can be approximated by a normal distribution. This is typically ensured if the following quantities are all greater than 5:
    • n1p^1n_1 \hat{p}_1
    • n1(1−p^1)n_1 (1 - \hat{p}_1)
    • n2p^2n_2 \hat{p}_2
    • n2(1−p^2)n_2 (1 - \hat{p}_2) In practice, when using the pooled proportion under the null hypothesis, the condition becomes n1p^≥5n_1\hat{p} \geq 5, n1(1−p^)≥5n_1(1-\hat{p}) \geq 5, n2p^≥5n_2\hat{p} \geq 5, and n2(1−p^)≥5n_2(1-\hat{p}) \geq 5 39.

3.3 Example: Heart disease rates in men versus women

Consider a scenario where a hospital's records indicate that 52 men out of a sample of 1000 were admitted due to heart disease, and 23 women out of a sample of 1000 were admitted for the same reason. The objective is to determine if there is sufficient evidence to suggest a higher rate of heart disease admission among men compared to women, using a significance level of α=0.05\alpha = 0.05 40.

The solution proceeds as follows:

  • Hypotheses:

    • Let p1p_1 be the proportion of men admitted for heart disease and p2p_2 be the proportion of women admitted for heart disease.
    • Null Hypothesis: H0:p1=p2H_0: p_1 = p_2 (or H0:p1−p2=0H_0: p_1 - p_2 = 0).
    • Alternative Hypothesis: Ha:p1>p2H_a: p_1 > p_2 (or Ha:p1−p2>0H_a: p_1 - p_2 > 0), since we are testing for a higher rate among men. This is a one-tailed test 41.
  • Calculations:

    • Sample proportions:
      • p^1=521000=0.052\hat{p}_1 = \frac{52}{1000} = 0.052
      • p^2=231000=0.023\hat{p}_2 = \frac{23}{1000} = 0.023
    • Pooled estimate of pp: p^=52+231000+1000=752000=0.0375\hat{p} = \frac{52 + 23}{1000 + 1000} = \frac{75}{2000} = 0.0375.
    • Test statistic zz: z=0.052−0.0230.0375(1−0.0375)(11000+11000)z = \frac{0.052 - 0.023}{\sqrt{0.0375(1-0.0375)\left(\frac{1}{1000} + \frac{1}{1000}\right)}} z=0.0290.0375(0.9625)(21000)=0.0290.0000721875z = \frac{0.029}{\sqrt{0.0375(0.9625)\left(\frac{2}{1000}\right)}} = \frac{0.029}{\sqrt{0.0000721875}} z=0.0290.008496≈3.413z = \frac{0.029}{0.008496} \approx 3.413 43.
  • Rejection Region:

    • For a one-tailed test with α=0.05\alpha = 0.05, the critical value zαz_{\alpha} is 1.645 42.
    • Reject H0H_0 if z>1.645z > 1.645.
  • Conclusion:

    • Since the calculated test statistic z≈3.413z \approx 3.413 is greater than the critical value 1.6451.645, the null hypothesis is rejected.
    • The data provide sufficient evidence to indicate that the percentage of men admitted to the hospital due to heart disease is higher than that of women 44.

3.4 Confidence interval for the difference between proportions

To quantify the magnitude of the difference, a confidence interval can be constructed. For instance, a 95% lower one-sided confidence bound can estimate the minimum likely increase in the proportion of men admitted for heart disease compared to women.

The formula for a confidence interval for (p1−p2)(p_1 - p_2) is: (p^1−p^2)±zα/2p^1(1−p^1)n1+p^2(1−p^2)n2(\hat{p}_1 - \hat{p}_2) \pm z_{\alpha/2} \sqrt{\frac{\hat{p}_1(1-\hat{p}_1)}{n_1} + \frac{\hat{p}_2(1-\hat{p}_2)}{n_2}} Note that for confidence intervals, the standard error is typically calculated using the individual sample proportions, not the pooled estimate.

Using the example data:

  • The difference in sample proportions is p^1−p^2=0.052−0.023=0.029\hat{p}_1 - \hat{p}_2 = 0.052 - 0.023 = 0.029.
  • For a 95% lower one-sided confidence bound, zα=1.645z_{\alpha} = 1.645.
  • The standard error for the confidence interval is: 0.052(1−0.052)1000+0.023(1−0.023)1000=0.0493041000+0.0224711000\sqrt{\frac{0.052(1-0.052)}{1000} + \frac{0.023(1-0.023)}{1000}} = \sqrt{\frac{0.049304}{1000} + \frac{0.022471}{1000}} =0.000049304+0.000022471=0.000071775≈0.008472= \sqrt{0.000049304 + 0.000022471} = \sqrt{0.000071775} \approx 0.008472
  • The lower bound is: (0.029−1.645×0.008472)≈0.029−0.01393≈0.015(0.029 - 1.645 \times 0.008472) \approx 0.029 - 0.01393 \approx 0.015 Thus, the 95% lower one-sided confidence bound for (p1−p2)(p_1 - p_2) is approximately 0.0150.015. This suggests that the proportion of men admitted for heart disease is at least 0.0150.015 (or 1.5 percentage points) higher than women.

Important: Confidence intervals are crucial for understanding not just if a difference exists, but also the practical significance and potential range of that difference 45.

Common mistakes to avoid

  • Review all topics thoroughly before exams
  • Pay attention to formulas and key definitions
  • Practice with examples provided in each section
  • Don't memorize without understanding the underlying concepts

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also