Related Experiment Video
Updated: May 6, 2026

Online Explorative Study on the Learning Uses of Virtual Reality Among Early Adopters
Published on: November 22, 2019
[Clinical research XVII. χ(2) test, from the expected to the observed]
Rodolfo Rivas-Ruiz1, Osvaldo D Castelán-Martínez, Marcela Pérez
1Centro de Adiestramiento en Investigación Clínica, Coordinación de Investigación en Salud, Centro Médico Nacional Siglo XXI, Instituto Mexicano del Seguro Social, Distrito Federal, México, Mexico. rivasrodolfo@gmail.com.
Abstract:
When you want to show if there is a statistical association or differences between categorical variables, it is recommended to use the χ(2) test. This nonparametric test is one of the most used in clinical research; it contrasts nominal or ordinal qualitative variables that are observed in clinical practice. This test calculates the p value that determines whether differences between groups are real or due to chance. The χ(2) test is the basis of other tests to analyze qualitative ordinal variables as χ(2) for linear trend, which compares three groups with two outcomes or McNemar test, which contrasts two related samples (a before and afterward comparison) or Mantel-Haenszel χ(2), which controls for potential confounding variables. When using small samples, where the expected results are less than 5, Fisher's exact test should be used. These tests are the most widely used in the medical literature; however, they do not give us the magnitude or the direction of the event and a proper interpretation that requires clinical judgment is needed.
Related Concept Videos
Chi-square Analysis
The chi-square test was developed by Pearson in 1990.
The first step of performing a Chi-square analysis is to establish a null hypothesis, which assumes that there is no real...
Introduction to Test of Independence
The test statistic for a test of independence is similar to that of a goodness-of-fit test:
Determination of Expected Frequency
Expected Frequencies in Goodness-of-Fit Tests
Test for Homogeneity
Chi-square Distribution

