SlideShare una empresa de Scribd logo
1 de 57
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)

Más contenido relacionado

La actualidad más candente

Multiple Linear Regression
Multiple Linear RegressionMultiple Linear Regression
Multiple Linear RegressionIndus University
 
Logistic regression
Logistic regressionLogistic regression
Logistic regressionDrZahid Khan
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regressionJames Neill
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regressioncbt1213
 
Simple Linier Regression
Simple Linier RegressionSimple Linier Regression
Simple Linier Regressiondessybudiyanti
 
Introduction to Regression Analysis
Introduction to Regression AnalysisIntroduction to Regression Analysis
Introduction to Regression AnalysisSibashis Chakraborty
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysisnadiazaheer
 
Multiple regression presentation
Multiple regression presentationMultiple regression presentation
Multiple regression presentationCarlo Magno
 
Basic concepts of_econometrics
Basic concepts of_econometricsBasic concepts of_econometrics
Basic concepts of_econometricsSwapnaJahan
 
regression and correlation
regression and correlationregression and correlation
regression and correlationPriya Sharma
 
Autocorrelation
AutocorrelationAutocorrelation
AutocorrelationADITHYAT1
 
Multicolinearity
MulticolinearityMulticolinearity
MulticolinearityPawan Kawan
 

La actualidad más candente (20)

Multiple Linear Regression
Multiple Linear RegressionMultiple Linear Regression
Multiple Linear Regression
 
Linear regression theory
Linear regression theoryLinear regression theory
Linear regression theory
 
Probit and logit model
Probit and logit modelProbit and logit model
Probit and logit model
 
Chap11 simple regression
Chap11 simple regressionChap11 simple regression
Chap11 simple regression
 
Logistic regression
Logistic regressionLogistic regression
Logistic regression
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Simple Linier Regression
Simple Linier RegressionSimple Linier Regression
Simple Linier Regression
 
Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear Regression
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Introduction to Regression Analysis
Introduction to Regression AnalysisIntroduction to Regression Analysis
Introduction to Regression Analysis
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Multiple regression presentation
Multiple regression presentationMultiple regression presentation
Multiple regression presentation
 
Basic concepts of_econometrics
Basic concepts of_econometricsBasic concepts of_econometrics
Basic concepts of_econometrics
 
regression and correlation
regression and correlationregression and correlation
regression and correlation
 
Autocorrelation
AutocorrelationAutocorrelation
Autocorrelation
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Multiple regression
Multiple regressionMultiple regression
Multiple regression
 
Multicolinearity
MulticolinearityMulticolinearity
Multicolinearity
 
Chapter 12
Chapter 12Chapter 12
Chapter 12
 

Similar a Multiple Regression

Lesson07_new
Lesson07_newLesson07_new
Lesson07_newshengvn
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.pptTanyaWadhwani4
 
Some study materials
Some study materialsSome study materials
Some study materialsSatishH5
 
Regression Presentation.pptx
Regression Presentation.pptxRegression Presentation.pptx
Regression Presentation.pptxMuhammadMuslim25
 
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 ch14Tuul Tuul
 
Multinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisMultinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisHARISH Kumar H R
 
Newbold_chap13.ppt
Newbold_chap13.pptNewbold_chap13.ppt
Newbold_chap13.pptcfisicaster
 
linear Regression, multiple Regression and Annova
linear Regression, multiple Regression and Annovalinear Regression, multiple Regression and Annova
linear Regression, multiple Regression and AnnovaMansi Rastogi
 
Chap12 multiple regression
Chap12 multiple regressionChap12 multiple regression
Chap12 multiple regressionJudianto 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
 
Demand estimation and forecasting
Demand estimation and forecastingDemand estimation and forecasting
Demand estimation and forecastingshivraj negi
 
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 domsBabasab Patil
 
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).pdfMuhammadAftab89
 
Data Analysison Regression
Data Analysison RegressionData Analysison Regression
Data Analysison Regressionjamuga gitulho
 

Similar a 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
 
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
 
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
 

Último

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 

Último (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

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.