Skip to content

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

Watch the video

โš™๏ธ Try it yourself:

๐Ÿ‘‰ WeDeAn is open source and runs in a Docker container.