Skip to content

KyriakosPsa/Regression-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Generalized-Linear-Models-numpy-only

This repository contains an optimization generalized linear regression(GLM) problem solved from scratch using only the Numpy library. Throughout the development of this work, matrix operations with Numpy have been utilized whenever possible to ensure optimal performance. The code also includes certain classes and global functions that have been created from scratch to facilitate the implementation of the methodologies. Explanations of how these functions and classes work are explicitly mentioned and are provided when they are invoked in the code. Furthermore, additional comments on methodology and mathematical proofs are included in certain places, where they deemed necessary, to provide a deeper understanding of the solutions.

The solutions involve implementing with Numpy and analyzing the prediction bias-variance of the following methods:

  • The Least Squares method
  • The Ridge Regression method
  • Full Bayesian Inference
  • The Expectation-Maximization method

Additionally, the notebook will investigate the effects of utilizing:

  • Different noise samples
  • Different polynomial model complexities
  • Prior parameter knowledge

The goal of this project is to compare and contrast the different models & methods mentioned and discuss the importance of balance between bias and variance concerning model predictions.

About

This repository contains a generalized regression analysis problem solved from scratch, using only the Numpy library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published