NotesB.Sc IT (AI)Data, Statistics & Classical ML
Year 1 · Semester 2

Data, Statistics & Classical ML Notes

Program:B.Sc IT (AI)
Semester:Semester 2
Hours:15
Units:8 Units

Subject Overview

The second half of the Foundations year: take raw data, prepare it properly, and train traditional ML models that solve real problems. Six modules cover statistics for ML, data wrangling, supervised and unsupervised learning, and the workflow and experiment tracking that keep results reproducible. Students leave Year 1 able to clean data, train models, and reason about results.

Unit-wise Syllabus

8 units — click WhatsApp below to get the full notes for each

1

Unit 1: Statistics for ML (3 hours)

  • Descriptive versus inferential statistics
  • hypothesis testing
  • p-values
  • confidence intervals
  • common pitfalls
ProcessHypothesis testing in five steps
  1. 1State H0 and H1
  2. 2Choose significance level

    Usually α = 0.05

  3. 3Compute the test statistic
  4. 4Find the p-value
  5. 5Decide

    Reject H0 if p < α

Study guide

This module builds statistical thinking for ML: descriptive versus inferential statistics, hypothesis testing, p-values, confidence intervals and common pitfalls. Learn what a p-value does not tell you, since misreading it is a classic mistake.

2

Unit 2: Data Wrangling (3 hours)

  • Cleaning
  • missing values
  • outliers
  • feature engineering
  • scaling
  • encoding categorical variables
ProcessData wrangling pipeline
  1. 1

    Inspect

    Shape, types, summary stats

  2. 2

    Handle missing values

    Drop or impute

  3. 3

    Treat outliers

    Cap, transform or remove

  4. 4

    Encode categories

    One-hot, ordinal, target

  5. 5

    Scale features

    Standardise or normalise

  6. 6

    Engineer new features

Study guide

Real data is messy. You learn cleaning, missing values, outliers, feature engineering, scaling and encoding categorical variables. Expect to spend more time here than on modelling in real projects.

3

Unit 3: Supervised Learning I (4 hours)

  • Linear regression
  • logistic regression
  • decision trees
  • train/test splits
  • cross-validation
ComparisonClassic supervised models
Predicts
Strength

Linear regression

A number

Simple, interpretable

Logistic regression

A class probability

Fast baseline for classification

Decision tree

Number or class

Easy to explain; can overfit

Study guide

Supervised learning begins with linear and logistic regression, decision trees, train-test splits and cross-validation. Always evaluate on data the model has not seen.

4

Unit 4: Supervised Learning II (4 hours)

  • Random forests
  • gradient boosting (XGBoost, LightGBM)
  • SVMs
  • model evaluation metrics
Key formulasClassification metrics
  • Accuracy

    (TP + TN) / total

  • Precision

    TP / (TP + FP)

    Of predicted positives, how many are right

  • Recall

    TP / (TP + FN)

    Of actual positives, how many were found

  • F1 score

    2 × P × R / (P + R)

  • ROC-AUC

    Area under the ROC curve: 1.0 is perfect

Study guide

You move to random forests, gradient boosting (XGBoost, LightGBM), SVMs and model evaluation metrics. Boosted trees are often the strongest baseline for tabular data.

5

Unit 5: Unsupervised Learning (3 hours)

  • K-means
  • hierarchical clustering
  • PCA
  • t-SNE
  • UMAP — when and why to use each
ComparisonWhen to use which unsupervised method
Does
Use when

K-means

Groups into k round clusters

You know roughly how many groups

Hierarchical

Builds a tree of clusters

You want to see nested groups

PCA

Linear dimension reduction

Compress features, speed up models

t-SNE / UMAP

Non-linear 2D maps

Visualising high-dimensional data

Study guide

Unsupervised learning covers K-means, hierarchical clustering, PCA, t-SNE and UMAP and, importantly, when and why to use each. Use PCA for compression and t-SNE or UMAP for visualisation.

6

Unit 6: ML Workflow & Experiment Tracking (3 hours)

  • scikit-learn pipelines
  • hyperparameter tuning
  • MLflow or Weights & Biases for tracking
ProcessAn ML experiment workflow
  1. 1

    Split train, validation and test

  2. 2

    Build a pipeline

    Preprocessing + model

  3. 3

    Cross-validate a baseline

  4. 4

    Tune hyperparameters

    Grid, random or Bayesian search

  5. 5

    Log runs

    MLflow or Weights & Biases

  6. 6

    Evaluate once on the test set

Study guide

You learn the workflow around models: scikit-learn pipelines, hyperparameter tuning and experiment tracking with MLflow or Weights & Biases. Tracking experiments keeps your results reproducible.

7

Unit 7: Tools introduced

  • scikit-learn
  • XGBoost
  • LightGBM
  • MLflow / Weights & Biases for experiment tracking
  • Kaggle for datasets and competitions
  • Claude / ChatGPT as a debugging and code review partner
ClassificationClassical ML toolkit
Tools
  • scikit-learn

    Models, pipelines, metrics

  • XGBoost and LightGBM

    Gradient-boosted trees

  • MLflow / W&B

    Experiment tracking

  • Kaggle

    Datasets and competitions

  • AI assistants

    Debugging and code review

Study guide

The tools introduced include scikit-learn, XGBoost, LightGBM, MLflow and Weights & Biases, Kaggle for datasets and competitions and AI assistants such as Claude or ChatGPT for debugging and code review. Join a Kaggle competition to practise on real problems.

8

Unit 8: Mini-projects

  • Titanic survival prediction with a full ML pipeline
  • customer segmentation on real e-commerce data
  • house price predictor deployed as a simple Streamlit app
ProcessTitanic: a full ML pipeline
  1. 1

    Explore the data

    Who survived?

  2. 2

    Clean and engineer features

    Title, family size

  3. 3

    Train baseline models

  4. 4

    Tune the best model

  5. 5

    Submit and compare on Kaggle

  6. 6

    Deploy a predictor in Streamlit

Study guide

The mini-projects are Titanic survival prediction with a full pipeline, customer segmentation on real e-commerce data and a house price predictor deployed as a Streamlit app. Deploying a model, even simply, teaches more than any notebook.

Why Data, Statistics & Classical ML Matters

Classical machine learning remains the workhorse of industry for tabular data, and the statistical habits you build here prevent expensive mistakes later. Mastering pipelines, evaluation and tracking makes you job-ready for data scientist and ML engineer roles.

How to Prepare for Data, Statistics & Classical ML

  • Build every project with a proper train, validation and test split.
  • Enter a Kaggle competition and read top solutions.
  • Track experiments with MLflow or Weights & Biases from the start.

Data, Statistics & Classical ML: Frequently Asked Questions

What is the difference between supervised and unsupervised learning?

Supervised learning learns from labelled data to predict outcomes, while unsupervised learning finds structure in unlabelled data.

Why use cross-validation?

Cross-validation gives a more reliable estimate of how a model will perform on new data by testing it on several different splits.

Want the Complete Notes & Past Papers?

WhatsApp us and we'll send you the full notes, question banks, and previous year papers for Data, Statistics & Classical ML.