lecture30!31!19075 chi square

13
7/25/2019 Lecture30!31!19075 Chi Square http://slidepdf.com/reader/full/lecture303119075-chi-square 1/13 Hypothesis Testing for Categorical Data (Chi-Square Test)

Upload: foruxtraa

Post on 25-Feb-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 113

Hypothesis Testing for Categorical Data

(Chi-Square Test)

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 213

Learning Objectives

Upon completion of this chapter you will be ableto

Understand the concept of chi-square statistic andchi-square distribution

Understand the concept of chi-square goodness-of-ttest

Understand the concept of chi-square test ofindependence

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 313

Defining Chi-Square Test Statistic

Some researchers place the chi-square technique in the category of non-parametric tests fortesting of the hypothesis

Chi-square distribution is the family of curveswith each distribution dened by the degree offreedom associated to it In fact chi-square is acontinuous probability distribution with range0 to infin

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 413

Figure Chi-Square distribution with and

degrees of freedom

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 513

Figure $cceptance or reection region in a Chi-Square

test

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 613

Chi-Square ooness-of-it Test

Chi-square test provides a platform that can be used toascertain whether theoretical probability distributionsmatch with actual sample distributions

$ample $ company is concerned about theincreasing violent altercations between its employees

amphe number of violent incidents recorded by themanagement during si randomly selected months isgiven in ampable ()

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 713

Coputation of $pecte requencies an

Chi-square Statistic for $aple ampamp

Solved amples+cel+ (ls

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 813

Chi-square Test of nepenence

hen observations are classied on the basis of twovariables and arranged in a table the resultingtable is referred to as a contingency table Chi-

square test of independence uses this contingencytable for determining independence of twovariables this is why this test is sometimes referredto as contingency analysis

hen we add the row or column totals the grandtotal Namp is obtained amphis grand total is the sum ofall the frequencies and represents the sample sie

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 913

The epecte frequency of cell j+ is

here RT is the row total CT the column total and N thetotal number of frequencies

pected frequency forany cell

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1013

Chi-Square Test Statistic

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1113

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 2: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 213

Learning Objectives

Upon completion of this chapter you will be ableto

Understand the concept of chi-square statistic andchi-square distribution

Understand the concept of chi-square goodness-of-ttest

Understand the concept of chi-square test ofindependence

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 313

Defining Chi-Square Test Statistic

Some researchers place the chi-square technique in the category of non-parametric tests fortesting of the hypothesis

Chi-square distribution is the family of curveswith each distribution dened by the degree offreedom associated to it In fact chi-square is acontinuous probability distribution with range0 to infin

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 413

Figure Chi-Square distribution with and

degrees of freedom

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 513

Figure $cceptance or reection region in a Chi-Square

test

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 613

Chi-Square ooness-of-it Test

Chi-square test provides a platform that can be used toascertain whether theoretical probability distributionsmatch with actual sample distributions

$ample $ company is concerned about theincreasing violent altercations between its employees

amphe number of violent incidents recorded by themanagement during si randomly selected months isgiven in ampable ()

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 713

Coputation of $pecte requencies an

Chi-square Statistic for $aple ampamp

Solved amples+cel+ (ls

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 813

Chi-square Test of nepenence

hen observations are classied on the basis of twovariables and arranged in a table the resultingtable is referred to as a contingency table Chi-

square test of independence uses this contingencytable for determining independence of twovariables this is why this test is sometimes referredto as contingency analysis

hen we add the row or column totals the grandtotal Namp is obtained amphis grand total is the sum ofall the frequencies and represents the sample sie

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 913

The epecte frequency of cell j+ is

here RT is the row total CT the column total and N thetotal number of frequencies

pected frequency forany cell

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1013

Chi-Square Test Statistic

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1113

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 3: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 313

Defining Chi-Square Test Statistic

Some researchers place the chi-square technique in the category of non-parametric tests fortesting of the hypothesis

Chi-square distribution is the family of curveswith each distribution dened by the degree offreedom associated to it In fact chi-square is acontinuous probability distribution with range0 to infin

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 413

Figure Chi-Square distribution with and

degrees of freedom

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 513

Figure $cceptance or reection region in a Chi-Square

test

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 613

Chi-Square ooness-of-it Test

Chi-square test provides a platform that can be used toascertain whether theoretical probability distributionsmatch with actual sample distributions

$ample $ company is concerned about theincreasing violent altercations between its employees

amphe number of violent incidents recorded by themanagement during si randomly selected months isgiven in ampable ()

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 713

Coputation of $pecte requencies an

Chi-square Statistic for $aple ampamp

Solved amples+cel+ (ls

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 813

Chi-square Test of nepenence

hen observations are classied on the basis of twovariables and arranged in a table the resultingtable is referred to as a contingency table Chi-

square test of independence uses this contingencytable for determining independence of twovariables this is why this test is sometimes referredto as contingency analysis

hen we add the row or column totals the grandtotal Namp is obtained amphis grand total is the sum ofall the frequencies and represents the sample sie

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 913

The epecte frequency of cell j+ is

here RT is the row total CT the column total and N thetotal number of frequencies

pected frequency forany cell

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1013

Chi-Square Test Statistic

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1113

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 4: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 413

Figure Chi-Square distribution with and

degrees of freedom

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 513

Figure $cceptance or reection region in a Chi-Square

test

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 613

Chi-Square ooness-of-it Test

Chi-square test provides a platform that can be used toascertain whether theoretical probability distributionsmatch with actual sample distributions

$ample $ company is concerned about theincreasing violent altercations between its employees

amphe number of violent incidents recorded by themanagement during si randomly selected months isgiven in ampable ()

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 713

Coputation of $pecte requencies an

Chi-square Statistic for $aple ampamp

Solved amples+cel+ (ls

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 813

Chi-square Test of nepenence

hen observations are classied on the basis of twovariables and arranged in a table the resultingtable is referred to as a contingency table Chi-

square test of independence uses this contingencytable for determining independence of twovariables this is why this test is sometimes referredto as contingency analysis

hen we add the row or column totals the grandtotal Namp is obtained amphis grand total is the sum ofall the frequencies and represents the sample sie

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 913

The epecte frequency of cell j+ is

here RT is the row total CT the column total and N thetotal number of frequencies

pected frequency forany cell

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1013

Chi-Square Test Statistic

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1113

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 5: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 513

Figure $cceptance or reection region in a Chi-Square

test

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 613

Chi-Square ooness-of-it Test

Chi-square test provides a platform that can be used toascertain whether theoretical probability distributionsmatch with actual sample distributions

$ample $ company is concerned about theincreasing violent altercations between its employees

amphe number of violent incidents recorded by themanagement during si randomly selected months isgiven in ampable ()

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 713

Coputation of $pecte requencies an

Chi-square Statistic for $aple ampamp

Solved amples+cel+ (ls

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 813

Chi-square Test of nepenence

hen observations are classied on the basis of twovariables and arranged in a table the resultingtable is referred to as a contingency table Chi-

square test of independence uses this contingencytable for determining independence of twovariables this is why this test is sometimes referredto as contingency analysis

hen we add the row or column totals the grandtotal Namp is obtained amphis grand total is the sum ofall the frequencies and represents the sample sie

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 913

The epecte frequency of cell j+ is

here RT is the row total CT the column total and N thetotal number of frequencies

pected frequency forany cell

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1013

Chi-Square Test Statistic

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1113

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 6: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 613

Chi-Square ooness-of-it Test

Chi-square test provides a platform that can be used toascertain whether theoretical probability distributionsmatch with actual sample distributions

$ample $ company is concerned about theincreasing violent altercations between its employees

amphe number of violent incidents recorded by themanagement during si randomly selected months isgiven in ampable ()

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 713

Coputation of $pecte requencies an

Chi-square Statistic for $aple ampamp

Solved amples+cel+ (ls

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 813

Chi-square Test of nepenence

hen observations are classied on the basis of twovariables and arranged in a table the resultingtable is referred to as a contingency table Chi-

square test of independence uses this contingencytable for determining independence of twovariables this is why this test is sometimes referredto as contingency analysis

hen we add the row or column totals the grandtotal Namp is obtained amphis grand total is the sum ofall the frequencies and represents the sample sie

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 913

The epecte frequency of cell j+ is

here RT is the row total CT the column total and N thetotal number of frequencies

pected frequency forany cell

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1013

Chi-Square Test Statistic

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1113

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 7: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 713

Coputation of $pecte requencies an

Chi-square Statistic for $aple ampamp

Solved amples+cel+ (ls

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 813

Chi-square Test of nepenence

hen observations are classied on the basis of twovariables and arranged in a table the resultingtable is referred to as a contingency table Chi-

square test of independence uses this contingencytable for determining independence of twovariables this is why this test is sometimes referredto as contingency analysis

hen we add the row or column totals the grandtotal Namp is obtained amphis grand total is the sum ofall the frequencies and represents the sample sie

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 913

The epecte frequency of cell j+ is

here RT is the row total CT the column total and N thetotal number of frequencies

pected frequency forany cell

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1013

Chi-Square Test Statistic

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1113

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 8: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 813

Chi-square Test of nepenence

hen observations are classied on the basis of twovariables and arranged in a table the resultingtable is referred to as a contingency table Chi-

square test of independence uses this contingencytable for determining independence of twovariables this is why this test is sometimes referredto as contingency analysis

hen we add the row or column totals the grandtotal Namp is obtained amphis grand total is the sum ofall the frequencies and represents the sample sie

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 913

The epecte frequency of cell j+ is

here RT is the row total CT the column total and N thetotal number of frequencies

pected frequency forany cell

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1013

Chi-Square Test Statistic

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1113

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 9: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 913

The epecte frequency of cell j+ is

here RT is the row total CT the column total and N thetotal number of frequencies

pected frequency forany cell

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1013

Chi-Square Test Statistic

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1113

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 10: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1013

Chi-Square Test Statistic

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1113

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 11: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1113

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 12: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1213

Chi-square Test of oogeneity

Chi-square test of homogeneity is used todetermine whether two or more independentvariables are drawn from the same population orfrom dierent populations

In other words we can say that chi-square test ofhomogeneity is used to determine whether two ormore populations are homogenous with respect tosome characteristic of interest

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple

Page 13: Lecture30!31!19075 Chi Square

7252019 Lecture303119075 Chi Square

httpslidepdfcomreaderfulllecture303119075-chi-square 1313

$aple