>

>

Chi-square tests explained for beginners

Chi-square tests explained for beginners

Princeton Journal of Pre-Collegiate Research

High school student analyzing categorical data with a chi-square test on paper and laptop

Chi-square tests explained for beginners: a guide for high school researchers

Chi-square tests explained for beginners: this post answers what a chi-square test is, when to use it, and how to interpret its results. It is written for high school students who have collected categorical data and need to determine whether a relationship between variables is statistically meaningful. After reading, you will be able to identify the correct version of the chi-square test for your research question, calculate the test statistic, and report your findings accurately. Students whose research is ready for peer review may submit it to the Princeton Journal of Pre-Collegiate Research.

What is a chi-square test and why does it matter in student research?

The chi-square test is one of the most widely misapplied statistical tools in high school research. Students frequently use it on the wrong type of data or misread its output, which leads to conclusions that reviewers cannot accept. Understanding the test correctly is not optional; it is the difference between a publishable result and a rejected one.

Chi-square tests explained for beginners start with a single principle: the test measures whether what you observed in your data differs meaningfully from what you would expect if no relationship existed. It applies exclusively to categorical data, meaning data that falls into named groups rather than numerical measurements. Survey responses, biological classifications, and yes-or-no outcomes are all categorical. Height, temperature, and test scores are not.

The distinction matters because applying a chi-square test to numerical data produces a result that is statistically meaningless, regardless of how the numbers look. Reviewers at academic journals identify this error immediately. If your data consists of counts in categories, the chi-square test is appropriate. If your data consists of measured quantities, a different test is required.

How does a chi-square test work, step by step?

A chi-square test compares observed frequencies in a dataset to expected frequencies calculated under the assumption that no relationship exists between variables. The result is a single number, the chi-square statistic, which is then compared to a critical value determined by degrees of freedom and a chosen significance level, typically 0.05. If the statistic exceeds the critical value, the result is statistically significant.

There are two versions of the test used in student research. The chi-square goodness-of-fit test asks whether a single categorical variable follows an expected distribution. For example: do survey respondents prefer three product colours in equal proportions? The chi-square test of independence asks whether two categorical variables are related. For example: is there a relationship between a student's grade level and their preferred study method?

The calculation follows four steps regardless of which version you use.

  1. Build a frequency table. Record the observed count for each category or each combination of categories. For a test of independence, this produces a contingency table with rows representing one variable and columns representing the other.

  2. Calculate expected frequencies. For each cell in the table, the expected frequency equals the row total multiplied by the column total, divided by the overall total. Every expected frequency must be at least 5. If any expected frequency falls below 5, the chi-square test is not valid for that dataset.

  3. Compute the chi-square statistic. For each cell, subtract the expected frequency from the observed frequency, square the result, and divide by the expected frequency. Sum all of these values. The formula is: X² = sum of [(observed minus expected)² divided by expected].

  4. Determine degrees of freedom and find the p-value. For a goodness-of-fit test, degrees of freedom equal the number of categories minus one. For a test of independence, degrees of freedom equal the number of rows minus one, multiplied by the number of columns minus one. Use a chi-square distribution table or statistical software to find the p-value associated with your statistic and degrees of freedom.

A p-value below 0.05 indicates that the observed pattern is unlikely to have occurred by chance alone, assuming no real relationship exists. This is the standard threshold used in most published research, as established by conventional practice in inferential statistics. For guidance on interpreting p-values in the context of high school research, see what a p-value means for high school researchers.

What are the most common mistakes students make when using chi-square tests?

The four mistakes below account for the majority of statistical errors in student papers that include chi-square analysis. Each one is correctable before submission.

The first mistake is using the chi-square test on numerical data. Students who measure reaction times, temperatures, or scores and then group them into ranges sometimes treat those ranges as categories. The chi-square test does not apply here because the original data is continuous. The grouping is artificial, and a t-test or ANOVA is more appropriate depending on the design.

The second mistake is ignoring the minimum expected frequency requirement. The chi-square test assumes that each expected cell frequency is at least 5. When sample sizes are small or categories are numerous, many cells fall below this threshold. The consequence is a chi-square statistic that is unreliable. The fix is to either increase the sample size or combine categories before running the test.

The third mistake is confusing statistical significance with practical importance. A statistically significant chi-square result means the pattern is unlikely to be random. It does not mean the relationship is large or meaningful in the real world. Students should report effect size using Cramer's V alongside the chi-square statistic. Cramer's V ranges from 0 to 1, with values above 0.3 generally considered a moderate effect in social science research.

The fourth mistake is reporting only the p-value without the chi-square statistic, degrees of freedom, and sample size. Academic journals require the full reporting format: X²(df) = value, p = value, N = sample size. Omitting any of these makes the result impossible to evaluate independently.

How to apply a chi-square test to your research, step by step

The following sequence applies to a student who has collected survey or observational data and wants to test whether two categorical variables are related.

  1. Confirm your variables are categorical. Each variable must sort participants into named groups with no inherent numerical value between them.

  2. Record observed frequencies in a contingency table. Rows represent one variable; columns represent the other. Every participant appears in exactly one cell.

  3. Calculate expected frequencies for each cell using the formula: (row total x column total) / grand total. Verify that no expected frequency is below 5.

  4. Compute the chi-square statistic using the formula in Section 3. Statistical software such as R, Python, SPSS, or even a graphing calculator can perform this calculation directly.

  5. Identify degrees of freedom: (rows minus 1) x (columns minus 1). Look up or compute the p-value.

  6. Calculate Cramer's V to report effect size. The formula is: V = square root of [X² divided by (N x (minimum of rows or columns minus 1))].

  7. Report all values in your results section: X²(df) = statistic, p = value, V = effect size, N = sample size.

Students pursuing original research in the social sciences, psychology, biology, or any discipline involving categorical survey or observational data should review the research topic guidance for beginners to identify a question that fits this methodology. Once the analysis is complete and the paper is written, review the submission guidelines to prepare your manuscript for peer review.

The Princeton Journal of Pre-Collegiate Research publishes original research across all academic disciplines, including work that uses chi-square analysis. If your paper is ready for peer review, review the submission guidelines at princeton-jpcr.org/submit.

Frequently asked questions about chi-square tests

What is a chi-square test in simple terms?

A chi-square test is a statistical method that determines whether the distribution of categorical data differs from what would be expected by chance. It produces a test statistic and a p-value. If the p-value is below 0.05, the result is considered statistically significant, meaning the observed pattern is unlikely to be random. The test applies only to data sorted into named categories, not to numerical measurements.

How long does it take to run a chi-square test for a research paper?

The calculation itself takes minutes using statistical software. The more time-consuming steps are collecting a sufficient sample size, typically at least 30 to 50 participants to ensure expected cell frequencies meet the minimum threshold, and interpreting the result accurately. For context, students submitting to peer-reviewed journals should expect a standard review timeline of 2 to 3 months. A fast-track option is available for students who need a quicker turnaround.

Do I need university lab access to use a chi-square test in my research?

No university lab access is required. The chi-square test can be performed using freely available tools including R (a free statistical programming language), Google Sheets, or a standard graphing calculator. The data collection itself, typically surveys or structured observations, does not require laboratory equipment. This makes chi-square analysis one of the most accessible statistical methods for independent high school researchers.

What makes a chi-square analysis publishable in a student research paper?

A publishable chi-square analysis includes four elements: a clearly stated null hypothesis, a contingency table with verified expected frequencies above 5, full reporting of the statistic in the format X²(df) = value, p = value, N = sample size, and an effect size measure such as Cramer's V. Papers that report only a p-value without these supporting details do not meet the reporting standards of peer-reviewed journals. Reviewers assess whether the methodology matches the research question, not simply whether the result is significant.

What kinds of research using chi-square tests does PJPCR publish?

PJPCR publishes original student research across the sciences, social sciences, humanities, and interdisciplinary fields. Chi-square analysis appears in published work examining survey-based social science questions, biological classification studies, public health observational research, and psychology experiments involving categorical outcomes. Submissions are evaluated through a rigorous peer review process. To see examples of published student research, browse published issues on the journal website.

What every beginner should take away from chi-square tests

Three principles determine whether a chi-square analysis strengthens or undermines a research paper. First, the test is valid only for categorical data; applying it to numerical measurements produces an uninterpretable result. Second, every expected cell frequency must reach at least 5 before the test is run; small samples or over-divided categories violate this requirement and invalidate the output. Third, statistical significance and practical significance are not the same thing; reporting Cramer's V alongside the chi-square statistic gives reviewers the full picture.

Students who apply these principles correctly produce results that are both defensible under peer review and genuinely informative. The methodology is accessible, the tools are free, and the analytical standard is well-established. If your research uses chi-square analysis and is ready for independent evaluation, submit it to PJPCR at princeton-jpcr.org/submit.

Read More

A high school student writing a grant proposal at a desk with research notes and a laptop

How to write a grant proposal as a student

By

Princeton Journal of Pre-Collegiate Research

Read more

High school student conducting original research using free online tools and open-access datasets at a library desk

Free resources that replace research funding

By

Princeton Journal of Pre-Collegiate Research

Read more

Corporate and nonprofit programs that fund student research

Corporate and nonprofit programs that fund student research

By

Princeton Journal of Pre-Collegiate Research

Read more

High school student reviewing science fair grant application materials at a desk with laboratory equipment nearby

Science fair grants and material stipends explained

By

Princeton Journal of Pre-Collegiate Research

Read more

High school student reviewing a crowdfunding campaign page on a laptop for an independent research project

Crowdfunding a student research project: does it work

By

Princeton Journal of Pre-Collegiate Research

Read more

High school student working on a research project at a desk with notebooks, a laptop, and printed academic papers

How much does a research project actually cost

By

Princeton Journal of Pre-Collegiate Research

Read more

High school student presenting a research funding proposal to a school administrator at a desk

How to ask your school to fund your project

By

Princeton Journal of Pre-Collegiate Research

Read more

High school student reviewing grant application documents at a library desk with research notes and a laptop

Grants for high school research projects: what exists

By

Princeton Journal of Pre-Collegiate Research

Read more

High school students gathered around a table reviewing research papers and data in a school library setting

How to start a research club at your school

By

Princeton Journal of Pre-Collegiate Research

Read more

High school students presenting research posters at a school research symposium with judges and peers in attendance

How to organize a school research symposium

By

Princeton Journal of Pre-Collegiate Research

Read more

High school students collaborating on a research project in a school club setting, reviewing data and academic papers together

Turning a school club into a research pipeline

By

Princeton Journal of Pre-Collegiate Research

Read more

High school students collaborating around a table reviewing printed research papers for a student-run academic journal

How to start a student research journal at your school

By

Princeton Journal of Pre-Collegiate Research

Read more

High school student meeting with a faculty member to discuss sponsoring a research club

How to find a faculty sponsor for a research club

By

Princeton Journal of Pre-Collegiate Research

Read more

High school student presenting an independent study research proposal to a teacher advisor in a school office

How to propose an independent study for research credit

By

Princeton Journal of Pre-Collegiate Research

Read more

High school students seated around a table reviewing printed research papers during a peer-review workshop in a classroom setting

Running a peer-review workshop at your school

By

Princeton Journal of Pre-Collegiate Research

Read more

High school student presenting a research funding proposal to a school administrator at a desk with documents and a laptop

How to get school funding for student research

By

Princeton Journal of Pre-Collegiate Research

Read more

A group of high school students collaborating on a research project around a table with laptops and printed papers

How to do research as a team of students

By

Princeton Journal of Pre-Collegiate Research

Read more

High school students collaborating around a table, dividing tasks for a group research project with notes and laptops

Dividing work fairly in a group research project

By

Princeton Journal of Pre-Collegiate Research

Read more

Two high school students collaborating on a research paper at a library table, with one student working independently at a separate desk in the background

Group research vs solo research: pros and cons

By

Princeton Journal of Pre-Collegiate Research

Read more

High school students collaborating on a research project, discussing data and resolving disagreements at a table with notebooks and a laptop

Resolving disagreements in group research

By

Princeton Journal of Pre-Collegiate Research

Read more

Two high school students reviewing a research paper together at a desk, one looking disengaged while the other continues writing notes

What to do when a co-author stops contributing

By

Princeton Journal of Pre-Collegiate Research

Read more

Princeton, New Jersey, United States
Published and Managed by The Princeton Journal of Precollegiate Scholarship Inc.
ISSN: 3143-8423
DOI: 10.67698

Copyright © Princeton Journal of Pre-Collegiate Research. All rights reserved

PJPCR is independently operated and is not affiliated with Princeton University or any of its colleges, departments or programs.

Princeton, New Jersey, United States
Published and Managed by The Princeton Journal of Precollegiate Scholarship Inc.
ISSN: 3143-8423
DOI: 10.67698

Copyright © Princeton Journal of Pre-Collegiate Research. All rights reserved

PJPCR is independently operated and is not affiliated with Princeton University or any of its colleges, departments or programs.

Princeton, New Jersey, United States
Published and Managed by The Princeton Journal of Precollegiate Scholarship Inc.
ISSN: 3143-8423
DOI: 10.67698

Copyright © Princeton Journal of Pre-Collegiate Research. All rights reserved

PJPCR is independently operated and is not affiliated with Princeton University or any of its colleges, departments or programs.