Skip to main content
Back

Hypothesis Tests Comparing Two Populations: Means and Proportions

Study Guide - Smart Notes

Tailored notes based on your materials, expanded with key definitions, examples, and context.

Hypothesis Tests Comparing Two Populations

Comparing Two Population Means with Independent Samples (Known Population Standard Deviations)

When comparing the means of two independent populations, hypothesis testing helps determine if there is a statistically significant difference between the two means. This is commonly used in business statistics to compare groups such as federal vs. private sector salaries.

  • Null Hypothesis (H0): Assumes no difference between the population means.

  • Alternative Hypothesis (H1): Assumes a difference exists between the population means.

Null and alternative hypotheses for comparing two means

Standard Error of the Difference Between Two Means

The standard error measures the variability of the difference between two sample means:

Calculation of standard error for difference between means

Test Statistic (z-test)

The z-test statistic for comparing two means (when population standard deviations are known) is:

Calculation of z-test statistic for difference between means

Critical Values and Decision Rules

Critical z-scores are used to determine the rejection region for the hypothesis test. For a two-tailed test at α = 0.05, the critical value is ±1.96.

Critical z-scores table

Decision rules for hypothesis tests are summarized as follows:

Decision rules for hypothesis tests

Graphical Representation of the Test

The rejection regions for the null hypothesis are shown in the tails of the normal distribution curve:

Normal distribution with rejection regions

p-value Calculation and Interpretation

The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the observed value under the null hypothesis. For a two-tailed test:

p-value calculation for two-tailed testNormal curve showing p-value regions

Decision rule based on p-value:

Decision rule for p-value

Confidence Interval for the Difference Between Two Means

A confidence interval estimates the range in which the true difference between two population means lies with a certain level of confidence (e.g., 95%).

Formulas:

Confidence interval formulas for difference between meansExplanation of UCL and LCL

Example calculation:

Confidence interval calculation example

Comparing Two Population Means with Independent Samples (Unknown Population Standard Deviations)

When population standard deviations are unknown, the t-distribution is used. If variances are assumed equal, a pooled variance is calculated.

t-test Statistic and Pooled Variance

The t-test statistic is:

t-test statistic for equal variances

Pooled variance formula:

Pooled variance formula

Decision rules for t-tests:

Decision rules for t-tests

Critical t-scores are found using degrees of freedom (df = n1 + n2 – 2):

Critical t-scores table

Confidence Interval for the Difference Between Two Means (Unknown, Equal Variances)

Confidence interval for t-test, equal variances

Using Excel for Hypothesis Testing (Equal Variances)

Excel can be used to perform a two-sample t-test assuming equal variances:

  1. Enter data and select Data Analysist-Test: Two-Sample Assuming Equal Variances.

  2. Fill in the dialog box with the appropriate ranges and parameters.

Excel Data Analysis dialog boxExcel t-test output

t-test Statistic for Unequal Variances

If population variances are not assumed equal, use the following t-test statistic and degrees of freedom formula:

t-test statistic for unequal variances

Degrees of freedom:

Degrees of freedom formula for unequal variances

Hypothesis Testing with Dependent Samples (Matched Pairs)

Dependent samples occur when each observation in one sample is paired with an observation in the other sample. The matched-pair t-test is used to analyze the differences within pairs.

Example Data Table

Rockstar weekly sales data table

Calculating Matched-Pair Differences

The difference for each pair is:

Formula for matched-pair difference

Table of Differences

Table of matched-pair differences

Mean of the Matched-Pair Differences

Formula for mean of matched-pair differencesExplanation of mean of matched-pair differences

Summary Table: Key Formulas and Decision Rules

Test

Statistic

Decision Rule

Two Means, σ known

Compare to critical z-score

Two Means, σ unknown, equal

(pooled variance)

Compare to critical t-score

Two Means, σ unknown, unequal

(separate variances)

Compare to critical t-score (df by formula)

Matched Pairs

for differences

Compare to critical t-score (n-1 df)

Note: Always check assumptions (normality, independence, equal variances) before applying these tests.

Pearson Logo

Study Prep