Z-test Formula for Two Proportions:
From: | To: |
The z-test for two proportions is a statistical method used to determine whether two population proportions are significantly different from each other. It compares the observed difference between sample proportions to what would be expected if the null hypothesis (that the population proportions are equal) were true.
The calculator uses the following formula:
Where:
Explanation: The test statistic z measures how many standard deviations the observed difference in proportions is from the expected difference (which is 0 under the null hypothesis).
Details:
Tips:
Q1: When should I use this test?
A: Use when comparing proportions from two independent groups with large sample sizes (normal approximation is valid).
Q2: What's the difference between z-test and chi-square test?
A: For 2×2 tables, they're equivalent (z² = χ²). The z-test provides directionality (which proportion is larger).
Q3: What if my sample sizes are small?
A: Consider Fisher's exact test for small samples where np < 5 for any group.
Q4: How do I interpret a negative z-score?
A: A negative z-score indicates that the first proportion (p₁) is smaller than the second (p₂).
Q5: What assumptions does this test make?
A: Assumes independent samples, normal approximation to binomial distribution (valid when np > 5 and n(1-p) > 5 for both groups).