Topic · Machine Learning & AI
← All topicsML Foundations
37 articles · 8 checkpoints · 19 deeper reads · 10 reference notes
Every article, in reading order
plant a flag as you finish eachRead these first
Data alone can never pick a model, infinitely many rules fit any finite dataset perfectly and then disagree completely about the next observation. The hypothesis space is the shortlist of rules you allow, and the inductive bias is the tiebreaker you use inside it. Both are assumptions you make, not facts the data gives you.
Almost every error bar, p-value and cross-validation score assumes your rows are independent draws from one unchanging distribution. Financial data violates both halves of that, which is why backtests look significant and then fail. This page shows exactly how much of your sample is real and what happens when the distribution moves.
The error a model reports on the data it was trained on and the error it will make on new data are two different numbers, and confusing them is the single most common way quant models fail in production.
Cross-entropy scores a probability forecast by how surprised it would have been by what actually happened, and the penalty for a confident wrong call grows without bound, which is exactly the behavior you want from a loss function.
A model gives you a probability; a threshold turns that probability into an action. Where you put the cutoff should be decided by what mistakes cost you, not by the 0.5 that every library hands you as a default.
What a model is trained to minimize and what a human uses to judge whether it's any good are usually two different numbers, and a model can improve on one while barely moving, or even worsening, the other.
Adding a penalty to a loss function is not a hack. It is exactly the same arithmetic as writing down what you believed about the coefficients before you saw any data, and letting the evidence argue you out of it.
A model's average squared error splits cleanly into three separate pieces, being systematically wrong, being erratically wrong, and noise nothing can fix, and the decomposition explains why a worse-looking model can beat a better-looking one out of sample.
Then the rest