Beruflich Dokumente
Kultur Dokumente
all cells fe
• fo = observed frequency in a particular cell of contingency table.
• fe = expected frequency in a particular cell
• = [row total x column total]/ Grand Total
• c2 follows Chi-Square distribution with (r-1)(c-1) d.f.
• The test is considered as a right tailed test.
• We reject H0 in the favor of H1 at α x100% level, if 2
• Assumptions: c 2
( )
Object to Location
Record NCR Bangalore Hyderabad Total
Sharing
( f f ) 2
c2 o e
64.1196
all cells fe
=0.05
0
Do not Reject H0 2
reject H0
0.709 12.592
fo fe (fo –fe)2 / fe
• H0: No Difference 86 84 0.048
• H1: Difference 60 62 0.064
• Calculation for Chi – Square: 44 46 0.087
10 8 0.500
• α = 0.05
40 42 0.095
• d.f. = (2-1)(4-1) – 1 = 2
33 31 0.129
• Critical Value = 5.991 25 23
27 27 0
• Do not Reject H0 2 4
300 300 0.923
QAM – II by Gaurav Garg (IIM Lucknow)
Chi Square Test for Goodness of Fit
• α = 0.05, d.f. = 6 – 1 = 5
• Critical Value = 11.070
• Do not reject H0 : Fit is good or die is fair.
QAM – II by Gaurav Garg (IIM Lucknow)
• Example:
• Following are the number of aircraft accidents
during the various days of the week. Find if the
accidents are uniformly distributed over the week.
Days: Mon Tue Wed Thu Fri Sat Sun
No. of Acc.: 14 16 8 12 11 9 14
• (= 4.17)
• α = 0.05, d.f. = 6 – 1 = 5
• Critical Value = 11.070
• Do not reject H0
QAM – II by Gaurav Garg (IIM Lucknow)
Goodness of Fit test for Normal Distribution
• In many statistical analyses, we assume that the data
has normal distribution.
• Using Chi-Square test, we can verify this.
• Example:
• We wish to examine if following data has normal
distribution:
5.65 5.44 5.42 5.40 5.53 5.34 5.54 5.45 5.52 5.41
5.57 5.40 5.53 5.54 5.55 5.62 5.56 5.46 5.44 5.51
5.47 5.40 5.47 5.61 5.53 5.32 5.67 5.29 5.49 5.55
5.77 5.57 5.42 5.58 5.58 5.50 5.32 5.50 5.53 5.58
5.61 5.45 5.44 5.25 5.56 5.63 5.50 5.57 5.67 5.36
QAM – II by Gaurav Garg (IIM Lucknow)
• We wish to examine if the given sample has N(μ,σ)
distribution.
• Sample mean ( x ) is the estimate of μ.
• Sample standard deviation (s1) is the estimate of σ.
• Now, arrange the given data in class intervals.
• Test Statistic: ( f f ) 2
c2 o e
fe
• fo = observed frequency of a particular class interval
• fe = expected frequency of that class interval
• = Total frequency x probability of that class interval
• c2 follows Chi-Square distribution with k-1-2 = k-3 d.f.
• α = 0.05, d.f. = 8 – 3 – 4 = 1
• Critical Value = 3.841
• Do not reject H0
fe
• Test Statistic follows Chi Square distribution with d.f.
Contingency Table: (No. of rows – 1) (No. of columns – 1)
Goodness of Fit: No. of Classes – 1 – No. of Estimates
If we pool some frequency, d.f. is reduced.
If we estimate some parameter, d.f is reduced.
QAM – II by Gaurav Garg (IIM Lucknow)