Table of Contents |
Multiple regression is going to allow you to predict a response based on more than one explanatory variable, although they have to be independent.
EXAMPLE
In many school districts, teacher salaries are dependent on two variables: years of experience and number of postgraduate hours accumulated.Teacher | Salary | Years | Hours |
---|---|---|---|
Backman | 38,000 | 4 | 14 |
Jones | 42,000 | 3 | 45 |
Nordstrom | 59,000 | 10 | 55 |
Osters | 44,000 | 6 | 28 |
Williams | 48,000 | 5 | 39 |
Model A | ||
---|---|---|
Variables | Regression Line | Coefficient of Determination (r2) |
Explanatory: Years Response: Salary |
A starting salary for someone with no years of experience is $31,164. For every additional year that a person works, they are predicted to make an additional $2,685 on average. |
If you look at the r-squared for this, it's fairly high at 0.83. It's clear there's something of an association here between salary and years. |
Model B | ||
---|---|---|
Variables | Regression Line | Coefficient of Determination (r2) |
Explanatory: Hours Response: Salary |
A starting salary for someone with no postgrad hours is $31,384. For each additional postgrad hour, they are predicted to make an additional $409 on average. |
The r-squared here isn't as high, so there's a little bit less of an association between postgraduate hours and salary than the one with years. |
Model C | ||
---|---|---|
Variables | Regression Line | Coefficient of Determination (r2) |
Explanatory: Years and Hours Response: Salary |
A starting salary for someone with no years of experience and no postgrad hours is $26,807. For every additional year that a person works, they are predicted to make an additional $1,970 on average. For each additional postgrad hour, they are predicted to make an additional $23 on average. |
The r-squared value is higher than either of the two individual linear regressions. |
Teacher | Salary | Years | Hrs | Model A | Model B | Model C |
---|---|---|---|---|---|---|
Backman | 38,000 | 4 | 14 | -3,904 | 890 | 80 |
Jones | 42,000 | 3 | 45 | 2,781 | -7,789 | -1,112 |
Nordstrom | 59,000 | 10 | 55 | 986 | 5,121 | -210 |
Osters | 44,000 | 6 | 28 | -3,274 | 1,164 | -1,094 |
Williams | 48,000 | 5 | 39 | 3,411 | 665 | 2,335 |
Source: THIS TUTORIAL WAS AUTHORED BY JONATHAN OSTERS FOR SOPHIA LEARNING. PLEASE SEE OUR TERMS OF USE.