WeDeAn โ The Weather Derivatives Analyzer
Back in 2018, I wrote my bachelor's thesis on weather derivatives - exploring how temperature data can be used to price financial contracts that hedge against extreme weather.
At that time, I built the prototype entirely in Excel. ๐
Two years later, when I started learning Python, I revisited the project and created my first simple GUI using Tkinter. ๐งโ๐ป
Now, a few years (and many lines of code) later, I've revisited this old project with new skills: I rebuilt the tool as a web application using Streamlit and containerized it with Docker to make it easily accessible and deployable. ๐
๐น What WeDeAn does:
WeDeAn connects weather data from the German Weather Service (DWD) with financial derivativesโtools used by energy companies, utilities, and insurers to manage risks from temperature fluctuations.
๐ In short: It converts temperature data into data-driven valuations for weather derivatives.
Key features:
- ๐ Visualizes historical weather trends (temperature, sunshine, rainfall)
- โ๏ธ Calculates Heating Degree Days (HDD) - how cold a season was
- โ๏ธ Calculates Cooling Degree Days (CDD) - how hot a season was
- ๐ฐ Estimates fair values of HDD/CDD options using burn analysis - a data-driven pricing approach
๐ก Why this matters:
Energy traders, utilities, and insurers rely on weather derivatives to hedge against weather-driven demand or revenue swings.
๐ง How it works:
- 1๏ธโฃ Load historical weather data from a chosen DWD station
- 2๏ธโฃ Compute how hot or cold each year was (HDDs & CDDs)
- 3๏ธโฃ Simulate how an option based on that weather would have performed historically
- 4๏ธโฃ Estimate a fair value for that option based on those simulated payouts
Watch the demo
โ๏ธ Try it yourself:
๐ WeDeAn is open source and runs in a Docker container.