Most of the statistics taught in the early parts of a research methods course, like the t-test or ANOVA, need numerical data that behaves in a predictable way. But a huge amount of the data researchers actually collect isn’t numerical at all. It’s categorical: yes or no, urban or rural, hypertensive or non-hypertensive. The chi-square test is the tool built specifically for this kind of data, and once you understand how it works, you’ll start noticing it in public health reports, market research, and social science papers everywhere.

Table of Contents

What makes a test “non-parametric”?

Parametric tests, like the t-test, assume your data follows a certain distribution (usually a normal curve) and that you’re working with continuous numbers like height, income, or test scores. The chi-square test doesn’t need any of that. It’s classified as a nonparametric hypothesis test because it works directly with frequencies and counts rather than means and standard deviations, and it makes no assumption about how the underlying population is distributed.

This is exactly why chi-square is so useful for categorical variables. You can’t calculate an “average” religion, gender, or diagnosis. What you can do is count how many people fall into each category and compare that count to what you’d expect if there were no real pattern at all.

The chi-square statistic, explained simply

At its core, the chi-square (denoted χ²) statistic measures how far your observed data strays from what you’d expect purely by chance. If two categorical variables are genuinely unrelated, the numbers in each category should roughly match a predictable, proportional pattern. When the actual counts deviate sharply from that pattern, chi-square captures the size of that deviation as a single number.

A small χ² value means your observed data is close to what chance alone would produce, so there’s probably no real relationship. A large χ² value means the gap is too big to be a coincidence, suggesting a genuine association between the variables.

Breaking down the chi-square formula

The formula looks intimidating at first, but each piece has a simple job:

χ² = Σ [ (O − E)² / E ]

Here’s what each symbol means:

O is the observed frequency, the actual count you recorded in each category.

E is the expected frequency, the count you’d predict if the two variables had no relationship at all.

Σ (sigma) tells you to add up this calculation across every single category or cell in your table.

You square the difference between observed and expected so that negative and positive deviations don’t cancel each other out, then divide by the expected value to keep large categories from unfairly dominating the total. Add up this ratio across every cell, and you get your chi-square statistic.

A worked example: blood pressure across urban and rural India

Chi-square is used constantly in Indian public health research. Large-scale surveys like the ICMR-INDIAB study have documented meaningful differences in hypertension rates between urban and rural populations across Indian states, which makes this a natural real-world example of the test in action.

Imagine a researcher surveys 200 adults, 100 from urban areas and 100 from rural areas, and records whether each person is hypertensive or non-hypertensive. The results form a classic 2×2 contingency table:

Setting up the table

Urban, hypertensive: 40. Urban, non-hypertensive: 60.
Rural, hypertensive: 25. Rural, non-hypertensive: 75.
Column totals: 65 hypertensive, 135 non-hypertensive, out of 200 total subjects.

Calculating the expected frequencies

Before you can compute chi-square, you need to know what each cell would look like if location and blood pressure status were completely unrelated. The formula for this is:

E = (Row total × Column total) / Grand total

For urban, hypertensive: (100 × 65) / 200 = 32.5. Because the row and column totals are symmetric here, all four expected values in this example work out to either 32.5 or 67.5.

Plugging in the numbers

Applying the formula to each of the four cells:

Urban, hypertensive: (40 − 32.5)² / 32.5 = 1.73
Urban, non-hypertensive: (60 − 67.5)² / 67.5 = 0.83
Rural, hypertensive: (25 − 32.5)² / 32.5 = 1.73
Rural, non-hypertensive: (75 − 67.5)² / 67.5 = 0.83

Adding these four values gives a chi-square statistic of 5.12.

Degrees of freedom and the critical value

A chi-square value on its own doesn’t tell you anything until you compare it against a benchmark, and that benchmark depends on your degrees of freedom (df). For any contingency table, this is calculated as:

df = (number of rows − 1) × (number of columns − 1)

For a 2×2 table, this always comes out to (2−1) × (2−1) = 1, regardless of how large your sample is. Once you know the degrees of freedom, you look up the corresponding critical value in a chi-square distribution table at your chosen significance level, typically 0.05. At df = 1, that critical value is 3.84.

Interpreting the result

The decision rule is straightforward: if your calculated χ² value exceeds the critical value, you reject the null hypothesis (which states there is no association between the two variables). If it doesn’t, you fail to reject it.

In the blood pressure example, the calculated value of 5.12 is higher than the critical value of 3.84. This means the researcher would reject the null hypothesis and conclude there is a statistically significant association between where someone lives and whether they are hypertensive. This lines up with what large Indian public health surveys have consistently found, that hypertension prevalence differs meaningfully between urban and rural populations, even though the exact numbers vary by region and study.

It’s worth being careful here: a significant chi-square result tells you two variables are associated, not that one causes the other. Living in a city doesn’t directly cause high blood pressure; the association is likely explained by a mix of factors like diet, physical activity, stress, and access to healthcare that differ between urban and rural settings.

Assumptions and when not to use chi-square

Chi-square isn’t a universal tool for every dataset. A few conditions need to hold for the test to give reliable results:

Independence of observations: Each subject should be counted in only one cell, and one person’s response shouldn’t influence another’s.

Adequate sample size: Expected frequencies in each cell should generally be 5 or higher. When samples are small or cell counts are sparse, researchers often switch to Fisher’s exact test instead, since it’s built for smaller samples where the chi-square approximation becomes unreliable.

Categorical data only: The variables involved need to be nominal or ordinal, not continuous.

Ignoring these assumptions doesn’t just weaken your findings, it can produce a completely misleading p-value.

Why this test matters beyond the textbook

Once you start looking for it, chi-square shows up everywhere: testing whether a new teaching method changes pass rates across different student groups, checking whether smoking status is linked to a health outcome, or seeing if voting preference is independent of income bracket. The reason it’s one of the most widely used tests in fields like public health and social science is precisely because so much of the real world is measured in categories rather than clean numerical scales.

Learning to read a chi-square result also makes you a more critical consumer of research. When a news article or a report claims that two factors are “linked,” there’s a good chance a chi-square test (or something built on similar logic) is sitting behind that claim.

What do you think? If you were designing a survey on your own campus, what two categorical variables would you want to test for an association, and why do you think they might (or might not) be related?

How useful was this post?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

References
  1. https://www.scribbr.com/statistics/chi-square-tests/
  2. https://www.nature.com/articles/jhh201457
  3. https://libguides.library.kent.edu/spss/chisquare
  4. https://pmc.ncbi.nlm.nih.gov/articles/PMC13289999/
  5. https://www.graphpad.com/quickcalcs/contingency1/
  6. https://journals.lww.com/ijcf/fulltext/2024/10020/chi_square_test__a_parametric_or_nonparametric.1.aspx

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Research Methods

1 Fundamentals of Scientific Research

  1. Science and Common Sense
  2. The Scientific Method
  3. Laws
  4. Changing Perceptions of Science
  5. The Social Sciences
  6. Is Anthropology a Science?

2 Anthropology as a Science

  1. Is Anthropology a Science?
  2. Critiquing the Status of Anthropology as a Science
  3. Perspectives on Social Science
  4. Is Science what we think it is?
  5. Anthropology as a Science

3 History of Research in Anthropology

  1. Colonial Period
  2. Post-colonial Period
  3. Moving into the Sixties and Seventies
  4. Moving Ahead
  5. Diversification of Anthropological Research
  6. Applied and Action Research

4 Fieldwork Tradition in Anthropology

  1. Armchair Anthropologist and Data Collection
  2. Initiation of Fieldwork
  3. Relevance of Fieldwork in Anthropology
  4. Fieldwork in the Twenty First Century
  5. Ethics in Fieldwork

5 Research Design

  1. Essentials of Research Design
  2. Kinds of Research Design
  3. Steps to Prepare a Research Design
  4. Associated Aspects in Research Design
  5. Role of Digital Technology in Research Design

6 Methods and Methodology

  1. Methodology and Methods
  2. Qualitative and Quantitative Methods
  3. Laboratory and Field Methods
  4. Ethnographic Methods
  5. Emic and Etic Approaches
  6. New Ethnographic Methods

7 Tools and Techniques

  1. Primary and Secondary Sources
  2. Tools and Techniques
  3. Fieldwork Beyond Participant Observation
  4. Fieldwork Without Informants

8 Ethics in Research

  1. Theoretical Approach
  2. Informed Consent
  3. Anonymity and Confidentiality
  4. Deception
  5. Reporting and Feedback
  6. Ethical Guidelines
  7. Ethics Committees and Qualitative Research

9 Statistical Analysis

  1. Variables
  2. Classification of Statistics
  3. Measures of Central Tendency
  4. Measures of Dispersion
  5. Measures of Skewness and Kurtosis
  6. Correlation
  7. Regression
  8. T- Test
  9. Analysis of Variance (ANOVA)
  10. Chi- Square (±2)(±2) Test
  11. Microsoft Excel
  12. Statistical Package for Social Sciences (SPSS)

10 Analysis of Data

  1. Anthropology’s Analytical Montage
  2. Qualitative Analysis
  3. Interpretive and Performance Analysis
  4. Content Analysis and Grounded Theory
  5. Quantitative Analysis

11 Writing of the Research Report

  1. Writing Research Reports
  2. Cover Page/Title Page
  3. Content Page
  4. Preface
  5. Acknowledgements
  6. Introduction
  7. Literature Review
  8. Research Methodology
  9. Thematic Chapters
  10. Conclusion
  11. References and Bibliography
  12. Annexure
  13. Presenting Results through Visual Displays
  14. Using Photographs in Reports