Comparing Two Independent Proportions Using the Z-Test: Improving the Statistical Quality of Our Studies

  • Domingo De-Pedro-Jiménez
  • Manuel Romero-Saldaña
Keywords: contingency tables, Z-test, statistical contrast

Abstract

In health sciences research, it is common to compare percentages or proportions between groups without using appropriate statistical techniques to validate whether the differences are significant. This simplistic approach relies on the visual comparison of values ​​in tables or graphs, ignoring sampling variability and confidence intervals. As a result, statistically or clinically relevant differences are erroneously assumed, leading to incorrect conclusions and affecting decision-making. This error is frequent in basic epidemiological studies or publications with low methodological rigor.

Let's look at two examples below. Remember that the p-value measures the probability of observing differences, assuming that no real difference exists (null hypothesis). If p < 0.05, we reject the null hypothesis. The 95% confidence interval (CI) shows the plausible range of the real difference; if it does not include 0, there is evidence of a difference.

References

1. Ortega Páez E, Ochoa Sangrador C, Molina Arias M. Comparación de proporciones. Pruebas de χ². Evid Pediatr. 2020;16:38. Disponible en: https://evidenciasenpediatria.es/articulo/7638/comparacion-de-proporciones-pruebas-de-2
2. Statkat. z test for the difference between two proportions. Disponible en: https://statkat.com/stat-tests/z-test-for-the-difference-between-two-proportions.php
3. MathCracker. Prueba Z para calculadora de dos proporciones. Disponible en: https://mathcracker.com/es/prueba-z-para-dos-proporciones
4. The jamovi project (2024). jamovi. (Version 2.6) [Computer Software]. Retrieved from https://www.jamovi.org.
5. de Pedro Jiménez D. Calculadora Excel para prueba Z de dos proporciones [software]. 2025. Basada en Evid Pediatr 2020;16:38, Statkat.com, MathCracker.com.
6. Santiago Pérez, M. I., Hervada Vidal, X., Naveira Barbeito, G., Silva, L. C., Fariñas, H., Vázquez, E., … Mújica, O. J. (2010). El programa Epidat. Revista Panamericana de Salud Pública, 27(1), 80–82. https://doi.org/10.1590/S1020-49892010000100012
7. Sullivan KM, Dean A, Soe MM. OpenEpi: A web-based epidemiologic and statistical calculator for public health. Public Health Reports. 2009. 124(3), 471–474. https://doi.org/10.1177/003335490912400320
Published
2026-03-31
Section
Continuing Education