Professional Documents
Culture Documents
Independence
The
TheChi-square
Chi-squarestatistic
statisticisiscalculated
calculatedfrom
fromthe
thedifference
difference
between
betweenthe
theobserved
observedandandexpected
expectedfrequencies
frequenciesinineach
eachcell
cellofof
.a.abi-variate
bi-variatetable
table
The
TheChi-square
Chi-squaredistribution
distributionisisthe
theprobability
probabilitydistribution
distributionofof
the
theChi-square
Chi-squarestatistic
statisticfor
foran
aninfinite
infinitenumber
numberofofrandom
random
samples
samplesofofthe
thesame
samesize
sizedrawn
drawnfrom
frompopulations
populationswhere
wherethe
the
.two
.twovariables
variablesare
areindependent
independentforforeach
eachother
other
2 Fo Fe 2
Fe
The Chi-square Distribution
Rt. Skewness
Long single tail
Always positive
Squared value
To
Tocalculate
calculatethe
theexpected
expectedfrequency
frequencyfor
for
each
eachcell
cellmultiply
multiplythe
thecolumn
columntotal
totalby
by
the
therow
rowtotal
totaland
anddivide
dividethe
theproduct
productbyby
the
thegrand
grandtotal
total
Observed and expected differences
Income Place of
residence
Total High Low
2 Fo Fe 2
Fe
Calculation of 2
Income Place of
residence
Total High Low
397 Urban
2= (230- 2= (167- 205.1)2/
191.9)2/191.9= 7.6 205.1 =7.1
720 Total
Fo F
348 372 2
2 e
12/07/21 Fe
Dr Tarek Amin 15
.Calculation of the Chi-square
2
Fo32.7
Fe
2
= 8.7+9.3+7.1+7.6 =
Fe
Refer
Refertototable
tablethe
thecritical
criticalvalues
valuesof
of
Chi-square
Chi-squareafter
aftercalculating
calculatingthe
the
degree
degreeof offreedom
freedom
df
df=(r-1)(c-1)
=(r-1)(c-1)=1
=1
r=
r=number
numberof ofrows
rows
c=
c=number
numberof ofcolumns
columns
χ2critical= 3.841
)alpha= 0.05 and df=1(
103 67 36 Yes
26 25 1 No
129 92 37 Total
Can we conclude that there is a relationship between multi-resistant
?Enterobacter status and the previous intake of antibiotics
The Chi-square goodness-of-fit test
fo fe
calculated using the Chi- 2
.square statistic
2
fe
Rate of crime over seasons
Total Autumn Winter Spring Summer
5- 55- 15 45 Residual
The
Theexpected
expectedfrequency
frequencyobtained
obtainedby
by
the
thetotal
totalnumber
number/number
/numberof ofcategories=
categories=1020/4=255
1020/4=255
The
Theresidual
residualisisthe
thedifference
differencebetween
betweenthe
theexpected
expected
.and
.andthetheobserved
observeddifference
difference
Applying to the formula
2
fo fe 2
fe
2
/255)250-255(+ 2/255)200-255(+2/255)270-255(+ 2/255)300-255( =
20.78 =
Level of Significance df
0.001 0.01 0.05 0.10 0.20 0.30 0.50 0.70 0.90 0.99
10.827 6.635 3.841 2.706 1.642 1.074 0.455 0.148 0.0158 0.00016 1
13.815 9.210 5.991 4.605 3.219 2.408 1.386 0.713 0.211 0.0201 2
16.268 11.341 7.815 6.251 4.642 3.665 2.366 1.424 0.584 0.115 3
18.465 13.277 9.488 7.779 5.989 4.878 3.357 2.195 1.064 0.297 4
20.517 15.086 11.070 9.236 7.289 6.064 4.351 3.000 1.610 0.554 5
.
.
59.703 50.892 43.773 40.256 36.250 33.530 29.336 25.508 20.599 14.953 30
χ2
2 ==7.815
7.815
χcritical
critical
)alpha=
)alpha=0.05
0.05and
anddf=3
df=3( (
?What this does mean
,Can one conclude on the basis of these data that, in the sampled population
?opinions are not equally distributed over the four levels of agreement
.Let the probability of committing a type I error be 0.05 and find the P value
Thank you