<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikimd.org/index.php?action=history&amp;feed=atom&amp;title=Pearson%27s_chi-squared_test</id>
	<title>Pearson&#039;s chi-squared test - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikimd.org/index.php?action=history&amp;feed=atom&amp;title=Pearson%27s_chi-squared_test"/>
	<link rel="alternate" type="text/html" href="https://wikimd.org/index.php?title=Pearson%27s_chi-squared_test&amp;action=history"/>
	<updated>2026-04-26T05:41:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wikimd.org/index.php?title=Pearson%27s_chi-squared_test&amp;diff=6301706&amp;oldid=prev</id>
		<title>Prab: CSV import</title>
		<link rel="alternate" type="text/html" href="https://wikimd.org/index.php?title=Pearson%27s_chi-squared_test&amp;diff=6301706&amp;oldid=prev"/>
		<updated>2025-02-16T21:58:41Z</updated>

		<summary type="html">&lt;p&gt;CSV import&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:58, 16 February 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l41&quot;&gt;Line 41:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Statistics-stub}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Statistics-stub}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;gallery&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;File:Chi-square_distributionCDF-English.png|Cumulative distribution function of the chi-square distribution&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/gallery&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Prab</name></author>
	</entry>
	<entry>
		<id>https://wikimd.org/index.php?title=Pearson%27s_chi-squared_test&amp;diff=5434008&amp;oldid=prev</id>
		<title>Prab: CSV import</title>
		<link rel="alternate" type="text/html" href="https://wikimd.org/index.php?title=Pearson%27s_chi-squared_test&amp;diff=5434008&amp;oldid=prev"/>
		<updated>2024-03-22T00:34:52Z</updated>

		<summary type="html">&lt;p&gt;CSV import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Pearson&amp;#039;s chi-squared test&amp;#039;&amp;#039;&amp;#039; ([[Chi-squared test]]), also known as the &amp;#039;&amp;#039;&amp;#039;chi-square goodness-of-fit test&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;chi-square test for independence&amp;#039;&amp;#039;&amp;#039;, is a statistical hypothesis test used to determine whether there is a significant difference between the expected frequencies and the observed frequencies in one or more categories of a contingency table. In the field of [[statistics]], it is one of the most common tests for analyzing categorical data.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
The test is applicable in situations where the data can be categorized into a contingency table, and the sample size is sufficiently large. The chi-squared test provides a method to gauge the discrepancy between observed and expected frequencies under the null hypothesis that no difference exists. It was developed by [[Karl Pearson]] in the early 20th century, hence the name.&lt;br /&gt;
&lt;br /&gt;
==Assumptions==&lt;br /&gt;
Before applying Pearson&amp;#039;s chi-squared test, certain assumptions must be met:&lt;br /&gt;
* Observations are independently drawn from the population.&lt;br /&gt;
* The sample size is large enough. As a rule of thumb, all expected counts should be at least 5.&lt;br /&gt;
* The data are categorical rather than numerical.&lt;br /&gt;
&lt;br /&gt;
==Calculation==&lt;br /&gt;
The test statistic is calculated as:&lt;br /&gt;
\[ \chi^2 = \sum \frac{(O_i - E_i)^2}{E_i} \]&lt;br /&gt;
where \(O_i\) is the observed frequency for category \(i\), \(E_i\) is the expected frequency for category \(i\), and the summation is over all categories.&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Pearson&amp;#039;s chi-squared test is widely used in two major scenarios:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Goodness-of-fit test&amp;#039;&amp;#039;&amp;#039;: To determine how well an observed distribution fits with an expected distribution.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Test of independence&amp;#039;&amp;#039;&amp;#039;: To determine if there is a significant association between two categorical variables.&lt;br /&gt;
&lt;br /&gt;
==Limitations==&lt;br /&gt;
While widely used, the test has limitations:&lt;br /&gt;
* It is not suitable for small sample sizes.&lt;br /&gt;
* It can only be used on categorical data.&lt;br /&gt;
* The test is sensitive to the sample size, meaning that with very large samples, even trivial differences can appear statistically significant.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
An example of a goodness-of-fit test would be comparing the observed color distribution of M&amp;amp;Ms to the expected distribution claimed by the manufacturer. For a test of independence, one might analyze data from a survey to see if there is an association between gender and preference for a particular type of music.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[Fisher&amp;#039;s exact test]]&lt;br /&gt;
* [[Likelihood-ratio test]]&lt;br /&gt;
* [[Yates&amp;#039;s correction for continuity]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Statistical tests]]&lt;br /&gt;
[[Category:Nonparametric statistics]]&lt;br /&gt;
&lt;br /&gt;
{{Statistics-stub}}&lt;/div&gt;</summary>
		<author><name>Prab</name></author>
	</entry>
</feed>