- We will be going over Simple Linear Regression
- It is a technique used to model between two variables
- We will use mtcars dataset and visualizations to understand how it works
\[ y = \beta_0 + \beta_1x + \epsilon \]
Where:
\[ \hat{\beta}_1 = \frac{\sum (x_i - \bar{x})(y_i - \bar{y})}{\sum (x_i - \bar{x})^2}, \quad \hat{\beta}_0 = \bar{y} - \hat{\beta}_1 \bar{x} \]
fig = plot_ly(data = mtcars, x =~ wt, y =~ mpg, z =~ hp,
type = 'scatter3d', mode = 'markers',
marker = list(size = 5, color =~ hp,
colorscale = 'Viridis'))
fig