Understanding the Z Test Proportion Calculator
A z test for proportion checks whether a sample share supports a claimed population share. It also compares two independent sample shares. This calculator gives the z score, standard error, p value, confidence interval, and decision. It is useful when outcomes are binary. Examples include pass or fail, yes or no, defect or no defect.
When to Use It
Use a one sample test when you have one count and one claimed proportion. Use a two sample test when you compare two groups. The groups should be independent. Each sample should be large enough for a normal approximation. A common check is at least five expected successes and failures.
Why the Inputs Matter
The success count defines the observed sample proportion. The sample size controls precision. A larger sample gives a smaller standard error. The hypothesized proportion or null difference defines the value being tested. The alternative hypothesis controls the tail of the p value. The alpha value sets the rejection rule.
Reading the Results
The z score shows how far the observed result is from the null value. It is measured in standard errors. A large positive value supports a greater alternative. A large negative value supports a less alternative. The p value shows how unusual the result is if the null claim is true. If the p value is less than alpha, reject the null hypothesis.
Confidence Interval Notes
The confidence interval estimates a reasonable range for the true proportion or difference. It uses the unpooled standard error. The test for two proportions uses a pooled standard error under the null. This is standard because the null assumes equal proportions when the null difference is zero.
Practical Advice
Check your data before trusting the result. Counts must be whole numbers. Counts cannot exceed sample sizes. Avoid using this test for very small samples. Consider exact methods when expected counts are low. Use continuity correction only when you want a conservative adjustment for discrete counts.
For reporting, include the test type, alternative, z score, p value, confidence level, and final decision. Keep the original counts in your notes. Percentages alone hide the sample size and can make weak evidence look stronger than expected.