Track 8 · Hypothesis Testing · Lesson 9 of 14

Comparing two proportions

Compare two independent proportions with the two-proportion z-test, estimate the difference with a confidence interval, and interpret an A/B test result in business terms.

35 minIntermediate7 graded exercisesMembers

An e-commerce team ran a 14-day experiment: 16 000 visitors were randomly shown the current checkout (A) or a redesigned one (B). B converted slightly better. Should the company roll it out? The two-proportion test is the workhorse of A/B testing — and this experiment shows why its interval matters more than its p-value.

Two independent groups, a yes/no outcome: the parameter is the difference of population proportions p1−p2p_1 - p_2. Under H0:p1=p2H_0: p_1 = p_2 both groups share one common proportion, so the test estimates it by pooling the groups.

Included with a Formula Quest membership

It has 7 graded exercises with feedback, hints and worked solutions. After it you will be able to:

  • Run a two-proportion z-test with the pooled null standard error
  • Estimate a difference in proportions with an unpooled (or Newcombe) confidence interval
  • Distinguish percentage points from relative change
  • Read an inconclusive A/B test from its interval rather than its p-value