Lecture notes on Multiple Linear Regression, Exams of Voice

Lecture notes on Multiple Linear Regression. J. Ganger 2019 / SRCD. Section 1: Simple Linear Regression: One independent variable (X) and one dependent ...

Typology: Exams

2021/2022

Uploaded on 08/05/2022

char_s67
char_s67 🇱🇺

4.5

(116)

1.9K documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
J. Ganger / University of Pittsburgh
1
Lecture notes on Multiple Linear Regression
J. Ganger 2019 / SRCD
Section 1: Simple Linear Regression: One independent variable (X) and one dependent variable (Y)
The goal of linear regression is to specify the linear relationship between two variables, X and Y. Let’s
think about this visually with the scatter plot below, which plots two variables from a language study. It
shows GRAMMAR (a measure of passive voice comprehension) against TAPPING (imitating sequences on
a xylophone). We might want to know if a spatial memory measure (tapping) is predicts grammar score.
Is there a linear relationship between these two variables? Try drawing it.
Y = Grammar (percent correct passive voice comprehension); X = Tapping (imitating sequences on small
xylophone)
pf3
pf4
pf5

Partial preview of the text

Download Lecture notes on Multiple Linear Regression and more Exams Voice in PDF only on Docsity!

Lecture notes on Multiple Linear Regression

J. Ganger 2019 / SRCD

Section 1: Simple Linear Regression: One independent variable (X) and one dependent variable (Y)

The goal of linear regression is to specify the linear relationship between two variables, X and Y. Let’s think about this visually with the scatter plot below, which plots two variables from a language study. It shows GRAMMAR (a measure of passive voice comprehension) against TAPPING (imitating sequences on a xylophone). We might want to know if a spatial memory measure (tapping) is predicts grammar score. Is there a linear relationship between these two variables? Try drawing it.

Y = Grammar (percent correct passive voice comprehension); X = Tapping (imitating sequences on small xylophone)

On the plot below is a line based loosely on the line specified a little later in this handout by SPSS (I drew by hand). We can use the formula below to describe the line. B 0 is the y-intercept (the value of y when x = 0). B 1 is the slope of the line.

Y = B 0 + B 1 X 1 + e^1

The goal is to find values of B 0 (the y-intercept) and B 1 (the slope of the line) that fit the actual points as closely as possible. This is known as “Regressing Y on X.”

What does “as closely as possible” mean? There are different methods, but the most common is Ordinary Least Squares, which minimizes the sum of the squares of the differences between the predicted values and the observed values. The predicted values are the values of Y along the line for any given value of X. The observed values are the actual values of Y at that same X.

The regression algorithm finds the values of B 0 and B 1 that yield the smallest sum of those squared deviations.

(^1) e is error. I will leave it out from now on but you should insert it mentally in every linear equation.

Some Terminology

Regressor : another term for an independent variable

in regression.

Regressing y on x : Using x to predict values of Y. In

other words, x is the independent variable and Y the

dependent variable.

R^2

R^2 is an estimate of the amount variance in Y that the Xs have accounted for, or the opposite of how large the residuals--the (Y i - Ŷ)s--are. There are several ways to define / estimate it.

R^2 is the correlation between Yi s and Ŷ s. The higher R^2 is, the smaller the residuals, or the closer the fit of the line to the actual data points.

R^2 is also the proportion of the SS of regression over the total SS: ∑(𝑌̂ − 𝑌̅)^2 / ∑(𝑌𝑖 − 𝑌̅)^2

R^2 is also the sum of the products of the correlations (between each IV and the DV) and the beta coefficients of each IV, or: ∑ 𝑟𝑖𝛽𝑖

Finally, 𝐴𝑑𝑗𝑢𝑠𝑡𝑒𝑑 𝑅^2 = 1 − (1 − 𝑅^2 )( (^) 𝑁−𝑘−1𝑁−1) where k = number of regressors

t

Each B can also be tested for significance. No matter what the actual value of B, we can still ask whether it makes a statistically significant contribution. That is, we test the null hypothesis that each independent variable is unrelated to the dependent variable and we do this by asking whether the size of its B is significantly different from zero. Another way of saying this is, did we do a better job of fitting the line with that regressor (X) than we did without it? If the t is significant, then the regressor (X) contributes significantly to the fit and we can reject the null hypothesis that it is unrelated.

Section 2: Multiple Linear Regression with Two or More Independent Variables

We can extend this process to any number of Xs. We will use two Xs as an example:

Y = β 0 + β 1 X 1 + β 2 X 2

This time, we need to fit all the βs at once^2. The kicker is that each one takes the others into account.

We will explore this by running each variable separately in a single-regressor equation like we did in the first section, then running a regression with both to see how the coefficients change. We will compare the following three models:

Model 1: Y = β 0 + β 1 X 1 Model 2: Y = β 0 + β 2 X 2 Model 3: Y = β 0 + β 1 X 1 + β 2 X 2 (where Y = GRAMMAR; X 1 = TAPPING; X 2 = VERBALMEM)

(^2) (X’X)B = X’Y  B = (X’X)-1 (^) X’Y

β 1 (TAPPING) β 2 (VERBALMEM) R^2 Model 1 .146 ( t = 1.98, p = .0 49 ). Model 2 .365***( t = 5.25, p < .001). Model 3 .036 (ns). 354 ***( t = 4. 824 , p < .001). 135

Why did they change?

Explanation 1: Holding other variables constant.

One way to think about multiple regression (i.e., having more than one independent variable in the regression) is that each βj tells you the change in Y for a unit change in Xj while holding the other regressors constant. For Model 3 in our example, that means for a fixed value of TAPPING (say, TAPPING score = 4.1, the mean), a change of one standard deviation in VERBALMEM is expected to result in. standard deviations change GRAMMAR score. In other words, taking out the effect of TAPPING, .354 is the (independent) contribution of VERBAL MEMORY.

We can make the corresponding statement about the other variable, X 1 , in our example (TAPPING): In Model 3, if VERBAL MEMORY is held constant, then one standard deviation change in TAPPING predicts .036 units change in GRAMMAR (not significant).

How can it be that an independent variable that has a significant first order correlation and a significant β on its own (β 1 = .146 in Model 1) is now reduced to the point where it does not make a significant contribution? This is in fact the WHOLE POINT of multiple regression. We want to know if TAPPING made a significant contribution to GRAMMAR independent of other factors, such as VERBAL MEMORY. We would conclude at this point that it does not.