Nepedia
Back to Discover
Fluent Reader
🔢

Chi-squared test

math Maturity 11-13 Next article →

Imagine you are looking at a large group of people. You want to know if where they live affects their jobs. You might expect that people in different neighborhoods have similar types of work. To find out, you collect data and put it into a table. This table shows how many people have certain jobs in each area.

Chi-square distributionCDF-English
Chi-square distributionCDF-English

The chi-squared test is a way to check your guess. It helps you decide if the patterns you see are real or just luck. This math is very useful when you have many different categories to count. It is a special tool used to study how things relate to each other.

To use this test, you first need two sets of numbers. The first set is called the observed frequencies. These are the actual counts you found when you did your study. The second set is called the expected frequencies. These are the counts you would expect to see if there was no connection between the groups.

Chi-square distributionCDF-English
Chi-square distributionCDF-English

You compare these two sets of numbers to find the difference. You look at how much the real numbers stray from the expected numbers. If the difference is very large, it suggests a real pattern exists. The test uses a specific math rule to turn these differences into one number. This number is called the test statistic.

This method was created by a mathematician named Karl Pearson. In the 19th century, most scientists assumed data followed a very smooth, normal pattern. However, Pearson noticed that biological data was often skewed or uneven.

Chi-square distributionCDF-English
Chi-square distributionCDF-English

He published a famous paper in 1900 about this new test. This paper became a foundation for modern statistics. Pearson also created the Pearson distribution to model many different types of data. His work helped scientists understand data that did not fit the old rules. For a while, his ideas caused some debate among other mathematicians.

There are many ways to use these types of tests today. Some researchers use a version called Fisher's exact test. This is better when the groups you are counting are very small.

Chi-square distributionCDF-English
Chi-square distributionCDF-English

Another person, Frank Yates, suggested a way to make the test more accurate. He created a correction to reduce errors in the math. In biology, scientists use these tests to study genes and mutations. In the world of secrets, people use them in cryptanalysis. This helps them compare plain text to secret coded messages. They can tell if a code has been broken successfully.

Even though this test is helpful, it has some limits. It works best when the groups are large and independent. If the groups are too small, the results might not be right.

Chi-square distributionCDF-English
Chi-square distributionCDF-English

The test also tells you if a relationship exists, but not how strong it is. You might need other tools, like Cramér's V, to see the strength. It is also important to remember that large groups can make tiny differences look important. Scientists must be careful when they look at their results. Using the right test ensures that the discoveries are truly meaningful.

507 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Chi-square distributionCDF-English.png
Chi-square distributionCDF-English.png
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.