Skip to content
All library documents

Machine Learning Basics: Supervised Learning, Linear Regression, and Gradient Descent

Article BigQuant

Summary

This introductory guide explains machine learning through a house-price prediction example. It distinguishes supervised learning, which learns from examples with known outcomes, from unsupervised learning, which searches unlabeled data for groupings or unusual cases. It then shows how a linear model combines input features such as home size and bedroom count using adjustable weights. A cost function measures prediction errors, and batch gradient descent adjusts the weights toward lower cost.

The article emphasizes that machine learning can fit patterns without a person writing every decision rule, but it does not automatically reveal why a fitted model works. Linear regression is limited when relationships are nonlinear, while more flexible models can address some such cases. The guide also warns about overfitting: a model that matches its training examples closely may predict new cases poorly. Useful results depend on relevant input data and appropriate evaluation, including techniques such as regularization and cross-validation. The discussion is conceptual rather than a trading application, and its simplified explanations omit many practical modeling details.

Key ideas

  • Supervised learning uses labeled examples, while unsupervised learning seeks structure in data without target labels.
  • Linear regression predicts an outcome by combining input features with learned weights.
  • A cost function summarizes prediction error, and batch gradient descent updates weights to reduce it.
  • More flexible methods may be needed when relationships are nonlinear.
  • A model can fit its training data yet generalize poorly, so overfitting controls and validation matter.
  • Machine learning requires data that contains meaningful information about the prediction target.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.