Contingency Table Analysis
A contingency table is used to investigate whether two traits or characteristics are related. Each observation is classified according to two criteria.
The degrees of freedom is equal to:
df = (# rows - 1)(# columns - 1).
The expected frequency is computed as:
Expected Frequency = (row total)(column total)/Grand Total