250 likes | 379 Views
Multiple Regression Models. The Multiple Regression Model. The relationship between one dependent & two or more independent variables is a linear function. Population Y-intercept. Population slopes. Random Error. Dependent (Response) variable for sample.
E N D
The Multiple Regression Model The relationship between one dependent & two or more independent variables is a linear function Population Y-intercept Population slopes Random Error Dependent (Response) variable for sample Independent (Explanatory) variables for sample model
Multiple Regression Model: Example Develop a model for estimating heating oil used for a single family home in the month of January based on average temperature and amount of insulation in inches. (0F)
Sample Multiple Regression Model: Example Excel Output For each degree increase in temperature, the estimated average amount of heating oil used is decreased by 5.437 gallons, holding insulation constant. For each increase in one inch of insulation, the estimated average use of heating oil is decreased by 20.012 gallons, holding temperature constant.
Interpretation of Estimated Coefficients • Slope (bi) The average Y changes by bi each time Xiis increased or decreased by 1 unit holding all other variables constant. • For example: If b1 = -2, then fuel oil usage (Y) is expected to decrease by an estimated 2 gallons for each 1 degree increase in temperature (X1) given the inches of insulation (X2).
Interpretation of Estimated Coefficients • Intercept (b0) • The intercept (b0) is the estimated average value of Y when all Xi = 0.
Using The Model to Make Predictions Predict the amount of heating oil used for a home if the average temperature is 300 and the insulation is 6 inches. The predicted heating oil used is 278.97 gallons
Developing the Model Checking for problems. Being sure the model passes all tests for model quality.
Identifying Problems • Do all the residual tests listed for simple regression. • Check for multicolinearity.
Multicolinearity • This occurs when there is a high correlation between the explanatory variables. • This leads to unstable coefficients . • The VIF used to measure colinearity (values exceeding 5 are not good and exceeding 10 are a big problem): = Coefficient of Multiple Determination of Xj with all the others
Coefficient of Multiple Determination Excel Output r2 Adjusted r2 The r2 is adjusted downward to reflect small sample sizes.
Testing for Overall Significance • Shows if there is a linear relationship between all of the X variables taken together and Y • Hypothesis: • H0: 1 = 2 = … = p = 0 (No linear relationships) • H1: At least one i 0 (At least one independent variable effects Y)
Test for Overall SignificanceExcel Output: Example p value p = 2, the number of explanatory variables n - 1 MSR = F Test Statistic MSE
Test for Overall Significance Test Statistic: Decision: Conclusion: • H0: 1 = 2 = … = p = 0 • H1: At least one I 0 • = .05 • df = 2 and 12 • Critical value(s): F 168.47 (Excel Output) Reject at = 0.05 There is evidence that at least one independent variable affects Y. = 0.05 F 0 3.89
Test for Significance:Individual Variables • Shows if there is a linear relationship between each variable Xi and Y. • Hypotheses: • H0: i = 0 (No linear relationship) • H1: i 0 (Linear relationship between Xi and Y)
T Test StatisticExcel Output: Example t Test Statistic for X1 (Temperature) t Test Statistic for X2 (Insulation)
t Test : Example Solution Does temperature have a significant effect on monthly consumption of heating oil? Test at = 0.05. • H0: 1 = 0 h1: 1 0 • df = n-2 = 12 critical value(s): Test Statistic: Decision: Conclusion: t Test Statistic = -16.1699 Reject H0 at = 0.05 Reject H Reject H 0 0 There is evidence of a significant effect of temperature on oil consumption. .025 .025 t 0 2.1788 -2.1788
Confidence Interval Estimate For The Slope Provide the 95% confidence interval for the population slope 1 (the effect of temperature on oil consumption). -6.1691-4.704 The estimated average consumption of oil is reduced by between 4.7 gallons to 6.17 gallons per each increase of 10 F.
Dummy-variable Models • Create a categorical variable (dummy variable) with 2 levels: • For example, yes and no or male and female. • The date is coded as 0 or 1. • The coding makes the intercepts different. • This analysis assumes equal slopes. • The regression model has same form:
Dummy-variable Models Assumption Given: Y = Assessed Value of House X1 = Square footage of House X2 = Desirability of Neighborhood = Desirable (X2 = 1) Undesirable (X2 = 0) 0 if undesirable 1 if desirable Same slopes
Dummy-variable Models Assumption Y (Assessed Value) Same slopes Desirable Location b0 + b2 Undesirable Intercepts different b0 X1(Square footage)
Interpretation of the Dummy Variable Coefficient For example: : Annual salary of college graduate in thousand $ 0 Female : : GPA 1 Male This 6 is interpreted as given the same GPA, the male college graduate is making an estimated 6 thousand dollars more than female on average.