Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Statistical Machine Learning (SML) Assignments Repository

This repository contains solutions and reports for the Statistical Machine Learning (SML) assignments completed as part of the course.


Assignment Overview

Assignment 1 - Generative Classification using LDA & QDA

Topics Covered

  • Maximum Likelihood Estimation (MLE)
  • Linear Discriminant Analysis (LDA)
  • Quadratic Discriminant Analysis (QDA)
  • Covariance estimation
  • t-SNE visualization
  • Gaussian discriminant classifiers

Key Highlights

  • Implemented LDA and QDA from scratch
  • Compared classification performance
  • Visualized class separability using t-SNE
  • Analysed covariance structures of MNIST digits

Report

Go to Assignment 1 Report


Assignment 2 - PCA & FDA for Dimensionality Reduction

Topics Covered

  • Principal Component Analysis (PCA)
  • Fisher Discriminant Analysis (FDA)
  • Eigenvalue decomposition
  • Projection & reconstruction
  • Variance preservation
  • Classification in transformed feature spaces

Key Highlights

  • Implemented PCA from scratch
  • Implemented FDA using generalized eigenvalue problems
  • Compared FDA and PCA based classification accuracy
  • Visualized transformed feature spaces
  • Analysed reconstruction error

Report

Go to Assignment 2 Report


Assignment 3 - Regression, Trees & Ensemble Methods

Question 1

Topics Covered

  • Ridge Regression
  • Lasso Regression
  • Regularization paths
  • PCA with regression
  • MSE analysis

Key Highlights

  • Implemented Ridge Regression using closed form solution
  • Used Lasso Regression for sparse feature selection
  • Analysed impact of lambda on MSE
  • Compared train and test performance

Question 2

Topics Covered

  • Decision Trees
  • Gini Index
  • Bagging
  • Random Forests
  • Bootstrap sampling
  • Out-of-bag (OOB) error

Key Highlights

  • Built decision trees from scratch
  • Implemented bagging and random forests
  • Compared single tree vs ensemble performance
  • Analysed variance reduction using decorrelation

Question 3

Topics Covered

  • Regression Trees
  • Decision Stumps
  • Bagging for regression
  • Sum of Squared Residuals (SSR)

Key Highlights

  • Implemented regression stumps
  • Compared single stump vs bagging models
  • Analysed underfitting and variance reduction
  • Visualized regression predictions

Report

Go to Assignment 3 Report


Assignment 4 - Boosting & Perceptrons

Question 1

Topics Covered

  • AdaBoost
  • Decision Stumps
  • Weighted classification
  • Ensemble learning

Key Highlights

  • Implemented AdaBoost from scratch
  • Used weighted error minimization
  • Trained ensembles of decision stumps
  • Analysed validation accuracy trends

Question 2

Topics Covered

  • Gradient Boosting
  • Absolute loss minimization
  • Pseudo residuals
  • Learning rate analysis

Key Highlights

  • Implemented gradient boosting using decision stumps
  • Compared different learning rates
  • Analysed underfitting and overfitting behavior
  • Studied convergence trends

Question 3

Topics Covered

  • Perceptron Learning Algorithm
  • Linear separability
  • Stochastic Gradient Descent (SGD)
  • Binary classification

Key Highlights

  • Implemented perceptron learning from scratch
  • Studied convergence behavior on synthetic datasets
  • Analysed effect of covariance on convergence
  • Compared dataset separability

Report

Go to Assignment 4 Report


Technologies Used

  • Python
  • NumPy
  • Matplotlib
  • scikit-learn
  • PCA / FDA implementations from scratch
  • Ensemble learning techniques
  • Statistical classification models

Notes

  • Most algorithms were implemented from scratch for conceptual understanding.
  • PCA preprocessing was reused across multiple assignments.
  • Extensive plots and analysis are included in the assignment reports.
  • All code is documented with comments and explanation of methodology.

Releases

Packages

Contributors

Languages