








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!









Multiple Regression is what we use when there are 2 or more quantitative explanatory variables which will be used to predict another quantitative response variable.
Simple Linear Regression (Chapters 2 and 10) is used when you have just 1 quantitative explanatory variable and 1 quantitative response variable.
For simple linear regression (Chapters 2 and 10), our statistical model was: y 0 1 x (only 1 explanatory variable)
In the multiple regression (Chapter 11), our statistical model is:
p p
deviation σ.
Just because we have data for several x variables doesn’t mean that all the x variables are important enough to go in your model. We must do a multiple-step procedure to decide which x variables are the most important when describing y.
1 • Means, standard deviations, minimums, and maximums, outliers (if any), stem plots or histograms are all good ways to show what is happening with your individual variables.
desired plots). 3
plots.
the “variables” box, and hit “ok.”
The higher the Pearson Correlation between 2 variables, the better, and the lower the Sig. (2-tailed) the better. The P-value (Sig.) is the result of the test H (^) 0 : (^0) vs. H (^) a : (^0) that we did in chapter 10.
STAT 301 Spring 2009
Which are the stronger relationships between an x and the y? Which are the stronger x - to- x r elationships?
Look at scatter plots between each pair of variables, too (you will look at a LOT of graphs).
We are only interested in keeping the variables which had strong relationships.
0 • This will include an ANOVA table and coefficient output like in Chapter 10. 1
Analysis of Variance F-Test: In the multiple regression model, the hypothesis
0 1 2
p
H (^) a : not all^ ^1 ^ 2 ...^ p ^0 uses the F-statistic
H (^) a means at least one (^) i (^0). We can’t tell how many are regression coefficients are not 0 at
this point. We need to do t-tests to be more specific. (Think back: We did Bonferroni multiple comparisons t tests if we could reject the null hypothesis in a One-way ANOVA F test.) If we reject H 0 , basically we have determined that this problem is worthy of further study. Even if the P -value (Sig.) is small, you need to look at R^2. If the R^2 is small, it means the model (variables) being used does not do a very good job of explaining the variation in y.
You can get a fitted regression equation from the estimates for bj in the SPSS output at this point.
The SPSS output will also include confidence intervals, t test statistics and respective P -values for the respective individual bj****.
The degrees of freedom we will use for the t-tests will be n-p- 1 where n is the # of subjects we study, p is the # of explanatory variables.
STAT 301 Spring 2009
R^2 should be as high as possible (or at least not drop drastically when you remove a variable)
The standard deviation, s, should be as small as possible
The F-test statistic from ANOVA should get bigger, and the P-value from the ANOVA F- test should get smaller
Any variables left in the equation should have a significant P-value from their t-test of the coefficient (their confidence intervals should not contain 0) unless taking out a slightly insignificant coefficient makes the R^2 and s move the wrong direction.
Our goal is to keep only the variables which are the most useful to us. Get rid of any excess variables, but balance removing insignificant variables with the change that has on the whole model.
How do we know which variables should be included in our model and
which should not?
*****Procedure 1** : Start with a model that contains all your explanatory variables with strong correlations, run the regression, and then remove one at a time whichever variables aren’t significant from the t -test until you find that your R^2 starts to decrease too rapidly or your s goes up too rapidly. You may end up leaving in one or more variables which are not significant on their own. You just have to see what removing them does to the whole model. (This is the procedure that we will follow in the lecture notes and that you should use for this class.)
Procedure 2 : Start with a model that contains only one explanatory variable and add one variable at a time till you find that your R^2 is no longer increasing rapidly. Sometimes there may be more than one appropriate choice for your model. The most important thing is to be able to explain why you chose the model you did. Not every model is as easy to define as the one in the CHEESE example below.
Example 1: As cheddar cheese matures a variety of chemical processes take place. The taste of mature cheese is related to the concentration of several chemicals in the final product. In a study of cheddar cheese from the La Trobe Valley of Victoria, Australia, samples of cheese were analyzed for their chemical composition and were subjected to taste tests. Data for one type of cheese-manufacturing processes appears in below. The variable “Case” is used to number the observations from 1 to 30. “Taste” is the response variable of interest. The taste scores were obtained by combining the scores from several tasters. Three chemicals whose concentrations
STAT 301 Spring 2009
were measured were acetic acid, hydrogen sulfide, and lactic acid. For acetic acid and hydrogen sulfide (natural) log transformations were taken. Thus the explanatory variables are the transformed concentrations of acetic acid (“Acetic”) and hydrogen sulfide (“H2S”) and the untransformed concentration of lactic acid (“Lactic”). These data are based on experiments performed by G. T. Lloyd and E. H. Ramshaw of the CSIRO Division of Food Research, Victoria, Australia.
Case Taste Acetic H2S Lactic 1 12.3 4.543 3.135 0. 2 20.9 5.159 5.043 1. 3 39 5.366 5.438 1. 4 47.9 5.759 7.496 1. 5 5.6 4.663 3.807 0. 6 25.9 5.697 7.601 1. 7 37.3 5.892 8.726 1. 8 21.9 6.078 7.966 1. 9 18.1 4.898 3.85 1. 10 21 5.242 4.174 1. 11 34.9 5.74 6.142 1. 12 57.2 6.446 7.908 1. 13 0.7 4.477 2.996 1. 14 25.9 5.236 4.942 1. 15 54.9 6.151 6.752 1. 16 40.9 6.365 9.588 1. 17 15.9 4.787 3.912 1. 18 6.4 5.412 4.7 1. 19 18 5.247 6.174 1. 20 38.9 5.438 9.064 1. 21 14 4.564 4.949 1. 22 15.2 5.298 5.22 1. 23 32 5.455 9.242 1. 24 56.7 5.855 10.199 2. 25 16.8 5.366 3.664 1. 26 11.6 6.043 3.219 1. 27 26.5 6.458 6.962 1. 28 0.7 5.328 3.912 1. 29 13.4 5.802 6.685 1. 30 5.5 6.176 4.787 1.
a) Look at each variable individually using graphs and descriptive statistics. Any outliers? Enter data in SPSS, then select> Analyze>Descriptive Statistics>Explore. Select Plots options, Statistics options (choose either stemplot or histogram).
STAT 301 Spring 2009
95% Confidence 95% Confidence 95% Confidence
b) Look at a scatterplot and a residual plot of taste versus acetic, taste versus H2S and taste versus lactic. Do you see any problems?
STAT 301 Spring 2009
Below we see a matrix showing each of the variables plotted against the others. This gives us an idea of the association between variables. We want to examine these potential associations further by looking at the correlations.
c) Which explanatory variables (x’s--Acetic, H2S, Lactic) are most strongly correlated to the response variable (y, taste)? Calculate the correlation for each pair of variables and report the P-value for each. Select Analyze>>Correlate>>Bivariate. Correlations
STAT 301 Spring 2009
d) Which variables look important at this time?
e) Perform a multiple regression using the explanatory variables which look important at this point. Give the fitted regression equation and answer the additional questions below the output.
1 Regression line:
f) State your hypotheses for an ANOVA F-test, give the test statistic and its p-value, and state your conclusion.
g) Report the t-statistics and the p-values for the tests of the regression coefficients of your explanatory variables. What conclusions do you draw from these tests?
h) Give the 95% confidence intervals for the regression coefficients of your explanatory variables. Do any of the intervals contain the point 0?
STAT 301 Spring 2009
i) What percent of variation explained by new regression line
j) What is the value of s, the estimator for standard error of the model?
What changed? What stayed the same or improved?
Now look at a residual plot for each of the variables you still have in the model. Do a normal probability plot, too.
STAT 301 Spring 2009
k) Which is the better model? Using the better model, predict the “taste” for an H2S=4 and Lactic=1.
STAT 301 Spring 2009