Sitemap
TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Member-only story

The Meaning Behind Logistic Classification, from Physics

9 min readJan 24, 2023

--

Logistic regression is ubiquitous, but what’s the intuition behind why it works? (Image by Author)

Logistic regression is perhaps the most popular and well-known machine learning model. It solves the binary classification problem — for predicting whether a data point belongs to a category.

The key ingredient is the the logistic function, where an input is converted into a probability, written in the form:

But why does the exponential make an appearance? What is the intuition behind it, beyond just converting a real number into a probability?

It turns out, thermal physics has an answer. But before digging into insights from physics, let’s understand the mathematics first.

Mathematical Quandary

Before tackling the “why” behind the logistic function, let’s understand its properties first.

Time to get the math out of the way! (Photo by Michal Matlon on Unsplash)

It is helpful to understand the logistic function in a more generalized form — one that is applicable for multiple categories — so that the…

--

--

TDS Archive
TDS Archive

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Tim Lou, PhD
Tim Lou, PhD

Written by Tim Lou, PhD

Data Scientist @ TTD | ex Researcher @ Berkeley/LBNL | Particle Physics PhD @ Princeton | Podcast @ quirkcast.org