SlideShare a Scribd company logo
1 of 14
Download to read offline
1
Goodness of Fit Statistics
for Poisson Regression
2
Outline
• Example 3: Recall of Stressful Events
• Goodness of fit statistics
– Pearson Chi-Square test
– Log-Likelihood Ratio test
3
Example 3: Recall of Stressful Events
• Let us explore another (simple) Poisson model example
(no covariate to start with)
4
Example 3: Recall of Stressful Events
• Participants of a randomised study where asked
if they had experienced any stressful events in
the last 18 months. If yes, in which month?
• 147 stressful events reported in the 18 months
prior to interview.
5
Example 3: Recall of Stressful Events
• H0: Events uniformly distributed over time.
H0: p1 = p2 = … = p18 = 1/18 = 0.055
where pi = probability of event in month i.
i.e. we would expect about 5.5% of all events
per month
6
month count % month count %
1 15 10.2 10 10 6.8
2 11 7.5 11 7 4.8
3 14 9.5 12 9 6.1
4 17 11.5 13 11 7.5
5 5 3.4 14 3 2.0
6 11 7.5 15 6 4.1
7 10 6.8 16 1 0.7
8 4 2.7 17 1 0.7
9 8 5.4 18 4 2.7
Example 3: Recall of Stressful Events Data
7
Evaluation of Poisson Model
• Let us evaluate the model using Goodness of Fit Statistics
• Pearson Chi-square test
• Deviance or Log Likelihood Ratio test for Poisson regression
• Both are goodness-of-fit test statistics which compare 2
models, where the larger model is the saturated model
(which fits the data perfectly and explains all of the
variability).
8
Pearson and Likelihood Ratio Test Statistics
• In this last example, if H0 is true the expected
number of stressful events in month i (in any
month) is (equiprobable model)
• i.e. we have a model with one parameter
i i
i
E ( y ) 1 4 7 * (1 / 1 8 ) 8 .1 7
lo g ( ) i 1 , ,C
m
m a
= = =
= =
a
9
Month Count
Obs Oi
Count
Exp Ei
Month Count
Obs Oi
Count
Exp Ei
1 15 8.17 10 10 8.17
2 11 8.17 11 7 8.17
3 14 8.17 12 9 8.17
4 17 8.17 13 11 8.17
5 5 8.17 14 3 8.17
6 11 8.17 15 6 8.17
7 10 8.17 16 1 8.17
8 4 8.17 17 1 8.17
9 8 8.17 18 4 8.17
Observed and expected count
10
Pearson Chi-Squared Test Statistic
• The Pearson chi-squared test statistic is the
sum of the standardized residuals squared
222
8.17
17.84
...
8.17
17.811
8.17
17.851





 





 





 
 = 45.4








 

icells
2
i
ii2
E
EO
11
• If H0 is true
X2 ~ χ2
df
where df = degrees of freedom
= no. of cells – no. of model parameters
= C - 1
• X2 = 45.4 with 17 df (at 5% significance level the value
from the chi-square table is 27.6)
p-value < 0.001  reject H0.
• Conclusion: There is strong evidence that the
equiprobable model does not fit the data.
Pearson Chi-Squared Test Statistic
• The Log Likelihood Ratio test statistic (also called
Deviance of the Poisson Model) is
• This can be used as a measure of the fit of the
model (goodness of fit statistics)
 






icells i
i
i
2
E
O
logO2L
12
Log Likelihood Ratio Test Statistic for Poisson Regression
13
• If H0 is true
L2 ~ χ2
df
where df = degrees of freedom
= no. of cells – no. of model parameters
= C - 1
• L2 = 50.8 with 17 df.
p-value < 0.001  reject H0.
• Conclusion: There is strong evidence that the
equiprobable model does not fit the data.
Log Likelihood Ratio Test
14
Remarks
• X2 and L2 are asymptotically equivalent. If they
are not similar, this is an indication that the
large sample approximation may not hold.
• For fixed df, as n increases the distribution of X2
usually converges to χ2
df more quickly than L2.
The chi-squared approximation is usually poor
when expected cell frequencies are less than 5.

More Related Content

What's hot

Mann Whitney U Test | Statistics
Mann Whitney U Test | StatisticsMann Whitney U Test | Statistics
Mann Whitney U Test | StatisticsTransweb Global Inc
 
The linear regression model: Theory and Application
The linear regression model: Theory and ApplicationThe linear regression model: Theory and Application
The linear regression model: Theory and ApplicationUniversity of Salerno
 
Simple Linier Regression
Simple Linier RegressionSimple Linier Regression
Simple Linier Regressiondessybudiyanti
 
Linear regression
Linear regression Linear regression
Linear regression Vani011
 
Ap calculus warm up 8.27.13
Ap calculus warm up   8.27.13Ap calculus warm up   8.27.13
Ap calculus warm up 8.27.13Ron Eick
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepDan Wellisch
 
ML - Simple Linear Regression
ML - Simple Linear RegressionML - Simple Linear Regression
ML - Simple Linear RegressionAndrew Ferlitsch
 
Regression analysis
Regression analysisRegression analysis
Regression analysisRavi shankar
 
Regression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn LottierRegression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn LottierAl Arizmendez
 
Linear regression without tears
Linear regression without tearsLinear regression without tears
Linear regression without tearsAnkit Sharma
 
Regression analysis by Muthama JM
Regression analysis by Muthama JMRegression analysis by Muthama JM
Regression analysis by Muthama JMJapheth Muthama
 
Linear regression
Linear regressionLinear regression
Linear regressionSreerajVA
 
Sharear jaman dip(stastics)
Sharear jaman dip(stastics)Sharear jaman dip(stastics)
Sharear jaman dip(stastics)sharear15
 

What's hot (20)

Mann Whitney U Test | Statistics
Mann Whitney U Test | StatisticsMann Whitney U Test | Statistics
Mann Whitney U Test | Statistics
 
The linear regression model: Theory and Application
The linear regression model: Theory and ApplicationThe linear regression model: Theory and Application
The linear regression model: Theory and Application
 
Chi square using excel
Chi square using excelChi square using excel
Chi square using excel
 
Simple Linier Regression
Simple Linier RegressionSimple Linier Regression
Simple Linier Regression
 
Simple Regression
Simple RegressionSimple Regression
Simple Regression
 
Regression analysis in excel
Regression analysis in excelRegression analysis in excel
Regression analysis in excel
 
Linear regression
Linear regression Linear regression
Linear regression
 
Ap calculus warm up 8.27.13
Ap calculus warm up   8.27.13Ap calculus warm up   8.27.13
Ap calculus warm up 8.27.13
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Linear regression theory
Linear regression theoryLinear regression theory
Linear regression theory
 
Simple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-StepSimple Linear Regression: Step-By-Step
Simple Linear Regression: Step-By-Step
 
Stats chapter 6
Stats chapter 6Stats chapter 6
Stats chapter 6
 
ML - Simple Linear Regression
ML - Simple Linear RegressionML - Simple Linear Regression
ML - Simple Linear Regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn LottierRegression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn Lottier
 
Linear regression without tears
Linear regression without tearsLinear regression without tears
Linear regression without tears
 
Regression analysis by Muthama JM
Regression analysis by Muthama JMRegression analysis by Muthama JM
Regression analysis by Muthama JM
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Sharear jaman dip(stastics)
Sharear jaman dip(stastics)Sharear jaman dip(stastics)
Sharear jaman dip(stastics)
 
Correlation analysis
Correlation analysisCorrelation analysis
Correlation analysis
 

Viewers also liked

Introduction to Structural Equation Modeling
Introduction to Structural Equation ModelingIntroduction to Structural Equation Modeling
Introduction to Structural Equation ModelingUniversity of Southampton
 
Colegio bachilleres de chiapas plantel 32 windows 3.1 1D
Colegio bachilleres de chiapas  plantel 32 windows 3.1 1DColegio bachilleres de chiapas  plantel 32 windows 3.1 1D
Colegio bachilleres de chiapas plantel 32 windows 3.1 1DMauricio Ruiz Paredes
 
ΟΙΚΟΝΟΜΕΤΡΙΑ-ΠΑΡΟΥΣΙΑΣΗ
ΟΙΚΟΝΟΜΕΤΡΙΑ-ΠΑΡΟΥΣΙΑΣΗΟΙΚΟΝΟΜΕΤΡΙΑ-ΠΑΡΟΥΣΙΑΣΗ
ΟΙΚΟΝΟΜΕΤΡΙΑ-ΠΑΡΟΥΣΙΑΣΗIlias Pappas
 
Creative research methods: Transformative research frameworks
Creative research methods: Transformative research frameworksCreative research methods: Transformative research frameworks
Creative research methods: Transformative research frameworksUniversity of Southampton
 
Video stimulated reflection, recall and dialogue-introduction to methods
Video stimulated reflection, recall and dialogue-introduction to methodsVideo stimulated reflection, recall and dialogue-introduction to methods
Video stimulated reflection, recall and dialogue-introduction to methodsUniversity of Southampton
 
Examples of automated_zone_design_in_practice
Examples of automated_zone_design_in_practiceExamples of automated_zone_design_in_practice
Examples of automated_zone_design_in_practiceUniversity of Southampton
 
Creative research methods: Arts-based methods
Creative research methods: Arts-based methodsCreative research methods: Arts-based methods
Creative research methods: Arts-based methodsUniversity of Southampton
 
Creative research methods: Research using technology
Creative research methods: Research using technologyCreative research methods: Research using technology
Creative research methods: Research using technologyUniversity of Southampton
 
An introduction to Jupyter Notebooks for Social Science research
An introduction to Jupyter Notebooks for Social Science researchAn introduction to Jupyter Notebooks for Social Science research
An introduction to Jupyter Notebooks for Social Science researchUniversity of Southampton
 

Viewers also liked (20)

Confirmatory Factor Analysis
Confirmatory Factor AnalysisConfirmatory Factor Analysis
Confirmatory Factor Analysis
 
Key ideas, terms and concepts in SEM
Key ideas, terms and concepts in SEMKey ideas, terms and concepts in SEM
Key ideas, terms and concepts in SEM
 
Introduction to Structural Equation Modeling
Introduction to Structural Equation ModelingIntroduction to Structural Equation Modeling
Introduction to Structural Equation Modeling
 
Colegio bachilleres de chiapas plantel 32 windows 3.1 1D
Colegio bachilleres de chiapas  plantel 32 windows 3.1 1DColegio bachilleres de chiapas  plantel 32 windows 3.1 1D
Colegio bachilleres de chiapas plantel 32 windows 3.1 1D
 
ΟΙΚΟΝΟΜΕΤΡΙΑ-ΠΑΡΟΥΣΙΑΣΗ
ΟΙΚΟΝΟΜΕΤΡΙΑ-ΠΑΡΟΥΣΙΑΣΗΟΙΚΟΝΟΜΕΤΡΙΑ-ΠΑΡΟΥΣΙΑΣΗ
ΟΙΚΟΝΟΜΕΤΡΙΑ-ΠΑΡΟΥΣΙΑΣΗ
 
Statistical discolosure control
Statistical discolosure controlStatistical discolosure control
Statistical discolosure control
 
Introduction to az_tool_software
Introduction to az_tool_softwareIntroduction to az_tool_software
Introduction to az_tool_software
 
Principles of automated_zone_design_methods
Principles of automated_zone_design_methodsPrinciples of automated_zone_design_methods
Principles of automated_zone_design_methods
 
Creative research methods: Transformative research frameworks
Creative research methods: Transformative research frameworksCreative research methods: Transformative research frameworks
Creative research methods: Transformative research frameworks
 
Video stimulated reflection, recall and dialogue-introduction to methods
Video stimulated reflection, recall and dialogue-introduction to methodsVideo stimulated reflection, recall and dialogue-introduction to methods
Video stimulated reflection, recall and dialogue-introduction to methods
 
Anonymisation decision making framework
Anonymisation decision making frameworkAnonymisation decision making framework
Anonymisation decision making framework
 
Anonymisation theory and practice
Anonymisation theory and practiceAnonymisation theory and practice
Anonymisation theory and practice
 
Introduction automated zone design
Introduction automated zone designIntroduction automated zone design
Introduction automated zone design
 
Examples of automated_zone_design_in_practice
Examples of automated_zone_design_in_practiceExamples of automated_zone_design_in_practice
Examples of automated_zone_design_in_practice
 
Research ethics: Ethical theories
Research ethics: Ethical theoriesResearch ethics: Ethical theories
Research ethics: Ethical theories
 
Creative research methods: Arts-based methods
Creative research methods: Arts-based methodsCreative research methods: Arts-based methods
Creative research methods: Arts-based methods
 
Research Ethics: Ethical practice
Research Ethics: Ethical practiceResearch Ethics: Ethical practice
Research Ethics: Ethical practice
 
Creative research methods: Research using technology
Creative research methods: Research using technologyCreative research methods: Research using technology
Creative research methods: Research using technology
 
An introduction to Jupyter Notebooks for Social Science research
An introduction to Jupyter Notebooks for Social Science researchAn introduction to Jupyter Notebooks for Social Science research
An introduction to Jupyter Notebooks for Social Science research
 
Research ethics: Ethical principles
Research ethics: Ethical principlesResearch ethics: Ethical principles
Research ethics: Ethical principles
 

Similar to Goodness of fit statistics poisson regression

Similar to Goodness of fit statistics poisson regression (20)

Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
 
Day 3 SPSS
Day 3 SPSSDay 3 SPSS
Day 3 SPSS
 
Basic concepts of probability
Basic concepts of probability Basic concepts of probability
Basic concepts of probability
 
Chi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.pptChi-Square Presentation - Nikki.ppt
Chi-Square Presentation - Nikki.ppt
 
probability.pptx
probability.pptxprobability.pptx
probability.pptx
 
Statistical tests
Statistical testsStatistical tests
Statistical tests
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA  359 Chapter .docxChapter 11 Chi-Square Tests and ANOVA  359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx
 
Chi
ChiChi
Chi
 
Day 3.pptx
Day 3.pptxDay 3.pptx
Day 3.pptx
 
Goodness of-fit
Goodness of-fit  Goodness of-fit
Goodness of-fit
 
STATISTIC ESTIMATION
STATISTIC ESTIMATIONSTATISTIC ESTIMATION
STATISTIC ESTIMATION
 
Hypothsis testing
Hypothsis testingHypothsis testing
Hypothsis testing
 
Categorical Data and Statistical Analysis
Categorical Data and Statistical AnalysisCategorical Data and Statistical Analysis
Categorical Data and Statistical Analysis
 
Small sample test
Small sample testSmall sample test
Small sample test
 
The Rothamsted school meets Lord's paradox
The Rothamsted school meets Lord's paradoxThe Rothamsted school meets Lord's paradox
The Rothamsted school meets Lord's paradox
 
Chi square
Chi squareChi square
Chi square
 
Norsminde 2009
Norsminde 2009Norsminde 2009
Norsminde 2009
 
QNT 275 Exceptional Education - snaptutorial.com
QNT 275   Exceptional Education - snaptutorial.comQNT 275   Exceptional Education - snaptutorial.com
QNT 275 Exceptional Education - snaptutorial.com
 
T test
T test T test
T test
 

More from University of Southampton

Generating SPSS training materials in StatJR
Generating SPSS training materials in StatJRGenerating SPSS training materials in StatJR
Generating SPSS training materials in StatJRUniversity of Southampton
 
Introduction to the Stat-JR software package
Introduction to the Stat-JR software packageIntroduction to the Stat-JR software package
Introduction to the Stat-JR software packageUniversity of Southampton
 
Multi level modelling- random coefficient models | Ian Brunton-Smith
Multi level modelling- random coefficient models | Ian Brunton-SmithMulti level modelling- random coefficient models | Ian Brunton-Smith
Multi level modelling- random coefficient models | Ian Brunton-SmithUniversity of Southampton
 
Multi level modelling - random intercept models | Ian Brunton Smith
Multi level modelling - random intercept models | Ian Brunton SmithMulti level modelling - random intercept models | Ian Brunton Smith
Multi level modelling - random intercept models | Ian Brunton SmithUniversity of Southampton
 
Introduction to multilevel modelling | Ian Brunton-Smith
Introduction to multilevel modelling | Ian Brunton-SmithIntroduction to multilevel modelling | Ian Brunton-Smith
Introduction to multilevel modelling | Ian Brunton-SmithUniversity of Southampton
 
Biosocial research:How to use biological data in social science research?
Biosocial research:How to use biological data in social science research?Biosocial research:How to use biological data in social science research?
Biosocial research:How to use biological data in social science research?University of Southampton
 
Integrating biological and social research data - Michaela Benzeval
Integrating biological and social research data - Michaela BenzevalIntegrating biological and social research data - Michaela Benzeval
Integrating biological and social research data - Michaela BenzevalUniversity of Southampton
 
Teaching research methods: pedagogy of methods learning
Teaching research methods: pedagogy of methods learningTeaching research methods: pedagogy of methods learning
Teaching research methods: pedagogy of methods learningUniversity of Southampton
 
Introduction to spatial interaction modelling
Introduction to spatial interaction modellingIntroduction to spatial interaction modelling
Introduction to spatial interaction modellingUniversity of Southampton
 

More from University of Southampton (20)

Introduction to Survey Data Quality
Introduction to Survey Data Quality  Introduction to Survey Data Quality
Introduction to Survey Data Quality
 
Generating SPSS training materials in StatJR
Generating SPSS training materials in StatJRGenerating SPSS training materials in StatJR
Generating SPSS training materials in StatJR
 
Introduction to the Stat-JR software package
Introduction to the Stat-JR software packageIntroduction to the Stat-JR software package
Introduction to the Stat-JR software package
 
Multi level modelling- random coefficient models | Ian Brunton-Smith
Multi level modelling- random coefficient models | Ian Brunton-SmithMulti level modelling- random coefficient models | Ian Brunton-Smith
Multi level modelling- random coefficient models | Ian Brunton-Smith
 
Multi level modelling - random intercept models | Ian Brunton Smith
Multi level modelling - random intercept models | Ian Brunton SmithMulti level modelling - random intercept models | Ian Brunton Smith
Multi level modelling - random intercept models | Ian Brunton Smith
 
Introduction to multilevel modelling | Ian Brunton-Smith
Introduction to multilevel modelling | Ian Brunton-SmithIntroduction to multilevel modelling | Ian Brunton-Smith
Introduction to multilevel modelling | Ian Brunton-Smith
 
Biosocial research:How to use biological data in social science research?
Biosocial research:How to use biological data in social science research?Biosocial research:How to use biological data in social science research?
Biosocial research:How to use biological data in social science research?
 
Integrating biological and social research data - Michaela Benzeval
Integrating biological and social research data - Michaela BenzevalIntegrating biological and social research data - Michaela Benzeval
Integrating biological and social research data - Michaela Benzeval
 
Teaching research methods: pedagogy hooks
Teaching research methods: pedagogy hooksTeaching research methods: pedagogy hooks
Teaching research methods: pedagogy hooks
 
Teaching research methods: pedagogy of methods learning
Teaching research methods: pedagogy of methods learningTeaching research methods: pedagogy of methods learning
Teaching research methods: pedagogy of methods learning
 
Data quality: total survey error
Data quality: total survey errorData quality: total survey error
Data quality: total survey error
 
better off living with parents
better off living with parentsbetter off living with parents
better off living with parents
 
Multilevel models:random coefficient models
Multilevel models:random coefficient modelsMultilevel models:random coefficient models
Multilevel models:random coefficient models
 
Multilevel models:random intercept models
Multilevel models:random intercept modelsMultilevel models:random intercept models
Multilevel models:random intercept models
 
Introduction to multilevel modelling
Introduction to multilevel modellingIntroduction to multilevel modelling
Introduction to multilevel modelling
 
How to write about research methods
How to write about research methodsHow to write about research methods
How to write about research methods
 
How to write about research methods
How to write about research methodsHow to write about research methods
How to write about research methods
 
Introduction to spatial interaction modelling
Introduction to spatial interaction modellingIntroduction to spatial interaction modelling
Introduction to spatial interaction modelling
 
Cognitive interviewing
Cognitive interviewingCognitive interviewing
Cognitive interviewing
 
Survey questions and measurement error
Survey questions and measurement errorSurvey questions and measurement error
Survey questions and measurement error
 

Recently uploaded

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonJericReyAuditor
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
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
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 

Recently uploaded (20)

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Science lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lessonScience lesson Moon for 4th quarter lesson
Science lesson Moon for 4th quarter lesson
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
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
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
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
 
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
 

Goodness of fit statistics poisson regression

  • 1. 1 Goodness of Fit Statistics for Poisson Regression
  • 2. 2 Outline • Example 3: Recall of Stressful Events • Goodness of fit statistics – Pearson Chi-Square test – Log-Likelihood Ratio test
  • 3. 3 Example 3: Recall of Stressful Events • Let us explore another (simple) Poisson model example (no covariate to start with)
  • 4. 4 Example 3: Recall of Stressful Events • Participants of a randomised study where asked if they had experienced any stressful events in the last 18 months. If yes, in which month? • 147 stressful events reported in the 18 months prior to interview.
  • 5. 5 Example 3: Recall of Stressful Events • H0: Events uniformly distributed over time. H0: p1 = p2 = … = p18 = 1/18 = 0.055 where pi = probability of event in month i. i.e. we would expect about 5.5% of all events per month
  • 6. 6 month count % month count % 1 15 10.2 10 10 6.8 2 11 7.5 11 7 4.8 3 14 9.5 12 9 6.1 4 17 11.5 13 11 7.5 5 5 3.4 14 3 2.0 6 11 7.5 15 6 4.1 7 10 6.8 16 1 0.7 8 4 2.7 17 1 0.7 9 8 5.4 18 4 2.7 Example 3: Recall of Stressful Events Data
  • 7. 7 Evaluation of Poisson Model • Let us evaluate the model using Goodness of Fit Statistics • Pearson Chi-square test • Deviance or Log Likelihood Ratio test for Poisson regression • Both are goodness-of-fit test statistics which compare 2 models, where the larger model is the saturated model (which fits the data perfectly and explains all of the variability).
  • 8. 8 Pearson and Likelihood Ratio Test Statistics • In this last example, if H0 is true the expected number of stressful events in month i (in any month) is (equiprobable model) • i.e. we have a model with one parameter i i i E ( y ) 1 4 7 * (1 / 1 8 ) 8 .1 7 lo g ( ) i 1 , ,C m m a = = = = = a
  • 9. 9 Month Count Obs Oi Count Exp Ei Month Count Obs Oi Count Exp Ei 1 15 8.17 10 10 8.17 2 11 8.17 11 7 8.17 3 14 8.17 12 9 8.17 4 17 8.17 13 11 8.17 5 5 8.17 14 3 8.17 6 11 8.17 15 6 8.17 7 10 8.17 16 1 8.17 8 4 8.17 17 1 8.17 9 8 8.17 18 4 8.17 Observed and expected count
  • 10. 10 Pearson Chi-Squared Test Statistic • The Pearson chi-squared test statistic is the sum of the standardized residuals squared 222 8.17 17.84 ... 8.17 17.811 8.17 17.851                       = 45.4            icells 2 i ii2 E EO
  • 11. 11 • If H0 is true X2 ~ χ2 df where df = degrees of freedom = no. of cells – no. of model parameters = C - 1 • X2 = 45.4 with 17 df (at 5% significance level the value from the chi-square table is 27.6) p-value < 0.001  reject H0. • Conclusion: There is strong evidence that the equiprobable model does not fit the data. Pearson Chi-Squared Test Statistic
  • 12. • The Log Likelihood Ratio test statistic (also called Deviance of the Poisson Model) is • This can be used as a measure of the fit of the model (goodness of fit statistics)         icells i i i 2 E O logO2L 12 Log Likelihood Ratio Test Statistic for Poisson Regression
  • 13. 13 • If H0 is true L2 ~ χ2 df where df = degrees of freedom = no. of cells – no. of model parameters = C - 1 • L2 = 50.8 with 17 df. p-value < 0.001  reject H0. • Conclusion: There is strong evidence that the equiprobable model does not fit the data. Log Likelihood Ratio Test
  • 14. 14 Remarks • X2 and L2 are asymptotically equivalent. If they are not similar, this is an indication that the large sample approximation may not hold. • For fixed df, as n increases the distribution of X2 usually converges to χ2 df more quickly than L2. The chi-squared approximation is usually poor when expected cell frequencies are less than 5.