2023-11-10 13:39:13 +01:00
|
|
|
\chapter{Tests Reminders}
|
|
|
|
|
2023-11-10 15:16:12 +01:00
|
|
|
\section{\texorpdfstring{$\chi^2$}{chi2} test of independence}
|
2023-11-10 13:39:13 +01:00
|
|
|
|
|
|
|
|
2023-11-10 15:16:12 +01:00
|
|
|
\section{\texorpdfstring{$\chi^2$}{chi2} test of goodness of fit}
|
2023-11-10 13:39:13 +01:00
|
|
|
|
|
|
|
Check if the observations is in adequation with a particular distribution.
|
|
|
|
|
|
|
|
\begin{example}[Mendel experiments]
|
|
|
|
Let $AB$, $Ab$, $aB$, $ab$ be the four possible genotypes of peas: colors and grain shape.
|
2023-11-10 15:16:12 +01:00
|
|
|
\begin{tabular}{cccc}
|
2023-11-10 13:39:13 +01:00
|
|
|
\toprule
|
|
|
|
AB & Ab & aB & ab \\
|
|
|
|
\midrule
|
|
|
|
315 & 108 & 101 & 32 \\
|
|
|
|
\bottomrule
|
|
|
|
\end{tabular}
|
|
|
|
\end{example}
|
|
|
|
|
|
|
|
The test statistics is:
|
|
|
|
\[
|
2023-11-10 15:16:12 +01:00
|
|
|
D_{k,n} = \sum_{i=1}^{k} \frac{(N_i - np_i)^2}{np_i} \overunderset{\mathcal{L}}{H_0}{n \longrightarrow \infty} \chi^2_{(n-1)(q-1)??}
|
2023-11-10 13:39:13 +01:00
|
|
|
\]
|
|
|
|
|