Skip main navigation

New offer! Get 30% off one whole year of Unlimited learning. Subscribe for just £249.99 £174.99. New subscribers only. T&Cs apply

Find out more

From regression to classification

Classification is a supervised learning task with a categorical output. Watch Prof. Ni explain how to extend the regression method to classification.

In this video, Prof. Hao Ni explains how to extend the regression framework to solve the classification problem.

The framework of the classification is similar to the regression framework, which includes the following main components, i.e., dataset, model, empirical loss function, optimization and prediction. However, due to the difference in the output type (categorial output in classification and continuous output in regression), we need to adjust the model choice, loss function, prediction method and evaluation method to cope with the classification tasks. The classification framework is summarized as follows:

  • Dataset: (mathcal{D} = {(x_{i}, y_{i})}_{i = 1}^{N}, (x_i, y_i) in mathcal{X} times mathcal{Y}), where (mathcal{Y}) is a finite set.
  • Model: The model (f_{theta}) fully parameterized parameters (theta) is used to approximate the conditional probability of the output being (y) given the input (x), i.e., (f_{theta}(x)approx mathbb{P}[y vert x]).
  • Empirical Loss: Cross entropy is a commonly used loss function in classification problems.
  • Optimization: (theta^{*} = argmin_{theta} (L(theta vert mathcal{D}))) where (L) is a loss function.
  • Prediction: (hat{y}_{*} = text{arg}max_{i in mathcal{Y}} f^{i}_{theta^{*}}(x_{*}).)
  • Validation: Popular test metrics include accuracy, confusion matrix, etc.
This article is from the free online

An Introduction to Machine Learning in Quantitative Finance

Created by
FutureLearn - Learning For Life

Reach your personal and professional goals

Unlock access to hundreds of expert online courses and degrees from top universities and educators to gain accredited qualifications and professional CV-building certificates.

Join over 18 million learners to launch, switch or build upon your career, all at your own pace, across a wide range of topic areas.

Start Learning now