classnotes RTX 4070 Ti SUPER · faster-whisper · DeepSeek

6103 - Advanced ML

← 6103 - Advanced ML

Advance Machine Learning-20260919_092518-Meeting Recording

Date 2026-09-19 Length 1h 17m Words 10,232 Segments 581
⤓ Download transcript (.txt with timestamps) ⤓ Plain transcript (.txt) ⤓ Transcript (.md)

Summary


session: "6103-advanced-ml/2026-09-19 0925 Advance Machine Learning"

title: "Advance Machine Learning"

date: "2026-09-19 09:25"

duration: "1h 16m"

language: "en"

model: "deepseek-ai/DeepSeek-V3.2"

parts: 2

transcript_chars: 52251

generated: "2026-11-23T01:51:54+05:30"


Advanced Machine Learning

Overview

This class covered the fundamentals of linear regression, building on previous introductory concepts. It focused on the mathematical derivation of the simple linear regression model, including calculating the slope and intercept. The session applied these concepts to a real dataset (automobile.csv) to predict car price using engine size, evaluated the model using R-squared, and introduced practical implementation with scikit-learn. This forms the foundational regression module within the broader machine learning course.

Learning outcomes

Core concepts

Linear Model

A model that assumes a linear relationship between an independent variable (x) and a dependent variable (y), expressed as y = β₀ + β₁x. It matters because it is the simplest form of regression and the foundation for more complex models. It connects directly to model fitting and evaluation.

Slope (β₁) and Intercept (β₀)

The slope (β₁) represents the rate of change of y with respect to x, while the intercept (β₀) is the predicted value of y when x is zero. They are crucial as they uniquely define the regression line. They are calculated from the data and are central to making predictions.

Correlation for Feature Selection

Correlation measures the strength and direction of the linear relationship between two variables. It matters because the independent variable with the highest correlation to the target is typically chosen as the predictor to build a more effective model. This connects to the initial data exploration and model setup phase.

R-squared (R²)

A statistical measure that represents the proportion of the variance in the dependent variable that is predictable from the independent variable. It matters as it is the primary metric for evaluating the goodness-of-fit in regression models. It connects model evaluation to the concepts of SSR, SSE, and SST.

Sum of Squares (SSR, SSE, SST)

These decompose the total variance in the data: SSR (Regression) explains variance from the model, SSE (Error) captures unexplained variance, and SST (Total) is the total variance. They matter because they quantify model performance and are directly used to calculate R-squared. They connect the mathematical model to its evaluation.

Formulas and maths

Worked examples

1. Automobile Dataset Example:

2. Hand-Calculation Example 1:

3. Hand-Calculation Example 2:

Questions asked in class

Key takeaways

Exam-style questions

1. Given the data points (1,2), (2,3), (4,6), calculate the slope (β₁) and intercept (β₀) for the linear regression model.

2. A linear regression model on a dataset yields an SSE of 45 and an SST of 180. Calculate the R-squared value and interpret what it means.

3. When building a simple linear regression model to predict house price, you find that 'square footage' has a correlation of 0.82 with price, and 'number of bedrooms' has a correlation of 0.76. Which feature should you choose as your independent variable, and why?

Glossary

Follow-ups

Exam verification — corrections & additions

Transcript

One line per segment, [hh:mm:ss] timestamp first.

loading…