From 31b8ccf43090a289cf8a390b816f1a7edbbf678a Mon Sep 17 00:00:00 2001 From: Seamus McKinsey Date: Wed, 20 Jun 2018 04:02:17 -0400 Subject: [PATCH] fix two typos (#596) --- model-building.Rmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-building.Rmd b/model-building.Rmd index f61448e..87fdac3 100644 --- a/model-building.Rmd +++ b/model-building.Rmd @@ -111,7 +111,7 @@ ggplot(diamonds2, aes(color, lresid)) + geom_boxplot() ggplot(diamonds2, aes(clarity, lresid)) + geom_boxplot() ``` -Now we see the relationship we expect: as the quality of the diamond increases, so to does it's relative price. To interpret the `y` axis, we need to think about what the residuals are telling us, and what scale they are on. A residual of -1 indicates that `lprice` was 1 unit lower than a prediction based solely on its weight. $2^{-1}$ is 1/2, points with a value of -1 are half the expected price, and residuals with value 1 are twice the predicted price. +Now we see the relationship we expect: as the quality of the diamond increases, so too does its relative price. To interpret the `y` axis, we need to think about what the residuals are telling us, and what scale they are on. A residual of -1 indicates that `lprice` was 1 unit lower than a prediction based solely on its weight. $2^{-1}$ is 1/2, points with a value of -1 are half the expected price, and residuals with value 1 are twice the predicted price. ### A more complicated model