Term Structure N-Factor Commodity Pricing Models
Commodity pricing models are (systems of) stochastic differential equations that are utilized for the valuation and hedging of commodity contingent claims (i.e. derivative products on the commodity) and other commodity related investments. Parameters of commodity pricing models are estimated through maximum likelihood estimation, using available term structure futures data of a commodity. 'NFCPM' provides a framework for the modeling, parameter estimation, probabilistic forecasting, option valuation and simulation of commodity prices through state space and Monte Carlo methods, risk-neutral valuation and Kalman filtering. 'NFCPM' allows the commodity pricing model to consist of n correlated factors, with both random walk and mean-reverting elements. Commodity pricing models that capture market dynamics are of great importance to commodity market participants in order to exercise sound investment and risk-management strategies. The n-factor commodity pricing model framework was first presented in the work of Cortazar and Naranjo (2006) . Examples presented throughout 'NFCPM' replicate the two-factor crude oil commodity pricing model presented in the prolific work of Schwartz and Smith (2000) . Kalman filtering in 'NFCPM' is performed using sequential processing through the 'FKF.SP' package to optimise computational efficiency. Parameter estimation of n-factor models is performed using genetic algorithms through the 'rGenoud' package to ensure a global maximum is reached during maximum likelihood estimation.
Primary features of 'NFCPM' package include:
Parameter estimation of commodity pricing models through state space methods, Kalman filtering and maximum likelihood estimation.
Analytic valuation of European call and put option prices under estimated commodity pricing models
Probabilistic forecasting and Monte Carlo simulation of future commodity price paths.
You can install the released version of TSCPM from CRAN with:
install.packages("NFCPM")
And the development version from GitHub with:
devtools::install_github("TomAspinall/NFCPM")
which contains source code for the package starting with version 0.1.0.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.