Logistic regression (Part 2): Finding solution

Опубликовано: 25 Июль 2026
на канале: AlgoNeural
941
44

Logistic regression (https://en.wikipedia.org/wiki/Logisti...) is perhaps the most well known classification algorithm. This is a follow-up to my previous video where I show how to solve it using the maximum likelihood estimation. Understanding logistic regression is crucial for studying deep neural networks and machine learning in general.

⏱️TIMESTAMPS
0:00 - Logistic regression recap
0:45 - Cost function
1:30 - Gradient descent
2:29 - Maximum likelihood estimation
5:25 - Convex function optimization

Mathematical derivation of the cost function:
https://github.com/AlgoNeural/logisti...

Source code for generating the animations:
https://github.com/AlgoNeural/logisti...

Credits:
2D were made using the manim library: https://docs.manim.community/en/stable/

3D animations were made in Blender:
https://www.blender.org/

Money image source: https://openclipart.org/detail/320398...
"Wad of Cash - US Dollars" by "j4p4n"

The exam example is taken from the Wikipedia page about logistic regression: https://en.wikipedia.org/wiki/Logisti...