LINEAR REGRESSION
Atul Nag
Associate Professor
LINEAR REGRESSION WITH ONE VARIABLE
Linear Regression with one variable
DATA TABLE
Terminology
Quiz
y is the true value for that training example, referred to as the output variable, or “target”.
COST FUNCTION
Quiz
w and b are parameters of the model, adjusted as the model learns from the data. They’re also referred to as “coefficients” or “weights”
Quiz
When the cost is relatively small, closer to zero, it means the model fits the data better compared to other choices for w and b.
VISUALIZATION OF COST FUNCTION
Quiz
Quiz
When the cost is small, this means that the model fits the training set well.
GRADIENT DESCENT
Quiz
Quiz
LEARNING RATE
GRADIENT DESCENT WITH LINEAR REGRESSION
Quiz
The learning rate is always a positive number, so if you take W minus a negative number, you end up with a new value for W that is larger (more positive).
Quiz