Skip to content

Machine Learning for Finance: applying ML models to financial time series, forecasting, portfolio optimization, option pricing, and trading strategies using Python

Notifications You must be signed in to change notification settings

luciasauer/ml4finance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

36 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Machine Learning for Finance

This repository contains coursework for the Machine Learning for Finance class, part of the Masterโ€™s in Data Science at the Barcelona School of Economics.

๐Ÿ‘ฅ Collaborators:

  • Lucia Sauer โ€” Economist & Data Scientist
  • Julian Romero โ€” Economist & Data Scientist

We explore the intersection of machine learning and finance through hands-on projects involving forecasting, algorithmic trading, portfolio optimization, and option pricing.

๐Ÿ“š Topics Covered

  • ๐Ÿฆ Financial market instruments and data exploration
  • ๐Ÿ“ˆ Financial time series modeling: ARMA, GARCH, etc.
  • ๐Ÿง  Neural Networks (MLP, RNN, LSTM) and Gaussian Processes
  • ๐Ÿ“ฐ Sentiment analysis & algorithmic trading
  • ๐Ÿ’ผ Portfolio optimization with ML & heuristics
  • โš–๏ธ Risk modeling with alternative data
  • ๐Ÿงฎ Option pricing: Black-Scholes, binomial models, ML-based methods
  • ๐Ÿค– Reinforcement learning for financial applications

๐Ÿ› ๏ธ Setup

We use uv for lightweight, fast dependency management and environment setup. Make sure you have it installed in your computer following the official documentation.

Install dependencies:

uv sync

๐Ÿ“ Structure

โ”œโ”€โ”€ hw1/
โ”‚   โ”œโ”€โ”€ data/                           # Raw and converted datasets
โ”‚   โ”œโ”€โ”€ notebooks/                      # Folder with notebooks and ouputs
โ”‚   โ”‚   โ”œโ”€โ”€ tables/                     # Folder with .tex table outputs
โ”‚   โ”‚   โ”œโ”€โ”€ data_converter_rds_csv.R    # Script to convert .RDS to .csv
โ”‚   โ”‚   โ”œโ”€โ”€ part_1_2.ipynb              # Notebook with Ex. 1 and 2
โ”‚   โ”‚   โ””โ”€โ”€ part_3_4.ipynb              # Notebook with Ex. 3 and 4
โ”‚   โ”œโ”€โ”€ HW1_Arratia25bse.pdf            # Homework 1 assignment
โ”‚   โ””โ”€โ”€ ml4finance_hw1.pdf              # Homework 1 final report
โ”œโ”€โ”€ .gitignore                          # Files ignored in the repository
โ”œโ”€โ”€ .python-version                     # Python version for environment
โ”œโ”€โ”€ pyproject.toml                      # uv project metadata and dependencies
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ uv.lock                             # uv dependencies versions 

๐Ÿ“Œ Notes

This is an academic project โ€” models and strategies are for learning purposes only and not financial advice.

About

Machine Learning for Finance: applying ML models to financial time series, forecasting, portfolio optimization, option pricing, and trading strategies using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages