the
global variance
the inter class
variance
or variance of the means.
the
intra class
variance or the mean of the variances
The F Test is :
After
we
use tables of Fisher Snedecor to read the Theoretical F value at the
row (n-k)
and the column (k-1).
If Fcalc > F then the “null hypothesis” is rejected or in other words the two variables are dependant with a risk ratio to made a mistake. There is several tables for each risk ratio.
where
:
n
= number of possible
different observations
(elementary events or classes)
Xi
= observed number of event i
Ei
= (theoretical) expected number
of event i.
Depending
on the value of Chi2
one can accept or reject the hypothesis
that
the theoretical model fits the data well. Tables for the critical
values depending
on a level of significance and the number of degrees of freedom (n-1)
for the model can be found in any book about likelihood methods.
We
use the
Chi-2 to test if two qualitative variables are dependant or not. The
“null
hypothesis” or the variables are independent if the
contingency
table is
equi-distributed.
For
instance for this contingency array:
x | y | total | |
a | 4 | 1 | 5 |
b | 2 | 11 | 13 |
Total | 6 | 12 | 18 |
The
equi-distributed array is :
x | y | total | |
a | 2 | 3 | 5 |
b | 4 | 9 | 13 |
Total | 6 | 12 | 18 |
Each cell Y(i,j) of this array with M rows and N columns is calculated from the contingency array X(i,j) with the formula :
The chi2 is calculated as :