Day 4 - Supervised Learning - Linear Regression

Posted on June 1, 2017 by Govind Gopakumar

Lecture slides in pdf form

Prelude

Announcements

Recap

Simple models for Classification

Visualizing the boundaries

Ensemble methods : Random Forests - I

Why did we need them?

Brief idea

Ensemble methods : Random Forests - II

Model overview

Benefits?

How to come up with a loss function

Toy setting : Find closest point

Casting as an optimization

What is the end goal?

Supervised learning

What’s an easy method to model a trend?

Naive method of doing regression?

What other methods exist?

Our first regressor

Regression as line fitting

Given Input

What is the objective now?

How do we adapt our existing model?

KNN for regression!

Decision Tree for regression?

Regression as line fitting

Model overview

Geometry of the problem

Linear Regression : via Optimization - I

Very toy example

How do we solve the optimization problem?

Linear Regression : via Optimization - II

It is possible to solve this analytically!

With the intercept term?

Linear Regression : via Optimization - III

Modelling assumption

Can we set up a loss function now?

Linear Regression : via Optimization - IV

Final form of the loss function:

How do we optimize this?

Linear Regression : via Optimization - V

Multidimensional setting

How do we solve this?

Linear Regression : via Optimization - VI

Mathematical issues?

Implementation issues?

Linear Regression : via Optimization - VII

Regularizer : Why?

How do we impose it?

Linear Regression : via Probability - I

Coming up with a MLE model?

Model choices?

Linear Regression : via Probability - II

Review of Gaussian distribution

Why is this necessary?

Linear Regression : via Probability - III

Model overview

Writing the likelihood

Linear Regression : via Probability - IV

Optimizing the likelihood

Doing MLE

A more complicated regression problem

Matrix Factorization - I

Problem setting

Model overview

Matrix Factorization - II

Model interpretation

Model formation

Matrix Factorization - III

How do we now solve this?

Reducing this to a known problem

Matrix Factorization - IV

Taking a look at individual movies

Does this relate to a known problem?

Matrix Factorization - V

Things to consider

Extensions

Conclusion

Concluding Remarks

Takeaways

Announcements

References