Downloads
You do not need any of this to follow the course: the lectures run in your browser and the notebooks open in Colab with the data loading by itself. This page is for working offline, on your own machine, which is what you will do at the exam.
All the notebooks and data, in one file
The ZIP includes a local readiness notebook. See the setup guide for instructions and troubleshooting.
Download just the readiness notebook
and put it beside data/ in your unzipped course folder.
Every exercise notebook, every case notebook and every data file, arranged so they work as soon as you unzip them, with the list of package versions the course was checked with. Always the current version.
Unzip it, then in VS Code use File → Open Folder and pick
the unzipped folder. Opening the folder rather than a single file is what makes
data/prices.csv resolve. See the
setup guide.
Where each data file comes from, and the terms it comes with, is in the table on the Resources page.
Session 1 · Beginning Python for financial data
| File | What it is | |
|---|---|---|
session_01_exercises.ipynb | 55 exercises, hints and solutions folded in | download |
session_01_case.ipynb | The case, Part 1 | download |
aapl_2024_closes.csv | Apple's 2024 closing prices | download |
ko_2024_closes.csv | Coca-Cola's 2024 closing prices | download |
| The lecture | Runs in your browser, nothing to install | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Session 2 · Functions, loops and dictionaries
| File | What it is | |
|---|---|---|
session_02_exercises.ipynb | 64 exercises | download |
session_02_case.ipynb | The case, Part 2 | download |
| Five single-stock 2024 files: Apple, Coca-Cola, Nvidia, Johnson & Johnson, JPMorgan | AAPL · KO · NVDA · JNJ · JPM | |
| The lecture | Runs in your browser, nothing to install | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Session 3 · Packages: NumPy, pandas and matplotlib
| File | What it is | |
|---|---|---|
session_03_exercises.ipynb | 76 exercises | download |
session_03_case.ipynb | The case, Part 3 | download |
prices.csv | All eleven instruments, 2015 to 2024, 27,676 rows | download |
aapl_2024_closes.csv | Used by the array exercises | download |
| The lecture | Runs in your browser, nothing to install | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Session 4 · Foundations of machine learning
| File | What it is | |
|---|---|---|
session_04_exercises.ipynb | 73 exercises | download |
session_04_case.ipynb | The case, Part 4 | download |
prices.csv | All eleven instruments, 2015 to 2024, 27,676 rows | download |
| The lecture | Runs in your browser, nothing to install | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Session 5 · Model selection and cross-validation
| File | What it is | |
|---|---|---|
session_05_exercises.ipynb | 63 exercises | download |
session_05_case.ipynb | The case, Part 5 | download |
prices.csv | All eleven instruments, 2015 to 2024, 27,676 rows | download |
| The lecture | Runs in your browser, nothing to install | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Session 6 · Penalised regression
| File | What it is | |
|---|---|---|
session_06_exercises.ipynb | 58 exercises | download |
session_06_case.ipynb | The case, Part 6 | download |
prices.csv | All eleven instruments, 2015 to 2024, 27,676 rows | download |
market_features.csv | The lecture's nineteen-column table for the index, 2,376 rows | download |
| The lecture | Runs in your browser, nothing to install | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Session 7 · Pricing a house in Aarhus
| File | What it is | |
|---|---|---|
aarhus_houses.csv | 7,621 ordinary house sales in the Aarhus postcodes, January 2021 to September 2024, thirteen columns; no addresses, locations to about 100 metres | download |
| The lecture | Runs in your browser, nothing to install; no exercises or case this session | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
| The map | Every sale in the table on a live map | open |
Session 8 · Classification with logistic regression
| File | What it is | |
|---|---|---|
session_08_exercises.ipynb | 64 exercises | download |
session_08_case.ipynb | The case, Part 8 | download |
prices.csv | All eleven instruments, 2015 to 2024, 27,676 rows | download |
market_features.csv | The 19-column table for the index, 2,376 rows; the deck and the exercises make their label from it in one line | download |
| The lecture | Runs in your browser, nothing to install | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Session 9 · Classification in practice
| File | What it is | |
|---|---|---|
session_09_exercises.ipynb | 68 exercises | download |
session_09_case.ipynb | The case, Part 9 | download |
credit.csv | 30,000 credit card holders at a Taiwanese bank in 2005, seven columns and whether each defaulted the month after; from the UCI Machine Learning Repository, CC BY 4.0 | download |
prices.csv | All eleven instruments, 2015 to 2024, 27,676 rows | download |
market_features.csv | The 19-column table for the index, 2,376 rows | download |
| The lecture | Runs in your browser, nothing to install | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Session 10 · Electricity prices in West Denmark
| File | What it is | |
|---|---|---|
power.csv | 26,133 hours of day-ahead prices for West Denmark (DK1), 2022 to 2024, with the day-ahead wind and sun forecasts; open data from Energinet's Energi Data Service | download |
| The lecture | Runs in your browser, nothing to install; no exercises or case this session | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Session 11 · Trees and forests
| File | What it is | |
|---|---|---|
session_11_exercises.ipynb | 62 exercises | download |
session_11_case.ipynb | The case, Part 11 | download |
market_features.csv | The 19-column table for the index, 2,376 rows | download |
credit.csv | 30,000 credit card holders at a Taiwanese bank in 2005, seven columns and whether each defaulted the month after; from the UCI Machine Learning Repository, CC BY 4.0 | download |
prices.csv | All eleven instruments, 2015 to 2024, 27,676 rows | download |
| The lecture | Runs in your browser, nothing to install | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Session 12 · Boosting and reading a model
| File | What it is | |
|---|---|---|
session_12_exercises.ipynb | 59 exercises | download |
session_12_case.ipynb | The case, Part 12, the last part | download |
market_features.csv | The 19-column table for the index, 2,376 rows | download |
credit.csv | 30,000 credit card holders at a Taiwanese bank in 2005, seven columns and whether each defaulted the month after; from the UCI Machine Learning Repository, CC BY 4.0 | download |
prices.csv | All eleven instruments, 2015 to 2024, 27,676 rows | download |
| The lecture | Runs in your browser, nothing to install | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Session 13 · The two cases with trees
| File | What it is | |
|---|---|---|
aarhus_houses.csv | The house sales of Session 7: 7,621 ordinary house sales in the Aarhus postcodes, January 2021 to September 2024 | download |
power.csv | The hours of Session 10: 26,133 hours of day-ahead prices for West Denmark (DK1), 2022 to 2024, with the wind and sun forecasts | download |
| The lecture | Runs in your browser, nothing to install; no exercises or case this session | open |
| The lecture, as a PDF | Every slide, with the result of every code cell; for revising offline | download |
Running the notebooks locally
- Follow the setup guide once: Python 3.14, VS Code, the
Python extension, and the course's packages, installed from a notebook cell with
%pip install -r https://theill95.github.io/mlfin-2026/requirements.txt. - Put the notebook and a
data/folder in the same place, exactly as in the ZIP. - In VS Code, File → Open Folder and choose that folder. Not the file: the folder.
- Open the notebook, pick your Python when asked, and run the first cell.
data/ folder they download what they need from this repository. You
only need the CSVs if you want to work with no internet at all.
A note on the lectures
The interactive lectures are not in the ZIP. Their code cells run Python inside the browser, and that only works when the page is served over the web rather than opened from a file on your disk. It is a browser restriction, not a course one. So the slides are best used online, from the sessions page, where they always work and are always current.
For offline reading, every lecture is also a PDF with the result of every code cell: each session's table above has it, and the Exam info page has all thirteen in one place. Everything you actually write code in, the exercises and the case, is in the ZIP and works completely offline.