What Is Simple Linear Regression?

Simple linear regression models the relationship between a predictor \(X\) and a response \(Y\).

The Model (Math)

\[ Y = \beta_0 + \beta_1 X + \varepsilon \]

Example Data

## `geom_smooth()` using formula = 'y ~ x'

## 
## Attaching package: 'plotly'
## 
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## 
## The following object is masked from 'package:stats':
## 
##     filter
## 
## The following object is masked from 'package:graphics':
## 
##     layout