Preface

These pages are my study notes following Tidy Finance, an open-source book that teaches empirical and quantitative finance through transparent, reproducible code in both R and Python. Each chapter pairs a financial idea with the code that implements it, end to end — from downloading data to forming portfolios to running regressions.

What the book is for

The premise is that financial research should be reproducible: anyone should be able to take the code, run it, and obtain the same results. To that end the book favors a small, consistent toolset (the tidyverse in R, pandas/numpy in Python), a tidy-data discipline (one row per observation, consistent keys), and a companion tidyfinance package that wraps common data downloads behind a single call.

How these notes are organized

The chapters follow the book's structure, grouped into parts:

Each page explains the idea in my own words and reproduces the book's R and Python code (toggle at the top of code-bearing chapters), with attribution to the source.


Study notes following the Tidy Finance curriculum by Scheuch, Voigt, Weiss, and Frey. Prose is my own; reproduced code is licensed CC BY-NC-SA 4.0.