You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
aes(x = twothou, xend = sqft, y = price, yend = price), color = "orange"
253
+
aes(x = twothou, xend = sqft, y = price, yend = price), color = "black"
254
+
) +
255
+
geom_point(
256
+
data = nearest_neighbors,
257
+
aes(x = sqft, y = price), color = "darkorange"
254
258
)
255
259
256
260
nn_plot
@@ -347,13 +351,13 @@ different from the true values, then RMSPE will be quite large. When we
347
351
use cross-validation, we will choose the $K$ that gives
348
352
us the smallest RMSPE.
349
353
350
-
```{r 07-verticalerrors, echo = FALSE, message = FALSE, warning = FALSE, fig.cap = "Scatter plot of price (USD) versus house size (square feet) with example predictions (blue line) and the error in those predictions compared with true response values for three selected observations (vertical red lines).", fig.height = 3.5, fig.width = 4.5}
354
+
```{r 07-verticalerrors, echo = FALSE, message = FALSE, warning = FALSE, fig.cap = "Scatter plot of price (USD) versus house size (square feet) with example predictions (blue line) and the error in those predictions compared with true response values (vertical lines).", fig.height = 3.5, fig.width = 4.5}
@@ -179,15 +178,15 @@ Some plausible examples are shown in Figure \@ref(fig:08-several-lines).
179
178
180
179
```{r 08-several-lines, echo = FALSE, message = FALSE, warning = FALSE, fig.height = 3.5, fig.width = 4.5, fig.cap = "Scatter plot of sale price versus size with many possible lines that could be drawn through the data points."}
181
180
small_plot +
182
-
geom_abline(intercept = -64542.23, slope = 190, color = "green") +
183
-
geom_abline(intercept = -6900, slope = 175, color = "purple") +
184
-
geom_abline(intercept = -64542.23, slope = 160, color = "red")
0 commit comments