You are on page 1of 5

Monday, March 21, 2022 6:22 PM

Chi-Square test ( 2test)

Contingency Table Analysis

• A contingency table is used to investigate whether two traits or characteristics are related.

Total ‫ﻏﯿﺮ ﻣﺪﺧﻦ‬ ‫ﻣﺪﺧﻦ‬ ‫ﺗﺪﺧﯿﻦ‬


‫ﺻﺤﺔ‬
400 380 20 ‫ﻣﻤﺘﺎﺯة‬
600 400 200 ‫ﺟﯿﺪة‬
500 20 480 ‫ﺿﻌﯿﻔﺔ‬
1500 800 700 Total
If

>

Degrees of Freedom = (number of rows -1)×(number of columns -1).


( − )
=

Where
f0 is the observed frequency
fe is the expected Frequency

Expected Frequency fe = (row total)(column total)/grand total

Example 1
Is there a relationship between the location of an accident and the gender
of the person involved in the accident?
A sample of 150 accidents reported to the police were classified by type
and gender. At the .05 level of significance, can we conclude that gender
and the location of the accident are related?

Place Work Home Other Total


Sex
Male 60 20 10 90
Female 20 30 10 60
Total 80 50 20 150
Place Wor Hom Othe Tota
Sex k e r l
Male 60 20 10 90
Femal 20 30 10 60
e
Total 80 50 20 150

You might also like