Published
Machine Learning from Scratch Cover

For

Data scientists, ML engineers, AI engineers, researchers, students, quants, and anyone serious about understanding machine learning at a fundamental level.

Machine Learning from Scratch

A Complete Guide to Machine Learning, Optimization and AI: Mathematical Foundations and Practical Implementations

About This Book

What separates a data scientist who truly understands their craft from one who merely applies black-box tools? The answer lies in mastering the mathematics and intuition behind every algorithm. This comprehensive handbook bridges the gap between theoretical foundations and production-ready implementations, giving you the deep understanding that transforms good practitioners into exceptional ones.

From the elegant simplicity of linear regression to the sophisticated power of gradient boosting and neural networks, every concept is built from first principles. You won't just learn how to use scikit-learn. You'll understand exactly what happens under the hood when you call fit() and predict(). Each algorithm is derived mathematically, explained intuitively, and implemented in clean, production-quality Python code.

Table of Contents

Part I: Statistics 101

11 chapters
1

Types of Data

Complete guide to data classification - quantitative, qualitative, discrete & continuous

2

Descriptive Statistics

Complete guide to summarizing and understanding data with measures of central tendency, variability, and distribution shape

3

Probability Basics

Foundation of statistical reasoning covering random variables, probability distributions, expected value, variance, and conditional probability

4

Central Limit Theorem

Foundation of statistical inference covering convergence behavior, sample size requirements, and practical applications in data science

5

Data Sampling

Complete guide to sampling theory and methods covering simple random sampling, stratified sampling, cluster sampling, sampling error, and uncertainty quantification

6

Variable Relationships

Complete guide to covariance, correlation, and regression analysis covering how to measure, model, and interpret variable associations

7

Probability Distributions

Complete guide to normal, t-distribution, binomial, Poisson, exponential, and log-normal distributions with practical applications

8

Data Visualization

Complete guide to histograms, box plots, and scatter plots for exploratory data analysis

9

Data Quality

Complete guide to data quality and outliers covering measurement error, bias, missing data, and imputation

10

Statistical Inference

Complete guide to drawing conclusions from data covering point and interval estimation, confidence intervals, hypothesis testing, and p-values

11

Statistical Modelling

Complete guide to building and evaluating predictive models covering model fit metrics, bias-variance tradeoff, and cross-validation

Part II: Foundations

6 chapters

Part III: Regression Models

12 chapters

Part IV: Tree-Based Models

7 chapters

Part V: Explainability

5 chapters

Part VI: Unsupervised Learning

4 chapters

Part VII: Time Series

5 chapters

Part VIII: Optimization

5 chapters

Reference

BIBTEXAcademic
@book{machinelearningfromscratch, author = {Michael Brenndoerfer}, title = {Machine Learning from Scratch}, year = {2025}, url = {https://mbrenndoerfer.com/books/machine-learning-from-scratch}, publisher = {mbrenndoerfer.com}, note = {Accessed: 2025-12-07} }
APAAcademic
Michael Brenndoerfer (2025). Machine Learning from Scratch. Retrieved from https://mbrenndoerfer.com/books/machine-learning-from-scratch
MLAAcademic
Michael Brenndoerfer. "Machine Learning from Scratch." 2025. Web. 12/7/2025. <https://mbrenndoerfer.com/books/machine-learning-from-scratch>.
CHICAGOAcademic
Michael Brenndoerfer. "Machine Learning from Scratch." Accessed 12/7/2025. https://mbrenndoerfer.com/books/machine-learning-from-scratch.
HARVARDAcademic
Michael Brenndoerfer (2025) 'Machine Learning from Scratch'. Available at: https://mbrenndoerfer.com/books/machine-learning-from-scratch (Accessed: 12/7/2025).
SimpleBasic
Michael Brenndoerfer (2025). Machine Learning from Scratch. https://mbrenndoerfer.com/books/machine-learning-from-scratch

Stay Updated

Get notified when new chapters are published.

Stay updated

Get notified when I publish new articles on data and AI, private equity, technology, and more.