# It tells how points are far from the line, and shows that it's okay, but if we have a big value in between, then it could be that there is no correlation, or there is a problem
acf(residuals(simple_reg))
```
```{r}
plot(simple_reg,2)
```
```{r}
# graph1: plot the line in a horizontal direction
# graph 2: variability on errors, the more the height is big, the more the error is probable because in the dataset points go below the line for larger values
# graph 3: x is fitted values if the model was perfect,
plot(simple_reg$residuals)
plot(simple_reg,3)
plot(simple_reg,1)
```
```{r}
# Graph to detect all outliers, obs 74, 33, and 102 are indexes of the outliers
plot(simple_reg,4)
```
```{r}
# fit is the predcition, lwr,upr bounds of the confidence interval