Skip to content

About

Hands-on linear regression guide that builds from OLS and MLE foundations to diagnostics, Gauss-Markov assumptions, regularization, and Bayesian regression, with visuals and examples.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

Repository files navigation

Linear_regression.ipynb is a from-scratch, concept-first walkthrough of linear regression.

It starts with univariate OLS and maximum likelihood estimation, then expands into multivariate regression, residual diagnostics, leverage and Cook’s distance, adjusted R², multicollinearity, omitted variable bias, and the full Gauss-Markov framework. It also covers practical fixes for real-world violations like heteroscedasticity and autocorrelation, before moving into Ridge, Lasso, Elastic Net, and Bayesian linear regression.

The notebook is especially strong as a learning resource because it combines derivations, intuition, and visual demos in one place. Examples are grounded in finance-style use cases such as CAPM and factor modeling, and the implementation uses numpy, statsmodels, scikit-learn, and plotly.

About

Hands-on linear regression guide that builds from OLS and MLE foundations to diagnostics, Gauss-Markov assumptions, regularization, and Bayesian regression, with visuals and examples.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Contributors

Languages