Using linear regression to estimate non-linear problems (with code!)

Using linear regression to estimate non-linear problems (with code!)

🎙 Guy Barash (WDC), hosted by Dr. Eitan Farchi (IBM) 👥 46 📅 November 10, 2021 ⏱ 26 min 👁 7 📄 tutorial 🧭 2026-08-18
Available in: English (current) Français

Keywords

linear regressionpolynomial featuresmodel selectiongeneralizationoverfitting

Summary

This video is a tutorial on using linear regression to fit a non-linear function, specifically a quadratic parabola. The presenters, Guy Barash and Dr. Eitan Farchi, begin by introducing the concept of a model as a search space and emphasize the importance of choosing an appropriate model for a given problem. They then demonstrate with code (in a Colab notebook) that a simple linear model (y = d*x + e) fails to fit a quadratic function, resulting in a high mean squared error. The key insight is that by adding a polynomial feature (x^2) to the input, the same linear regression algorithm can perfectly fit the quadratic function, because the model becomes linear in the parameters. This illustrates the power of feature engineering and the concept of linear regression in higher-dimensional feature spaces. The discussion also touches on the trade-off between model complexity and overfitting, using the example of having 100 data points and 100 features, and the importance of generalization. The video concludes with a Q&A session addressing questions about convergence, outliers, and the number of features to use.

180 words

Critical Evaluation

Value of the Information & Strength of the Argument

The video provides a clear and practical demonstration of a fundamental concept in machine learning: feature engineering for linear regression. The argumentation is solid, as it systematically shows the failure of a naive linear model and the success of adding a polynomial feature, with code and visualizations. The explanation of why the trick works (linear in parameters) is accurate and accessible. The discussion on model complexity and overfitting adds depth, linking the example to broader principles of generalization. The value lies in its pedagogical clarity and the concrete, reproducible example.

Scientific Rigor, Source Quality, Title Accuracy

The video does not cite external sources, but it references a book draft by Guy Barash and mentions that the code is available in a Colab notebook. The scientific rigor is adequate for a tutorial: the mathematical explanations are correct, and the code is straightforward. The title accurately reflects the content. The video is not a formal scientific presentation, but it is methodologically sound in its demonstration. The lack of formal citations is a minor weakness, but the content itself is reliable.

187 words

Title / Content Match

The title accurately reflects the content: the video demonstrates how to use linear regression to fit a non-linear (quadratic) function by adding a polynomial feature.

Quality & Reliability

7/10

The video is a tutorial that demonstrates a fundamental machine learning concept (feature engineering for linear regression) with a clear, reproducible code example. The explanation is accurate and aligns with established statistical learning theory. However, it lacks formal citations and peer-reviewed references, and the production quality is low (screen share, informal discussion).

Key Moments

Cited Sources

  • Book draft by Guy Barash (mentioned in video) — The video references a book draft on crafting machine learning systems, which contains the exercise demonstrated.

Concurring Sources

Contribution & Novelties

The video provides a clear, step-by-step demonstration of how to use linear regression for non-linear problems via feature engineering. It emphasizes the importance of model selection and the concept of a model as a search space, which is often overlooked in introductory tutorials. The example is simple yet effective in illustrating the power of adding polynomial features.

Pour aller plus loin :

108 words

Radar Profile

The radar profile shows high scores in quality of information and technical level, indicating a solid tutorial. The quantity of information is moderate, as the video is focused on a single example. The overall reliability is good, but the lack of formal citations slightly lowers the score.

Reliability 7/10

💬 No comments were provided for analysis.