SlideShare a Scribd company logo
Multiple Regression Analysis  and Model Building
Chapter Goals ,[object Object],[object Object],[object Object],[object Object],[object Object]
Chapter Goals ,[object Object],[object Object],[object Object],[object Object],(continued)
The Multiple Regression Model Idea: Examine the linear relationship between  1 dependent (y) & 2 or more independent variables (x i ) Population model: Y-intercept Population slopes Random Error Estimated  (or predicted)  value of y Estimated slope coefficients Estimated multiple regression model: Estimated intercept
Multiple Regression Model Two variable model y x 1 x 2 Slope for variable x 1 Slope for variable x 2
Multiple Regression Model Two variable model y x 1 x 2 y i y i < e = (y – y) < x 2i x 1i The best fit equation, y , is found by minimizing the sum of squared errors,   e 2 < Sample observation
Multiple Regression Assumptions ,[object Object],[object Object],[object Object],[object Object],e = (y – y) < Errors (residuals) from the regression model:
Model Specification ,[object Object],[object Object],[object Object]
The Correlation Matrix ,[object Object],[object Object],[object Object]
Example ,[object Object],[object Object],[object Object],[object Object],[object Object]
Pie Sales Model ,[object Object],[object Object],Correlation matrix: Multiple regression model: 2.7 7.00 300 15 3.5 5.00 450 14 4.0 5.90 440 13 3.2 7.90 300 12 3.5 7.20 340 11 4.0 5.00 490 10 3.5 7.00 450 9 3.7 6.40 470 8 3.0 4.50 430 7 4.0 7.50 380 6 3.0 6.80 350 5 4.5 8.00 430 4 3.0 8.00 350 3 3.3 7.50 460 2 3.3 5.50 350 1 Advertising ($100s) Price ($) Pie Sales Week 1 0.03044 0.55632 Advertising 1 -0.44327 Price 1 Pie Sales Advertising Price Pie Sales  
Interpretation of Estimated Coefficients ,[object Object],[object Object],[object Object],[object Object],[object Object]
Pie Sales Correlation Matrix ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],1 0.03044 0.55632 Advertising 1 -0.44327 Price 1 Pie Sales Advertising Price Pie Sales  
Scatter Diagrams Sales Sales Price Advertising
Estimating a Multiple Linear  Regression Equation ,[object Object],[object Object],[object Object],[object Object],[object Object]
Estimating a Multiple Linear  Regression Equation ,[object Object],[object Object]
Estimating a Multiple Linear  Regression Equation ,[object Object],[object Object]
Multiple Regression Output 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA     15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
The Multiple Regression Equation b 1  = -24.975 :  sales will decrease, on average, by 24.975 pies per week for each $1 increase in selling price, net of the effects of changes due to advertising b 2  = 74.131 :  sales will increase, on average, by 74.131 pies per week for each $100 increase in advertising, net of the effects of changes due to price where Sales is in number of pies per week Price is in $ Advertising is in $100’s.
Using The Model to Make Predictions Predict sales for a week in which the selling price is $5.50 and advertising is $350: Predicted sales is 428.62 pies Note that Advertising is in $100’s, so $350 means that x 2  = 3.5
Predictions in PHStat ,[object Object],Check the “confidence and prediction interval estimates” box
[object Object],Predictions in PHStat (continued) Predicted  y value < Confidence interval for the mean y value, given these x’s < Prediction interval for an individual  y value, given these x’s <
Multiple Coefficient of   Determination (R 2 ) ,[object Object]
Multiple Coefficient of   Determination 52.1% of the variation in pie sales is explained by the variation in price and advertising (continued) 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA     15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
Adjusted R 2 ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],Adjusted R 2 (continued)
Multiple Coefficient of   Determination 44.2% of the variation in pie sales is explained by the variation in price and advertising, taking into account the sample size and number of independent variables (continued) 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA     15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
Is the Model Significant? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
F-Test for Overall Significance ,[object Object],[object Object],[object Object],[object Object],(continued)
F-Test for Overall Significance (continued) With 2 and 12 degrees of freedom P-value for the F-Test 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA     15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
[object Object],[object Object],[object Object],[object Object],F-Test for Overall Significance Test Statistic:  Decision: Conclusion: Reject H 0  at    = 0.05 The regression model does explain a significant portion of the variation in pie sales  (There is evidence that at least one independent variable affects  y ) 0      = .05 F .05  = 3.885 Reject H 0 Do not  reject H 0 Critical Value:  F    = 3.885 (continued) F
Are Individual Variables Significant? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Are Individual Variables Significant? ,[object Object],[object Object],[object Object],[object Object],[object Object],(continued)
Are Individual Variables Significant? t-value for Price is  t = -2.306, with p-value .0398 t-value for Advertising is t = 2.855, with p-value .0145 (continued) 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA     15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
Inferences about the Slope:  t   Test Example ,[object Object],[object Object],[object Object],[object Object],[object Object],The test statistic for each variable falls in the rejection region (p-values < .05) There is evidence that both Price and Advertising affect pie sales at    = .05 From Excel output:  Reject H 0  for each variable Decision: Conclusion: Reject H 0 Reject H 0  /2=.025 -t α /2 Do not reject H 0 0 t α /2  /2=.025 -2.1788 2.1788 0.01449 2.85478 25.96732 74.13096 Advertising 0.03979 -2.30565 10.83213 -24.97509 Price P-value t Stat Standard Error Coefficients  
Confidence Interval Estimate  for the Slope Confidence interval for the population slope  β 1  (the effect of changes in price on pie sales): Example:   Weekly sales are estimated to be reduced by between 1.37 to 48.58 pies for each increase of $1 in the selling price where t has  (n – k – 1) d.f. … … … … 130.70888 17.55303 25.96732 74.13096 Advertising -1.37392 -48.57626 10.83213 -24.97509 Price 555.46404 57.58835 114.25389 306.52619 Intercept Upper 95% Lower 95% Standard Error Coefficients  
Standard Deviation of the Regression Model ,[object Object],[object Object]
Standard Deviation of the Regression Model The standard deviation of the regression model is 47.46  (continued) 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA     15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
[object Object],[object Object],[object Object],Standard Deviation of the Regression Model (continued)
Multicollinearity ,[object Object],[object Object]
Multicollinearity ,[object Object],[object Object],[object Object],[object Object],(continued)
Some Indications of Severe Multicollinearity ,[object Object],[object Object],[object Object],[object Object]
Qualitative (Dummy) Variables ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Dummy-Variable Model Example  (with 2 Levels) Let: y  = pie sales x 1  = price x 2  = holiday   (X 2  = 1 if a holiday occurred during the week)    (X 2  = 0 if there was no holiday that week)
Dummy-Variable Model Example  (with 2 Levels) Same slope (continued) x 1  (Price) y (sales) b 0  + b 2 b 0   Holiday No Holiday Different intercept Holiday No Holiday If  H 0 :  β 2  = 0  is rejected, then “ Holiday” has a significant effect on pie sales
Interpreting the Dummy Variable Coefficient (with 2 Levels) Sales: number of pies sold per week Price:  pie price in $ Holiday: Example: 1  If a holiday occurred during the week 0  If no holiday occurred b 2  = 15: on average, sales were 15 pies greater in weeks with a holiday than in weeks without a holiday, given the same price
Dummy-Variable Models  (more than 2 Levels) ,[object Object],[object Object],[object Object],[object Object],[object Object],Three levels, so two dummy variables are needed
Dummy-Variable Models  (more than 2 Levels) b 2  shows the impact on price if the house is a ranch style,  compared to a condo b 3  shows the impact on price if the house is a split level style,  compared to a condo (continued) Let the default category be “condo”
Interpreting the Dummy Variable Coefficients (with 3 Levels) With the same square feet, a ranch will have an estimated average price of 23.53 thousand dollars more than a condo With the same square feet, a ranch will have an estimated average price of 18.84 thousand dollars more than a condo. Suppose the estimated equation is For a condo: x 2  = x 3  = 0 For a ranch: x 3  = 0 For a split level: x 2  = 0
Model Building ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],Stepwise Regression
Best Subsets Regression ,[object Object],[object Object],Stepwise regression and best subsets regression can be performed using PHStat, Minitab, or other statistical software packages
Aptness of the Model ,[object Object],[object Object],[object Object],[object Object],[object Object],Errors (or Residuals) are given by
Residual Analysis Non-constant variance  Constant variance x x residuals residuals Not Independent Independent x residuals x residuals 
The Normality Assumption ,[object Object],[object Object],[object Object]
Chapter Summary ,[object Object],[object Object],[object Object],[object Object],[object Object]
Chapter Summary ,[object Object],[object Object],[object Object],[object Object],[object Object],(continued)

More Related Content

What's hot

What is a Single Sample Z Test?
What is a Single Sample Z Test?What is a Single Sample Z Test?
What is a Single Sample Z Test?
Ken Plummer
 
Regression
Regression Regression
Regression
Ali Raza
 
Linear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsLinear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec doms
Babasab Patil
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
James Neill
 
Dummy variable
Dummy variableDummy variable
Dummy variableAkram Ali
 
Correlation analysis notes
Correlation analysis notesCorrelation analysis notes
Correlation analysis notes
Japheth Muthama
 
Multiple Regression Analysis (MRA)
Multiple Regression Analysis (MRA)Multiple Regression Analysis (MRA)
Multiple Regression Analysis (MRA)
Naveen Kumar Medapalli
 
7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares
Yugesh Dutt Panday
 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
Seth Anandaram Jaipuria College
 
Logistic regression with SPSS
Logistic regression with SPSSLogistic regression with SPSS
Logistic regression with SPSS
LNIPE
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regression
alok tiwari
 
Multicolinearity
MulticolinearityMulticolinearity
Multicolinearity
Pawan Kawan
 
Logit and Probit and Tobit model: Basic Introduction
Logit and Probit  and Tobit model: Basic IntroductionLogit and Probit  and Tobit model: Basic Introduction
Logit and Probit and Tobit model: Basic Introduction
Rabeesh Verma
 
Multiple Linear Regression
Multiple Linear RegressionMultiple Linear Regression
Multiple Linear Regression
Indus University
 
R square vs adjusted r square
R square vs adjusted r squareR square vs adjusted r square
R square vs adjusted r square
Akhilesh Joshi
 
Statistics-Regression analysis
Statistics-Regression analysisStatistics-Regression analysis
Statistics-Regression analysis
Rabin BK
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
cbt1213
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
sonia gupta
 
Discriminant analysis
Discriminant analysisDiscriminant analysis
Discriminant analysis
Amritashish Bagchi
 

What's hot (20)

What is a Single Sample Z Test?
What is a Single Sample Z Test?What is a Single Sample Z Test?
What is a Single Sample Z Test?
 
Correlation analysis
Correlation analysisCorrelation analysis
Correlation analysis
 
Regression
Regression Regression
Regression
 
Linear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec domsLinear regression and correlation analysis ppt @ bec doms
Linear regression and correlation analysis ppt @ bec doms
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Dummy variable
Dummy variableDummy variable
Dummy variable
 
Correlation analysis notes
Correlation analysis notesCorrelation analysis notes
Correlation analysis notes
 
Multiple Regression Analysis (MRA)
Multiple Regression Analysis (MRA)Multiple Regression Analysis (MRA)
Multiple Regression Analysis (MRA)
 
7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares7 classical assumptions of ordinary least squares
7 classical assumptions of ordinary least squares
 
Binary Logistic Regression
Binary Logistic RegressionBinary Logistic Regression
Binary Logistic Regression
 
Logistic regression with SPSS
Logistic regression with SPSSLogistic regression with SPSS
Logistic regression with SPSS
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regression
 
Multicolinearity
MulticolinearityMulticolinearity
Multicolinearity
 
Logit and Probit and Tobit model: Basic Introduction
Logit and Probit  and Tobit model: Basic IntroductionLogit and Probit  and Tobit model: Basic Introduction
Logit and Probit and Tobit model: Basic Introduction
 
Multiple Linear Regression
Multiple Linear RegressionMultiple Linear Regression
Multiple Linear Regression
 
R square vs adjusted r square
R square vs adjusted r squareR square vs adjusted r square
R square vs adjusted r square
 
Statistics-Regression analysis
Statistics-Regression analysisStatistics-Regression analysis
Statistics-Regression analysis
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
 
Discriminant analysis
Discriminant analysisDiscriminant analysis
Discriminant analysis
 

Similar to Multiple Regression

Lesson07_new
Lesson07_newLesson07_new
Lesson07_newshengvn
 
Statistics homework help
Statistics homework helpStatistics homework help
Statistics homework help
Expertsmind IT Education Pvt Ltd.
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
TanyaWadhwani4
 
Some study materials
Some study materialsSome study materials
Some study materials
SatishH5
 
Regression Presentation.pptx
Regression Presentation.pptxRegression Presentation.pptx
Regression Presentation.pptx
MuhammadMuslim25
 
Stat_AMBA_600_Problem Set3
Stat_AMBA_600_Problem Set3Stat_AMBA_600_Problem Set3
Stat_AMBA_600_Problem Set3Tyler Anton
 
Bbs11 ppt ch14
Bbs11 ppt ch14Bbs11 ppt ch14
Bbs11 ppt ch14
Tuul Tuul
 
Multinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisMultinomial Logistic Regression Analysis
Multinomial Logistic Regression Analysis
HARISH Kumar H R
 
Newbold_chap13.ppt
Newbold_chap13.pptNewbold_chap13.ppt
Newbold_chap13.ppt
cfisicaster
 
linear Regression, multiple Regression and Annova
linear Regression, multiple Regression and Annovalinear Regression, multiple Regression and Annova
linear Regression, multiple Regression and Annova
Mansi Rastogi
 
Chap12 multiple regression
Chap12 multiple regressionChap12 multiple regression
Chap12 multiple regression
Judianto Nugroho
 
Marketing Engineering Notes
Marketing Engineering NotesMarketing Engineering Notes
Marketing Engineering NotesFelipe Affonso
 
Managerial Economics - Demand Estimation (regression analysis)
Managerial Economics - Demand Estimation (regression analysis)Managerial Economics - Demand Estimation (regression analysis)
Managerial Economics - Demand Estimation (regression analysis)
JooneEltanal
 
Me ppt
Me pptMe ppt
Me ppt
HEENA PATEL
 
Demand estimation and forecasting
Demand estimation and forecastingDemand estimation and forecasting
Demand estimation and forecasting
shivraj negi
 
What is Multiple Linear Regression and How Can it be Helpful for Business Ana...
What is Multiple Linear Regression and How Can it be Helpful for Business Ana...What is Multiple Linear Regression and How Can it be Helpful for Business Ana...
What is Multiple Linear Regression and How Can it be Helpful for Business Ana...
Smarten Augmented Analytics
 
regression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdfregression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdf
MuhammadAftab89
 
Data Analysison Regression
Data Analysison RegressionData Analysison Regression
Data Analysison Regressionjamuga gitulho
 
01_SLR_final (1).pptx
01_SLR_final (1).pptx01_SLR_final (1).pptx
01_SLR_final (1).pptx
DR. MAQSOOD AHMAD
 

Similar to Multiple Regression (20)

Lesson07_new
Lesson07_newLesson07_new
Lesson07_new
 
Demand Estimation
Demand EstimationDemand Estimation
Demand Estimation
 
Statistics homework help
Statistics homework helpStatistics homework help
Statistics homework help
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
Some study materials
Some study materialsSome study materials
Some study materials
 
Regression Presentation.pptx
Regression Presentation.pptxRegression Presentation.pptx
Regression Presentation.pptx
 
Stat_AMBA_600_Problem Set3
Stat_AMBA_600_Problem Set3Stat_AMBA_600_Problem Set3
Stat_AMBA_600_Problem Set3
 
Bbs11 ppt ch14
Bbs11 ppt ch14Bbs11 ppt ch14
Bbs11 ppt ch14
 
Multinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisMultinomial Logistic Regression Analysis
Multinomial Logistic Regression Analysis
 
Newbold_chap13.ppt
Newbold_chap13.pptNewbold_chap13.ppt
Newbold_chap13.ppt
 
linear Regression, multiple Regression and Annova
linear Regression, multiple Regression and Annovalinear Regression, multiple Regression and Annova
linear Regression, multiple Regression and Annova
 
Chap12 multiple regression
Chap12 multiple regressionChap12 multiple regression
Chap12 multiple regression
 
Marketing Engineering Notes
Marketing Engineering NotesMarketing Engineering Notes
Marketing Engineering Notes
 
Managerial Economics - Demand Estimation (regression analysis)
Managerial Economics - Demand Estimation (regression analysis)Managerial Economics - Demand Estimation (regression analysis)
Managerial Economics - Demand Estimation (regression analysis)
 
Me ppt
Me pptMe ppt
Me ppt
 
Demand estimation and forecasting
Demand estimation and forecastingDemand estimation and forecasting
Demand estimation and forecasting
 
What is Multiple Linear Regression and How Can it be Helpful for Business Ana...
What is Multiple Linear Regression and How Can it be Helpful for Business Ana...What is Multiple Linear Regression and How Can it be Helpful for Business Ana...
What is Multiple Linear Regression and How Can it be Helpful for Business Ana...
 
regression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdfregression-130929093340-phpapp02 (1).pdf
regression-130929093340-phpapp02 (1).pdf
 
Data Analysison Regression
Data Analysison RegressionData Analysison Regression
Data Analysison Regression
 
01_SLR_final (1).pptx
01_SLR_final (1).pptx01_SLR_final (1).pptx
01_SLR_final (1).pptx
 

Recently uploaded

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
Vlad Stirbu
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
nkrafacyberclub
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 

Recently uploaded (20)

Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Quantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIsQuantum Computing: Current Landscape and the Future Role of APIs
Quantum Computing: Current Landscape and the Future Role of APIs
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptxSecstrike : Reverse Engineering & Pwnable tools for CTF.pptx
Secstrike : Reverse Engineering & Pwnable tools for CTF.pptx
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 

Multiple Regression

  • 1. Multiple Regression Analysis and Model Building
  • 2.
  • 3.
  • 4. The Multiple Regression Model Idea: Examine the linear relationship between 1 dependent (y) & 2 or more independent variables (x i ) Population model: Y-intercept Population slopes Random Error Estimated (or predicted) value of y Estimated slope coefficients Estimated multiple regression model: Estimated intercept
  • 5. Multiple Regression Model Two variable model y x 1 x 2 Slope for variable x 1 Slope for variable x 2
  • 6. Multiple Regression Model Two variable model y x 1 x 2 y i y i < e = (y – y) < x 2i x 1i The best fit equation, y , is found by minimizing the sum of squared errors,  e 2 < Sample observation
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14. Scatter Diagrams Sales Sales Price Advertising
  • 15.
  • 16.
  • 17.
  • 18. Multiple Regression Output 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA   15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
  • 19. The Multiple Regression Equation b 1 = -24.975 : sales will decrease, on average, by 24.975 pies per week for each $1 increase in selling price, net of the effects of changes due to advertising b 2 = 74.131 : sales will increase, on average, by 74.131 pies per week for each $100 increase in advertising, net of the effects of changes due to price where Sales is in number of pies per week Price is in $ Advertising is in $100’s.
  • 20. Using The Model to Make Predictions Predict sales for a week in which the selling price is $5.50 and advertising is $350: Predicted sales is 428.62 pies Note that Advertising is in $100’s, so $350 means that x 2 = 3.5
  • 21.
  • 22.
  • 23.
  • 24. Multiple Coefficient of Determination 52.1% of the variation in pie sales is explained by the variation in price and advertising (continued) 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA   15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
  • 25.
  • 26.
  • 27. Multiple Coefficient of Determination 44.2% of the variation in pie sales is explained by the variation in price and advertising, taking into account the sample size and number of independent variables (continued) 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA   15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
  • 28.
  • 29.
  • 30. F-Test for Overall Significance (continued) With 2 and 12 degrees of freedom P-value for the F-Test 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA   15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
  • 31.
  • 32.
  • 33.
  • 34. Are Individual Variables Significant? t-value for Price is t = -2.306, with p-value .0398 t-value for Advertising is t = 2.855, with p-value .0145 (continued) 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA   15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
  • 35.
  • 36. Confidence Interval Estimate for the Slope Confidence interval for the population slope β 1 (the effect of changes in price on pie sales): Example: Weekly sales are estimated to be reduced by between 1.37 to 48.58 pies for each increase of $1 in the selling price where t has (n – k – 1) d.f. … … … … 130.70888 17.55303 25.96732 74.13096 Advertising -1.37392 -48.57626 10.83213 -24.97509 Price 555.46404 57.58835 114.25389 306.52619 Intercept Upper 95% Lower 95% Standard Error Coefficients  
  • 37.
  • 38. Standard Deviation of the Regression Model The standard deviation of the regression model is 47.46 (continued) 130.70888 17.55303 0.01449 2.85478 25.96732 74.13096 Advertising -1.37392 -48.57626 0.03979 -2.30565 10.83213 -24.97509 Price 555.46404 57.58835 0.01993 2.68285 114.25389 306.52619 Intercept Upper 95% Lower 95% P-value t Stat Standard Error Coefficients         56493.333 14 Total 2252.776 27033.306 12 Residual 0.01201 6.53861 14730.013 29460.027 2 Regression Significance F F MS SS df ANOVA   15 Observations 47.46341 Standard Error 0.44172 Adjusted R Square 0.52148 R Square 0.72213 Multiple R Regression Statistics
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44. Dummy-Variable Model Example (with 2 Levels) Let: y = pie sales x 1 = price x 2 = holiday (X 2 = 1 if a holiday occurred during the week) (X 2 = 0 if there was no holiday that week)
  • 45. Dummy-Variable Model Example (with 2 Levels) Same slope (continued) x 1 (Price) y (sales) b 0 + b 2 b 0 Holiday No Holiday Different intercept Holiday No Holiday If H 0 : β 2 = 0 is rejected, then “ Holiday” has a significant effect on pie sales
  • 46. Interpreting the Dummy Variable Coefficient (with 2 Levels) Sales: number of pies sold per week Price: pie price in $ Holiday: Example: 1 If a holiday occurred during the week 0 If no holiday occurred b 2 = 15: on average, sales were 15 pies greater in weeks with a holiday than in weeks without a holiday, given the same price
  • 47.
  • 48. Dummy-Variable Models (more than 2 Levels) b 2 shows the impact on price if the house is a ranch style, compared to a condo b 3 shows the impact on price if the house is a split level style, compared to a condo (continued) Let the default category be “condo”
  • 49. Interpreting the Dummy Variable Coefficients (with 3 Levels) With the same square feet, a ranch will have an estimated average price of 23.53 thousand dollars more than a condo With the same square feet, a ranch will have an estimated average price of 18.84 thousand dollars more than a condo. Suppose the estimated equation is For a condo: x 2 = x 3 = 0 For a ranch: x 3 = 0 For a split level: x 2 = 0
  • 50.
  • 51.
  • 52.
  • 53.
  • 54. Residual Analysis Non-constant variance  Constant variance x x residuals residuals Not Independent Independent x residuals x residuals 
  • 55.
  • 56.
  • 57.