PDSim: a shiny app for simulating and estimating polynomial diffusion models in commodity futures

Peilun He*, Nino Kordzakhia, Gareth W. Peters, Pavel V. Shevchenko

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

8 Downloads (Pure)

Abstract

PDSim is an R package that enables users to simulate commodity futures prices using the polynomial diffusion model introduced in Filipović and Larsson [10] through both a Shiny web application and R scripts. For user-supplied data, a standalone R routine has been developed to provide joint estimation of state variables and model parameters via the Extended Kalman Filter (EKF) or Unscented Kalman Filter (UKF). With its user-friendly interface, PDSim makes the features of simulations and estimations accessible. To date, it is the only package specifically designed for the simulation and estimation of the polynomial diffusion model. The Schwartz-Smith two-factor model [22] is also available within this package for both simulation and calibration. The package is validated through several tests, including replication of the results in [22], unit testing of the coverage rate, and verification of the outputs of the main functions.
Original languageEnglish
Article number21
Pages (from-to)1-11
Number of pages11
JournalJournal of Open Research Software
Volume13
Issue number1
DOIs
Publication statusPublished - 3 Oct 2025

Bibliographical note

Copyright the Author(s) 2025. Version archived for private and non-commercial use with the permission of the author/s and according to publisher conditions. For further rights please contact the publisher.

Keywords

  • polynomial diffusion model
  • Schwartz-Smith model
  • commodity futures
  • two-factor commodity modelling
  • financial simulation
  • Polynomial diffusion model

Fingerprint

Dive into the research topics of 'PDSim: a shiny app for simulating and estimating polynomial diffusion models in commodity futures'. Together they form a unique fingerprint.

Cite this