EconPapers    
Economics at your fingertips  
 

PDSim: A Shiny App for Simulating and Estimating Polynomial Diffusion Models in Commodity Futures

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

Papers from arXiv.org

Abstract: PDSim is an R package that enables users to simulate commodity futures prices using the polynomial diffusion model introduced in Filipovic & Larsson (2016) 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 (Schwartz & Smith, 2000) is also available within this package for both simulation and calibration. The package is validated through several tests, including replication of the results in Schwartz & Smith (2000), unit testing of the coverage rate, and verification of the outputs of the main functions.

Date: 2024-09, Revised 2025-10
References: View references in EconPapers View complete reference list from CitEc
Citations:

Published in Journal of Open Research Software, 13: 21 (2025)

Downloads: (external link)
http://arxiv.org/pdf/2409.19385 Latest version (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:arx:papers:2409.19385

Access Statistics for this paper

More papers in Papers from arXiv.org
Bibliographic data for series maintained by arXiv administrators ().

 
Page updated 2025-10-07
Handle: RePEc:arx:papers:2409.19385