Tidy Finance with R

During the spring semester 2021 I designed a new course Advanced Empirical Finance: Topics and Data Science for the master students at KU. The course aims at providing a unified coding framework in R to tackle many (probably too many) common issues in empirical finance:

  • Portfolio allocation and backtesting
  • Portfolio sorts and asset pricing tests
  • Machine learning in empirical asset pricing
  • Volatility estimation
  • High frequency trading and econometrics

Along the course I collected my own R-code and curated some solutions for typical problems. Together with my colleagues Christoph Scheuch and Patrick Weiss we created an entire textbook: This book aims to lift this curtain on reproducible finance by providing a fully transparent code base for many common financial applications. We hope to inspire others in sharing their code publicly and taking part in our journey towards more reproducible research in the future.

We will keep on working on updating the document further in the future, but everybody is invited to take a look, make use of the code and - even better - to provide feedback on improvements or other interesting features.

The full book is available here, comments are very welcome.

We are grateful for any kind of feedback on every aspect of the book. So please get in touch with us via contact@tidy-finance.org if you spot typos, discover any issues that deserve more attention, or if you have suggestions for additional chapters and sections.

Assistant Professor in Finance

I pursue research questions related to market fragmentation, high frequency trading and big data in financial applications.