parent
e8b4980a58
commit
5ecefc3f2f
|
@ -116,7 +116,7 @@ ggplot(diamonds2, aes(color, lresid)) + geom_boxplot()
|
||||||
ggplot(diamonds2, aes(clarity, 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 pirce. 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 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.
|
||||||
|
|
||||||
### A model complicated model
|
### A model complicated model
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue