Docsity

Regression - Lecture Notes - Probability and Statistics | MATH 3350, Exams of Probability and Statistics

Toggle sidebar
bg1
Probability & Statistics I
Robb Sinn
Math 3350 / 6350
NGCSU, Fall 2006
Regression
Overview
Multiple regression is one of the most powerful tools in the statistics research
tool kit. Based upon the simple linear regression where an independent variable
xis used to "predict" a dependent variable y, the multiple regression predicts
ywith several independent variables. In large studies, over 100 independent
variables (called predictors) are sometimes used. The regression analyis allows
the researcher to compare and contrast the e¤ects of multiple predictors, to
determine their relative strength in predicting the y-variable, and to cast aside
any that lack predictive power. The simple linear model is usually written as
follows:
by=b0+b1bx,
where byis the estimate of the dependent variable, bxis the estimate of the
dependent variable, b1is the slope of the prediction equation (or "line of best
…t" or regression line), and b0is the y-intercept. For multiple regression the
model for kpredictors is written:
by=b0+b1bx+b2bx+ +bkbx,
where biis the slope for the ith predictor. In general, the coe¢ cient of
determine R2measures the amount of variance in yaccounted for by the model.
In linear regression, beginning statistics students analyze r, the simple corre-
lation between xand y. For linear regression, R2=r2, but we retain the
capitalization.
In social science research, an R2of 0:1or better often implies signi…cant
predictive utility for a single variable which means that r=p0:10:316 may
be reasonable. Most introductory statistics textbooks suggest r= 0:8or higher
is strong correlation and anything below r= 0:6or r= 0:5indicates "no real
relationship" between the variables. This is overly cautious and, indeed, farcical
in most real-world research. Obviously, higher values of R2are better, but in
1
pf3
pf4
pf5

Partial preview of the text

Download Regression - Lecture Notes - Probability and Statistics | MATH 3350 and more Exams Probability and Statistics in PDF only on Docsity!

Probability & Statistics I

Robb Sinn

Math 3350 / 6350 NGCSU, Fall 2006

Regression

Overview

Multiple regression is one of the most powerful tools in the statistics research tool kit. Based upon the simple linear regression where an independent variable x is used to "predict" a dependent variable y, the multiple regression predicts y with several independent variables. In large studies, over 100 independent variables (called predictors) are sometimes used. The regression analyis allows the researcher to compare and contrast the e§ects of multiple predictors, to determine their relative strength in predicting the y-variable, and to cast aside any that lack predictive power. The simple linear model is usually written as follows:

y b = b 0 + b 1 xb,

where by is the estimate of the dependent variable, bx is the estimate of the dependent variable, b 1 is the slope of the prediction equation (or "line of best Öt" or regression line), and b 0 is the y-intercept. For multiple regression the model for k predictors is written:

by = b 0 + b 1 bx + b 2 xb +    + bk xb,

where bi is the slope for the ith^ predictor. In general, the coe¢ cient of determine R^2 measures the amount of variance in y accounted for by the model. In linear regression, beginning statistics students analyze r, the simple corre- lation between x and y. For linear regression, R^2 = r^2 , but we retain the capitalization. In social science research, an R^2 of 0 : 1 or better often implies signiÖcant predictive utility for a single variable which means that r =

p 0 : 1  0 : 316 may be reasonable. Most introductory statistics textbooks suggest r = 0: 8 or higher is strong correlation and anything below r = 0: 6 or r = 0: 5 indicates "no real relationship" between the variables. This is overly cautious and, indeed, farcical in most real-world research. Obviously, higher values of R^2 are better, but in

research on human subjects, only rarely will a model predict more than 50% of the variance in the dependent variable.

Simple Linear Regression

For linear regression, we calculate correlation and the parameters for the line of best Öt as follows:

r = (^) n^11

X ^ x ix sx

yiy sy

b 1 = r s sxy

b 0 = y b 1 x

The correlation coe¢ cient r gives both a direction (positive or negative) and a strength of relationship measure. You should note that the summation is the product of z-scores. For any x variable xi, the standardized score is zxi = xisx x. The correlation is then a dot product of standardized scores for the xy-pairs:

r = (^) n^1 1

X

zxi zyi

This explains why correlations of zero indicate no relationship. A dot prod- uct of zero indicates two vectors are perpendicular. A strong correlation means that the two deviation vectors point in roughly the same the direction. Recall that an alternate version of the dot product formula for two vectors !u and !v usually introduced in multivariable calculus is:

!u  !v = k!u k k!v k cos 

where  is the angle between the vectors. This shows that when r  +1, the two deviation vectors point in nearly the same direction, and when r  1 , the two deviation vectors point in nearly opposite directions. If they are perpendicular, then the projection of one onto the other is non-existant. Looking at the formula for r in these terms, we have:

(n 1)r = !zx  !zy = k!zxk k!zy k cos 

Scatter Plot

Quiz Average

Midterm Grade

Q Avg Midterm zx zy zyzy 90 72 1.21 -0.60 -0. 68 71 -0.66 -0.70 0. 94 96 1.55 1.70 2. 72 77 -0.32 -0.12 0. 74 82 -0.15 0.36 -0. 83 72 0.62 -0.60 -0. 56 58 -1.68 -1.95 3. 68 83 -0.66 0.45 -0. 65 78 -0.91 -0.03 0. 75 80 -0.06 0.17 -0. 88 92 1.04 1.32 1. Avg 75.73 78. SD (^) 11.76 10.42 Sum: (^) 6.

Thus, our estimated prediction equation is y = 24:085 + 0: 7155 x. Our correlation is r = 0: 634 , so our coe¢ cient of determination is R^2 = (0:634)^2 = 0 : 402. The analysis of these parameters is as follows. The correlation of r = 0: 634 indicates a strong, positive relationship between the variables. The coe¢ - cient of determination R^2 = 0: 402 indicates that about 40% of the variance in midterm scores is accounted for by the variance in quiz average. Of course, this means that about 60% of the variance in midterms is accounted for by other things, a common refrain in regression studies. Despite the ob- vious correlation, there are simply dozens of relevant variables in play here, so accounting for 40% of the variance is considered a strong result. The slope analysis follows the basic algebra deÖnition of slope:  yx. Suppose we compared two students, and one had a 10% higher quiz average. Based on this model, we would suppose the midterm grade was about 7 :2% higher since y x =^

7 : 115 10 = 0:^7155.^ We state this as follows:^ for every^1 point increase in quiz average, midterm score increases by 0 : 72 points.

Bivariate Regression

Though of little research value, educators often use basic regressions like quadratic regression, exponential regression or cubic regression to Öt an equation to data. The TI graphing calculators perform all of these regressions quickly and report parameters similar to linear regression. A model equation is given that describes the "curve of best Öt," and r and R^2 are given. The interpretations are similar to our example for correlation and determination.

Example 2: Quadratic Regression in Mathematics Education Students in my "Technology in Mathematics Education" course (CSCI 2100) performed the "ball bounce" experiment using TI-84ís and the CBR (Calculator- Based Ranger). They dropped a basketball (provided by Jeanine Dorminey and the Lady Saints) over the rail of the second áoor walkway between Newton Oakes and Dunlap. The CBR transmitted position, velocity and acceleration data to the calculator using about 15 intervals per second. The Öve second experiment yielded very nice trajectory data. One of the "parabolas" was extricated from the other data, and a very precise estimate of the acceleration due to gravity (9.8 ms 2 ) was produced.

For a more complete treatment of the possibilities in mathematics classroom settings, see Dr. Judy OíNeal who has a complete set of TI resources for every calculator they make and every grade level you might teach. Resources are also available at http://education.ti.com.

Example 3: Exponential Regression in Precalculus Students in my "Precalc" course (Math 1113) performed the classic M&Mís experiment: given about 200 M&Mís, place them in a plastic cup and pour them onto the desk. Any M&Mís which land "M up" are placed back into the cup.

All the predictors are thrown into a prediction equation, and the one with the smallest simple correlation to the dependent variable is removed. At the next step, the next smallest partial correlation is removed. The process terminates when the change in R^2 becomes signiÖcant (and that variable is NOT removed). Often, both methods yield identical results. I used backward selection (combined with heierarchical regression) in my dissertation research. This method makes more sense to me. We are trying to identify a model, a group of predictors. In this setting, it seems more natural to start with the complete model and begin disregarding predictors that add little or nothing to the model. We can still use various methods to tease out the relative strengths of the predictors later. Others might argue for a di§erent approach. Admittedly, the best approach is to begin with predictors that prior research and theory suggest will ináuence the dependent variable. Often, prior research will indicate which variable (or block of variables) should be forced into the equation Örst. In a completely exploratory setting, my preference is for backward selection.