SlideShare uma empresa Scribd logo
1 de 21
Statistics 3 The Chi Squared ( χ 2 ) Test   - Lesson 1 - ,[object Object],[object Object],[object Object],[object Object]
Purpose of the Chi Squared Test The purpose of the chi squared test is to see whether observed experimental data is a  ‘good fit’  with theoretical expected results. The  χ 2  statistic is calculated in the following way:
Source:   http://en.wikipedia.org/wiki/File:Chi-square_distributionPDF.png
Notes on the Chi Squared Distribution 1.)  ν  (the number of degrees of freedom) is calculated from the number of classes – the number of restrictions. 2.) A restriction is defined as any value that is derived from the observed data set. 3.) The chi squared distribution is continuous and thus offers poor approximation when dealing with small frequencies. When calculating  χ 2  we have to combine any classes which contain expected frequencies of less than 5 elements. 4.) As with most statistical distributions, we do not need to concern ourselves with calculating by hand as all critical values are tabulated for easy reference.
Lesson 1 - Example Question I The table below shows the results when a die is rolled 120 times. Conduct a chi squared test to see whether the die is fair or not at the 5% significance level. 24 20 18 14 29 15 Freq 6 5 4 3 2 1 Score
Lesson 1 - Example Question II  The table below shows the results of an experiment in which four coins thrown 160 times and the number of heads recorded. a.) Fit a Bin (4, ½) distribution to the data. b.) Test the goodness of fit of the Bin (4, ½) model using a chi squared test at the 5% significance level.  10 35 54 46 15 Freq 4 3 2 1 0 Score
Practice Questions  Statistics 3 and 4 by Jane Miller Page 121, Exercise 5A Questions 1 and 3
Statistics 3 The Chi Squared ( χ 2 ) Test   - Lesson 2 - ,[object Object],[object Object],[object Object]
Statistics 3 The Chi Squared ( χ 2 ) Test   - Lesson 3 - ,[object Object],[object Object],[object Object],[object Object]
Lesson 3 - Example Question  The table below shows the number of calls arriving at a switchboard in time intervals of 5 minutes. Test at the 5% significance level whether the Poisson distribution provides a good model for this data. 0 2 4 23 71 Freq 4 or more 3 2 1 0 No
Practice Questions  Statistics 3 and 4 by Jane Miller Page 121, Exercise 5A Questions  11 (part a only) (Poisson) 2 (Ratio) 12 (Geometric) 13 (Poisson)
Statistics 3 The Chi Squared ( χ 2 ) Test   - Lesson 4 - ,[object Object],[object Object]
Lesson 4 - Example Question  The height in centimetres gained by a conifer in its first year after planting is denoted by the random variable H. The value of H is measured for a random sample of 86 conifers and the results obtained are summarised in the table below. Assuming that H is modelled by a N(50, 15 2 ) distribution, test at the 5% level, the goodness of fit of the model. 12 18 28 18 10 Obs Freq >65 55-65 45-55 35-45 <35 H
Practice Questions  Statistics 3 and 4 by Jane Miller Page 128, Exercise 5B Question 1 onwards
Statistics 3 The Chi Squared ( χ 2 ) Test   - Lesson 5 - ,[object Object],[object Object],[object Object],[object Object]
Degrees of Freedom The number of degrees of freedom in a h x k contingency table is given by ν  = (h – 1) x (k – 1).
Lesson 5 - Example Question I Is income level independent of method of transport? 693 129 102 462 Total 266 29 32 205 Large 312 64 49 199 Average 115 36 21 58 Small Income Level Total Self Public Car Method of Transport
Lesson 5 - Example Question II A university sociology department believes that students with a good grade in A Level General Studies tend to do well on sociology degree courses. To check this it has collected information on a random sample of 100 who had just graduated and who also had taken general studies at A Level. The students performance in General Studies was divided into two categories, those with grades A or B and ‘others’. Their degrees were recorded as Class I, II, III or fail. The data is given in the table below. Test at the 1% level, the hypothesis that degree performance is independent of A level performance in General Studies. 100 5 30 50 15 Total 60 4 24 28 4 Others 40 1 6 22 11 Grade A or B Total Fail Class III Class II Class I
Yates Correction χ 2  is a continuous distribution whilst  χ 2 calc   is not. In the case of a 2 x 2 contingency table for which  ν  = 1, the agreement between the two distributions can be improved by applying a continuity correction called Yates Correction. This involves reducing each value of |O – E| by 0.5
Lesson 5 - Example Question III A random sample of 930 companies quoted on the stock exchange revealed the information summarised in the table below, which shows the distribution of these companies classified according to two attributes. In this table, D indicates that the company has diversified its product range during the previous financial year, and P indicates that there has been a significant rise in profits during the previous financial year. The null hypothesis is that D and P are independent. Show that this can rejected at all reasonable significance levels. 377 299 Not P 106 148 P Not D D
Practice Questions  ,[object Object],[object Object],[object Object],[object Object],[object Object]

Mais conteúdo relacionado

Mais procurados

Linear regression
Linear regressionLinear regression
Linear regressionTech_MX
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression AnalysisSalim Azad
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis pptElkana Rorio
 
Anova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminAnova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminHazilahMohd
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlationShakeel Nouman
 
Chapter 4 - multiple regression
Chapter 4  - multiple regressionChapter 4  - multiple regression
Chapter 4 - multiple regressionTauseef khan
 
One way anova final ppt.
One way anova final ppt.One way anova final ppt.
One way anova final ppt.Aadab Mushrib
 
Chi squared test
Chi squared testChi squared test
Chi squared testDhruv Patel
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and RegressionShubham Mehta
 
Multivariate data analysis regression, cluster and factor analysis on spss
Multivariate data analysis   regression, cluster and factor analysis on spssMultivariate data analysis   regression, cluster and factor analysis on spss
Multivariate data analysis regression, cluster and factor analysis on spssAditya Banerjee
 
Presentation on Regression Analysis
Presentation on Regression AnalysisPresentation on Regression Analysis
Presentation on Regression AnalysisJ P Verma
 
Anova ONE WAY
Anova ONE WAYAnova ONE WAY
Anova ONE WAYelulu123
 

Mais procurados (20)

Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 
Anova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminAnova by Hazilah Mohd Amin
Anova by Hazilah Mohd Amin
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Simple linear regression and correlation
Simple linear regression and correlationSimple linear regression and correlation
Simple linear regression and correlation
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Chi-Square test.pptx
Chi-Square test.pptxChi-Square test.pptx
Chi-Square test.pptx
 
Chapter 4 - multiple regression
Chapter 4  - multiple regressionChapter 4  - multiple regression
Chapter 4 - multiple regression
 
One way anova final ppt.
One way anova final ppt.One way anova final ppt.
One way anova final ppt.
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 
Multivariate data analysis regression, cluster and factor analysis on spss
Multivariate data analysis   regression, cluster and factor analysis on spssMultivariate data analysis   regression, cluster and factor analysis on spss
Multivariate data analysis regression, cluster and factor analysis on spss
 
Anova ppt
Anova pptAnova ppt
Anova ppt
 
Chi Square & Anova
Chi Square & AnovaChi Square & Anova
Chi Square & Anova
 
Presentation on Regression Analysis
Presentation on Regression AnalysisPresentation on Regression Analysis
Presentation on Regression Analysis
 
Anova ONE WAY
Anova ONE WAYAnova ONE WAY
Anova ONE WAY
 
Repeated Measures ANOVA
Repeated Measures ANOVARepeated Measures ANOVA
Repeated Measures ANOVA
 
Correlation and Regression
Correlation and RegressionCorrelation and Regression
Correlation and Regression
 

Destaque (20)

Chi square test
Chi square testChi square test
Chi square test
 
Chi square
Chi squareChi square
Chi square
 
Chi square test
Chi square test Chi square test
Chi square test
 
Chi – square test
Chi – square testChi – square test
Chi – square test
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Chi Squared
Chi SquaredChi Squared
Chi Squared
 
Chi square test final presentation
Chi square test final presentationChi square test final presentation
Chi square test final presentation
 
The Chi-Squared Test
The Chi-Squared TestThe Chi-Squared Test
The Chi-Squared Test
 
Chi square test
Chi square testChi square test
Chi square test
 
03 The Chi Squared Test
03 The Chi Squared Test03 The Chi Squared Test
03 The Chi Squared Test
 
Chisquare
ChisquareChisquare
Chisquare
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
 
The kolmogorov smirnov test
The kolmogorov smirnov testThe kolmogorov smirnov test
The kolmogorov smirnov test
 
Chi square
Chi squareChi square
Chi square
 
Z test
Z testZ test
Z test
 
Hrm practices in uk
Hrm practices in ukHrm practices in uk
Hrm practices in uk
 
Path analysis
Path analysisPath analysis
Path analysis
 
Anomaly detection, part 1
Anomaly detection, part 1Anomaly detection, part 1
Anomaly detection, part 1
 
Chi squared test
Chi squared testChi squared test
Chi squared test
 
Chi square analysis
Chi square analysisChi square analysis
Chi square analysis
 

Semelhante a Chi Squared Test

Statistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxStatistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxdessiechisomjj4
 
Hypothesis testing part i
Hypothesis testing part iHypothesis testing part i
Hypothesis testing part iNadeem Uddin
 
JKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docxJKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docxchristiandean12115
 
ELEMENTS OF STATISTICS / TUTORIALOUTLET DOT COM
ELEMENTS OF STATISTICS / TUTORIALOUTLET DOT COMELEMENTS OF STATISTICS / TUTORIALOUTLET DOT COM
ELEMENTS OF STATISTICS / TUTORIALOUTLET DOT COMalbert0076
 
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docx
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docxPart 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docx
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docxodiliagilby
 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisMichael770443
 
Hypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit testHypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit testNadeem Uddin
 
501 assignment1
501 assignment1501 assignment1
501 assignment1Wa Ain
 
Confidence Intervals And The T Distribution
Confidence Intervals And The T   DistributionConfidence Intervals And The T   Distribution
Confidence Intervals And The T DistributionDarren Barton
 
Statistics question and answers with mcqs
Statistics question and answers with mcqsStatistics question and answers with mcqs
Statistics question and answers with mcqsNandiniYadav69
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research dataAtula Ahuja
 

Semelhante a Chi Squared Test (20)

Statistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docxStatistics practice for finalBe sure to review the following.docx
Statistics practice for finalBe sure to review the following.docx
 
Hypothesis testing part i
Hypothesis testing part iHypothesis testing part i
Hypothesis testing part i
 
Chi square
Chi squareChi square
Chi square
 
qm2CHAP12.ppt
qm2CHAP12.pptqm2CHAP12.ppt
qm2CHAP12.ppt
 
Chisquare Test
Chisquare Test Chisquare Test
Chisquare Test
 
JKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docxJKN 10 Inference 2 Populations.Consider the following set of d.docx
JKN 10 Inference 2 Populations.Consider the following set of d.docx
 
Chi- Square test.pptx
Chi- Square test.pptxChi- Square test.pptx
Chi- Square test.pptx
 
Goodness of fit (ppt)
Goodness of fit (ppt)Goodness of fit (ppt)
Goodness of fit (ppt)
 
ELEMENTS OF STATISTICS / TUTORIALOUTLET DOT COM
ELEMENTS OF STATISTICS / TUTORIALOUTLET DOT COMELEMENTS OF STATISTICS / TUTORIALOUTLET DOT COM
ELEMENTS OF STATISTICS / TUTORIALOUTLET DOT COM
 
Practice Test 1
Practice Test 1Practice Test 1
Practice Test 1
 
Chapter12
Chapter12Chapter12
Chapter12
 
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docx
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docxPart 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docx
Part 1 of 16 -Question 1 of 231.0 PointsThe data presented i.docx
 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
 
Day 3 SPSS
Day 3 SPSSDay 3 SPSS
Day 3 SPSS
 
Hypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit testHypothesis testing chi square goodness of fit test
Hypothesis testing chi square goodness of fit test
 
501 assignment1
501 assignment1501 assignment1
501 assignment1
 
Confidence Intervals And The T Distribution
Confidence Intervals And The T   DistributionConfidence Intervals And The T   Distribution
Confidence Intervals And The T Distribution
 
Chapter12
Chapter12Chapter12
Chapter12
 
Statistics question and answers with mcqs
Statistics question and answers with mcqsStatistics question and answers with mcqs
Statistics question and answers with mcqs
 
Analyzing experimental research data
Analyzing experimental research dataAnalyzing experimental research data
Analyzing experimental research data
 

Último

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Último (20)

Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

Chi Squared Test

  • 1.
  • 2. Purpose of the Chi Squared Test The purpose of the chi squared test is to see whether observed experimental data is a ‘good fit’ with theoretical expected results. The χ 2 statistic is calculated in the following way:
  • 3. Source: http://en.wikipedia.org/wiki/File:Chi-square_distributionPDF.png
  • 4. Notes on the Chi Squared Distribution 1.) ν (the number of degrees of freedom) is calculated from the number of classes – the number of restrictions. 2.) A restriction is defined as any value that is derived from the observed data set. 3.) The chi squared distribution is continuous and thus offers poor approximation when dealing with small frequencies. When calculating χ 2 we have to combine any classes which contain expected frequencies of less than 5 elements. 4.) As with most statistical distributions, we do not need to concern ourselves with calculating by hand as all critical values are tabulated for easy reference.
  • 5. Lesson 1 - Example Question I The table below shows the results when a die is rolled 120 times. Conduct a chi squared test to see whether the die is fair or not at the 5% significance level. 24 20 18 14 29 15 Freq 6 5 4 3 2 1 Score
  • 6. Lesson 1 - Example Question II The table below shows the results of an experiment in which four coins thrown 160 times and the number of heads recorded. a.) Fit a Bin (4, ½) distribution to the data. b.) Test the goodness of fit of the Bin (4, ½) model using a chi squared test at the 5% significance level. 10 35 54 46 15 Freq 4 3 2 1 0 Score
  • 7. Practice Questions Statistics 3 and 4 by Jane Miller Page 121, Exercise 5A Questions 1 and 3
  • 8.
  • 9.
  • 10. Lesson 3 - Example Question The table below shows the number of calls arriving at a switchboard in time intervals of 5 minutes. Test at the 5% significance level whether the Poisson distribution provides a good model for this data. 0 2 4 23 71 Freq 4 or more 3 2 1 0 No
  • 11. Practice Questions Statistics 3 and 4 by Jane Miller Page 121, Exercise 5A Questions 11 (part a only) (Poisson) 2 (Ratio) 12 (Geometric) 13 (Poisson)
  • 12.
  • 13. Lesson 4 - Example Question The height in centimetres gained by a conifer in its first year after planting is denoted by the random variable H. The value of H is measured for a random sample of 86 conifers and the results obtained are summarised in the table below. Assuming that H is modelled by a N(50, 15 2 ) distribution, test at the 5% level, the goodness of fit of the model. 12 18 28 18 10 Obs Freq >65 55-65 45-55 35-45 <35 H
  • 14. Practice Questions Statistics 3 and 4 by Jane Miller Page 128, Exercise 5B Question 1 onwards
  • 15.
  • 16. Degrees of Freedom The number of degrees of freedom in a h x k contingency table is given by ν = (h – 1) x (k – 1).
  • 17. Lesson 5 - Example Question I Is income level independent of method of transport? 693 129 102 462 Total 266 29 32 205 Large 312 64 49 199 Average 115 36 21 58 Small Income Level Total Self Public Car Method of Transport
  • 18. Lesson 5 - Example Question II A university sociology department believes that students with a good grade in A Level General Studies tend to do well on sociology degree courses. To check this it has collected information on a random sample of 100 who had just graduated and who also had taken general studies at A Level. The students performance in General Studies was divided into two categories, those with grades A or B and ‘others’. Their degrees were recorded as Class I, II, III or fail. The data is given in the table below. Test at the 1% level, the hypothesis that degree performance is independent of A level performance in General Studies. 100 5 30 50 15 Total 60 4 24 28 4 Others 40 1 6 22 11 Grade A or B Total Fail Class III Class II Class I
  • 19. Yates Correction χ 2 is a continuous distribution whilst χ 2 calc is not. In the case of a 2 x 2 contingency table for which ν = 1, the agreement between the two distributions can be improved by applying a continuity correction called Yates Correction. This involves reducing each value of |O – E| by 0.5
  • 20. Lesson 5 - Example Question III A random sample of 930 companies quoted on the stock exchange revealed the information summarised in the table below, which shows the distribution of these companies classified according to two attributes. In this table, D indicates that the company has diversified its product range during the previous financial year, and P indicates that there has been a significant rise in profits during the previous financial year. The null hypothesis is that D and P are independent. Show that this can rejected at all reasonable significance levels. 377 299 Not P 106 148 P Not D D
  • 21.