コンテンツへスキップ

Labs · 9618 18.1 · machine learning

Roll Down the Loss: Gradient Descent

Fit a line to ice-cream sales. Each error becomes a red square, and the loss is their mean. Then watch gradient descent roll downhill to the best line, and choose a good step size.

4 levelsFree bench

In the exam

9618/33 May/June 2026 · Question 9(a) · 3 marks

Explain what is meant by regression methods in relation to machine learning.

Points that gain marks

  • It is a supervised learning technique of machine learning.
  • It finds a mathematical function, for example a best-fit line or curve; calculus is used to find the error gradient.
  • The function maps how the causes (independent variables) affect an effect (the dependent variable), so it can forecast trends and predict outcomes.
  • The goal is to make the difference between the predicted values and the actual values as small as possible.

In this lab: This lab is regression: the line is the function, hours of sunshine are the cause and ice-cream sales are the effect. The loss is the difference between predicted and actual sales, and gradient descent follows the error gradient downhill to make it as small as possible.

More real experiments

All labs →

ログインまたはアカウント作成

IGCSE, A-Level & AP