Skip to content

Latest commit

 

History

History

Bayesian Linear Regression

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Purpose

The notebook "Bayesian Linear Regression.ipynb" outlines the differences between the frequentist and bayesian approaches to linear regression. It shows how the bayesian approach to linear regression is analagous to regularization. Both the frequentist and bayesian linear regression approach is applied to the IMDB data set and it shown that bayesian approach seems to be fit the data more smoothly relative to the frequentist approach.

Data

I use the IMDB movie data set from kaggle and examine the relationship between IMDB rating and gross sales revenue using a frequentist multiple linear regression (degree 5), and bayesian multiple regression (degree 5). For analysis purposes I clean the data set to only contain IMDB movie rating and gross sales revenue for US movies.

Dependencies

  • numpy
  • Pandas
  • Matplotlib

All dependencies can be installed using pip

References

Siraj's video on hyperparameters

Video introducing bayesian linear regression

Frequentist vs Bayes Regression stackexchange discussion