SlideShare una empresa de Scribd logo
1 de 37
Descargar para leer sin conexión
Statistics One
Lecture 23
Generalized Linear Model
Two segments
•  Overview
•  Examples

2
Lecture 23 ~ Segment 1
Generalized Linear Model
Overview
Generalized Linear Model
•  An extension of the General Linear Model
that allows for non-normal distributions in
the outcome variable and therefore also
allows testing of non-linear relationships
between a set of predictors and the outcome
variable
4
Generalized Linear Model
•  Generalized Linear Model: GLM*
•  General Linear Model: GLM

5
General Linear Model (GLM)
•  GLM is the mathematical framework used in
many common statistical analyses, including
multiple regression and ANOVA

6
Characteristics of GLM
•  Linear: pairs of variables are assumed to
have linear relations
•  Additive: if one set of variables predict
another variable, the effects are thought to
be additive

7
Characteristics of GLM
•  BUT! This does not preclude testing nonlinear or non-additive effects

8
Characteristics of GLM
•  GLM can accommodate such tests, for
example, by
•  Transformation of variables

–  Transform so non-linear becomes linear

•  Moderation analysis

–  Fake the GLM into testing non-additive effects

9
GLM example
•  Simple regression
•  Y = B0 + B1X1 + e
•  Y = faculty salary
•  X1 = years since PhD

10
GLM example
•  Multiple regression
•  Y = B0 + B1X1 + B2X2 + B3X3 + e
•  Y = faculty salary
•  X1 = years since PhD
•  X2 = number of publications
•  X3 = (years x pubs)
11
Generalized linear model (GLM*)
•  Appropriate when simple transformations or
product terms are not sufficient

12
Generalized linear model (GLM*)
•  The “linear” model is allowed to generalize
to other forms by adding a “link function”

13
Generalized linear model (GLM*)
•  For example, in binary logistic regression,
the logit function was the link function

14
Binary logistic regression
•  ln(Ŷ / (1 - Ŷ)) = B0 + Σ(BkXk)
Ŷ = predicted value on the outcome variable Y
B0 = predicted value on Y when all X = 0
Xk = predictor variables
Bk = unstandardized regression coefficients
(Y – Ŷ) = residual (prediction error)
k = the number of predictor variables
15
Segment summary
•  GLM* is an extension of GLM that allows for
non-normal distributions in the outcome
variable and therefore also allows testing of
non-linear relationships between a set of
predictors and the outcome variable
16
Segment summary
•  Appropriate when simple transformations or
product terms are not sufficient

17
Segment summary
•  The “linear” model is allowed to generalize
to other forms by adding a “link function”

18
END SEGMENT
Lecture 23 ~ Segment 2
Generalized Linear Model
Examples
GLM* Examples
•  GLM* is an extension of GLM that allows for
non-normal distributions in the outcome
variable and therefore also allows testing of
non-linear relationships between a set of
predictors and the outcome variable
21
GLM* Examples
•  Appropriate when simple transformations or
product terms are not sufficient

22
GLM* Examples
•  The “linear” model is allowed to generalize
to other forms by adding a “link function”

23
GLM* Examples
•  Binary logistic regression

24
Binary logistic regression
GLM* Examples
•  In binary logistic regression, the logit
function served as the link function

26
GLM* Examples
•  ln(Ŷ / (1 - Ŷ)) = B0 + Σ(BkXk)
Ŷ = predicted value on the outcome variable Y
B0 = predicted value on Y when all X = 0
Xk = predictor variables
Bk = unstandardized regression coefficients
(Y – Ŷ) = residual (prediction error)
k = the number of predictor variables
27
GLM* Examples
•  More than 2 categories on the outcome
–  Multinomial logistic regression
•  A-1 logistic regression equations are formed
–  Where A = # of groups
–  One group serves as reference group
GLM* Examples
•  Another example is Poisson regression
•  Poission distributions are common with
“count data”
–  A number of events occurring in a fixed interval
of time

29
GLM* Examples
•  For example, the number of traffic accidents
as a function of weather conditions
–  Clear weather
–  Rain
–  Snow

30
Poisson regression

31
GLM* Examples
•  In Poisson regression, the log function
serves as the link function
•  Note: this example also has a categorical
predictor and would therefore also require
dummy coding
32
Segment summary
•  GLM* is an extension of GLM that allows for
non-normal distributions in the outcome
variable and therefore also allows testing of
non-linear relationships between a set of
predictors and the outcome variable
33
Segment summary
•  Appropriate when simple transformations or
product terms are not sufficient

34
Segment summary
•  The “linear” model is allowed to generalize
to other forms by adding a “link function”

35
END SEGMENT
END LECTURE 23

Más contenido relacionado

La actualidad más candente

SIGNIFICANCE OF BLOCK DIAGRAM AND SIGNAL FLOW GRAPH IN CONTROL SYSTEM
SIGNIFICANCE OF BLOCK DIAGRAM AND SIGNAL FLOW GRAPH IN CONTROL SYSTEMSIGNIFICANCE OF BLOCK DIAGRAM AND SIGNAL FLOW GRAPH IN CONTROL SYSTEM
SIGNIFICANCE OF BLOCK DIAGRAM AND SIGNAL FLOW GRAPH IN CONTROL SYSTEMDinesh Sharma
 
Block diagram representation 3
Block diagram representation 3Block diagram representation 3
Block diagram representation 3Syed Saeed
 
Signal flow graph Mason’s Gain Formula
Signal flow graph Mason’s Gain Formula Signal flow graph Mason’s Gain Formula
Signal flow graph Mason’s Gain Formula vishalgohel12195
 
Adbms 40 heuristics in query optimization
Adbms 40 heuristics in query optimizationAdbms 40 heuristics in query optimization
Adbms 40 heuristics in query optimizationVaibhav Khanna
 
Signal flow graph
Signal flow graphSignal flow graph
Signal flow graphjani parth
 
Solar cell Modeling with Scaps 1-D
Solar cell Modeling with Scaps 1-D Solar cell Modeling with Scaps 1-D
Solar cell Modeling with Scaps 1-D shubham mishra
 

La actualidad más candente (11)

Block Diagram For Control Systems.
Block Diagram For Control Systems.Block Diagram For Control Systems.
Block Diagram For Control Systems.
 
Controlppt
ControlpptControlppt
Controlppt
 
SIGNIFICANCE OF BLOCK DIAGRAM AND SIGNAL FLOW GRAPH IN CONTROL SYSTEM
SIGNIFICANCE OF BLOCK DIAGRAM AND SIGNAL FLOW GRAPH IN CONTROL SYSTEMSIGNIFICANCE OF BLOCK DIAGRAM AND SIGNAL FLOW GRAPH IN CONTROL SYSTEM
SIGNIFICANCE OF BLOCK DIAGRAM AND SIGNAL FLOW GRAPH IN CONTROL SYSTEM
 
Block diagram representation 3
Block diagram representation 3Block diagram representation 3
Block diagram representation 3
 
Signal flow graph Mason’s Gain Formula
Signal flow graph Mason’s Gain Formula Signal flow graph Mason’s Gain Formula
Signal flow graph Mason’s Gain Formula
 
Block diagram
Block diagramBlock diagram
Block diagram
 
Adbms 40 heuristics in query optimization
Adbms 40 heuristics in query optimizationAdbms 40 heuristics in query optimization
Adbms 40 heuristics in query optimization
 
Signal flow graph
Signal flow graphSignal flow graph
Signal flow graph
 
Sfg 5
Sfg 5Sfg 5
Sfg 5
 
Sfg 5
Sfg 5Sfg 5
Sfg 5
 
Solar cell Modeling with Scaps 1-D
Solar cell Modeling with Scaps 1-D Solar cell Modeling with Scaps 1-D
Solar cell Modeling with Scaps 1-D
 

Similar a Lecture slides stats1.13.l23.air

Generalized Linear Models in Spark MLlib and SparkR by Xiangrui Meng
Generalized Linear Models in Spark MLlib and SparkR by Xiangrui MengGeneralized Linear Models in Spark MLlib and SparkR by Xiangrui Meng
Generalized Linear Models in Spark MLlib and SparkR by Xiangrui MengSpark Summit
 
Generalized Linear Models in Spark MLlib and SparkR
Generalized Linear Models in Spark MLlib and SparkRGeneralized Linear Models in Spark MLlib and SparkR
Generalized Linear Models in Spark MLlib and SparkRDatabricks
 
Lecture slides stats1.13.l12.air
Lecture slides stats1.13.l12.airLecture slides stats1.13.l12.air
Lecture slides stats1.13.l12.airatutor_te
 
Final generalized linear modeling by idrees waris iugc
Final generalized linear modeling by idrees waris iugcFinal generalized linear modeling by idrees waris iugc
Final generalized linear modeling by idrees waris iugcId'rees Waris
 
block diagram representation of control systems
block diagram representation of  control systemsblock diagram representation of  control systems
block diagram representation of control systemsAhmed Elmorsy
 
GLMM in interventional study at Require 23, 20151219
GLMM in interventional study at Require 23, 20151219GLMM in interventional study at Require 23, 20151219
GLMM in interventional study at Require 23, 20151219Shuhei Ichikawa
 
Introduction to Generalized Linear Models
Introduction to Generalized Linear ModelsIntroduction to Generalized Linear Models
Introduction to Generalized Linear Modelsrichardchandler
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis pptElkana Rorio
 
decline_curve_analysis-ppt.pdf
decline_curve_analysis-ppt.pdfdecline_curve_analysis-ppt.pdf
decline_curve_analysis-ppt.pdfMohamedSadek942403
 
Lecture_control_system.pptx
Lecture_control_system.pptxLecture_control_system.pptx
Lecture_control_system.pptxrobomango
 
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSING
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSINGOPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSING
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSINGcoollife99
 
10685 6.1 multivar_mr_srm bm i
10685 6.1 multivar_mr_srm bm i10685 6.1 multivar_mr_srm bm i
10685 6.1 multivar_mr_srm bm iSatwik Mohanty
 
Design robustness demonstration by DOE and Monte Carlo Simulation
Design robustness demonstration by DOE and Monte Carlo SimulationDesign robustness demonstration by DOE and Monte Carlo Simulation
Design robustness demonstration by DOE and Monte Carlo SimulationRicardo Gonzalez Luna
 
Master defence 2020 - Oleh Lukianykhin - Reinforcement Learning for Voltage C...
Master defence 2020 - Oleh Lukianykhin - Reinforcement Learning for Voltage C...Master defence 2020 - Oleh Lukianykhin - Reinforcement Learning for Voltage C...
Master defence 2020 - Oleh Lukianykhin - Reinforcement Learning for Voltage C...Lviv Data Science Summer School
 

Similar a Lecture slides stats1.13.l23.air (20)

Generalized Linear Models in Spark MLlib and SparkR by Xiangrui Meng
Generalized Linear Models in Spark MLlib and SparkR by Xiangrui MengGeneralized Linear Models in Spark MLlib and SparkR by Xiangrui Meng
Generalized Linear Models in Spark MLlib and SparkR by Xiangrui Meng
 
Generalized Linear Models in Spark MLlib and SparkR
Generalized Linear Models in Spark MLlib and SparkRGeneralized Linear Models in Spark MLlib and SparkR
Generalized Linear Models in Spark MLlib and SparkR
 
Lecture slides stats1.13.l12.air
Lecture slides stats1.13.l12.airLecture slides stats1.13.l12.air
Lecture slides stats1.13.l12.air
 
GLMs.pptx
GLMs.pptxGLMs.pptx
GLMs.pptx
 
Final generalized linear modeling by idrees waris iugc
Final generalized linear modeling by idrees waris iugcFinal generalized linear modeling by idrees waris iugc
Final generalized linear modeling by idrees waris iugc
 
block diagram representation of control systems
block diagram representation of  control systemsblock diagram representation of  control systems
block diagram representation of control systems
 
GLMM in interventional study at Require 23, 20151219
GLMM in interventional study at Require 23, 20151219GLMM in interventional study at Require 23, 20151219
GLMM in interventional study at Require 23, 20151219
 
Introduction to Generalized Linear Models
Introduction to Generalized Linear ModelsIntroduction to Generalized Linear Models
Introduction to Generalized Linear Models
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 
Logistical Regression.pptx
Logistical Regression.pptxLogistical Regression.pptx
Logistical Regression.pptx
 
Types of models
Types of modelsTypes of models
Types of models
 
decline_curve_analysis-ppt.pdf
decline_curve_analysis-ppt.pdfdecline_curve_analysis-ppt.pdf
decline_curve_analysis-ppt.pdf
 
Lecture_control_system.pptx
Lecture_control_system.pptxLecture_control_system.pptx
Lecture_control_system.pptx
 
Glm
GlmGlm
Glm
 
Optimization in QBD
Optimization in QBDOptimization in QBD
Optimization in QBD
 
.pptx
.pptx.pptx
.pptx
 
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSING
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSINGOPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSING
OPTIMIZATION TECHNIQUES IN PHARMACEUTICAL FORMULATION AND PROCESSING
 
10685 6.1 multivar_mr_srm bm i
10685 6.1 multivar_mr_srm bm i10685 6.1 multivar_mr_srm bm i
10685 6.1 multivar_mr_srm bm i
 
Design robustness demonstration by DOE and Monte Carlo Simulation
Design robustness demonstration by DOE and Monte Carlo SimulationDesign robustness demonstration by DOE and Monte Carlo Simulation
Design robustness demonstration by DOE and Monte Carlo Simulation
 
Master defence 2020 - Oleh Lukianykhin - Reinforcement Learning for Voltage C...
Master defence 2020 - Oleh Lukianykhin - Reinforcement Learning for Voltage C...Master defence 2020 - Oleh Lukianykhin - Reinforcement Learning for Voltage C...
Master defence 2020 - Oleh Lukianykhin - Reinforcement Learning for Voltage C...
 

Más de atutor_te

Lecture slides stats1.13.l24.air
Lecture slides stats1.13.l24.airLecture slides stats1.13.l24.air
Lecture slides stats1.13.l24.airatutor_te
 
Lecture slides stats1.13.l22.air
Lecture slides stats1.13.l22.airLecture slides stats1.13.l22.air
Lecture slides stats1.13.l22.airatutor_te
 
Lecture slides stats1.13.l21.air
Lecture slides stats1.13.l21.airLecture slides stats1.13.l21.air
Lecture slides stats1.13.l21.airatutor_te
 
Lecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.airLecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.airatutor_te
 
Lecture slides stats1.13.l19.air
Lecture slides stats1.13.l19.airLecture slides stats1.13.l19.air
Lecture slides stats1.13.l19.airatutor_te
 
Lecture slides stats1.13.l18.air
Lecture slides stats1.13.l18.airLecture slides stats1.13.l18.air
Lecture slides stats1.13.l18.airatutor_te
 
Lecture slides stats1.13.l17.air
Lecture slides stats1.13.l17.airLecture slides stats1.13.l17.air
Lecture slides stats1.13.l17.airatutor_te
 
Lecture slides stats1.13.l16.air
Lecture slides stats1.13.l16.airLecture slides stats1.13.l16.air
Lecture slides stats1.13.l16.airatutor_te
 
Lecture slides stats1.13.l15.air
Lecture slides stats1.13.l15.airLecture slides stats1.13.l15.air
Lecture slides stats1.13.l15.airatutor_te
 
Lecture slides stats1.13.l14.air
Lecture slides stats1.13.l14.airLecture slides stats1.13.l14.air
Lecture slides stats1.13.l14.airatutor_te
 
Lecture slides stats1.13.l13.air
Lecture slides stats1.13.l13.airLecture slides stats1.13.l13.air
Lecture slides stats1.13.l13.airatutor_te
 
Lecture slides stats1.13.l11.air
Lecture slides stats1.13.l11.airLecture slides stats1.13.l11.air
Lecture slides stats1.13.l11.airatutor_te
 
Lecture slides stats1.13.l10.air
Lecture slides stats1.13.l10.airLecture slides stats1.13.l10.air
Lecture slides stats1.13.l10.airatutor_te
 
Lecture slides stats1.13.l09.air
Lecture slides stats1.13.l09.airLecture slides stats1.13.l09.air
Lecture slides stats1.13.l09.airatutor_te
 
Lecture slides stats1.13.l08.air
Lecture slides stats1.13.l08.airLecture slides stats1.13.l08.air
Lecture slides stats1.13.l08.airatutor_te
 
Lecture slides stats1.13.l07.air
Lecture slides stats1.13.l07.airLecture slides stats1.13.l07.air
Lecture slides stats1.13.l07.airatutor_te
 
Lecture slides stats1.13.l06.air
Lecture slides stats1.13.l06.airLecture slides stats1.13.l06.air
Lecture slides stats1.13.l06.airatutor_te
 
Lecture slides stats1.13.l05.air
Lecture slides stats1.13.l05.airLecture slides stats1.13.l05.air
Lecture slides stats1.13.l05.airatutor_te
 
Lecture slides stats1.13.l04.air
Lecture slides stats1.13.l04.airLecture slides stats1.13.l04.air
Lecture slides stats1.13.l04.airatutor_te
 
Lecture slides stats1.13.l03.air
Lecture slides stats1.13.l03.airLecture slides stats1.13.l03.air
Lecture slides stats1.13.l03.airatutor_te
 

Más de atutor_te (20)

Lecture slides stats1.13.l24.air
Lecture slides stats1.13.l24.airLecture slides stats1.13.l24.air
Lecture slides stats1.13.l24.air
 
Lecture slides stats1.13.l22.air
Lecture slides stats1.13.l22.airLecture slides stats1.13.l22.air
Lecture slides stats1.13.l22.air
 
Lecture slides stats1.13.l21.air
Lecture slides stats1.13.l21.airLecture slides stats1.13.l21.air
Lecture slides stats1.13.l21.air
 
Lecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.airLecture slides stats1.13.l20.air
Lecture slides stats1.13.l20.air
 
Lecture slides stats1.13.l19.air
Lecture slides stats1.13.l19.airLecture slides stats1.13.l19.air
Lecture slides stats1.13.l19.air
 
Lecture slides stats1.13.l18.air
Lecture slides stats1.13.l18.airLecture slides stats1.13.l18.air
Lecture slides stats1.13.l18.air
 
Lecture slides stats1.13.l17.air
Lecture slides stats1.13.l17.airLecture slides stats1.13.l17.air
Lecture slides stats1.13.l17.air
 
Lecture slides stats1.13.l16.air
Lecture slides stats1.13.l16.airLecture slides stats1.13.l16.air
Lecture slides stats1.13.l16.air
 
Lecture slides stats1.13.l15.air
Lecture slides stats1.13.l15.airLecture slides stats1.13.l15.air
Lecture slides stats1.13.l15.air
 
Lecture slides stats1.13.l14.air
Lecture slides stats1.13.l14.airLecture slides stats1.13.l14.air
Lecture slides stats1.13.l14.air
 
Lecture slides stats1.13.l13.air
Lecture slides stats1.13.l13.airLecture slides stats1.13.l13.air
Lecture slides stats1.13.l13.air
 
Lecture slides stats1.13.l11.air
Lecture slides stats1.13.l11.airLecture slides stats1.13.l11.air
Lecture slides stats1.13.l11.air
 
Lecture slides stats1.13.l10.air
Lecture slides stats1.13.l10.airLecture slides stats1.13.l10.air
Lecture slides stats1.13.l10.air
 
Lecture slides stats1.13.l09.air
Lecture slides stats1.13.l09.airLecture slides stats1.13.l09.air
Lecture slides stats1.13.l09.air
 
Lecture slides stats1.13.l08.air
Lecture slides stats1.13.l08.airLecture slides stats1.13.l08.air
Lecture slides stats1.13.l08.air
 
Lecture slides stats1.13.l07.air
Lecture slides stats1.13.l07.airLecture slides stats1.13.l07.air
Lecture slides stats1.13.l07.air
 
Lecture slides stats1.13.l06.air
Lecture slides stats1.13.l06.airLecture slides stats1.13.l06.air
Lecture slides stats1.13.l06.air
 
Lecture slides stats1.13.l05.air
Lecture slides stats1.13.l05.airLecture slides stats1.13.l05.air
Lecture slides stats1.13.l05.air
 
Lecture slides stats1.13.l04.air
Lecture slides stats1.13.l04.airLecture slides stats1.13.l04.air
Lecture slides stats1.13.l04.air
 
Lecture slides stats1.13.l03.air
Lecture slides stats1.13.l03.airLecture slides stats1.13.l03.air
Lecture slides stats1.13.l03.air
 

Último

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 

Último (20)

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
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
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
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
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
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
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
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
 

Lecture slides stats1.13.l23.air

  • 3. Lecture 23 ~ Segment 1 Generalized Linear Model Overview
  • 4. Generalized Linear Model •  An extension of the General Linear Model that allows for non-normal distributions in the outcome variable and therefore also allows testing of non-linear relationships between a set of predictors and the outcome variable 4
  • 5. Generalized Linear Model •  Generalized Linear Model: GLM* •  General Linear Model: GLM 5
  • 6. General Linear Model (GLM) •  GLM is the mathematical framework used in many common statistical analyses, including multiple regression and ANOVA 6
  • 7. Characteristics of GLM •  Linear: pairs of variables are assumed to have linear relations •  Additive: if one set of variables predict another variable, the effects are thought to be additive 7
  • 8. Characteristics of GLM •  BUT! This does not preclude testing nonlinear or non-additive effects 8
  • 9. Characteristics of GLM •  GLM can accommodate such tests, for example, by •  Transformation of variables –  Transform so non-linear becomes linear •  Moderation analysis –  Fake the GLM into testing non-additive effects 9
  • 10. GLM example •  Simple regression •  Y = B0 + B1X1 + e •  Y = faculty salary •  X1 = years since PhD 10
  • 11. GLM example •  Multiple regression •  Y = B0 + B1X1 + B2X2 + B3X3 + e •  Y = faculty salary •  X1 = years since PhD •  X2 = number of publications •  X3 = (years x pubs) 11
  • 12. Generalized linear model (GLM*) •  Appropriate when simple transformations or product terms are not sufficient 12
  • 13. Generalized linear model (GLM*) •  The “linear” model is allowed to generalize to other forms by adding a “link function” 13
  • 14. Generalized linear model (GLM*) •  For example, in binary logistic regression, the logit function was the link function 14
  • 15. Binary logistic regression •  ln(Ŷ / (1 - Ŷ)) = B0 + Σ(BkXk) Ŷ = predicted value on the outcome variable Y B0 = predicted value on Y when all X = 0 Xk = predictor variables Bk = unstandardized regression coefficients (Y – Ŷ) = residual (prediction error) k = the number of predictor variables 15
  • 16. Segment summary •  GLM* is an extension of GLM that allows for non-normal distributions in the outcome variable and therefore also allows testing of non-linear relationships between a set of predictors and the outcome variable 16
  • 17. Segment summary •  Appropriate when simple transformations or product terms are not sufficient 17
  • 18. Segment summary •  The “linear” model is allowed to generalize to other forms by adding a “link function” 18
  • 20. Lecture 23 ~ Segment 2 Generalized Linear Model Examples
  • 21. GLM* Examples •  GLM* is an extension of GLM that allows for non-normal distributions in the outcome variable and therefore also allows testing of non-linear relationships between a set of predictors and the outcome variable 21
  • 22. GLM* Examples •  Appropriate when simple transformations or product terms are not sufficient 22
  • 23. GLM* Examples •  The “linear” model is allowed to generalize to other forms by adding a “link function” 23
  • 24. GLM* Examples •  Binary logistic regression 24
  • 26. GLM* Examples •  In binary logistic regression, the logit function served as the link function 26
  • 27. GLM* Examples •  ln(Ŷ / (1 - Ŷ)) = B0 + Σ(BkXk) Ŷ = predicted value on the outcome variable Y B0 = predicted value on Y when all X = 0 Xk = predictor variables Bk = unstandardized regression coefficients (Y – Ŷ) = residual (prediction error) k = the number of predictor variables 27
  • 28. GLM* Examples •  More than 2 categories on the outcome –  Multinomial logistic regression •  A-1 logistic regression equations are formed –  Where A = # of groups –  One group serves as reference group
  • 29. GLM* Examples •  Another example is Poisson regression •  Poission distributions are common with “count data” –  A number of events occurring in a fixed interval of time 29
  • 30. GLM* Examples •  For example, the number of traffic accidents as a function of weather conditions –  Clear weather –  Rain –  Snow 30
  • 32. GLM* Examples •  In Poisson regression, the log function serves as the link function •  Note: this example also has a categorical predictor and would therefore also require dummy coding 32
  • 33. Segment summary •  GLM* is an extension of GLM that allows for non-normal distributions in the outcome variable and therefore also allows testing of non-linear relationships between a set of predictors and the outcome variable 33
  • 34. Segment summary •  Appropriate when simple transformations or product terms are not sufficient 34
  • 35. Segment summary •  The “linear” model is allowed to generalize to other forms by adding a “link function” 35