Expected frequency (E) of each cell under the assumption of independence. Computed as the product of the corresponding row total and column total divided by the grand total.
Observed cell frequency (O) minus the expected cell frequency (E).