Linear Regression: Level:4 Department: IT, Security
Linear Regression: Level:4 Department: IT, Security
Linear Regression
Department : IT , Security
Level :4
T. Randa Alsorori
What is machine learning?
Model Representation
Cost function
Gradient Descent
Model Representation(cont…)
Model Representation(cont…)
Model Representation(cont…)
Model Representation(cont…)
Linear Equations
Types Regression Models
Cost Function
The cost function, let us figure out how to fit the best possible
straight line to our data.
Scatter Plot
The solution:
1. Analytical solution: not applicable for large
datasets
2. Numerical solution: ex:Gradient descent.
Cost Function (Recap)
Gradient Descent
Outline:
• Start with some 𝜃0 ,𝜃1
• Keep changing 𝜃0 ,𝜃1 to reduce 𝑗(𝜃0 ,𝜃1 ) until we hopefully
end up at a minimum
Uni-Variant
Multi-Variable
Gradient Descent
To choose 𝜶, try