- 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.

## 1 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.

## 2 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].

## 3 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.

### 3.1 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

### 3.2 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

### 3.3 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

## 4 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.

### 4.1 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\).

### 4.2 Simulation results with the parameter estimations of *Î»*

#### 4.2.1 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).

#### 4.2.2 RSS3

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

#### 4.2.3 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 *Î»*.

## 5 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