In: Statistics and Probability
Use Excel to estimate a simple linear regression model for the following data (Y is a dependent variable and X is an independent variable):
Y | X |
0 | -2 |
0 | -1 |
1 | 0 |
1 | 1 |
3 | 2 |
Fill in Multiple Blanks:
What is the slope of the estimated line? In your answer, show one (1) digit to the right of the decimal point, for example, 1.0, 1.2. Apply the appropriate rounding rule if necessary.
What is the Y-intercept?
Answers:
Slope = 0.7
Intercept = 1 or (1.0) Enter as appropriate
Excel Output:
Excel Steps:
1. Go to Data - Data Analysis - Regression
2. Enter the range of Y values.
3. Enter the range of X values.
4. Select where you want your output. Choose Current Sheet. Enter Cell Value where you want the output to start.
5. Click Ok.
6. The slope and Y-intercept are given in the coefficients tab as highlighted in Yellow.