Skip to content

Commit 2fdf0c5

Browse files
dollar sign fixes reg2
1 parent 6d1fa9b commit 2fdf0c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/regression2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ glue("sacr_RMSPE", "{0:,.0f}".format(RMSPE))
459459
```
460460

461461
Our final model's test error as assessed by RMSPE
462-
is {glue:text}`sacr_RMSPE`.
462+
is \${glue:text}`sacr_RMSPE`.
463463
Remember that this is in units of the response variable, and here that
464464
is US Dollars (USD). Does this mean our model is "good" at predicting house
465465
sale price based off of the predictor of home size? Again, answering this is
@@ -752,7 +752,7 @@ glue("sacr_mult_RMSPE", "{0:,.0f}".format(lm_mult_test_RMSPE))
752752
```
753753

754754
Our model's test error as assessed by RMSPE
755-
is {glue:text}`sacr_mult_RMSPE`.
755+
is \${glue:text}`sacr_mult_RMSPE`.
756756
In the case of two predictors, we can plot the predictions made by our linear regression creates a *plane* of best fit, as
757757
shown in {numref}`fig:08-3DlinReg`.
758758

@@ -889,12 +889,12 @@ lm_mult_test_RMSPE
889889
```
890890

891891
We obtain an RMSPE for the multivariable linear regression model
892-
of {glue:text}`sacr_mult_RMSPE`. This prediction error
892+
of \${glue:text}`sacr_mult_RMSPE`. This prediction error
893893
is less than the prediction error for the multivariable KNN regression model,
894894
indicating that we should likely choose linear regression for predictions of
895895
house sale price on this data set. Revisiting the simple linear regression model
896896
with only a single predictor from earlier in this chapter, we see that the RMSPE for that model was
897-
{glue:text}`sacr_RMSPE`,
897+
\${glue:text}`sacr_RMSPE`,
898898
which is slightly higher than that of our more complex model. Our model with two predictors
899899
provided a slightly better fit on test data than our model with just one.
900900
As mentioned earlier, this is not always the case: sometimes including more

0 commit comments

Comments
 (0)