6103 - Advanced ML
session: "6103-advanced-ml/2026-09-12 0925 Advance Machine Learning"
title: "Advance Machine Learning"
date: "2026-09-12 09:25"
duration: "1h 27m"
language: "en"
model: "deepseek-ai/DeepSeek-V3.2"
parts: 3
transcript_chars: 62966
generated: "2026-11-23T01:47:46+05:30"
This class focused on the foundational concepts of supervised learning, specifically regression versus classification problems. It introduced the core algorithm of simple linear regression, covering its mathematical formulation, parameter derivation, and practical application. The session emphasized understanding the process from data exploration and feature selection to model training and prediction, setting the stage for implementation.
A type of machine learning where the model learns from labeled data (input-output pairs). It matters because it is the basis for predictive tasks like forecasting and categorization, forming the core of this lecture's focus on regression.
Regression predicts a continuous numerical value (e.g., price), while classification predicts a discrete class label (e.g., spam/not spam). Distinguishing between them is the first step in choosing the correct algorithm and evaluation metrics for a given problem.
An algorithm that models the linear relationship between one independent variable (x) and one dependent variable (y) using a best-fit line. It is foundational for understanding how models learn parameters from data to make predictions.
A statistical measure ranging from -1 to 1 that quantifies the linear relationship between two variables. It is crucial for feature selection in linear regression, as the independent variable with the highest correlation to the target is typically chosen.
Training is the process of using known data (X, y) to calculate the model parameters (β₀, β₁). Prediction involves using these learned parameters with new input data (x) to estimate an output (ŷ). This encapsulates the end-to-end machine learning workflow.
y = β₀ + β₁xSymbols: y is the predicted dependent variable; β₀ is the intercept; β₁ is the slope; x is the independent variable.
Used when: Defining the relationship between variables or making a prediction after training.
β₁ = Σ(xᵢ - x̄)(yᵢ - ȳ) / Σ(xᵢ - x̄)²Symbols: xᵢ, yᵢ are individual data points; x̄, ȳ are the means of x and y.
Used when: Calculating the slope from training data using deviations from the mean.
β₁ = [nΣ(xy) - Σx Σy] / [nΣ(x²) - (Σx)²]Symbols: n is the number of data points; Σ denotes summation.
Used when: Calculating the slope directly from sums of the data.
β₀ = ȳ - β₁x̄Symbols: ȳ is the mean of y; β₁ is the slope; x̄ is the mean of x.
Used when: Calculating the intercept after the slope is known.
y = 1.5x + 2 and a new input x = 5, the predicted output is y = 1.5*5 + 2 = 9.5.xᵢ - x̄ = 10 - 29 = -19.A: Accuracy = number of correct predictions ÷ total predictions = (TP + TN) / (TP + TN + FP + FN). F1 score is the harmonic mean of precision and recall, requiring understanding of the confusion matrix.
A: Yes, 100%. Cross-entropy measures error in classification.
A: No, execution is not the immediate focus. Understanding the concept is more important. Materials will be provided later.
A: That ratio also describes the relationship. The given formulas are standard and can be verified online.
A: We use the known x and y (training data) to calculate β₀ and β₁ to create the model. This model can then predict y for new, unseen x values.
A: Yes, 100%. You need to memorize it. The formulas for slope and intercept are fixed.
A: We check the correlation score via a heatmap. Our dependent variable is price. Engine size has the highest correlation (0.87) with price, so it is chosen.
A: No. Correlation score is only used for finding/choosing the independent variable. Beta 0 and beta 1 are for the linear regression model itself.
y = β₀ + β₁x.Σ(xᵢ - x̄)(yᵢ - ȳ) / Σ(xᵢ - x̄)² or [nΣ(xy) - Σx Σy] / [nΣ(x²) - (Σx)²].ȳ - β₁x̄.1. Given a small dataset of (x, y) pairs, calculate the slope (β₁) and intercept (β₀) for the simple linear regression line.
Outline: Calculate x̄ and ȳ. Compute Σ(xᵢ - x̄)(yᵢ - ȳ) and Σ(xᵢ - x̄)². Apply formula β₁ = Σ(xᵢ - x̄)(yᵢ - ȳ) / Σ(xᵢ - x̄)². Then calculate β₀ = ȳ - β₁x̄.
2. A dataset has a target variable 'price' and features 'engine size' (corr=0.87) and 'length' (corr=0.69). Which feature should be used as the independent variable in a simple linear regression model to predict price, and why?
Outline: Choose 'engine size'. In simple linear regression, you select the single independent variable with the highest absolute correlation to the dependent variable to model the strongest linear relationship.
3. Describe the step-by-step process, from raw data to prediction, for building a simple linear regression model.
Outline: 1) Load and explore data. 2) Ensure target (y) and feature (x) are numeric. 3) Select the feature (x) with highest correlation to y. 4) Calculate x̄ and ȳ from training data. 5) Compute β₁ using the slope formula. 6) Compute β₀ = ȳ - β₁x̄. 7) The model is now defined. 8) For a new x, predict y using y = β₀ + β₁x.
One line per segment, [hh:mm:ss] timestamp first.
loading…