Skip to content

Commit f041787

Browse files
committed
changing different to nonsensical, adding comma
1 parent e9a7c2b commit f041787

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

regression2.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ $\beta_1$ as the increase in price for each square foot of space.
129129
Let's push this thought even further: what would happen in the equation for the line if you
130130
tried to evaluate the price of a house with size 6 *million* square feet?
131131
Or what about *negative* 2,000 square feet? As it turns out, nothing in the formula breaks; linear
132-
regression will happily make predictions for different predictor values if you ask it to. But even though
132+
regression will happily make predictions for nonsensical predictor values if you ask it to. But even though
133133
you *can* make these wild predictions, you shouldn't. You should only make predictions roughly within
134134
the range of your original data, and perhaps a bit beyond it only if it makes sense. For example,
135135
the data in Figure \@ref(fig:08-lin-reg1) only reaches around 800 square feet on the low end, but
@@ -553,8 +553,8 @@ $$\text{house sale price} = \beta_0 + \beta_1\cdot(\text{house size}) + \beta_2\
553553
where:
554554

555555
- $\beta_0$ is the *vertical intercept* of the hyperplane (the price when both house size and number of bedrooms are 0)
556-
- $\beta_1$ is the *slope* for the first predictor (how quickly the price changes as you increase house size holding number of bedrooms constant)
557-
- $\beta_2$ is the *slope* for the second predictor (how quickly the price changes as you increase the number of bedrooms holding house size constant)
556+
- $\beta_1$ is the *slope* for the first predictor (how quickly the price changes as you increase house size, holding number of bedrooms constant)
557+
- $\beta_2$ is the *slope* for the second predictor (how quickly the price changes as you increase the number of bedrooms, holding house size constant)
558558

559559
Finally, we can fill in the values for $\beta_0$, $\beta_1$ and $\beta_2$ from the model output above
560560
to create the equation of the plane of best fit to the data:

0 commit comments

Comments
 (0)