4. ML Foundations I#
Translate a business question into a valid modeling problem. Three parts, taught in the same session: what kind of learning a task needs and how data becomes numbers, how a straight line is fitted and scored, and how a model improves and is judged.
Before this session, work through Foundations for ML: returns, risk, benchmarks, financial and macro data, and the statistics the models use. Page F5 already draws a first line through a cloud of dots; this chapter explains how that line is found.
4.1 Learning From Data. Supervised, unsupervised and reinforcement learning, and how a table of months becomes features, a label, vectors, a matrix and parameters.
4.2 Fitting a Line. Linear regression as a numerical prediction, and the loss that turns “how wrong was it” into one number.
4.3 Improving and Judging a Model. Gradient descent as repeated small steps downhill, then overfitting, underfitting and why a model is judged on months it never saw.
All three use the firm’s illustrative monthly returns (made up, not market data) and need no API key. One Colab notebook covers the whole chapter.
Watch the lecture#
The session 4 recording, covering all three parts. Watch it before or alongside 4.1 to 4.3; the slides are linked below the video.