Professional Documents
Culture Documents
04 Regression
04 Regression
04 Regression
Regression
Linear Regression
• A house with area , have bed rooms, and stay away from the city
center km have price?
Real outcome (groundtruth) Prediction
Where
• : constant, : bias
• The relationship is a linear relationship
• This problem is a regression problem when we want to find the
optimized parameters LINEAR REGRESSION
Linear Regression
• Loss function
(1)
Linear Regression
• If is invertible (non singular), then (1) has only one solution
Line of regression
Datapoints
Simple Linear Regression
• We have a table of height and weight of 15 persons as below
Height (cm) Weight (kg) Height (cm) Weight (kg)
with
Logistic Regression
• is the probability that , given :
• We have:
So, in general:
if
if
Logistic Regression
• Log likelihood function:
• We have:
• , where