Skip to main content
Back

Two-Sample Tests: Comparing Means and Variances in Business Statistics

Study Guide - Smart Notes

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

Two-Sample Tests

Introduction

Two-sample tests are essential statistical tools used to compare the means or variances of two populations. In business statistics, these tests help determine whether differences observed between groups (such as sales at two locations or prices at two stores) are statistically significant. This chapter covers hypothesis testing and confidence interval estimation for two population means and variances, using both independent and related samples.

Difference Between Two Means

Independent Samples

When comparing two population means using independent samples, the goal is to test hypotheses or construct confidence intervals for the difference between the means ().

  • Independent samples: Data from one population does not affect the other.

  • Point estimate for the difference:

  • Variance assumptions:

    • Unknown but assumed equal: Use pooled-variance t test.

    • Unknown and not assumed equal: Use separate-variance t test.

Hypothesis Tests for Two Population Means

Types of Tests

Depending on the research question, hypothesis tests can be lower-tail, upper-tail, or two-tail.

  • Lower-tail test: vs.

  • Upper-tail test: vs.

  • Two-tail test: vs.

Rejection regions are determined by the critical values of the t-distribution:

  • Lower-tail: Reject if

  • Upper-tail: Reject if

  • Two-tail: Reject if or

Pooled-Variance t Test

Assumptions

  • Samples are randomly and independently drawn.

  • Populations are normally distributed or both sample sizes are at least 30.

  • Population variances are unknown but assumed equal.

Formulas

  • Pooled variance:

  • Test statistic:

  • Degrees of freedom:

Confidence Interval for

  • Where is based on

Pooled-Variance t Test Example

Suppose you compare sales at two store locations:

  • Special Front: , ,

  • In-Aisle: , ,

Calculate pooled variance and test statistic:

  • Critical value for (two-tailed):

  • Decision: Since , reject ; there is evidence of a difference in means.

Excel Output and P-value

  • P-value = 0.0179 < 0.05, so is rejected.

  • Interpretation: The probability of observing such a difference by chance is 0.0179.

Summary Table

Result

Conclusions

Reject . Mean sales are different for the two locations.

P-value = 0.0179 < 0.05

Probability of observing such a difference is 0.0179.

is positive

Mean sales are higher for the special front location.

Evaluating the Normality Assumption

  • Pooled-variance t test assumes normality and equal variances.

  • Use box plots (e.g., in Excel) to visually check normality for each group.

Related Populations: The Paired Difference Test

Paired Samples

Used when samples are related (e.g., before/after measurements, matched pairs). This test eliminates variation among subjects by focusing on the difference within each pair.

  • Paired difference:

  • Point estimate for mean difference:

  • Sample standard deviation:

  • Assumptions: Differences are normally distributed, or use large samples.

Test Statistic for Paired Difference

  • Degrees of freedom:

Possible Hypotheses

  • Lower-tail: vs.

  • Upper-tail: vs.

  • Two-tail: vs.

Confidence Interval for Paired Difference

Paired Difference Test Example

A researcher compares the mean price of a market basket at Costco and Walmart for items:

Item

Costco

Walmart

Difference

Chicken Broth

5.98

5.88

0.10

Ice Cream

8.59

7.19

1.40

Dishwasher Detergent

9.00

17.00

-8.00

Laundry Detergent

11.00

12.00

-1.00

Paper Towels

1.47

27.00

-15.00

Toilet Paper

12.00

12.00

0.00

Facial Tissues

1.23

1.12

0.11

  • Critical value

  • Decision: Do not reject ; insufficient evidence of a difference in mean price.

The F Distribution

Comparing Variances

The F distribution is used to compare the variances of two populations. The F critical value is found from the F table, requiring two degrees of freedom: numerator and denominator.

  • Test statistic:

  • Degrees of freedom: ,

  • Numerator: Larger sample variance

  • Rejection region:

    • Two-tailed: Reject if

    • One-tailed: Reject if

Summary Table: Hypothesis Test Results

Result

Conclusions

Reject . Mean sales are different for the two locations.

P-value = 0.0179 < 0.05

Probability of observing such a difference is 0.0179.

is positive

Mean sales are higher for the special front location.

Do not reject . No evidence of a difference in mean price between Costco and Walmart.

P-value = 0.1980 > 0.05

No evidence exists that there is a difference in the mean price of equivalent items purchased at Costco and Walmart.

Key Takeaways

  • Use two-sample t tests to compare means from independent or related samples.

  • Check assumptions of normality and equal variances before applying pooled-variance t tests.

  • Use the F test to compare variances between two populations.

  • Excel can be used to perform these tests and visualize data distributions.

Pearson Logo

Study Prep