Where to look next

Resources

The course materials are complete on their own: the lectures, the exercises, the case and the cheatsheet are all you need. Everything here is either the official reference you should learn to use, or something extra for when you want to go further.

needed use it during the course  ·  extra only if you want more

Official documentation needed

Learn to read these rather than searching for a blog post. They are written by the people who wrote the code, they match the version you have, and the reference part of them is already on your machine: hovering a name in VS Code shows the same text.

SessionPage of the scikit-learn user guide
5Cross-validation, including TimeSeriesSplit
6Linear models (ridge, lasso, elastic net), pipelines and grid search
8 and 9Logistic regression, nearest neighbours and the scores of a model
11Decision trees and ensembles (bagging, random forests)
12Gradient boosting, permutation importance, and the XGBoost and LightGBM documentation

Taking the documentation offline needed

Two things are worth knowing, because there are times you will not have a search box.

The reference is already on your machine. Every package carries its own manual inside it. Hover a name in VS Code, or call help(name) in a cell, and you get the signature and the parameter list. That is the same text the reference pages on the website are generated from.

The full sites can be downloaded. Python publishes its whole documentation as a single archive at docs.python.org/3/download.html, and the NumPy and pandas sites offer offline copies of their versioned documentation too. Worth doing once, in good time, rather than on a day you need it.

Practising with the wifi switched off is a genuinely useful exercise. It is surprisingly quick to get used to help() and hover, and much easier to learn now than under time pressure.

Books, free and legal needed

SessionIn the book
4Sections 2.1 and 2.2: the statistical learning framework, the reducible and irreducible error, assessing accuracy, the bias-variance trade-off. Session 4 follows them in the same order.
5Chapter 3 for linear regression, and section 5.1, cross-validation
6Section 6.2: shrinkage methods, ridge and the lasso, and how to choose their strength
8 and 9Sections 4.1 to 4.3: classification and logistic regression; section 2.2.3 for the classification setting and k-nearest neighbours
11Section 8.1, decision trees, and sections 8.2.1 and 8.2.2: bagging and random forests (section 5.2 explains the bootstrap)
12Section 8.2.3: boosting

When something has not clicked needed

Almost every beginner gets stuck in the same two places: what a variable actually holds after a line runs, and what a loop is doing on each pass. Reading the code again rarely fixes either. Watching it run does.

Revising away from a screen extra

Every lecture and both of the course's reference pages come as PDFs, which is worth knowing before an offline exam. All of them are on the Exam info page.

More practice extra

Only if you have finished the exercises and want more. None of this is examined.

Machine learning in finance, further extra

Where the methods of this course meet research in finance. Both are long, and both are free working-paper versions.

The data this course uses extra

Every file was downloaded once and is part of the course, so the materials never depend on a live connection and everyone works with exactly the same numbers: any number you compute at home should match a number from class. The files are on the downloads page.

FileWhat it isSessionsSource
prices.csvDaily closing prices of AAPL, MSFT, NVDA, JPM, KO, PG, XOM, JNJ, WMT, DIS and the S&P 500 ETF SPY, 2015 to 2024, split- and dividend-adjusted; Sessions 1 and 2 use small 2024 extracts of it 1 to 6, 8, 9, 11, 12Yahoo Finance, through the yfinance package. Yahoo's terms are for personal use, so these files are here for teaching only.
market_features.csvThe nineteen-column table for the index: past volatilities and returns, and next month's volatility as the target 6, 8, 9, 11, 12Built by the course from prices.csv
aarhus_houses.csv7,621 ordinary sales of villas and townhouses in the Aarhus postcodes, January 2021 to September 2024; no addresses, locations to about 100 metres 7, 13"Danish Residential Housing Prices 1992-2024", compiled by Martin Frederiksen from boliga.dk (public land-registry records) for educational use; located with the Danish address register (DAWA)
credit.csv30,000 credit card holders at a Taiwanese bank in 2005, seven columns, and whether each defaulted the month after 9, 11, 12Yeh, I-C. (2009), Default of Credit Card Clients, UCI Machine Learning Repository, CC BY 4.0
power.csv26,133 hours of day-ahead prices for West Denmark (DK1), 2022 to 2024, with the day-ahead wind and sun forecasts 10, 13Source: Energinet (www.energidataservice.dk), CC BY 4.0

Using AI on this course needed

You may use it, and you should learn to. The distinction that matters is between using it to understand and using it to avoid understanding.

A fair test: could you now write it again, from a blank cell, without help? If not, you have not finished the exercise.

Reusing these materials

The lectures, notebooks, exercises, case, cheatsheet and pages of this course are © 2026 Jonas Theill Bøjstrup, and free to reuse under CC BY 4.0: you may copy them, adapt them and teach from them, as long as you credit the course and link to it, for example:

Jonas Theill Bøjstrup, Machine Learning in Finance, Aarhus University (2026), https://theill95.github.io/mlfin-2026/, CC BY 4.0

Two things are not covered. The data files keep their sources' terms, listed in the table above: the prices from Yahoo, and the tables built from them, are for teaching only. And the software the pages run on, from reveal.js to Pyodide, keeps its own licence. The full text of the licence is on the Creative Commons site, and questions about reuse go to jobo@econ.au.dk.