Logistic Regression Revisited

Logistic Regression Revisited

🎙 Machine Learning Practice 👥 419 📅 October 18, 2022 ⏱ 17 min 👁 170 📄 tutorial 🧭 2026-08-17
Available in: English (current) Français

Keywords

logistic regressionmean squared errorsigmoidgradient descentcost function

Summary

The video revisits logistic regression, focusing on the mathematical derivation of the gradient of the mean squared error (MSE) cost function. It begins by reviewing the logistic regression model, which combines a linear model with a sigmoid non-linearity to output probabilities. The presenter then derives the partial derivative of the MSE cost function with respect to a weight, using the chain rule and carefully handling the summation over examples. The derivation reveals that the gradient includes a term for the derivative of the sigmoid, which is Gaussian-shaped and approaches zero for extreme inputs. The presenter illustrates this with examples: when the prediction is close to the true label, the gradient is small, which is appropriate; but when the prediction is far off (e.g., predicting 0 when the true label is 1), the gradient can also be very small due to the sigmoid derivative being near zero, leading to slow learning. This demonstrates that the MSE cost function is not ideal for logistic regression with a sigmoid, as it suffers from vanishing gradients. The video concludes by suggesting that a different cost function, such as log-likelihood, would be more suitable, setting up for a future discussion.

195 words

Critical Evaluation

Value of the Information & Strength of the Argument

The video provides a clear and rigorous mathematical derivation of the gradient of the MSE cost function for logistic regression. It carefully walks through the chain rule, handling the summation over examples and the partial derivative with respect to a specific weight. The argumentation is solid: it identifies a key problem with the MSE cost function—the vanishing gradient issue—by analyzing the shape of the sigmoid derivative. The use of concrete examples (e.g., predicting 0.6 when the true label is 1, and predicting near 0 when the true label is 1) effectively illustrates the problem. The video does not merely state the issue but explains the mathematical reason behind it, which adds value for viewers seeking a deeper understanding. However, it does not discuss alternative cost functions in detail, leaving that for a future video, which is a minor limitation.

Scientific Rigor, Source Quality, Title Accuracy

The video is scientifically rigorous in its mathematical derivation, with correct calculus and clear explanations. However, it does not cite any external sources or references, which is typical for tutorial-style content but limits its scholarly value. The title ‘Logistic Regression Revisited’ accurately reflects the content, as it revisits logistic regression with a focus on the cost function. The video does not include any sponsored content or advertisements. There are no comments provided for analysis.

228 words

Title / Content Match

The title accurately reflects the content, which revisits logistic regression with a focus on the mathematical derivation of the cost function gradient.

Quality & Reliability

7/10

The video provides a clear mathematical derivation of the gradient of the mean squared error cost function for logistic regression, with correct calculus and intuitive explanations. However, it lacks references to external sources and does not discuss alternative cost functions in detail.

Key Moments

Contribution & Novelties

The video provides a clear and detailed mathematical derivation of the gradient of the mean squared error cost function for logistic regression, highlighting the vanishing gradient problem. It offers a solid foundation for understanding why alternative cost functions like log-likelihood are preferred. The explanation is accessible yet rigorous, making it a valuable resource for learners.

Pour aller plus loin :

113 words

Radar Profile

The radar profile shows high scores in quality of information and technical level, indicating a mathematically rigorous tutorial. The quantity of information is moderate, and the global reliability is good, though it could benefit from external references.

Reliability 7/10