SlideShare ist ein Scribd-Unternehmen logo
1 von 8
Downloaden Sie, um offline zu lesen
Chapter 16

 ISDS 2001
  Matt Levy
General Linear Model

The regression models we have been looking at, (Simple Linear
Regression, Multiple Regression) are part of a larger family of models.

This is referred to as the General Linear Model.

We extend the notation of the regression model to yield the GLM:

y = β0 + β1z1 + β2z2 + ... + βpzp + ε

Where the independent variables zj is a function of x1, ... xk, which are
the actual variables on which data is collected.

This allows us to model more complex relationships.
Modeling Curvilinear Relationships

It is quite possible your data may not fit to a line, but rather to a
curved line. -- Figure 16.1 gives a good example of this using 1
independent variable.

For example, a second order model with 1 predictor variable
has the following notation:

y = β0 + β1x1 + β2x12 + ε

Notice we now have two β's with 1 independent variable.
Modeling Curvilinear Relationships
So two big questions:

1. How do we know we have a curvilinear relationship?
2. How do we account for this in our calculations?

For Question 1:
    This is why it is important to understand all the ways we can
    analyze our data.
        What does our scatter plot look like?
        What do our F and t tests reveal?
        Are there any patterns with respect to our standardized
        residuals?
For Question 2:
    To use a model like the one on the previous slide, in Excel we
    would simply create a new column for the squared variable.
Interaction Terms
There will be times when it is more fruitful to model the joint effect two (or more)
variables will have on a response.

When developing a model, we may see the combined effects of two variables
help us form a better prediction.

In that case we can add an interaction term to the model.

The following is a model with an interaction term:

y = β0 + β1x1 + β2x2 + β3x1x2 + ε

Knowing that the joint effects yield a better predictive model may lead us to
using an interaction term.

In general, when performing a regression analysis this model will undoubtedly
undergo several iterations. Luckily we have tools like Excel, SAS, SPSS, R, etc.
which make it very easy for us to change this and find new estimates.
Transformations of the Dependent
Variableexamples we showed transformations of the independent
In the previous
variables.

It might be worthwhile to consider a transformation of the dependent variable...
why, you say?

We can use this as a tool to correct for non-constant variance. So we may still
apply our key assumptions.

A good way to check for non-constant variance is to look at the standardized
residuals.

There are two common types of transformations for the dependent variable:
 1. Modeling the log of the dependent variable:
     1. ln(y) = β0 + β1x1 + β2x2 + ε, then to get the actual y value, take eln(y)
 2. Modeling the reciprocal of the dependent variable:
     1. 1/y = β0 + β1x1 + β2x2 + ε

There is no way to tell which would be better without actually trying them out!
Nonlinear Models (That are intrinsically linear)
A model in which the parameters (β0, β1,..., βp) have exponents
of 1 are considered linear.

But even when these parameters do not have exponents of 1,
we can perform some transformations that allow us to do
regression analysis.

For example, we could have an exponential equation:
E(y) = β0β1x

That could then be transformed by taking the log of both sides:

log E(y) = log β0 + x log β1

Luckily, we don't see this too much in business statistics!
The End

Weitere ähnliche Inhalte

Was ist angesagt?

Artifact 3 clemson
Artifact 3 clemsonArtifact 3 clemson
Artifact 3 clemson
clemsonj11
 
Hypothesis Test Selection Guide
Hypothesis Test Selection GuideHypothesis Test Selection Guide
Hypothesis Test Selection Guide
Leanleaders.org
 

Was ist angesagt? (13)

D026017036
D026017036D026017036
D026017036
 
Logarithmic transformations
Logarithmic transformationsLogarithmic transformations
Logarithmic transformations
 
Econometric modelling
Econometric modellingEconometric modelling
Econometric modelling
 
PRML Chapter 4
PRML Chapter 4PRML Chapter 4
PRML Chapter 4
 
Artifact 3 clemson
Artifact 3 clemsonArtifact 3 clemson
Artifact 3 clemson
 
Exponential formula presentation
Exponential formula presentationExponential formula presentation
Exponential formula presentation
 
Linear Equation in Two Variables
Linear Equation in Two VariablesLinear Equation in Two Variables
Linear Equation in Two Variables
 
Distributed lag model
Distributed lag modelDistributed lag model
Distributed lag model
 
SWL Chapter 5
SWL Chapter 5SWL Chapter 5
SWL Chapter 5
 
Distribusi11
Distribusi11Distribusi11
Distribusi11
 
International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)International Refereed Journal of Engineering and Science (IRJES)
International Refereed Journal of Engineering and Science (IRJES)
 
Transform as a vector? Tying functional parity with rotation angle of coordin...
Transform as a vector? Tying functional parity with rotation angle of coordin...Transform as a vector? Tying functional parity with rotation angle of coordin...
Transform as a vector? Tying functional parity with rotation angle of coordin...
 
Hypothesis Test Selection Guide
Hypothesis Test Selection GuideHypothesis Test Selection Guide
Hypothesis Test Selection Guide
 

Andere mochten auch

Financialmodeling
FinancialmodelingFinancialmodeling
Financialmodeling
Talal Tahir
 
[Xin yan, xiao_gang_su]_linear_regression_analysis(book_fi.org)
[Xin yan, xiao_gang_su]_linear_regression_analysis(book_fi.org)[Xin yan, xiao_gang_su]_linear_regression_analysis(book_fi.org)
[Xin yan, xiao_gang_su]_linear_regression_analysis(book_fi.org)
mohamedchaouche
 
Chapt 11 & 12 linear & multiple regression minitab
Chapt 11 & 12 linear &  multiple regression minitabChapt 11 & 12 linear &  multiple regression minitab
Chapt 11 & 12 linear & multiple regression minitab
Boyu Deng
 
Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear Regression
Sharlaine Ruth
 

Andere mochten auch (20)

The power of RapidMiner, showing the direct marketing demo
The power of RapidMiner, showing the direct marketing demoThe power of RapidMiner, showing the direct marketing demo
The power of RapidMiner, showing the direct marketing demo
 
Midterm
MidtermMidterm
Midterm
 
Statisticsfor businessproject solution
Statisticsfor businessproject solutionStatisticsfor businessproject solution
Statisticsfor businessproject solution
 
Financialmodeling
FinancialmodelingFinancialmodeling
Financialmodeling
 
Hadoop Summit EU 2013: Parallel Linear Regression, IterativeReduce, and YARN
Hadoop Summit EU 2013: Parallel Linear Regression, IterativeReduce, and YARNHadoop Summit EU 2013: Parallel Linear Regression, IterativeReduce, and YARN
Hadoop Summit EU 2013: Parallel Linear Regression, IterativeReduce, and YARN
 
Qam formulas
Qam formulasQam formulas
Qam formulas
 
Regression
Regression Regression
Regression
 
Regression: A skin-deep dive
Regression: A skin-deep diveRegression: A skin-deep dive
Regression: A skin-deep dive
 
ForecastIT 2. Linear Regression & Model Statistics
ForecastIT 2. Linear Regression & Model StatisticsForecastIT 2. Linear Regression & Model Statistics
ForecastIT 2. Linear Regression & Model Statistics
 
[Xin yan, xiao_gang_su]_linear_regression_analysis(book_fi.org)
[Xin yan, xiao_gang_su]_linear_regression_analysis(book_fi.org)[Xin yan, xiao_gang_su]_linear_regression_analysis(book_fi.org)
[Xin yan, xiao_gang_su]_linear_regression_analysis(book_fi.org)
 
C2.1 intro
C2.1 introC2.1 intro
C2.1 intro
 
Chapt 11 & 12 linear & multiple regression minitab
Chapt 11 & 12 linear &  multiple regression minitabChapt 11 & 12 linear &  multiple regression minitab
Chapt 11 & 12 linear & multiple regression minitab
 
Simple linear regression project
Simple linear regression projectSimple linear regression project
Simple linear regression project
 
Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear Regression
 
Statr session 23 and 24
Statr session 23 and 24Statr session 23 and 24
Statr session 23 and 24
 
Ch14
Ch14Ch14
Ch14
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Logistic regression for ordered dependant variable with more than 2 levels
Logistic regression for ordered dependant variable with more than 2 levelsLogistic regression for ordered dependant variable with more than 2 levels
Logistic regression for ordered dependant variable with more than 2 levels
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Chapter13
Chapter13Chapter13
Chapter13
 

Ähnlich wie Chapter 16

Ch 8 exponential equations and graphing
Ch 8 exponential equations and graphingCh 8 exponential equations and graphing
Ch 8 exponential equations and graphing
swartzje
 
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
University of Salerno
 

Ähnlich wie Chapter 16 (20)

Chapter6
Chapter6Chapter6
Chapter6
 
Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help
 
Line of best fit lesson
Line of best fit lessonLine of best fit lesson
Line of best fit lesson
 
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic NetsData Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
Data Science - Part XII - Ridge Regression, LASSO, and Elastic Nets
 
Glm
GlmGlm
Glm
 
Chapter 14 Part I
Chapter 14 Part IChapter 14 Part I
Chapter 14 Part I
 
Linear logisticregression
Linear logisticregressionLinear logisticregression
Linear logisticregression
 
2- Introduction to Modeling.pdf
2- Introduction to Modeling.pdf2- Introduction to Modeling.pdf
2- Introduction to Modeling.pdf
 
Bus 173_6.pptx
Bus 173_6.pptxBus 173_6.pptx
Bus 173_6.pptx
 
Machine Learning Algorithm - Linear Regression
Machine Learning Algorithm - Linear RegressionMachine Learning Algorithm - Linear Regression
Machine Learning Algorithm - Linear Regression
 
Ch 8 exponential equations and graphing
Ch 8 exponential equations and graphingCh 8 exponential equations and graphing
Ch 8 exponential equations and graphing
 
t1s1_pdf.pdf
t1s1_pdf.pdft1s1_pdf.pdf
t1s1_pdf.pdf
 
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
 
Talk 4
Talk 4Talk 4
Talk 4
 
Transform idea
Transform ideaTransform idea
Transform idea
 
Consistency of linear equations in two and three variables
Consistency of linear equations in two and three variablesConsistency of linear equations in two and three variables
Consistency of linear equations in two and three variables
 
Heteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptxHeteroscedasticity Remedial Measures.pptx
Heteroscedasticity Remedial Measures.pptx
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Linear regression.pptx
Linear regression.pptxLinear regression.pptx
Linear regression.pptx
 
Deep VI with_beta_likelihood
Deep VI with_beta_likelihoodDeep VI with_beta_likelihood
Deep VI with_beta_likelihood
 

Mehr von Matthew L Levy

Mehr von Matthew L Levy (8)

Chapter 15R Lecture
Chapter 15R LectureChapter 15R Lecture
Chapter 15R Lecture
 
Chapter 14R
Chapter 14RChapter 14R
Chapter 14R
 
Chapter 5R
Chapter 5RChapter 5R
Chapter 5R
 
Chapter 4R Part II
Chapter 4R Part IIChapter 4R Part II
Chapter 4R Part II
 
Chapter 4 R Part I
Chapter 4 R Part IChapter 4 R Part I
Chapter 4 R Part I
 
Chapter 20 Lecture Notes
Chapter 20 Lecture NotesChapter 20 Lecture Notes
Chapter 20 Lecture Notes
 
Chapter 18 Part I
Chapter 18 Part IChapter 18 Part I
Chapter 18 Part I
 
Chapter 14 Part Ii
Chapter 14 Part IiChapter 14 Part Ii
Chapter 14 Part Ii
 

Kürzlich hochgeladen

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
MateoGardella
 

Kürzlich hochgeladen (20)

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"
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
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
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
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 ...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 

Chapter 16

  • 1. Chapter 16 ISDS 2001 Matt Levy
  • 2. General Linear Model The regression models we have been looking at, (Simple Linear Regression, Multiple Regression) are part of a larger family of models. This is referred to as the General Linear Model. We extend the notation of the regression model to yield the GLM: y = β0 + β1z1 + β2z2 + ... + βpzp + ε Where the independent variables zj is a function of x1, ... xk, which are the actual variables on which data is collected. This allows us to model more complex relationships.
  • 3. Modeling Curvilinear Relationships It is quite possible your data may not fit to a line, but rather to a curved line. -- Figure 16.1 gives a good example of this using 1 independent variable. For example, a second order model with 1 predictor variable has the following notation: y = β0 + β1x1 + β2x12 + ε Notice we now have two β's with 1 independent variable.
  • 4. Modeling Curvilinear Relationships So two big questions: 1. How do we know we have a curvilinear relationship? 2. How do we account for this in our calculations? For Question 1: This is why it is important to understand all the ways we can analyze our data. What does our scatter plot look like? What do our F and t tests reveal? Are there any patterns with respect to our standardized residuals? For Question 2: To use a model like the one on the previous slide, in Excel we would simply create a new column for the squared variable.
  • 5. Interaction Terms There will be times when it is more fruitful to model the joint effect two (or more) variables will have on a response. When developing a model, we may see the combined effects of two variables help us form a better prediction. In that case we can add an interaction term to the model. The following is a model with an interaction term: y = β0 + β1x1 + β2x2 + β3x1x2 + ε Knowing that the joint effects yield a better predictive model may lead us to using an interaction term. In general, when performing a regression analysis this model will undoubtedly undergo several iterations. Luckily we have tools like Excel, SAS, SPSS, R, etc. which make it very easy for us to change this and find new estimates.
  • 6. Transformations of the Dependent Variableexamples we showed transformations of the independent In the previous variables. It might be worthwhile to consider a transformation of the dependent variable... why, you say? We can use this as a tool to correct for non-constant variance. So we may still apply our key assumptions. A good way to check for non-constant variance is to look at the standardized residuals. There are two common types of transformations for the dependent variable: 1. Modeling the log of the dependent variable: 1. ln(y) = β0 + β1x1 + β2x2 + ε, then to get the actual y value, take eln(y) 2. Modeling the reciprocal of the dependent variable: 1. 1/y = β0 + β1x1 + β2x2 + ε There is no way to tell which would be better without actually trying them out!
  • 7. Nonlinear Models (That are intrinsically linear) A model in which the parameters (β0, β1,..., βp) have exponents of 1 are considered linear. But even when these parameters do not have exponents of 1, we can perform some transformations that allow us to do regression analysis. For example, we could have an exponential equation: E(y) = β0β1x That could then be transformed by taking the log of both sides: log E(y) = log β0 + x log β1 Luckily, we don't see this too much in business statistics!