Regression and Categorical Predictors

Slides:



Advertisements
Similar presentations
CHAPTER 24: Inference for Regression
Advertisements

Chapter 10 Regression. Defining Regression Simple linear regression features one independent variable and one dependent variable, as in correlation the.
Objectives (BPS chapter 24)
1 Home Gas Consumption Interaction? Should there be a different slope for the relationship between Gas and Temp after insulation than before insulation?
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 4-1 © 2006 by Prentice Hall, Inc., Upper Saddle River, NJ Chapter 4 RegressionModels.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics 11 th Edition.
Simple Linear Regression Analysis
Review for Final Exam Some important themes from Chapters 9-11 Final exam covers these chapters, but implicitly tests the entire course, because we use.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 13-1 Chapter 13 Introduction to Multiple Regression Statistics for Managers.
Correlation and Linear Regression
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Simple Linear Regression Analysis Chapter 13.
Introduction to Linear Regression and Correlation Analysis
Linear Regression and Correlation
Chapter 14 Introduction to Multiple Regression Sections 1, 2, 3, 4, 6.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.2 Estimating Differences.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 13 Multiple Regression Section 13.1 Using Several Variables to Predict a Response.
Chapter 14 Introduction to Multiple Regression
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 12-1 Correlation and Regression.
Section 5.2: Linear Regression: Fitting a Line to Bivariate Data.
Chap 14-1 Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 4 Section 2 – Slide 1 of 20 Chapter 4 Section 2 Least-Squares Regression.
Chapter 14 Inference for Regression AP Statistics 14.1 – Inference about the Model 14.2 – Predictions and Conditions.
Basic Concepts of Correlation. Definition A correlation exists between two variables when the values of one are somehow associated with the values of.
+ Chapter 12: More About Regression Section 12.1 Inference for Linear Regression.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 13 Multiple Regression Section 13.3 Using Multiple Regression to Make Inferences.
Multiple Regression BPS chapter 28 © 2006 W.H. Freeman and Company.
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 13-1 Introduction to Regression Analysis Regression analysis is used.
Categorical Independent Variables STA302 Fall 2013.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.3 Two-Way ANOVA.
Scatter Diagrams scatter plot scatter diagram A scatter plot is a graph that may be used to represent the relationship between two variables. Also referred.
Copyright © 2012 Pearson Education, Inc. All rights reserved. Chapter 4 Multiple Regression Models.
28. Multiple regression The Practice of Statistics in the Life Sciences Second Edition.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 14-1 Chapter 14 Introduction to Multiple Regression Statistics for Managers using Microsoft.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 14-1 Chapter 14 Introduction to Multiple Regression Basic Business Statistics 10 th Edition.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 12 More About Regression 12.1 Inference for.
Introduction to Multiple Regression Lecture 11. The Multiple Regression Model Idea: Examine the linear relationship between 1 dependent (Y) & 2 or more.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 14-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Chapter 9 Minitab Recipe Cards. Contingency tests Enter the data from Example 9.1 in C1, C2 and C3.
AP Statistics Section 15 A. The Regression Model When a scatterplot shows a linear relationship between a quantitative explanatory variable x and a quantitative.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 13 Multiple Regression Section 13.1 Using Several Variables to Predict a Response.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 12 More About Regression 12.1 Inference for.
Introduction Many problems in Engineering, Management, Health Sciences and other Sciences involve exploring the relationships between two or more variables.
CHAPTER 12 More About Regression
CHAPTER 3 Describing Relationships
Chindamanee School English Program
Regression Chapter 6 I Introduction to Regression
Using Indicator Variables
Correlation and Regression Basics
CHAPTER 12 More About Regression
The Least-Squares Regression Line
Correlation and Regression Basics
Lecture Slides Elementary Statistics Thirteenth Edition
Chapter 13 Multiple Regression
CHAPTER 29: Multiple Regression*
Soc 3306a: ANOVA and Regression Models
Prepared by Lee Revere and John Large
Review of Hypothesis Testing
Section 3.3 Linear Regression
Chapter 3: Describing Relationships
Soc 3306a Lecture 11: Multivariate 4
Analyzing the Association Between Categorical Variables
CHAPTER 12 More About Regression
Indicator Variables Response: Highway MPG
EQUATION 4.1 Relationship Between One Dependent and One Independent Variable: Simple Regression Analysis.
Chapter 3: Describing Relationships
Chapter 14 Inference for Regression
CHAPTER 12 More About Regression
Chapter 13 Multiple Regression
Chapter 9 Dummy Variables Undergraduated Econometrics Page 1
Presentation transcript:

Regression and Categorical Predictors Chapter 13 Multiple Regression Section 13.5 Regression and Categorical Predictors

Indicator Variables Regression models can specify categories of a categorical explanatory variable using artificial variables, called indicator variables. The indicator variable for a particular category is binary. It equals 1 if the observation falls into that category and it equals 0 otherwise.

Indicator Variables In the house selling prices data set, the condition of the house is a categorical variable. It was measured with categories (good, not good). The indicator variable x for condition is if house is in good condition if house is not in good condition

Indicator Variables The regression model is then , with x as just defined. Substituting the possible values 1 and 0 for x , The difference between the mean selling price for houses in good condition and not in good condition is The coefficient of the indicator variable x is the difference between the mean selling prices for homes in good condition and for homes not in good condition.

Example: Including Condition in Regression for House Selling Price Output from the regression model for selling price of home using house size and region. Table 13.11 Regression Analysis of y = Selling Price Using =House Size and = Indicator Variable for Condition (Good, Not Good)

Example: Including Condition in Regression for House Selling Price Find and plot the lines showing how predicted selling price varies as a function of house size, for homes in good condition or not in good condition. Interpret the coefficient of the indicator variable for condition.

Example: Including Condition in Regression for House Selling Price The regression equation from the MINITAB output is:

Example: Including Condition in Regression for House Selling Price For homes not in good condition, The prediction equation then simplifies to:

Example: Including Condition in Regression for House Selling Price For homes in good condition, The prediction equation then simplifies to:

Example: Including Condition in Regression for House Selling Price Figure 13.7 Plot of Equation Relating =Predicted Selling Price to =House Size, According to =Condition (1=Good, 0=Not Good). Question: Why are the lines parallel?

Example: Including Condition in Regression for House Selling Price Both lines have the same slope, 66.5 The line for homes in good condition is above the other line (not good) because its y-intercept is larger. This means that for any fixed value of house size, the predicted selling price is higher for homes in better condition. The P-value of 0.453 for the test for the coefficient of the indicator variable suggests that this difference is not statistically significant.

Is there Interaction? For two explanatory variables, interaction exists between them in their effects on the response variable when the slope of the relationship between and one of them changes as the value of the other changes.

Example: Interaction in effects on House Selling Price Suppose the actual population relationship between house size and the mean selling price is: Then the slope for the effect of differs for the two conditions. There is then interaction between house size and condition in their effects on selling price. See Figure 13.8 on the next slide.

Example: Interaction in effects on House Selling Price Figure 13.8 An Example of Interaction. There’s a larger slope between selling price and house size for homes in good condition than in other conditions.

Example: Interaction in effects on House Selling Price How can you allow for interaction when you do a regression analysis? To allow for interaction with two explanatory variables, one quantitative and one categorical, you can fit a separate regression line with a different slope between the two quantitative variables for each category of the categorical variable.