Module 10
Module 10
METHODS
Prof.Radhika Kiran Kumar
Indira Institute of Business Management
2
Chi-square Analysis
Chi-Square Test
» Karl Pearson introduced a test to distinguish whether an observed set of
frequencies differs from a specified frequency distribution.
Parametric Non-
Parametric
Testing
Test for
Independence
comparing
Test for
variance
Goodness of Fit
Conditions for the application 6
of test
»Observations recorded and collected are collected on random
basis.
»No group should contain very few items, say less than 10. Some
statisticians take this number as 5. But 10 is regarded as better by most
statisticians.
Example
As personnel director, you want to test the perception of
fairness of three methods of performance evaluation. Of
180 employees, 63 rated Method 1 as fair, 45 rated Method 2
as fair, 72 rated Method 3 as fair.At the 0.05 level of
significance, is there a difference in perceptions?
11
Test Statistic:
c2 = 6.3
» H0: p = p = p = 1/3
Decision:
1 2 3
Reject H0 at sign. level
0.05
» H1: At least 1 is different Conclusion:
Test of Independence of
Attributes
» χ2 test enables us to explain whether or not two
attributes are associated. Testing independence determines
whether two or more observations across two populations
are dependent on each other (that is, whether one variable
helps to estimate the other.
» If the calculated value is less than the table value at certain
level of significance for a given degree of freedom, we
conclude that null hypotheses stands which means that two
attributes are independent or not associated. If calculated
value is greater than the table value, we reject the null
14
–Test Methodology
Entry into Contingency Table: Observed Frequency
In contingency table, an entry Oij denotes the event that attribute A takes on value ai and
attribute B takes on value bj (i.e., A = ai, B = bj).
17
–Test Methodology
Entry into Contingency Table: Expected Frequency
In contingency table, an entry eij denotes the expected frequency, which can be calculated
as 𝐶𝑜𝑢𝑛𝑡 ( 𝐴=𝑎 𝑖 )× 𝐶𝑜𝑢𝑛𝑡 ( 𝐵 =𝑏 𝑗 ) 𝐴𝑖 × 𝐵 𝑗
𝑒 =
𝑖𝑗 =
𝐺𝑟𝑎𝑛𝑑 𝑇𝑜𝑡𝑎𝑙 𝑁
18
– Test
– Test
» The cell that contribute the most to the 𝛘 2 value are those whose actual
count is very different from the expected.
» The 𝛘 2 statistics tests the hypothesis that A and B are independent. The
test is based on a significance level, with (n-1) ×(m-1) degrees of
freedom., with a contingency table of size n×m
» We have to find if there is any association between Gender and Hobby of a people, that is,
we are to test whether “gender” and “hobby” are correlated.
21
– Test
Example : Survey on Gender versus Hobby.
» From the survey table, the observed frequency are counted and entered into the
contingency table, which is shown below.
GENDER
Book
HOBBY
Computer
Total
22
– Test
» From the survey table, the expected frequency are
counted and entered into the contingency table,
which is shown below.
Male Female Total
Book
Computer
Total
23
– Test
» From the survey table, the expected frequency are
counted and entered into the contingency table,
which is shown below.
Male Female Total
Book
Computer
Total
24
– Test
𝛘2 = + + +
=
25
– Test
» This value needs to be compared with the tabulated value
of 𝛘 2 (available in any standard book on statistics) with 1
degree of freedom (for a table of m × n, the degrees of
freedom is ; here m = 2, n = 2).
– Test
Diet Pepsi
Diet Coke No Yes Total
No 84 32 116
»
=54.29
H0: No Relationship
H1: Relationship
Test Statistic: c2 = 54.29
a= 0.05
df = (2 - 1)(2 - 1) = 1
Critical Value(s):
Decision:
Reject at sign. level 0 .05
Reject H0 Conclusion:
0
3.841 c2
30
– Test
» Consider the following on car accidents among left and right-handed drivers’ of sample size
175.
HANDEDNESS
Non-Fatal
Fatal
Total
» Find the correlation between Fatality and Handedness and test the significance of the
correlation with significance level 0.1%.
31
THANKS!
Any questions?