SlideShare a Scribd company logo
1 of 39
Chi-Square
Test
MBMG-7104/ ITHS-2202/ IMAS-3101/ IMHS-3101
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
What is Chi Square test ?
The χ²(pronounced as Chi-square) was first
used by Karl Pearson in the year 1900.
CHI SQUARE TEST is a non parametric test
not based on any assumption or distribution
of any variable.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
What is Chi Square test ?
This statistical test follows a specific
distribution known as chi square distribution.
In general the χ² test, is used to measure the
differences between what is observed and
what is expected according to an assumed
hypothesis is called the chi-square test.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
The formula for computing chi-square is:
χ² =
𝑂 − 𝐸 )2
𝐸
where’s O = observed frequency, E = expected or theoretical frequency.
 The quantity χ² describes the magnitude of discrepancy
between theory and observation,
 i.e., with the help of χ² test we can know whether a
given discrepancy between theory and observation can
be attributed to fit the observed facts.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
APPLICATIONS OF A CHI SQUARE TEST
This test can be used for :
1. Tests of Hypothesis Concerning Variance
2. Significance test
3. Test of independence of attributes
4. Goodness of fit of distributions
5. Test of homogeneity.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
1) Tests of Hypothesis Concerning Variance
For a normally distributed population which has
population variance of σ2 , if we draw a random
sample of n size, with sample variance of s2 , then
i.e. the sample follows a χ² with n-1 degree of
freedom. The d.f. for χ² distribution is denoted by ʋ.
Or ʋ = n-1
χ2
=
𝑛 − 1)𝑠2
𝜎2
=
𝑥 − 𝑥 )2
𝜎2
~χ𝑛−1
2
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
1) Tests of Hypothesis Concerning Variance
In testing hypothesis about the variance of a
normally distributed population,
the null hypothesis is
H0: 𝜎2
= 𝜎0
2
where 𝜎0
2
is some specified value of the population
variance.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Illustration 1:
Weights in kilograms of 10 shipments are given
below:
38, 40, 45, 53, 47, 43, 55, 48, 52, 49.
Can we say that variance of the distribution of
weight of all shipments from which the above
sample of 10 shipments was drawn is equal to 20
square kilogram?
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Solution :
Let the null hypothesis be that the variance of the distribution of shipments
weight is 20 square kilogram,
Or H0: 𝜎2 = 20
Mean value of sample 𝑥=
𝑥
𝑛
=
470
10
= 47
Weight (in Kg)
x
(𝑥 − 𝑥 ) 𝑥 − 𝑥 2
38 -9 81
40 -7 49
45 -2 4
53 +6 36
47 0 0
43 -4 16
55 +8 64
48 +1 1
52 +5 25
49 +2 4
∑𝑥 = 470 ∑(𝑥 − 𝑥 )= 0 ∑(𝑥 − 𝑥 )2= 280
χ2 =
𝑛 − 1)𝑠2
𝜎2
=
𝑥 − 𝑥 )2
𝜎2
=
280
20
= 14
From χ² table value, the value for 9 d.f. at 5%
level of significance = 16.919.
And degree of freedom for χ² distribution
ʋ = n−1 = 10 − 1 = 9
Since the calculated value of χ² is less than the tabulated
value of χ², it is insignificant and the null hypothesis is
accepted. That the variance of the distribution of weights
of all shipments in the population is 20 kilograms
2) SIGNIFICANCE TEST
This test enables us to test the significance of null
hypothesis using χ² test.
Illustration 2 :-
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Solution :-
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
3) TEST OF INDEPENDENCE OF ATTRIBUTES
This test enables us to explain whether or not two
attributes are associated.
 >For instance, we may be interested in knowing
whether a new medicine is effective in controlling fever
or not, χ² test is useful.
 In such a situation, we proceed with the null hypothesis
that the two attributes (viz., new medicine and control
of fever) are independent which means that new
medicine is not effective in controlling fever.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
2) TEST OF INDEPENDENCE OF ATTRIBUTES
 In the test of independence, the population and
sample are classified according to some
attributes.
 To test the independence of attributes we uses a
contingency table, as :
 Let us designate the two attributes as A and B
where, attribute A is assumed to have r categories
and attribute B is assumed to have c categories.
 Furthermore, assume the total number of
observations in the problem is N.
 A representation of these observations is shown in
a table where O, represents the observation in the
ith row and jth column. Such a table in the matrix
form is called a contingency table, as shown
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Illustration 3:
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
 fe : for male student choosing French
language = 55 x 60 / 90 = 36.67
 Similarly fe : for Female student choosing
French language = 35 x 60 / 90 = 23.33
 fe : for male student choosing Russian
language = 55 x 30 / 90 = 18.33
 fe : for female student choosing Russian
language = 35 x 30 / 90 = 11.67
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
O E (O-E)2 (O-E)2 / E
39 36.67 5.4289 0.148047
21 23.33 5.4289 0.2327
16 18.33 5.4289 0.296176
14 11.67 5.4289 0.465201
Σ(O-E)2 / E 1.142125
χ² =
𝑂−𝐸 )2
𝐸
= 1.142
For contingency table, the degree of freedom is calculated as :
ʋ = (r−1)(c−1) = (2−1) (2−1) = 1
From 𝜒² table value, the value for ʋ = 1 (d.f. = 1) at 5% level of
significance = 3.84
Since The calculated value of 𝜒² is less than the table value. The null
hypothesis is accepted. Hence, there is no relationship b/w choice of
language and gender. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Exercise:
1. A sample of 200 persons with a particular disease was selected. Out of
these, 100 were given a drug and the others were not given any drug.
The results are as follows:
Test, whether the drug is effective or not.
No. of persons
Drug No Drug Total
Cured 65 55 120
Not cured 35 45 80
Total 100 100 200
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Exercise:
2. A certain drug is claimed to be effective in curing cold. In an
experiment on 500 persons with cold, half of them were given the drug
and half of them were given the sugar pills. The patients' reactions to
the treatment are recorded in the following table:
On the basis of this data, can it be concluded that there is a
significant difference in the effect of the drug and sugar pills
Helped Harmed No effect Total
Drug 150 30 70 250
Suger pills 130 40 80 250
Total 280 70 150 500
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
4) TEST OF GOODNESS OF FIT OF DISTRIBUTIONS:
 Tests of goodness of fit are used when we want
to determine whether an actual sample
distribution matches a known theoretical
distribution.
 it enables us to ascertain how well the
theoretical distribution such as Binomial,
Poisson, Normal, etc., fit empirical distribution,
 i.e., how does the sample data fit a distribution
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
4) TEST OF GOODNESS OF FIT OF DISTRIBUTIONS:
 The χ² test formula for goodness of fit is:
 where’s O = observed frequency, E = expected or theoretical frequency
 The null hypothesis is
 H0: = the sample is drawn from the theoretical population distribution,
 The alternative hypothesis is
 Ha: = the sample is not drawn from the theoretical population distribution.
χ² =
𝑂 − 𝐸 )2
𝐸
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
 If χ² (calculated) < χ² (tabulated) with (n-1) d.f,
then null hypothesis is accepted.
 If χ² (calculated) > χ² (tabulated) with (n-1) d.f,
then null hypothesis is rejected.
 if null hypothesis is accepted, then it can be
concluded that the given distribution follows
theoretical distribution.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Illustration 4:
The number of spare parts requires in a factory
was found to vary from day to day. In a sample
study, the following information was obtained:
Test the hypothesis that the number of parts
demanded does depend on the day of the week.
Days Mon. Tue. Wed. Thu Fri Sat Total
No. of parts
demanded : 1124 1125 1110 1120 1125 1115 6720
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Illustration 5:
A survey of 320 families with 5 children each,
revealed the following distribution regarding birth
of Childs:
Is this result consistent with the hypothesis that
boys and girls births are equally probable?
No. of boys
born : 5 4 3 2 1 0
No. of girls
born : 0 1 2 3 4 5
Families : 14 56 110 88 40 12
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
5) TEST OF HOMOGENITY
 This test explore the proposition that several
populations are homogeneous with respect to some
characteristic of interest.
 i.e. used to test whether the occurrence of events
follow uniformity or not
 e.g. the admission of patients in government hospital in
all days of week is uniform or not can be tested with
the help of chi square test.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
5) TEST OF HOMOGENITY
 The analytical procedure is same as that discussed for
test of independence.
 It is different from independence test in following ways:
 In Independence test we are concerned with the
problem whether the two attributes are independent or
not.
 while in tests of homogeneity, we are concerned
whether the different samples come from the same
population or same or not
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
5) TEST OF HOMOGENITY
 We use contingency table and make calculations just as
independence test.
 If χ² (calculated) < χ² (tabulated), then null hypothesis
is accepted,
 and it can be concluded that there is a homogeneity or
uniformity in the occurrence of the events.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Illustration 6:
A random sample of 400 persons was selected from three
age groups, and each person was asked to specify which
TV program they prefer out of 3 type of Programs. The
results are shown in the following table:
Test the hypothesis that the populations are homogeneous
with respect to the types of television program, people
prefer.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Conditions for the Application of χ² Test
The following five basic conditions must be met in order for
chi-square analysis to be applied:
(1) The experimental data (sample observation) must be
independent of each other.
(2) The sample data must be drawn at random from the
target population.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
(3) The data should be expressed in original units for
convenience of comparison and not in percentage or ratio
form.
(4) There should not be less than five observations.
(5) For less than 5 observations, the value of χ² shall be
overestimated and result in too many rejections of the null
hypothesis.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
YATE'S CORRECTION
 The chi-square distribution is continuous distribution
used with discrete data from a contingency table.
 When the expected frequencies are large, this
approximate procedure is appropriate.
 In a 2 × 2 table, when expected frequencies are small,
a correction was proposed by F. Yates in the year 1934
called "Yates's correction for continuity". The correction
consists of:
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
YATE'S CORRECTION
 The correction consists of:
 where |O-E| means the absolute difference.
 In general, the correction is made only when the
number of degrees of freedom is ʋ = 1.
 For large samples, this yields practically the same
results as the uncorrected χ².
χ2
corrected = .
𝑂1 − 𝐸1 − 0.5)2
𝐸1
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
IMPORTANT CHARACTERISTICS OF A CHI SQUARE TEST
 This test (as a non-parametric test) is based on
frequencies and not on the parameters like mean
and standard deviation.
 The test is used for testing the hypothesis and is
not useful for estimation.
 This test can also be applied to a complex
contingency table with several classes and as
such is a very useful test in research work.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
IMPORTANT CHARACTERISTICS OF A CHI SQUARE TEST
 This test is an important non-parametric test as
no rigid assumptions are necessary in regard to
the type of population, no need of parameter
values and relatively less mathematical details
are involved.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
STEPS INVOLVED IN CALCULATING 𝛘²
1. Calculate the expected frequencies and the observed
frequencies:-
A. For Independence & Homogeneity test use
contingency table and formula for Expected
frequencies fe as :
B. For Goodness of fit :
a) If no distribution given use Uniform distribution =
1
𝑛
𝑓𝑜)
b) If particular distribution is given(binomial, poisson etc.) use
formula of that distribution to calculate expected frequency.
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
STEPS INVOLVED IN CALCULATING 𝛘²
2. Then χ² is calculated as follows:
3. Calculate degree of freedom for χ² distribution
4. Compare calculate χ² with critical value of χ² at ʋ d.f.
χ² =
𝑂 − 𝐸 )2
𝐸
for goodness of fit : ʋ = n−1
for independence and homogeneity = (r-1 ) (c- 1)
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Exercise:
1. The figures given below are (a) the theoretical frequencies of a
distribution and (b) the frequencies of the distribution having the same
mean, standard deviation and total frequency as in (a):
Test, whether the normal distribution provides a good fit to the data ?
(a) 1 12 66 220 495 792 924 792 495 220 66 12 1
(b) 2 15 66 210 484 799 943 799 484 210 66 15 2
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Exercise:
2. 1,000 workers, are there in a factory. They get exposed to an
epidemic. The workers get affected and remain unaffected is given. The
factory administration launched a vaccination campaign. The data of
epidemic attack and vaccination is given as :
On the basis of this information, can it be said that vaccination and
epidemic contamination(affected by epidemic) are independent?
Vaccinated workers Not- vaccinated Total
Epedemic effect 200 500 700
not affected 200 100 300
Total 400 600 1000
@Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
Chi-Square test.pptx

More Related Content

What's hot (20)

Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-testHypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
Hypothesis Test _Two-sample t-test, Z-test, Proportion Z-test
 
forecasting technique.pptx
forecasting technique.pptxforecasting technique.pptx
forecasting technique.pptx
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distribution
 
confounding 2*2
confounding 2*2confounding 2*2
confounding 2*2
 
Anova in easyest way
Anova in easyest wayAnova in easyest way
Anova in easyest way
 
ANOVA TEST by shafeek
ANOVA TEST by shafeekANOVA TEST by shafeek
ANOVA TEST by shafeek
 
Testing of hypothesis
Testing of hypothesisTesting of hypothesis
Testing of hypothesis
 
Student's T test distributions & its Applications
Student's T test distributions & its Applications Student's T test distributions & its Applications
Student's T test distributions & its Applications
 
Confidence intervals
Confidence intervalsConfidence intervals
Confidence intervals
 
Measures of dispersion
Measures of dispersionMeasures of dispersion
Measures of dispersion
 
Binomial and Poission Probablity distribution
Binomial and Poission Probablity distributionBinomial and Poission Probablity distribution
Binomial and Poission Probablity distribution
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distribution
 
Probability Distribution
Probability DistributionProbability Distribution
Probability Distribution
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Analysis of variance ppt @ bec doms
Analysis of variance ppt @ bec domsAnalysis of variance ppt @ bec doms
Analysis of variance ppt @ bec doms
 
The Binomial, Poisson, and Normal Distributions
The Binomial, Poisson, and Normal DistributionsThe Binomial, Poisson, and Normal Distributions
The Binomial, Poisson, and Normal Distributions
 
Confidence interval
Confidence intervalConfidence interval
Confidence interval
 
Kruskal Wall Test
Kruskal Wall TestKruskal Wall Test
Kruskal Wall Test
 
Student's T-Test
Student's T-TestStudent's T-Test
Student's T-Test
 
f and t test
f and t testf and t test
f and t test
 

Similar to Chi-Square test.pptx

Chi square test
Chi square testChi square test
Chi square testNayna Azad
 
Chi-square IMP.ppt
Chi-square IMP.pptChi-square IMP.ppt
Chi-square IMP.pptShivraj Nile
 
Day-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxDay-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxrjaisankar
 
Hypothesis_testing,regarding software engineering
Hypothesis_testing,regarding software engineeringHypothesis_testing,regarding software engineering
Hypothesis_testing,regarding software engineeringTallapelliSharanya01
 
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docxrhetttrevannion
 
Inferential Statistics.pdf
Inferential Statistics.pdfInferential Statistics.pdf
Inferential Statistics.pdfShivakumar B N
 
Contingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaContingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaMuhammad Warraich
 
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA  359 Chapter .docxChapter 11 Chi-Square Tests and ANOVA  359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docxbartholomeocoombs
 
Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxxababid981
 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxrathorebhagwan07
 
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.pptSnehamurali18
 
slides Testing of hypothesis.pptx
slides Testing  of  hypothesis.pptxslides Testing  of  hypothesis.pptx
slides Testing of hypothesis.pptxssuser504dda
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametricANCYBS
 
TESTS OF SIGNIFICANCE.pptx
TESTS OF SIGNIFICANCE.pptxTESTS OF SIGNIFICANCE.pptx
TESTS OF SIGNIFICANCE.pptxAnchuRNath
 

Similar to Chi-Square test.pptx (20)

Chi square
Chi square Chi square
Chi square
 
Chi square test
Chi square testChi square test
Chi square test
 
Chi-square IMP.ppt
Chi-square IMP.pptChi-square IMP.ppt
Chi-square IMP.ppt
 
Day-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptxDay-2_Presentation for SPSS parametric workshop.pptx
Day-2_Presentation for SPSS parametric workshop.pptx
 
Hypothesis_testing,regarding software engineering
Hypothesis_testing,regarding software engineeringHypothesis_testing,regarding software engineering
Hypothesis_testing,regarding software engineering
 
UNIT 5.pdf
UNIT 5.pdfUNIT 5.pdf
UNIT 5.pdf
 
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
36086 Topic Discussion3Number of Pages 2 (Double Spaced).docx
 
Inferential Statistics.pdf
Inferential Statistics.pdfInferential Statistics.pdf
Inferential Statistics.pdf
 
Contingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET TaxilaContingency Table Test, M. Asad Hayat, UET Taxila
Contingency Table Test, M. Asad Hayat, UET Taxila
 
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA  359 Chapter .docxChapter 11 Chi-Square Tests and ANOVA  359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx
 
Hypothesis
HypothesisHypothesis
Hypothesis
 
Marketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptxMarketing Research Hypothesis Testing.pptx
Marketing Research Hypothesis Testing.pptx
 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
 
Chi square test
Chi square testChi square test
Chi square test
 
Chi square test social research refer.ppt
Chi square test social research refer.pptChi square test social research refer.ppt
Chi square test social research refer.ppt
 
Chisquare
ChisquareChisquare
Chisquare
 
Parametric Statistics
Parametric StatisticsParametric Statistics
Parametric Statistics
 
slides Testing of hypothesis.pptx
slides Testing  of  hypothesis.pptxslides Testing  of  hypothesis.pptx
slides Testing of hypothesis.pptx
 
Parametric & non parametric
Parametric & non parametricParametric & non parametric
Parametric & non parametric
 
TESTS OF SIGNIFICANCE.pptx
TESTS OF SIGNIFICANCE.pptxTESTS OF SIGNIFICANCE.pptx
TESTS OF SIGNIFICANCE.pptx
 

More from Ravindra Nath Shukla

More from Ravindra Nath Shukla (10)

Capital Budgeting : capital budgeting decision
Capital Budgeting : capital budgeting decisionCapital Budgeting : capital budgeting decision
Capital Budgeting : capital budgeting decision
 
Market Efficiency.pptx
Market Efficiency.pptxMarket Efficiency.pptx
Market Efficiency.pptx
 
Communication Extra classes.pptx
Communication  Extra classes.pptxCommunication  Extra classes.pptx
Communication Extra classes.pptx
 
PPT BC class.pptx
PPT BC class.pptxPPT BC class.pptx
PPT BC class.pptx
 
Flexible Budget.pptx
Flexible Budget.pptxFlexible Budget.pptx
Flexible Budget.pptx
 
Discrete Distribution.pptx
Discrete Distribution.pptxDiscrete Distribution.pptx
Discrete Distribution.pptx
 
Buerocratic model
Buerocratic modelBuerocratic model
Buerocratic model
 
Discharge of contract
Discharge of contractDischarge of contract
Discharge of contract
 
Market Potential of Organic food Product
Market Potential  of Organic food ProductMarket Potential  of Organic food Product
Market Potential of Organic food Product
 
Marketing : Concept, Tools and Retention
Marketing : Concept, Tools and RetentionMarketing : Concept, Tools and Retention
Marketing : Concept, Tools and Retention
 

Recently uploaded

Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...Suhani Kapoor
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Delhi Call girls
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationBoston Institute of Analytics
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 

Recently uploaded (20)

Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
VIP High Class Call Girls Bikaner Anushka 8250192130 Independent Escort Servi...
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in  KishangarhDelhi 99530 vip 56974 Genuine Escort Service Call Girls in  Kishangarh
Delhi 99530 vip 56974 Genuine Escort Service Call Girls in Kishangarh
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
Best VIP Call Girls Noida Sector 39 Call Me: 8448380779
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Predicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project PresentationPredicting Employee Churn: A Data-Driven Approach Project Presentation
Predicting Employee Churn: A Data-Driven Approach Project Presentation
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 

Chi-Square test.pptx

  • 1. Chi-Square Test MBMG-7104/ ITHS-2202/ IMAS-3101/ IMHS-3101 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 2. What is Chi Square test ? The χ²(pronounced as Chi-square) was first used by Karl Pearson in the year 1900. CHI SQUARE TEST is a non parametric test not based on any assumption or distribution of any variable. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 3. What is Chi Square test ? This statistical test follows a specific distribution known as chi square distribution. In general the χ² test, is used to measure the differences between what is observed and what is expected according to an assumed hypothesis is called the chi-square test. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 4. The formula for computing chi-square is: χ² = 𝑂 − 𝐸 )2 𝐸 where’s O = observed frequency, E = expected or theoretical frequency.  The quantity χ² describes the magnitude of discrepancy between theory and observation,  i.e., with the help of χ² test we can know whether a given discrepancy between theory and observation can be attributed to fit the observed facts. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 5. APPLICATIONS OF A CHI SQUARE TEST This test can be used for : 1. Tests of Hypothesis Concerning Variance 2. Significance test 3. Test of independence of attributes 4. Goodness of fit of distributions 5. Test of homogeneity. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 6. 1) Tests of Hypothesis Concerning Variance For a normally distributed population which has population variance of σ2 , if we draw a random sample of n size, with sample variance of s2 , then i.e. the sample follows a χ² with n-1 degree of freedom. The d.f. for χ² distribution is denoted by ʋ. Or ʋ = n-1 χ2 = 𝑛 − 1)𝑠2 𝜎2 = 𝑥 − 𝑥 )2 𝜎2 ~χ𝑛−1 2 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 7. 1) Tests of Hypothesis Concerning Variance In testing hypothesis about the variance of a normally distributed population, the null hypothesis is H0: 𝜎2 = 𝜎0 2 where 𝜎0 2 is some specified value of the population variance. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 8. Illustration 1: Weights in kilograms of 10 shipments are given below: 38, 40, 45, 53, 47, 43, 55, 48, 52, 49. Can we say that variance of the distribution of weight of all shipments from which the above sample of 10 shipments was drawn is equal to 20 square kilogram? @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 9. Solution : Let the null hypothesis be that the variance of the distribution of shipments weight is 20 square kilogram, Or H0: 𝜎2 = 20 Mean value of sample 𝑥= 𝑥 𝑛 = 470 10 = 47 Weight (in Kg) x (𝑥 − 𝑥 ) 𝑥 − 𝑥 2 38 -9 81 40 -7 49 45 -2 4 53 +6 36 47 0 0 43 -4 16 55 +8 64 48 +1 1 52 +5 25 49 +2 4 ∑𝑥 = 470 ∑(𝑥 − 𝑥 )= 0 ∑(𝑥 − 𝑥 )2= 280 χ2 = 𝑛 − 1)𝑠2 𝜎2 = 𝑥 − 𝑥 )2 𝜎2 = 280 20 = 14 From χ² table value, the value for 9 d.f. at 5% level of significance = 16.919. And degree of freedom for χ² distribution ʋ = n−1 = 10 − 1 = 9 Since the calculated value of χ² is less than the tabulated value of χ², it is insignificant and the null hypothesis is accepted. That the variance of the distribution of weights of all shipments in the population is 20 kilograms
  • 10. 2) SIGNIFICANCE TEST This test enables us to test the significance of null hypothesis using χ² test. Illustration 2 :- @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 11. Solution :- @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 12. 3) TEST OF INDEPENDENCE OF ATTRIBUTES This test enables us to explain whether or not two attributes are associated.  >For instance, we may be interested in knowing whether a new medicine is effective in controlling fever or not, χ² test is useful.  In such a situation, we proceed with the null hypothesis that the two attributes (viz., new medicine and control of fever) are independent which means that new medicine is not effective in controlling fever. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 13. 2) TEST OF INDEPENDENCE OF ATTRIBUTES  In the test of independence, the population and sample are classified according to some attributes.  To test the independence of attributes we uses a contingency table, as :  Let us designate the two attributes as A and B where, attribute A is assumed to have r categories and attribute B is assumed to have c categories.  Furthermore, assume the total number of observations in the problem is N.  A representation of these observations is shown in a table where O, represents the observation in the ith row and jth column. Such a table in the matrix form is called a contingency table, as shown @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 14. Illustration 3: @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 15. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 16.  fe : for male student choosing French language = 55 x 60 / 90 = 36.67  Similarly fe : for Female student choosing French language = 35 x 60 / 90 = 23.33  fe : for male student choosing Russian language = 55 x 30 / 90 = 18.33  fe : for female student choosing Russian language = 35 x 30 / 90 = 11.67 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 17. O E (O-E)2 (O-E)2 / E 39 36.67 5.4289 0.148047 21 23.33 5.4289 0.2327 16 18.33 5.4289 0.296176 14 11.67 5.4289 0.465201 Σ(O-E)2 / E 1.142125 χ² = 𝑂−𝐸 )2 𝐸 = 1.142 For contingency table, the degree of freedom is calculated as : ʋ = (r−1)(c−1) = (2−1) (2−1) = 1 From 𝜒² table value, the value for ʋ = 1 (d.f. = 1) at 5% level of significance = 3.84 Since The calculated value of 𝜒² is less than the table value. The null hypothesis is accepted. Hence, there is no relationship b/w choice of language and gender. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 18. Exercise: 1. A sample of 200 persons with a particular disease was selected. Out of these, 100 were given a drug and the others were not given any drug. The results are as follows: Test, whether the drug is effective or not. No. of persons Drug No Drug Total Cured 65 55 120 Not cured 35 45 80 Total 100 100 200 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 19. Exercise: 2. A certain drug is claimed to be effective in curing cold. In an experiment on 500 persons with cold, half of them were given the drug and half of them were given the sugar pills. The patients' reactions to the treatment are recorded in the following table: On the basis of this data, can it be concluded that there is a significant difference in the effect of the drug and sugar pills Helped Harmed No effect Total Drug 150 30 70 250 Suger pills 130 40 80 250 Total 280 70 150 500 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 20. 4) TEST OF GOODNESS OF FIT OF DISTRIBUTIONS:  Tests of goodness of fit are used when we want to determine whether an actual sample distribution matches a known theoretical distribution.  it enables us to ascertain how well the theoretical distribution such as Binomial, Poisson, Normal, etc., fit empirical distribution,  i.e., how does the sample data fit a distribution @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 21. 4) TEST OF GOODNESS OF FIT OF DISTRIBUTIONS:  The χ² test formula for goodness of fit is:  where’s O = observed frequency, E = expected or theoretical frequency  The null hypothesis is  H0: = the sample is drawn from the theoretical population distribution,  The alternative hypothesis is  Ha: = the sample is not drawn from the theoretical population distribution. χ² = 𝑂 − 𝐸 )2 𝐸 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 22.  If χ² (calculated) < χ² (tabulated) with (n-1) d.f, then null hypothesis is accepted.  If χ² (calculated) > χ² (tabulated) with (n-1) d.f, then null hypothesis is rejected.  if null hypothesis is accepted, then it can be concluded that the given distribution follows theoretical distribution. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 23. Illustration 4: The number of spare parts requires in a factory was found to vary from day to day. In a sample study, the following information was obtained: Test the hypothesis that the number of parts demanded does depend on the day of the week. Days Mon. Tue. Wed. Thu Fri Sat Total No. of parts demanded : 1124 1125 1110 1120 1125 1115 6720 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 24. Illustration 5: A survey of 320 families with 5 children each, revealed the following distribution regarding birth of Childs: Is this result consistent with the hypothesis that boys and girls births are equally probable? No. of boys born : 5 4 3 2 1 0 No. of girls born : 0 1 2 3 4 5 Families : 14 56 110 88 40 12 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 25. 5) TEST OF HOMOGENITY  This test explore the proposition that several populations are homogeneous with respect to some characteristic of interest.  i.e. used to test whether the occurrence of events follow uniformity or not  e.g. the admission of patients in government hospital in all days of week is uniform or not can be tested with the help of chi square test. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 26. 5) TEST OF HOMOGENITY  The analytical procedure is same as that discussed for test of independence.  It is different from independence test in following ways:  In Independence test we are concerned with the problem whether the two attributes are independent or not.  while in tests of homogeneity, we are concerned whether the different samples come from the same population or same or not @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 27. 5) TEST OF HOMOGENITY  We use contingency table and make calculations just as independence test.  If χ² (calculated) < χ² (tabulated), then null hypothesis is accepted,  and it can be concluded that there is a homogeneity or uniformity in the occurrence of the events. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 28. Illustration 6: A random sample of 400 persons was selected from three age groups, and each person was asked to specify which TV program they prefer out of 3 type of Programs. The results are shown in the following table: Test the hypothesis that the populations are homogeneous with respect to the types of television program, people prefer. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 29. Conditions for the Application of χ² Test The following five basic conditions must be met in order for chi-square analysis to be applied: (1) The experimental data (sample observation) must be independent of each other. (2) The sample data must be drawn at random from the target population. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 30. (3) The data should be expressed in original units for convenience of comparison and not in percentage or ratio form. (4) There should not be less than five observations. (5) For less than 5 observations, the value of χ² shall be overestimated and result in too many rejections of the null hypothesis. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 31. YATE'S CORRECTION  The chi-square distribution is continuous distribution used with discrete data from a contingency table.  When the expected frequencies are large, this approximate procedure is appropriate.  In a 2 × 2 table, when expected frequencies are small, a correction was proposed by F. Yates in the year 1934 called "Yates's correction for continuity". The correction consists of: @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 32. YATE'S CORRECTION  The correction consists of:  where |O-E| means the absolute difference.  In general, the correction is made only when the number of degrees of freedom is ʋ = 1.  For large samples, this yields practically the same results as the uncorrected χ². χ2 corrected = . 𝑂1 − 𝐸1 − 0.5)2 𝐸1 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 33. IMPORTANT CHARACTERISTICS OF A CHI SQUARE TEST  This test (as a non-parametric test) is based on frequencies and not on the parameters like mean and standard deviation.  The test is used for testing the hypothesis and is not useful for estimation.  This test can also be applied to a complex contingency table with several classes and as such is a very useful test in research work. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 34. IMPORTANT CHARACTERISTICS OF A CHI SQUARE TEST  This test is an important non-parametric test as no rigid assumptions are necessary in regard to the type of population, no need of parameter values and relatively less mathematical details are involved. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 35. STEPS INVOLVED IN CALCULATING 𝛘² 1. Calculate the expected frequencies and the observed frequencies:- A. For Independence & Homogeneity test use contingency table and formula for Expected frequencies fe as : B. For Goodness of fit : a) If no distribution given use Uniform distribution = 1 𝑛 𝑓𝑜) b) If particular distribution is given(binomial, poisson etc.) use formula of that distribution to calculate expected frequency. @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 36. STEPS INVOLVED IN CALCULATING 𝛘² 2. Then χ² is calculated as follows: 3. Calculate degree of freedom for χ² distribution 4. Compare calculate χ² with critical value of χ² at ʋ d.f. χ² = 𝑂 − 𝐸 )2 𝐸 for goodness of fit : ʋ = n−1 for independence and homogeneity = (r-1 ) (c- 1) @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 37. Exercise: 1. The figures given below are (a) the theoretical frequencies of a distribution and (b) the frequencies of the distribution having the same mean, standard deviation and total frequency as in (a): Test, whether the normal distribution provides a good fit to the data ? (a) 1 12 66 220 495 792 924 792 495 220 66 12 1 (b) 2 15 66 210 484 799 943 799 484 210 66 15 2 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM
  • 38. Exercise: 2. 1,000 workers, are there in a factory. They get exposed to an epidemic. The workers get affected and remain unaffected is given. The factory administration launched a vaccination campaign. The data of epidemic attack and vaccination is given as : On the basis of this information, can it be said that vaccination and epidemic contamination(affected by epidemic) are independent? Vaccinated workers Not- vaccinated Total Epedemic effect 200 500 700 not affected 200 100 300 Total 400 600 1000 @Ravindra Nath Shukla (PhD Scholar) ABV-IIITM