Note the lack of output from the above code – we have saved the output to the object m1.
m1 |>coefficients()
(Intercept) practice_hours
57.253240 3.108387
\hat{\text{exam}} = 57.25 + 3.11 \text{ practice}
Interpreting Coefficients
Interpretation of the slope, \hat{\beta}
For a [k] [units of x] increase in [x], we expect [y] to [increase or decrease] by [k \times |\hat{\beta}_1|] [units of y].
Interpretation of the y-intercept, \hat{\beta}_0
When [x] is 0, we expect the mean of [y] to be [\hat{\beta}_0].
Caveat:
It does not always make sense for x=0. In this situation, we do not interpret the y-intercept.
Some applications (e.g., psychology) will center the x variable around its mean. Then, when x=0, we are interpreting in terms of the “average value of x.”
Example 1
Recall our estimates,
m1 |>coefficients()
(Intercept) practice_hours
57.253240 3.108387
For a [k] [units of x] increase in [x], we expect [y] to [increase or decrease] by [k \times |\hat{\beta}_1|] [units of y].
For a 1 hour increase in practice time, we expect the exam score to increase by 3.11 points.
For a 3 hour increase in practice time, we expect the exam score to increase by 9.33
Example 1
Recall our estimates,
m1 |>coefficients()
(Intercept) practice_hours
57.253240 3.108387
When [x] is 0, we expect the mean of [y] to be [\hat{\beta}_0].
When there is no practice, we expect the average exam score to be 57.25.
Example 3
A bakery owner in Savanna Central wants your help: “Some days, pastries practically fly off the shelves. Other days, we have trays left over. What actually helps explain our sales?”
We have data from 40 days to answer the following question:
How are advertising spending (x_1), foot traffic (x_2), temperature (x_3), and discounts (x_4) related to daily bakery sales (y)?
advertising_dollars
foot_traffic
temperature_c
discount_percent
sales_dollars
12.72
136
21.7
6.5
553.84
70.45
145
28.1
13.9
838.67
82.13
144
18.8
13.7
842.29
Example 3
How are advertising spending (x_1), foot traffic (x_2), temperature (x_3), and discounts (x_4) related to daily bakery sales (y)?