










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











Simple and Multiple Regression Analysis
Example: Explore the relationships among Month, Adv.$ and Sales $:
(Regression.xls/Reg0)
ᡑ〶 = ‐⡨ + ‐⡩ᡐ⡩〶 + ‐⡰ᡐ⡰〶 + –〶 or ᡅᡓᡤᡗᡱ〶 = ‐⡨ + ‐⡩ᠹᡧᡦᡲℎ〶 + ‐⡰ᠧᡖᡴ〶 + –〶
where Yi is the Sales in Month I with the amount of Adv.$ given in Month I , β 0 is the Y intercept, or the Sales at Month =0 and Adv.$ = 0, β 1 is the slope of the regression line drawn with Month as independent variable (X 1 ) and Sales as dependent variable (Y), it shows the marginal change (increase or decrease) in Sales when the variable Month changes one unit (increase or decrease) while keep no change for all of other variables, β 2 is the slope of the regression line drawn with Adv$ as independent variable (X 2 ) and Sales as dependent variable (Y), it shows the marginal change (increase or decrease) in Sales (Y) when the amount of the variable Adv$ (X 2 ) incrementally changes (increases or decreases ONE unit) while keep no change for all of other variables.
(Regression.xls/Reg1)
Use Excel@ Solver to get optimal values of b0, b 1 and b 2 that will minimize SSE Objective Function: SSE Changing Cells: I5:I
e. Click any data point on the scatter plots for Month and Sales, or Adv and Sales, select Add Trendline / Display equations & Display R-Squared value on the charts. The Y and Xs are renamed to Month, Adv and Sales, respectively, for the regression lines.
(Regression.xls/Reg1) For the regression line for Month versus Sales, R^2 = 94.5% means 94.5% of the total variations in Sales are counted for or explained and 5.5% of the total variations are not counted for or not explained by the regression line between Month and Sales. For the regression line for Adv versus Sales, R^2 = 81.18% means 81.18% of the total variations in Sales are counted for or explained and 18.82%% of the total variations are not counted for or not explained by the regression line between the Adv and Sales.
(Regression.xls/Reg1SOa) Hypothesis Test for β 0 : i. What are the H 0 and H 1? H 0 : β 0 = 0 and H 1 : β 0 ≠ 0 ii. What are the decision rules? Decision Rules with p-value Approach: If p-value ≥ α (significance coefficient), then conclude H 0 or β 0 = 0; Otherwise, if p-value < α, then conclude Ha, or β 0 ≠0. iii. What is the conclusion? The p-value for β 0 = 0.082 as given in the Summary Output, it is greater than α = 0.05, therefore, we conclude H 0 : β 0 = 0 or fail to reject H 0 , i.e., we should not include the Y intercept term in the regression model for Sales.
Hypothesis Test for β 1 (Month): i. What are the H 0 and H 1? H 0 : β 1 = 0 and H 1 : β 1 ≠ 0 ii. What are the decision rules? Decision Rules with p-value Approach: If p-value ≥ α (significance coefficient), then conclude H 0 or β 1 = 0; Otherwise, if p-value < α, then conclude Ha, or β 1 ≠0. iii. What is the conclusion? The p-value for β 1 = 0.001 as given in the Summary Output, it is less than α = 0.05, therefore, we conclude H 1 : β 1 ≠0 or reject reject H 0 , i.e., we should include the variable Month in the regression model for Sales.
Hypothesis Test for β 2 (Adv): i. What are the H 0 and H 1? H 0 : β 2 = 0 and H 1 : β 2 ≠ 0 ii. What are the decision rules? Decision Rules with p-value Approach: If p-value ≥ α (significance coefficient), then conclude H 0 or β 2 = 0; Otherwise, if p-value < α, then conclude Ha, or β 2 ≠0. iii. What is the conclusion? The p-value for β 2 = 0.105 as given in the Summary Output, it is greater than α = 0.05, therefore, we conclude H 0 : β 0 = 0 or fail to reject H 0 , i.e., we should not include the variable Adv in the regression model for Sales.
Therefore the final regression model for Sales becomes: Sales = b 1 (Month). We have to go through additional procedures below to find out the value of b 1 when the Y intercept b 0 is zero.
For reference: Decision Rules with Confidence Interval Approach: If the given CI spans zero (with zero as part of CI), conclude H 0 Otherwise, if the given CI does not span zero, then conclude Ha
(Regression.xls/Reg1SOb)
(Regression.xls/Reg1SOc)
b. Use Excel@ =TREND(Y-RANGE,X-RANGE,X-VALUE)
(Regression.xls/Reg1)
c. What is the assumption you made when you develop forecasts for the next two years? The crucial assumption made for using linear regression is that the linear trend for Sales is going to continue in Months 11 and 12 with the b 2 = 96.3974. Thus any forecasts made outside out the original ranges of independent variable Xs in the historical data may not be valid.
Standard Error of Estimate (ᡅ〦〥 ᡧᡰ Se):
Se measures the variation of the actual data around the estimated regression line, where k is the number of independent variables in the model.
Standard prediction error (Sp): thus the Sp is always larger than Se.
(1–α)% Prediction Interval for individual response Y:
ᡑ㕒〶〵 = ᡔ⡨ + ᡔ⡩ᡐ〶〵 and ᡑ㕒〶〵 ± ᡲ(⡩⡹㌨ ㄘ;ぁ⡹⡰)
(Regression.xls/Reg1SOd)
The following results are in Regsssion.xls/Reg2.
939.603 Lw Lmt of 95% Mean Pred CI for Month= 1181.140 Up Lmt of 95% Mean Pred CI for Month=
807.391 Lw Lmt of 95% Pred CI for Month= 1313.352 Up Lmt of 95% Pred CI for Month=
867.577 Appro Lw Lmt of 95% Pred CI for Month = 11 1253.17 Appro Up Lmt of 95% Pred CI for Month = 11
Topics to be covered:
Decomposition of the Total Error: ᡑ〶 − ᡑ㍤ = (ᡑ〶 − ᡑ㕒〶 ) + (ᡑ㕒〶 − ᡑ㍤)
ぁ
〶⢀⡩
ぁ
〶⢀⡩
ぁ
〶⢀⡩
Or Total Sum of Squared Errors (TSS) = Error Sum of Squares (ESS) + Regression Sum of Squares (RSS)
ᡄ⡰^ = 〙〠〠〡〠〠 = 1 − 〆〠〠〡〠〠, and 0 ≤ R^2 ≤ 1
R^2 refers to the percentage of the total variation of Y around its mean that is explained or counted for by the estimated regression line or how well the regression line fits the data. 1-R^2 is the percentage of the total variation of Y around its mean that is unexplained or uncounted for by the regression line.
Equations to compute b 0 and b 1 :
ぁ 〶⢀⡩
∑ ぁ〶⢀⡩ ᡐ〶⡰−
⡰
ᡦ
ᡔ⡨ = ᡑ㍤ − ᡔ⡩ᡐ㍤
Statistical Tests for β 0 , β 1 , ᜐ, βk with F-Statistic, p-value and t-statistic:
What are the meanings of the slope(β 1 , … βn) and the intercept(β 0 )? Meanings of b 0 and b 1 : o b 0 is the intercept or Y value as X = 0 (e.g. Fixed cost) o b 1 is the slope or marginal change in Y with unit change in X o b 1 is similar to the slope. However, since it is calculated with the variability of the data in mind, its formulation is not as straight-forward as our usual notion of slope.
o Predictions made using an estimated regression function may have little or no validity for values of the independent variables that are substantially different from those represented in the sample. o Avoid multicollinearity when more than one independent variables are in the model.