SlideShare a Scribd company logo
Chi-Squared tests (χ2
):
Chi-Squared tests (χ2
):
Use with nominal (categorical) data – when all you have is
the frequency with which certain events have occurred.
score per participant
(aim for this, where
possible)
categorical data
(avoid this, where
possible)
"psycho""non-psycho"
The χ2 “Goodness of
Fit” test:
Compares an observed
frequency distribution
with an expected
frequency distribution.
Useful when you have the
observed frequencies for
a number of mutually-
exclusive categories, and
you want to decide if they
have occurred equally
frequently.
No. of squirrels killed yearly on the A27
0
10
20
30
40
50
60
1 2 3 4 5 6 7
Year of study
Numberofdeadsquirrels
Observed frequency Expected frequency
Which soap-powder name do shoppers like best?
Each of 100 shoppers picks the powder name they like most.
Number of shoppers picking each name
(observed frequencies):
Washo Scruba Musty Stainzoff Beeo total
40 35 5 10 10 100
Expected frequency for each category is
total no.observations / number of categories
100 / 5 = 20.
( )
∑
−
=
E
EO
22
χ
The formula for Chi-Square:
( )
E
EO −
2
Washo Scruba Musty Stainzoff Beeo total
O: 40 35 5 10 10 100
E: 20 20 20 20 20 100
(O-E): 20 15 -15 -10 -10
(O-E) 2
400 225 225 100 100
20 11.25 11.25 5 5
χ2 = 52.5
Chi-squared is the sum of the squared
differences between each observed frequency
and its associated expected frequency.
The bigger the value of χ2, the greater the
difference between observed and expected
frequencies.
But how big does χ2 have to be, to be regarded
as “big”? Is 52.5 “big”?
We compare our obtained χ2 value to χ2 values which
would be obtained by chance.
To do this, we need the “degrees of freedom”: this is
the number of categories (or “cells”) minus one.
We have a χ2 value of 52.5, with 5-1 = 4 d.f.
Tables show how likely various values of χ2 are to
occur by chance. e.g.:
probability level:
d.f. .05 .01 .001
1 3.84 6.63 10.83
2 5.99 9.21 13.82
3 7.81 11.34 16.27
4 9.49 13.28 18.46
5 11.07 etc. etc.
52.5 is bigger than 18.46, a value of χ2 which will
occur by chance less than 1 times in a 1000 (p<.001).
The sampling distribution of chi-square:
Frequency with which χ2 values occur purely by
chance:
With 4 d.f., χ2 values of 9.49 or more
are likely to occur by chance on less
than .05 of occasions.
Our obtained χ2 = 52.5, with 4 d.f., p < .001.
A χ2 value this large is highly unlikely to have
arisen by chance.
It appears that the distribution of shoppers’
choices across soap-powder names is not
random. Some names get picked more than we
would expect by chance and some get picked
less.
The χ2 test of association between two
independent variables:
Another common use of χ2 is to determine whether
there is an association between two independent
variables.
Is there an association between gender (male or
female: IV A) and soap powder (Washo, Musty, etc.:
IV B)?
This gives a 2 x 5 contingency table.
Data for a random sample of 100 shoppers, 70 men and
30 women:
Washoe Scrubbup Musty Stainoff Nogunge total
male 10 12 5 3 40 70
female 6 2 1 20 1 30
totals: 16 14 6 23 41 100
To calculate expected frequencies:
E = row total * column total
grand total
Work out the expected frequency for each cell:
Washoe Scrubbup Musty Stainoff Nogunge total
male 10
(11.2)
12
(9.8)
5
(4.2)
3
(16.1)
40
(28.7)
70
female 6
(4.8)
2
(4.2)
1
(1.8)
20
(6.9)
1
(12.3)
30
totals: 16 14 6 23 41 100
e.g. 11.2 = (16 * 70)/100 6.9 = (23 * 30)/100, etc.
Using exactly the same formula as before, we get χ2
= 52.94.
d.f. = (number of rows - 1) * (number of columns - 1).
We have two rows and five columns,
so d.f. = (2-1) * (5-1) = 4 d.f.
Use the same table to assess the chances of
obtaining a Chi-Squared value as large as this by
chance; again p< .001.
Conclusion: our observed frequencies are
significantly different from the frequencies we would
expect to obtain if there were no association
between the two variables: i.e. the pattern of name
preferences is different for men and women.
Chi-Square test merely tells you that there is some
relationship (an association) between the two
variables in question: it does not tell you anything
about the causal relationship between the two
variables.
Here, it is reasonable to assume that gender
causes people to pick different soap powder
names; it's unlikely that soap powder names
cause people to be male or female.
However, in principle the direction of causality
could equally well go in either direction.
Assumptions of the Chi-Square test:
1. Observations must be independent: each
subject must contribute to one and only one
category. Otherwise the test results are
completely invalid.
2. Problems arise when expected frequencies are
very small. Chi-Square should not be used if
more than 20% of the expected frequencies have
a value of less than 5. (It does not matter what
the observed frequencies are).
Two solutions: combine some categories (if this
is meaningful in your experiment), OR obtain
more data (make the sample size bigger).
χ2 test of association - the one- d.f. case:
Preferred TV programme:
Stenders: Corrie: Row total:
Origin:
North: 13 10 23
South: 5 24 29
Column total: 18 34 52
With 1 d.f. (as with a 2 x 2 table), the obtained χ2 value is
inflated; some statisticians advocate using "Yates'
Correction for Continuity" to make the χ2 test more
conservative (i.e. make χ2 value smaller and hence less
likely to be significant).
Same procedure as before, except
(a) take the absolute value of O - E (i.e., ignore
any negative signs).
(b) Subtract 0.5 from each O-E, before squaring it.
( )
∑
−−
=χ
E
0.5EO
2
2
Without Yates’ Correction: χ2 = 8.74.
With Yates’ Correction: χ2 = 7.09.
Why you should avoid using Chi-Square if you can:
Design studies so that you can avoid using Chi-
Square!
Frequency data give little information about
participants' performance: all you have is
knowledge about which category someone is in, a
very crude measure.
It's much more informative to obtain one or more
scores per participant; scores give you more
information about performance than categorical
data (and can be used with better statistical tests).
e.g. IQ: which is better - to know participants are
“bright” or “dim”, or have their actual IQ scores?
χ2 Goodness of Fit test on "fast food" data, using SPSS:
Are all brands mentioned equally frequently?
Analyze > Nonparametric Tests> Legacy Dialogs > Chi-Square
Brand first mentioned
57 50.0 7.0
1 50.0 -49.0
44 50.0 -6.0
274 50.0 224.0
1 50.0 -49.0
10 50.0 -40.0
3 50.0 -47.0
10 50.0 -40.0
400
Burger King
Domino Pizza
KFC
McDonalds
Pizza Express
Pizza Hut
Wimpy
Other
Total
Observed N Expected N Residual
Test Statistics
1209.440
7
.000
Chi-Square a
df
Asymp. Sig.
Brand first
mentioned
0 cells (.0%) have expected frequencies less than
5. The minimum expected cell frequency is 50.0.
a.
χ2 test of association on "fast food" data, using SPSS:
Is there an association between gender and brand first mentioned?
Analyze > Descriptive Statistics > Crosstabs...
χ2 test of association on "fast food" data (continued):
Is there an association between gender and brand first mentioned?
Case Processing Summary
375 100.0% 0 .0% 375 100.0%
Sex * Brand
first mentioned
N Percent N Percent N Percent
Valid Missing Total
Cases
Sex * Brand first mentioned Crosstabulation
30 21 135 186
28.3 21.8 135.9 186.0
27 23 139 189
28.7 22.2 138.1 189.0
57 44 274 375
57.0 44.0 274.0 375.0
Count
Expected Count
Count
Expected Count
Count
Expected Count
Male
Female
Sex
Total
Burger King KFC McDonalds
Brand first mentioned
Total
Chi-Square Tests
.283a 2 .868
.283 2 .868
.135 1 .714
375
Pearson Chi-Square
Likelihood Ratio
Linear-by-Linear
Association
N of Valid Cases
Value df
Asymp. Sig.
(2-sided)
0 cells (.0%) have expected count less than 5. The
minimum expected count is 21.82.
a.
11 response categories -
gives too many expected
frequencies < 5.
Therefore confined analysis
to Burger King, KFC and
McDonalds.
(Use "Select Cases" on
"Data" menu to filter out
unwanted response
categories).
Conclusion: no significant association
between gender and brand first mentioned.
(χ2
(2) = 0.28, p = .87)

More Related Content

What's hot

Statistik Chapter 4
Statistik Chapter 4Statistik Chapter 4
Statistik Chapter 4
WanBK Leo
 
Statistik Chapter 6
Statistik Chapter 6Statistik Chapter 6
Statistik Chapter 6
WanBK Leo
 
Sqqs1013 ch5-a122
Sqqs1013 ch5-a122Sqqs1013 ch5-a122
Sqqs1013 ch5-a122
kim rae KI
 
Sqqs1013 ch4-a112
Sqqs1013 ch4-a112Sqqs1013 ch4-a112
Sqqs1013 ch4-a112
kim rae KI
 
Discrete Probability Distribution Test questions slideshare
Discrete Probability Distribution Test questions slideshareDiscrete Probability Distribution Test questions slideshare
Discrete Probability Distribution Test questions slideshare
Robert Tinaro
 
Solutions. Design and Analysis of Experiments. Montgomery
Solutions. Design and Analysis of Experiments. MontgomerySolutions. Design and Analysis of Experiments. Montgomery
Solutions. Design and Analysis of Experiments. Montgomery
Byron CZ
 
Statistik Chapter 5
Statistik Chapter 5Statistik Chapter 5
Statistik Chapter 5
WanBK Leo
 
How normal distribution is used in heights, blood pressure, measurement error...
How normal distribution is used in heights, blood pressure, measurement error...How normal distribution is used in heights, blood pressure, measurement error...
How normal distribution is used in heights, blood pressure, measurement error...
Umair Raza
 
Sqqs1013 ch6-a122
Sqqs1013 ch6-a122Sqqs1013 ch6-a122
Sqqs1013 ch6-a122
kim rae KI
 
Mba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributionsMba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributions
Rai University
 
Discrete random variable.
Discrete random variable.Discrete random variable.
Discrete random variable.
Shakeel Nouman
 
Sfs4e ppt 06
Sfs4e ppt 06Sfs4e ppt 06
Sfs4e ppt 06
Uconn Stamford
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variables
Rohan Bhatkar
 
Sampling Distribution -I
Sampling Distribution -ISampling Distribution -I
Sampling Distribution -I
Sadam Hussen
 
Discrete probability
Discrete probabilityDiscrete probability
Discrete probability
Ranjan Kumar
 
Properties of discrete probability distribution
Properties of discrete probability distributionProperties of discrete probability distribution
Properties of discrete probability distribution
JACKIE MACALINTAL
 
Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
Sanjay Basukala
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distribution
numanmunir01
 
Applied statistics and probability for engineers solution montgomery && runger
Applied statistics and probability for engineers solution   montgomery && rungerApplied statistics and probability for engineers solution   montgomery && runger
Applied statistics and probability for engineers solution montgomery && runger
Ankit Katiyar
 

What's hot (19)

Statistik Chapter 4
Statistik Chapter 4Statistik Chapter 4
Statistik Chapter 4
 
Statistik Chapter 6
Statistik Chapter 6Statistik Chapter 6
Statistik Chapter 6
 
Sqqs1013 ch5-a122
Sqqs1013 ch5-a122Sqqs1013 ch5-a122
Sqqs1013 ch5-a122
 
Sqqs1013 ch4-a112
Sqqs1013 ch4-a112Sqqs1013 ch4-a112
Sqqs1013 ch4-a112
 
Discrete Probability Distribution Test questions slideshare
Discrete Probability Distribution Test questions slideshareDiscrete Probability Distribution Test questions slideshare
Discrete Probability Distribution Test questions slideshare
 
Solutions. Design and Analysis of Experiments. Montgomery
Solutions. Design and Analysis of Experiments. MontgomerySolutions. Design and Analysis of Experiments. Montgomery
Solutions. Design and Analysis of Experiments. Montgomery
 
Statistik Chapter 5
Statistik Chapter 5Statistik Chapter 5
Statistik Chapter 5
 
How normal distribution is used in heights, blood pressure, measurement error...
How normal distribution is used in heights, blood pressure, measurement error...How normal distribution is used in heights, blood pressure, measurement error...
How normal distribution is used in heights, blood pressure, measurement error...
 
Sqqs1013 ch6-a122
Sqqs1013 ch6-a122Sqqs1013 ch6-a122
Sqqs1013 ch6-a122
 
Mba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributionsMba i qt unit-4.1_introduction to probability distributions
Mba i qt unit-4.1_introduction to probability distributions
 
Discrete random variable.
Discrete random variable.Discrete random variable.
Discrete random variable.
 
Sfs4e ppt 06
Sfs4e ppt 06Sfs4e ppt 06
Sfs4e ppt 06
 
Quantitative Techniques random variables
Quantitative Techniques random variablesQuantitative Techniques random variables
Quantitative Techniques random variables
 
Sampling Distribution -I
Sampling Distribution -ISampling Distribution -I
Sampling Distribution -I
 
Discrete probability
Discrete probabilityDiscrete probability
Discrete probability
 
Properties of discrete probability distribution
Properties of discrete probability distributionProperties of discrete probability distribution
Properties of discrete probability distribution
 
Sampling distribution
Sampling distributionSampling distribution
Sampling distribution
 
Binomial distribution
Binomial distributionBinomial distribution
Binomial distribution
 
Applied statistics and probability for engineers solution montgomery && runger
Applied statistics and probability for engineers solution   montgomery && rungerApplied statistics and probability for engineers solution   montgomery && runger
Applied statistics and probability for engineers solution montgomery && runger
 

Similar to Chi square2012

Statistical analysis by iswar
Statistical analysis by iswarStatistical analysis by iswar
Binomial probability distributions
Binomial probability distributions  Binomial probability distributions
Binomial probability distributions
Long Beach City College
 
Chi square distribution and analysis of frequencies.pptx
Chi square distribution and analysis of frequencies.pptxChi square distribution and analysis of frequencies.pptx
Chi square distribution and analysis of frequencies.pptx
ZayYa9
 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
rathorebhagwan07
 
random variable and distribution
random variable and distributionrandom variable and distribution
random variable and distribution
lovemucheca
 
Discrete Probability Distributions
Discrete Probability DistributionsDiscrete Probability Distributions
Discrete Probability Distributions
mandalina landy
 
Binomial Probability Distributions
Binomial Probability DistributionsBinomial Probability Distributions
Binomial Probability Distributions
Long Beach City College
 
Lect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_testLect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_test
Rione Drevale
 
Stat 130 chi-square goodnes-of-fit test
Stat 130   chi-square goodnes-of-fit testStat 130   chi-square goodnes-of-fit test
Stat 130 chi-square goodnes-of-fit test
Aldrin Lozano
 
Probability distribution Function & Decision Trees in machine learning
Probability distribution Function  & Decision Trees in machine learningProbability distribution Function  & Decision Trees in machine learning
Probability distribution Function & Decision Trees in machine learning
Sadia Zafar
 
Final examexamplesapr2013
Final examexamplesapr2013Final examexamplesapr2013
Final examexamplesapr2013
Brent Heard
 
Week8 livelecture2010 follow_up
Week8 livelecture2010 follow_upWeek8 livelecture2010 follow_up
Week8 livelecture2010 follow_up
Brent Heard
 
Discrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec domsDiscrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec doms
Babasab Patil
 
12 ch ken black solution
12 ch ken black solution12 ch ken black solution
12 ch ken black solution
Krunal Shah
 
Week8 livelecture2010
Week8 livelecture2010Week8 livelecture2010
Week8 livelecture2010
Brent Heard
 
Chi square tests
Chi square testsChi square tests
Chi square tests
waqole
 
Probability-1.pptx
Probability-1.pptxProbability-1.pptx
Probability-1.pptx
MuskanKhan320706
 
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
rhetttrevannion
 
Probability Distributions for Discrete Variables
Probability Distributions for Discrete VariablesProbability Distributions for Discrete Variables
Probability Distributions for Discrete Variables
getyourcheaton
 
Week8 Live Lecture for Final Exam
Week8 Live Lecture for Final ExamWeek8 Live Lecture for Final Exam
Week8 Live Lecture for Final Exam
Brent Heard
 

Similar to Chi square2012 (20)

Statistical analysis by iswar
Statistical analysis by iswarStatistical analysis by iswar
Statistical analysis by iswar
 
Binomial probability distributions
Binomial probability distributions  Binomial probability distributions
Binomial probability distributions
 
Chi square distribution and analysis of frequencies.pptx
Chi square distribution and analysis of frequencies.pptxChi square distribution and analysis of frequencies.pptx
Chi square distribution and analysis of frequencies.pptx
 
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptxCHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
CHI SQUARE DISTRIBUTIONdjfnbefklwfwpfioaekf.pptx
 
random variable and distribution
random variable and distributionrandom variable and distribution
random variable and distribution
 
Discrete Probability Distributions
Discrete Probability DistributionsDiscrete Probability Distributions
Discrete Probability Distributions
 
Binomial Probability Distributions
Binomial Probability DistributionsBinomial Probability Distributions
Binomial Probability Distributions
 
Lect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_testLect w7 t_test_amp_chi_test
Lect w7 t_test_amp_chi_test
 
Stat 130 chi-square goodnes-of-fit test
Stat 130   chi-square goodnes-of-fit testStat 130   chi-square goodnes-of-fit test
Stat 130 chi-square goodnes-of-fit test
 
Probability distribution Function & Decision Trees in machine learning
Probability distribution Function  & Decision Trees in machine learningProbability distribution Function  & Decision Trees in machine learning
Probability distribution Function & Decision Trees in machine learning
 
Final examexamplesapr2013
Final examexamplesapr2013Final examexamplesapr2013
Final examexamplesapr2013
 
Week8 livelecture2010 follow_up
Week8 livelecture2010 follow_upWeek8 livelecture2010 follow_up
Week8 livelecture2010 follow_up
 
Discrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec domsDiscrete and continuous probability distributions ppt @ bec doms
Discrete and continuous probability distributions ppt @ bec doms
 
12 ch ken black solution
12 ch ken black solution12 ch ken black solution
12 ch ken black solution
 
Week8 livelecture2010
Week8 livelecture2010Week8 livelecture2010
Week8 livelecture2010
 
Chi square tests
Chi square testsChi square tests
Chi square tests
 
Probability-1.pptx
Probability-1.pptxProbability-1.pptx
Probability-1.pptx
 
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
 
Probability Distributions for Discrete Variables
Probability Distributions for Discrete VariablesProbability Distributions for Discrete Variables
Probability Distributions for Discrete Variables
 
Week8 Live Lecture for Final Exam
Week8 Live Lecture for Final ExamWeek8 Live Lecture for Final Exam
Week8 Live Lecture for Final Exam
 

Recently uploaded

Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
MJDuyan
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
Celine George
 
BPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end examBPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end exam
sonukumargpnirsadhan
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
Celine George
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
nitinpv4ai
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
Celine George
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
ImMuslim
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
zuzanka
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
Nguyen Thanh Tu Collection
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
Kalna College
 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
Celine George
 
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
OH TEIK BIN
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 

Recently uploaded (20)

Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) CurriculumPhilippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
Philippine Edukasyong Pantahanan at Pangkabuhayan (EPP) Curriculum
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
 
BPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end examBPSC-105 important questions for june term end exam
BPSC-105 important questions for june term end exam
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
 
How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17How to Setup Default Value for a Field in Odoo 17
How to Setup Default Value for a Field in Odoo 17
 
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
Geography as a Discipline Chapter 1 __ Class 11 Geography NCERT _ Class Notes...
 
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptxRESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
RESULTS OF THE EVALUATION QUESTIONNAIRE.pptx
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
220711130083 SUBHASHREE RAKSHIT  Internet resources for social science220711130083 SUBHASHREE RAKSHIT  Internet resources for social science
220711130083 SUBHASHREE RAKSHIT Internet resources for social science
 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
 
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 

Chi square2012

  • 2. Chi-Squared tests (χ2 ): Use with nominal (categorical) data – when all you have is the frequency with which certain events have occurred. score per participant (aim for this, where possible) categorical data (avoid this, where possible) "psycho""non-psycho"
  • 3. The χ2 “Goodness of Fit” test: Compares an observed frequency distribution with an expected frequency distribution. Useful when you have the observed frequencies for a number of mutually- exclusive categories, and you want to decide if they have occurred equally frequently. No. of squirrels killed yearly on the A27 0 10 20 30 40 50 60 1 2 3 4 5 6 7 Year of study Numberofdeadsquirrels Observed frequency Expected frequency
  • 4. Which soap-powder name do shoppers like best? Each of 100 shoppers picks the powder name they like most. Number of shoppers picking each name (observed frequencies): Washo Scruba Musty Stainzoff Beeo total 40 35 5 10 10 100 Expected frequency for each category is total no.observations / number of categories 100 / 5 = 20.
  • 5. ( ) ∑ − = E EO 22 χ The formula for Chi-Square: ( ) E EO − 2 Washo Scruba Musty Stainzoff Beeo total O: 40 35 5 10 10 100 E: 20 20 20 20 20 100 (O-E): 20 15 -15 -10 -10 (O-E) 2 400 225 225 100 100 20 11.25 11.25 5 5 χ2 = 52.5
  • 6. Chi-squared is the sum of the squared differences between each observed frequency and its associated expected frequency. The bigger the value of χ2, the greater the difference between observed and expected frequencies. But how big does χ2 have to be, to be regarded as “big”? Is 52.5 “big”?
  • 7. We compare our obtained χ2 value to χ2 values which would be obtained by chance. To do this, we need the “degrees of freedom”: this is the number of categories (or “cells”) minus one. We have a χ2 value of 52.5, with 5-1 = 4 d.f. Tables show how likely various values of χ2 are to occur by chance. e.g.: probability level: d.f. .05 .01 .001 1 3.84 6.63 10.83 2 5.99 9.21 13.82 3 7.81 11.34 16.27 4 9.49 13.28 18.46 5 11.07 etc. etc. 52.5 is bigger than 18.46, a value of χ2 which will occur by chance less than 1 times in a 1000 (p<.001).
  • 8. The sampling distribution of chi-square: Frequency with which χ2 values occur purely by chance: With 4 d.f., χ2 values of 9.49 or more are likely to occur by chance on less than .05 of occasions.
  • 9. Our obtained χ2 = 52.5, with 4 d.f., p < .001. A χ2 value this large is highly unlikely to have arisen by chance. It appears that the distribution of shoppers’ choices across soap-powder names is not random. Some names get picked more than we would expect by chance and some get picked less.
  • 10. The χ2 test of association between two independent variables: Another common use of χ2 is to determine whether there is an association between two independent variables. Is there an association between gender (male or female: IV A) and soap powder (Washo, Musty, etc.: IV B)?
  • 11. This gives a 2 x 5 contingency table. Data for a random sample of 100 shoppers, 70 men and 30 women: Washoe Scrubbup Musty Stainoff Nogunge total male 10 12 5 3 40 70 female 6 2 1 20 1 30 totals: 16 14 6 23 41 100
  • 12. To calculate expected frequencies: E = row total * column total grand total Work out the expected frequency for each cell: Washoe Scrubbup Musty Stainoff Nogunge total male 10 (11.2) 12 (9.8) 5 (4.2) 3 (16.1) 40 (28.7) 70 female 6 (4.8) 2 (4.2) 1 (1.8) 20 (6.9) 1 (12.3) 30 totals: 16 14 6 23 41 100 e.g. 11.2 = (16 * 70)/100 6.9 = (23 * 30)/100, etc.
  • 13. Using exactly the same formula as before, we get χ2 = 52.94. d.f. = (number of rows - 1) * (number of columns - 1). We have two rows and five columns, so d.f. = (2-1) * (5-1) = 4 d.f. Use the same table to assess the chances of obtaining a Chi-Squared value as large as this by chance; again p< .001. Conclusion: our observed frequencies are significantly different from the frequencies we would expect to obtain if there were no association between the two variables: i.e. the pattern of name preferences is different for men and women.
  • 14. Chi-Square test merely tells you that there is some relationship (an association) between the two variables in question: it does not tell you anything about the causal relationship between the two variables. Here, it is reasonable to assume that gender causes people to pick different soap powder names; it's unlikely that soap powder names cause people to be male or female. However, in principle the direction of causality could equally well go in either direction.
  • 15. Assumptions of the Chi-Square test: 1. Observations must be independent: each subject must contribute to one and only one category. Otherwise the test results are completely invalid. 2. Problems arise when expected frequencies are very small. Chi-Square should not be used if more than 20% of the expected frequencies have a value of less than 5. (It does not matter what the observed frequencies are). Two solutions: combine some categories (if this is meaningful in your experiment), OR obtain more data (make the sample size bigger).
  • 16. χ2 test of association - the one- d.f. case: Preferred TV programme: Stenders: Corrie: Row total: Origin: North: 13 10 23 South: 5 24 29 Column total: 18 34 52 With 1 d.f. (as with a 2 x 2 table), the obtained χ2 value is inflated; some statisticians advocate using "Yates' Correction for Continuity" to make the χ2 test more conservative (i.e. make χ2 value smaller and hence less likely to be significant).
  • 17. Same procedure as before, except (a) take the absolute value of O - E (i.e., ignore any negative signs). (b) Subtract 0.5 from each O-E, before squaring it. ( ) ∑ −− =χ E 0.5EO 2 2 Without Yates’ Correction: χ2 = 8.74. With Yates’ Correction: χ2 = 7.09.
  • 18. Why you should avoid using Chi-Square if you can: Design studies so that you can avoid using Chi- Square! Frequency data give little information about participants' performance: all you have is knowledge about which category someone is in, a very crude measure. It's much more informative to obtain one or more scores per participant; scores give you more information about performance than categorical data (and can be used with better statistical tests). e.g. IQ: which is better - to know participants are “bright” or “dim”, or have their actual IQ scores?
  • 19. χ2 Goodness of Fit test on "fast food" data, using SPSS: Are all brands mentioned equally frequently? Analyze > Nonparametric Tests> Legacy Dialogs > Chi-Square Brand first mentioned 57 50.0 7.0 1 50.0 -49.0 44 50.0 -6.0 274 50.0 224.0 1 50.0 -49.0 10 50.0 -40.0 3 50.0 -47.0 10 50.0 -40.0 400 Burger King Domino Pizza KFC McDonalds Pizza Express Pizza Hut Wimpy Other Total Observed N Expected N Residual Test Statistics 1209.440 7 .000 Chi-Square a df Asymp. Sig. Brand first mentioned 0 cells (.0%) have expected frequencies less than 5. The minimum expected cell frequency is 50.0. a.
  • 20. χ2 test of association on "fast food" data, using SPSS: Is there an association between gender and brand first mentioned? Analyze > Descriptive Statistics > Crosstabs...
  • 21. χ2 test of association on "fast food" data (continued): Is there an association between gender and brand first mentioned? Case Processing Summary 375 100.0% 0 .0% 375 100.0% Sex * Brand first mentioned N Percent N Percent N Percent Valid Missing Total Cases Sex * Brand first mentioned Crosstabulation 30 21 135 186 28.3 21.8 135.9 186.0 27 23 139 189 28.7 22.2 138.1 189.0 57 44 274 375 57.0 44.0 274.0 375.0 Count Expected Count Count Expected Count Count Expected Count Male Female Sex Total Burger King KFC McDonalds Brand first mentioned Total Chi-Square Tests .283a 2 .868 .283 2 .868 .135 1 .714 375 Pearson Chi-Square Likelihood Ratio Linear-by-Linear Association N of Valid Cases Value df Asymp. Sig. (2-sided) 0 cells (.0%) have expected count less than 5. The minimum expected count is 21.82. a. 11 response categories - gives too many expected frequencies < 5. Therefore confined analysis to Burger King, KFC and McDonalds. (Use "Select Cases" on "Data" menu to filter out unwanted response categories). Conclusion: no significant association between gender and brand first mentioned. (χ2 (2) = 0.28, p = .87)

Editor's Notes

  1. I put a full stop inside the bracket and at the end of the last sentence.