- Research
- Open Access
- Published:

# An application of Ornstein-Uhlenbeck process to commodity pricing in Thailand

*Advances in Difference Equations*
**volume 2017**, Article number: 179 (2017)

## Abstract

In this paper, we examine an application of Ornstein-Uhlenbeck process to commodity pricing in Thailand. Prices of Tapioca Starch, Ribbed Smoke Sheet no. 3, and Thai Hom Mali Rice are investigated. We use three parameter estimation methods: least squares estimation, maximum likelihood estimation, and jackknife estimation in order to find the best estimation for the model. Jackknife technique is the most appropriate estimation for our commodity pricing model, which provides the least sum-squared error of commodity prices.

## Introduction

In the economics, agricultural commodity prices have an important role due to the cost of production and services. Bayramoglu [1] studied the relationship between agricultural prices and agricultural employment in Turkey by using the VAR method. Results show that there is a relationship between agricultural prices and agricultural employment. Qiangand and Ying [2] investigated the relationship between China’s oil markets and other commodity markets. The results show that China’s fuel oil market is influenced by international oil market and has effect on China’s other commodity markets. Price of given commodity can represent the supply and demand for that commodity, for example, the demand of rice will be low when the price is high. Thus the mathematical model used to analyze the relationship should reflect this difference [3].

In recent years, the commodity markets are rapidly expanding and more interesting to many investors in the financial world. The variety of the future constructs and underlying commodities are alternative choices for investors. There are some important characteristics of commodity price; for example, spot and future prices are mean reverting [4]. Some behaviors of economic variables may be described by mean-reversion process. Since the process suggests that the price or returns usually moves back toward the mean or average in the long run.

The most popular stochastic process that describes the characteristic of the process to drift toward the mean is the Ornstein-Uhlenbeck process [5]. Here, we pay attention to study the Ornstein-Uhlenbeck process and its applications. Many researchers study this area. Ribeiro and Hodges [6] introduced a new model by adding two factors, spot price and convenience yield. Paschke and Prokopczuk [7] constructed the continuous-time autoregressive moving-average (CARMA) model in which the convenience yield follows an Ornstein-Uhlenbeck-type process of pricing the crude oil future market. In this paper, we investigate the Ornstein-Uhlenbeck process behaviors affecting commodity pricing and applying the Ornstein-Uhlenbeck model to pricing the Thai commodity market. There are three types of agricultural future contracts that we are investigating: Tapioca Starch (TS), Ribbed Smoke Sheet no. 3 (RSS3), and Thai Hom Mali Rice 100% grade B (BHMR).

In this research, the analysis of parameters of the Ornstein-Uhlenbeck process are focused upon. The parameter estimation methods we are applying are least squares estimation, maximum likelihood estimation, and maximum likelihood with jackknife estimation.

In this research paper, the content is organized as follows: in the next section, we describe the Ornstein-Uhlenbeck process. Then we apply the parameter estimation technique. After that, we discuss the simulation results of the Ornstein-Uhlenbeck process and parameter estimations. The last section includes conclusion and discussion of the future work.

## The Ornstein-Uhlenbeck process

The Ornstein-Uhlenbeck process is the stochastic process that is stationary and continuous in probability [5, 8]. Moreover, it is a process that describes the characteristics of the process that drifts toward the mean, a mean-reverting process. The stochastic differential equation (SDE) for the Ornstein-Uhlenbeck process [5, 9] is given by

where *λ* is the rate of mean reversion, *μ* is the long-run mean, *σ* is the volatility of the process, which all are strictly positive, and \(W_{t}\) denotes the Wiener process.

The stochastic differential equation (1) can be discretized and approximated by

where Δ*t* is acceptably small, and \(\Delta W_{t}\) are independent identically distributed Wiener process. We can use this formula to simulate the long-term expected value or commodity prices; see Smith [10].

## Parameter estimations

To estimate the parameters of an observed Ornstein-Uhlenbeck process, we use three techniques: least squares estimation, maximum likelihood estimation, and jackknife technique, which may be described as follows.

### Least squares estimation

Smith [10] suggested that (2) may be compared to the regression

where *ϵ* is an iid random term. These yields are related as follows:

where \(\operatorname{sd}(\epsilon)\) is the standard deviation of *ϵ*. By rearranging these equations we have

and

### Maximum likelihood estimation

Van den Berg [11] stated that the conditional probability density function of \(S_{t+1}\) is given by

and the conditional probability density of an observation \(S_{i+1}\) given the previous observation \(S_{i}\), with *δ* being time step, is given by

where

The log-likelihood function of an observation \((S_{0},S_{1},\dots,S_{n})\) is

The first-order conditions for maximum likelihood estimation are required and set equal to zero:

By solving these equations Van den Berg [11] showed that

where

and

### Jackknife technique

Jackknife estimation was proposed to reduce the bias by Phillips and Yu [12]. Given the total number *T* of the whole sample of observations, the observations may be divided into *m* subsamples. The estimation can be simulated by

and

## Simulation result and discussion

This section presents the simulation results of the preceding methodology by using the entire samples that are collected from the real market data from the Agricultural Futures Exchange of Thailand (AFET) consisting of daily end prices (\(\Delta t = 1/252\)) from years 2005-2007, 2004-2007, and 2009-2012 for Tapioca Starch (TS), Ribbed Smoke Sheet no. 3 (RSS3), and grade B Thai Hom Mali Rice 100% (BHMR), respectively. See Figure 1.

We use the statistics tools to obtain *λ*, *μ*, and *σ* given in Table 1.

Then we simulate the future price with the Ornstein-Uhlenbeck process by using a Matlab code written by Smith [10]. The results are shown in the figures below.

Figures 2(a)-(c) show the simulation results for the daily price for BHMR, RSS3, and TS, respectively. Figure 2(a) and Figure 2(c) show the BHMR future prices with mean 29.39 and TS future prices with mean 8.4639, exhibiting mean reversion with \(\lambda=3.00\) and 4.05, respectively. Since RSS3 has the mean of 66.95 and \(\lambda=0.60\), Figure 2(b) shows high volatility, giving lower *λ*. So, the future prices of RSS3 follow a slow mean-reversion process. However, the graphs of simulation with Ornstein-Uhlenbeck process show that the mean reversion is faster than the empirical graphs above. Next, we need to estimate the parameters in Ornstein-Uhlenbeck process by three techniques. The outputs of the parameter estimations compared with known parameters are shown in the following tables.

From the results shown in Table 2, Table 3 and Table 4, the jackknife technique is accurate for *λ̂* and *μ̂* in BHMR. Estimations of *σ̂* are very poor in BHMR and RSS3, but the maximum likelihood estimation of *σ̂* in TS is close to the actual *σ*. To estimate *λ̂* and *μ̂* in RSS3, the least squares regression and maximum likelihood techniques are suggested, but they are not the best techniques since they give the estimates quite far from the actual values. For TS product, estimates of *λ̂* are relatively poor. However, the parameter estimation techniques may depend on the behavior of the commodity prices.

### Behavior with weak mean reversion

We have simulated the stochastic behavior of commodity price with mean reversion equal to 1 (\(\lambda=1\)) to observe the behavior of weak mean reversion. The result is shown below.

In Figure 3, the simulation results show that tendency of BHMR future price; in Figure 3(a), we see reversion to the mean (\(\mu=29.39\)). However, the future prices of RSS3, Figure 3(b), and TS, Figure 3(c), are oscillatory and may not revert to their respective means \(\mu=66.95\) and \(\mu=8.4639\). The weakness test shows that mean-reversion parameters in RSS3 and TS have weaknesses when we use \(\lambda=1\).

### Simulation results with the parameter estimations of *λ*

#### BHMR

In Figure 4, the predictions of BHMR show that future prices become more mean-reverting as the value of *λ* increases. Least squares regression and maximum likelihood estimation give the same results in mean reversion parameter, so they both give the same simulation results as that of Ornstein-Uhlenbeck process, seen in Figure 4(a) and Figure 4(b).

#### RSS3

The RSS3 future price oscillates. Figure 5 shows that prices are slightly mean reverting with low *λ*.

#### TS

From the simulation results in Figure 6(c) we observe that the TS future prices tend to revert to the mean (\(\mu= 8.4639\)) when we use the jackknife technique to estimate mean reversion (*λ*).

For parameter estimation, least squares regression and maximum likelihood estimation give the same mean reversion value up to 4 decimal places (*λ*). The tendency of mean reversion process depends on the value of *λ*. When the value of *λ* is high, the prices show higher tendency to revert the drift toward the mean.

In this work, we used the sum squared error to test our model when we used the three techniques to estimate *λ*. In Table 5, we can see that the jackknife technique is appropriate to estimate *λ* for BHMR and RSS3 pricing, whereas TS pricing has a good fit when either least squares regression or maximum likelihood is used to find the parameter estimation of *λ*.

## Conclusion

We have presented the use of Ornstein-Uhlenbeck process in pricing Thai commodity and the parameter estimations with least squares estimation, maximum likelihood estimation, and jackknife technique. The pricing models simulated by Matlab shows the trend of the commodity prices toward the mean. So, we can predict the commodity price in the future market by using the method of the Ornstein-Uhlenbeck process. In the parameter estimation, the jackknife technique can be used to reduce the bias of *λ* estimation. We discover that, in TS product, parameter estimations are close to the real values, but parameter estimation in other products are not very good. For future studies, to improve the methodology, we will consider the influence of economic factors, such as inflation rate, and develop the Ornstein-Uhlenbeck process that incorporates these factors.

## References

Bayramoglu, AT: The impact of agricultural commodity price increases on agricultural employment in Turkey. Proc., Soc. Behav. Sci.

**143**, 1058-1063 (2014)Qiang, J, Ying, F: How do China’s oil market affect other commodity markets both domestically and internationally. Finance Res. Lett.

**19**, 247-254 (2016)Tome, WG, Peterson, HH: Risk management in agricultural market: a review. J. Futures Mark.

**21**(10), 953-985 (2001)Routledge, BR, Seppi, DJ, Spatt, CS: Equilibrium forward curves for commodities. J. Finance

**55**(3), 1297-1338 (2000)Uhlenbeck, GE, Ornstein, LS: On the theory of the Brownian motion. Phys. Rev.

**36**, 823-841 (1930)Ribeiro, DR, Hodges, SD: A two-factor model for commodity prices and futures valuation. EFMA 2004 Basel Meetings Paper (2004)

Paschke, R, Prokopczuk, M: Commodity derivatives valuation with autoregression and moving average in the price dynamics. ICMA Centre Discussion Papers in Finance DP2009-10 (2009)

Wand, MC, Uhlenbeck, GE: On the theory of the Brownian motion II. Rev. Mod. Phys.

**17**, 323-342 (1945)Doob, JL: The Brownian movement and stochastic equations. Ann. Math.

**43**, 351-369 (1942)Smith, W: On the simulation and estimation of mean-reverting Ornstein-Uhlenbeck process: especially as applied to commodities markets and modelling (2010)

Calibrating the Ornstein-Uhlenbeck (Vasicek) model. http://www.sitmo.com/?page_id=93

Phillips, PCB, Yu, J: Jackknifing bond option prices. Rev. Financ. Stud.

**18**(2), 707-742 (2005)

## Acknowledgements

Centre of Excellence in Mathematics, Bangkok, Thailand, and Matlab code supports from William Smith are acknowledged.

## Author information

### Authors and Affiliations

### Corresponding author

## Additional information

### Competing interests

The authors declare that they have no competing interests.

### Authors’ contributions

All authors read and approved the final manuscript.

### Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.

## About this article

### Cite this article

Chaiyapo, N., Phewchean, N. An application of Ornstein-Uhlenbeck process to commodity pricing in Thailand.
*Adv Differ Equ* **2017, **179 (2017). https://doi.org/10.1186/s13662-017-1234-y

Received:

Accepted:

Published:

DOI: https://doi.org/10.1186/s13662-017-1234-y

### Keywords

- Ornstein-Uhlenbeck process
- stochastic process
- parameter estimation
- commodity pricing