Text

Task: Insurance Prediction

 

Input: Sale of a vehicle

 

Output: Insurance Amount

 

Data: (Xi, Yi) i=1, 2, ..., N where Xi=Sales, Yi=Amount

 

Model/Algo: Linear Regression

 

Parameters:

 

Objective Function:

(1, 1)

(2, 3)

(5, ?)

x

y

Training:

(x, y)

 

Learning Algo:

(m, c)

 

Testing:

(x, m, c)

y = m x + c

 

ax + by + c = 0

 

by = - (ax +c)

 

y = -(ax + c) / b

 

y = (-a/b) x + (-c/b)

 

c

2D: Line

y = m x + c

 

ax + by + c = 0

 

by = - (ax +c)

 

y = -(ax + c) / b

 

y = (-a/b) x + (-c/b)

 

w1x1 + w2x2 + w0 = 0

 

3D: Plane

w1x1 + w2x2 + w3x3 + w0 = 0

 

4D: Hyperplane

w1x1 + w2x2 + w3x3 + w4x4 + w0 = 0

5D: Hyperplane

w1x1 + w2x2 + w3x3 + w4x4 +w5x5+ w0 = 0

nD: Hyperplane

w1x1 + w2x2 + w3x3 + ... + wnxn+ w0 = 0

nD: Hyperplane

w1x1 + w2x2 + w3x3 + ... + wnxn+ w0 = 0

nD: Hyperplane

W = [w1, w2, w3, ..., wn]

X =[x1, x2, x3, ..., xn]

 

W.X = w1x1 + w2x3 + w3x3 + ... + wnxn

 

W. X + w0 = 0

Made with Slides.com