Multiple relationships!
Using the LINEST()
function, you explored how one variable related to another. This is a univariate linear regression with a y-intercept and one coefficient.
The single coefficient along with the y-intercept demonstrates how the dependent-y variable changes with one unit measure change in the single independent-x variable.
Since you are concerned with many dimensions of a profile and the users' overall site activity, you need multiple linear regression, in which there are many X variable coefficients impacting Y.
This equation calculates the estimated outcome of your multiple linear regression, where you're interested in how the hours since last login is affected by age, income, and hours volunteered.
Hours since last login = (age_coeff * age) + (income_coeff * income) + (volunteer_coeff * volunteerHrs) + y-intercept
Your job is to calculate the coefficients for age, income, and hours volunteered, and then use the above formula to calculate the estimate. Go for it!
This exercise is part of the course
Introduction to Statistics in Google Sheets
Exercise instructions
- In
G2
, calculate the coefficients usingLINEST()
. First pass in the Y variables rangeB2:B201
, and then include the X-variable arrayC2:E201
. - Following the multiple linear regression equation, calculate the first observation's estimate in cell
K2
. Compare it with the actual value inB2
.
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
