Linear Regression in ML
Review of Linear Model:
are matrices or vectors. - A row or column of a matrix will use a subscript:
is a scalar, the ith row and jth column of . is a vector, the ith row of is a vector, the jth column of
- Parameters will typically be Greek symbols:
- Estimates will be Greek symbols wearing a hat:
is the probability that given , where: - X, Y are random variables
represents either a loss function, or the likelihood function represent the log-likelihood function
X(n by p+1), features with columns of list Y(n by 1), target variable B(p+1 by 1) coefficient, parameters Y = XB + E
Training linear model means finding optimal coefficients :
Finding optimal
which is equivalent to:
Finding
by taking the derivative of our loss function and setting it equal to zero