Linear Regression and Logistic Regression
Linear Regression and Logistic Regression
Presented By:
Prof Mahaveer Jain
MCU, Indore MP
Agenda
2
AI vs ML vs DL
Linear Regression
Logistics Regression
Introduction to AI
3
Introduction to Machine Learning
4
Introduction to Deep Learning
5
AI vs ML vs DL
6
10
Y = a1 + a2 X1 + a3 X2 +
………. + an Xn
Fitting the Best Fit
12
The different values for weights or the coefficient of lines (a 0, a1) gives
a different line of regression, so we need to calculate the best values for
a0 and a1 to find the best fit line, so to calculate this we use cost
function.
Fitting the Best Fit - MSE
13
For Linear Regression, we use the Mean Squared Error (MSE) cost
function, which is the average of squared error occurred between the
predicted values and actual values. It can be written as:
Linear Regression
Ex-1 Linear Regression using MS Excel
Ex-2
https://colab.research.google.com/drive/10T_D3BYDsXeK4MvWQ-R
D2gcCwXNDNEsZ
Ex-3
https://colab.research.google.com/drive/1zKT6FZKg-gO_OGDD_ypg
DQQZEs1p0r5A
Example : Logistic Regression
19
Ex-1
https://colab.research.google.com/drive/1Z7KvmF2xTn2XfzV_4vhp1P
JkxWfN2UDi