modeling, SLR Flashcards
regression line formula
y hat = a hat + b hat * x
What is MSE and how is it used?
MSE = mean squared
MSE(a, b) = 1/n E(sub i)(yi - yi hat(a, b))^2
slope and intercept formula from data 8?
slope = r * (SD of y/ SD of x)
intercept = avg of y - avg of x * slope
SLR Model
y hat = a + bx
What is a loss function?
A loss function characterizes the cost, error, or fit
resulting from a particular choice of model or model parameters
Squared Loss (L2)
L(y, yhat) = (y-yhat)^2
Absolute Loss(L1)
L(y, yhat) = | y - yhat |
What is empirical risk / average loss?
We care about how bad our model’s predictions are for our entire data set, not just for one point. A natural measure, then, is of the average loss (aka empirical risk) across all points.
How do we minimize the MSE?
MSE(a, b) = 1/nE(sub i)(yi - a - bxi)2
**To find the best values, we take derivatives with respect to the choice variables (a, b)