What would you like to understand?

Popular destinationsCalculatorsCoursesPracticeFormulas

Unlock Premium Help

Explore every tutor and study workspace for seven days, with no daily AI cap during the trial.

Choose a billing period
Ask a parent to pay

Nothing is charged during the first seven days. Unless you cancel, the plan you selected begins when the trial ends and renews on its stated schedule. Manage cancellation from your plan page. Stripe handles the payment details.

Two-proportion z statistic formula: what it means and how to use it

Test whether two independent population proportions differ. This inference relationship belongs to statistics. Read the symbols against the problem, confirm the required conditions, and estimate the scale before calculating.

\[z=\frac{(\hat p_1-\hat p_2)-0}{\sqrt{\hat p(1-\hat p)(1/n_1+1/n_2)}}\]

Define the population, event, or assumptions first

It assumes two independent samples with enough expected successes and failures in each group under the pooled rate. It does not apply when the same people are measured under both conditions, where the pairing carries the information and McNemar's test is the correct procedure.

What each quantity represents in Two-proportion z statistic

Name the experiment or data-generating process, distinguish sample information from population parameters, and state the event or estimate in words. Rebuild missing background in the statistics subject guide, then use statistics practice to retrieve the relationship without being told its name.

Interpret a complete Two-proportion z statistic calculation

The numerical line is only the middle of the answer; connect it back to the event, data, or uncertainty:

\[Pool successes across both groups only for the null-test standard error.\]

Compute without losing the statistical question

  1. Name the unknown, and the unit the answer has to come out in.
  2. Match the symbols to your values. $\hat p$ is the pooled success proportion under the equal-proportions null.
  3. Check the conditions before substituting. Samples must be independent and expected success and failure counts sufficiently large.
  4. Substitute, keep exact values to the last line, then test the sign, size, and unit against a rough estimate - The check that catches most statistics slips.

Check the range, direction, and interpretation

After using Two-proportion z statistic, repeat the calculation with units attached and test the result against a boundary case or a quick numerical estimate.

An inference this formula does not justify

What goes wrong: Using each group's own sample proportion inside the standard error for a hypothesis test.

Why it fails: That is the formula for a confidence interval, where no common rate is assumed. In a test the null supplies extra information, and ignoring it produces the wrong standard error and the wrong p-value.

Repair: Pool the successes and the trials across both groups first, then use that single proportion in both places inside the square root.

Questions about interpreting Two-proportion z statistic

Why pool for the test but not for the interval?

Because the test assumes the two rates are equal and the interval does not. Under the null there is one common rate worth estimating from all the data; when estimating a difference, each group speaks for itself.

How many successes are enough?

The usual guideline is at least ten successes and ten failures in each group. Below that, the normal shape is a poor stand-in for the discrete counts and an exact method is safer.

Is this equivalent to a chi-square test on a two-by-two table?

Yes, for a two-sided test. With 30 of 100 against 45 of 100, the statistic is about -2.191 and its square is 4.80, matching the chi-square value of 4.80 exactly.

What does the zero in the numerator represent?

It is the difference claimed by the null hypothesis, namely no difference at all. If you were testing a specific nonzero gap, you would subtract that value instead and stop pooling.

Make it yours

Change one input, predict whether the output should rise, fall, or stay fixed, and only then recalculate.