Agricultural Science Digest

  • Chief EditorArvind kumar

  • Print ISSN 0253-150X

  • Online ISSN 0976-0547

  • NAAS Rating 5.52

  • SJR 0.156

Frequency :
Bi-monthly (February, April, June, August, October and December)
Indexing Services :
BIOSIS Preview, Biological Abstracts, Elsevier (Scopus and Embase), AGRICOLA, Google Scholar, CrossRef, CAB Abstracting Journals, Chemical Abstracts, Indian Science Abstracts, EBSCO Indexing Services, Index Copernicus
Agricultural Science Digest, volume 41 issue 1 (march 2021) : 35-41

Autoregressive Integration Moving Average (ARIMA) Model for Prices of Selected Grains in the South West Nigeria

Taofik O. Dauda1,*, S. Tiamiyu-Ibrahim2
1Institute of Agricultural Research and Training, Obafemi Awolowo University, Moor Plantation, Ibadan, Nigeria.
2Department of Statistics, Federal College of Animal Health and Production Technology, Moor Plantation, Ibadan, Nigeria.
Cite article:- Dauda O. Taofik, Tiamiyu-Ibrahim S. (2020). Autoregressive Integration Moving Average (ARIMA) Model for Prices of Selected Grains in the South West Nigeria . Agricultural Science Digest. 41(1): 35-41. doi: 10.18805/ag.D-239.
Background: Price serves as signals of relative scarcity as well as abundance of a given agricultural product. Prices of agricultural products vary from month to month and even from day to day and this constitutes a source of risk to farmers whose livelihood depends on good pricing of their products.

Method: This study was conducted to identify pattern of price dynamics and to develop model for price dynamics of beans, yellow maize and local rice using monthly price data of grains from the National Bureau of Statistics (2006-2015). 

Result: The rk of the beans followed a regular decline ranging from 0.4035 to 1 while those (rk) of yellow maize and local rice follow non regular decline with the range 0.1448 – 1(yellow maize) and 0.2945 -1 (local rice) thus indicating that the data are non-stationary. The corrected Akaike information criteria (AICC) and other information obtained for the ARIMA1,2,2 were higher than those of ARIMA2,2,2. The AICC obtained for the ARIMA1,2,2 are 958.422 (beans), 1178.169 (yellow Maize) and 1211.778 (local rice). The ARIMA2,2,2 was thence favored above ARIMA1,2,2.
Price according to business dictionary is a value that will purchase a finite quantity, weight or other measure of goods or services or a value that is put to a product or service. Price is a result of activities including calculations, research and understanding as well as risk taking ability (Economic Times, 2019). Prices of agricultural products vary from month to month and even from day to day and this constitutes a source of risk to farmers whose livelihood depends on good pricing of their products. Prices also differ between various grades of products and also differ between alternative markets and it (price) serves as signal of the relative scarcity as well as abundance of a given agricultural product (Akintunde et al., 2012). Beans, maize and rice are among the staple grains that are highly valued in Nigeria (Akpan et al., 2014). The prices of these grains are also said to be highly heteroscedastic seasonally and market-wise (Gieri et al., 2015). Beans and these other grains are sensitive to weather condition variability and this thus makes their cultivation very difficult (Akintunde, 2012). This (sensitivity to weather condition) coupled with unfavorable price fluctuation of the commodities can frustrate farmers’ efforts and thus constitute a risk to farmers.

Previous study on time series analysis (Abu et al., 2015) has examined acreage response of soybean to price in Nigeria. Also, monthly price analysis of cowpea (Beans) and Maize in Akwa Ibom State, Nigeria (Akpan, et al., 2014), Forecasting of meteorological drought using ARIMA model (Karthika et al., 2017) and Hectrage Response of some selected cereal crops to price and non-price factors in Nigeria (Tahir, 2014) have being conducted.  These works nevertheless, there exist little or no known work on the price dynamics of the selected grains in the Southwest, Nigeria and for the period under study. The goal of time series analysis has been identification of systematic pattern and random noise as well as trend analysis (Montgomery, 1990). These two goals are important to strategic planning of food supply for ensuring food security of a nation. The practical application of the present study is therefore in the forecasting and modeling of prices of these grains for profit maximization and risk management by farmers as well as for strategic grain reserves planning. The objective of this study was therefore to identify pattern of price dynamics and to develop model for future price dynamics of beans, yellow maize and local rice.
Data for this study were obtained from the National Bureau of Statistics (NBS) formerly, Federal office of Statistics, Oyo State, Ibadan. The study area was the urban market of the South West Nigeria (Oyo, Ondo, Ogun, Osun, Lagos and Ekiti States) between the year 2006 and 2015.The South West Nigeria is one of the six geographical regions of the country and it falls between longitude 2°311 and 6°001 East and Latitude 6°211 and 8° 371N and cover a land area of 77,818 km2. The region is having boundary with Edo and Delta States in the East and in the North by Kwara and Kogi States while in the West it is bounded by the Republic of Benin and in the South by the Gulf of Guinea. The States were predominantly Yoruba States with other tribes found in large chunks and are largely agrarian in nature. The region has a tropical climate and bless with 2 usually distinct (wet and dry) seasons. The wet seasons last from April to October while the dry season last from November to March. Mean annual rainfall of the region falls between 1,000 to 3,000mm and mean temperature ranges from 21°C to 31°C.

The data obtained were subjected to descriptive statistics (mean, variance and standard error) and autocorrelation. Let Xt be a discrete time series or a process then the autocorrelation or lagged correlation is defined as the correlation of the process against a time shifted version of itself(Box and Jenikins, 1976).It is given as;
 
 
Where, x1 is the mean of the first N-1 observation and x2 is the mean of the last n-1 observation. x1 is the first N-1 which is xt,t = 1,2,3,4,…..N-1and x2 is the last N-1 which xt+1, t, 2,3,4,….N-1.
The ARIMA model otherwise depicted as ARIMA (p, g, q) is of general form;
 

 

Where
the price of the grain at time are the response variable at lag time t-1, t-2,... t-z; a1, a2...az   1, 2... z are coefficient of past variable at the lag time; are past errors and  are coefficient of past errors. This model is in line with general ARIMA model proposed by Box and Jenkins (1970).

Two (2) ARIMA models, ARIMA1,2,2 and ARIMA2,2,2 were investigated and their model statistics including the adjusted coefficient of determination which indicates the proportion of the variance in the dependent variable (Y) that is predicted or explained by the ARIMA model.  Four processes are involved in the use of ARIMA model for Time series data and include identification (of data trends), estimation (of the model coefficient), model checking for efficiency and forecasting (Assis et al., 2010). These 4 processes were employed in the current study.
Descriptive statistics of the price of the grains
 
The annual average price of the beans increases but not steadily over the years and ranged between N60.960 for 2007 and N251.110 for 2013. The variance ranged between 34.697 for 2010 and 689.687 for 2012 (Table 1). The average prices of yellow maize are non-regular and ranged from N40.399 (for 2008) to N135.768 for 2013. The variance however has a very wide range of 12.081 (for 2016) and 6948.16 for 2007. Mean price of the local rice was found to fall between N53.129 for 2006 and N207.384 for 2013 while the variances were from 1.077 for 2006 and 8527.77 for 2013 (Table 1). The implications of these results are:
 
1. The variability of the prices have high/wide margin with the rice having the highest of the margin.
2. Average annual prices of the beans were the highest while the average annual price of yellow maize were the least.
 
The average monthly prices of the beans returned an increasing trend for the first 9 months (January – September) of the year. It ranged between N138.094 and N158.329 for September (Table 2).The average monthly price of the beans for the remaining months dropped to N149.143 for December. The variance is generally very high and ranged between 6106.80 for May and 8745.75 for September. The average monthly price of yellow maize was generally low and ranged between N68.672 for February and N96.413 for November (Table 2). The variance is also generally high but lesser than that of beans and it ranged between 674.564 for October and 4968.15 for May. The average monthly price of rice ranged between N104.785 for January and N131.547 for June while the variance fall between 1793.39 for November and 11688.95 for May. The implications of the results are;
 
1. Bean had the highest average monthly price while yellow maize had the least average monthly price.
2. The monthly price (N) of the rice returned the highest variability.

The trend of the series plot established in the present work conflict with the time series plot of rice production in the entire Nigeria (Aina et al., 2015) which can be described a random series. This dissimilarity might have been caused by the difference in the study areas (South west and Nigeria) and parameters (price and production) of the two studies. The results of the visual analysis in the present study clearly depict non stationary of the price data and it is in line with Dickey and Pantula (2002).  Also, the non-stationary nature of the price of the grains in the present study is similar to Abu et al. (2015) for soybean acreage response to price fluctuation. It was maintained that if a series does not seem to have a constant mean and the plot of the estimated autocorrelations dies down very slowly with increasing j, then the series is non-stationary. Similarly, the hops of the time series might have been caused by naturally occurring phenomena like the Boko haram saga and other security challenge in the Country. Two phenomena have been identified for sudden hop in series plot and are naturally occurring phenomena and quasi-experiment (Chatfield, 2003). Similarly, price instability was established by the area of acreage allocation for soybean cultivation (Abu et al., 2015), political instability, oil price fluctuation, population growth and climate change (Mustapha and Culas, 2019). Nature of product, fluctuation of currency exchange rate and poor infrastructure were identified as causes of price fluctuation in Kilmanjaro, Tanzania (Huka et al., 2014).There existed an indication of food crisis in the series plots obtained and it is in conformity with Ikeokwu (2019) who maintained that Africa Countries are facing a worsening food crisis unseen in the last 30 years. In addition, the high/wide variability margin for the commodities’ price with the rice having the highest of the margin can be hinged on persistency of the price instability factors established by early authors. Also, Kassim (2012) established that consumer price instability can be linked with persistent factors such as season, input price changes, production and marketing technologies and consumer taste.
 
Visual analysis of price dynamics and correlelogram of the selected grains
 
Generally, the visual analysis of the series indicated that beans returned higher prices over the period while the yellow maize was the least (Fig 1). The visual analysis of the time plots of the grains (bean, yellow maize and local rice) returned an increasing cyclical trend for the period. It was however noticed that the series showed low trends for the first half of the period and later hop for the latter part of the period (Fig 1). The implication of the results is that the prices of the commodities rose up tangentially after some period of the study.  The results of the visual analysis of the price index of the beans indicated that beans’ price index was regular while those of yellow maize and local rice were random (Fig 2). The implication of the result is that price dynamics for both yellow maize and local rice are almost the same and thus followed a regular random pattern. The implication of this result is that the rate of change of the three commodities (beans, yellow maize and local rice).

The visual analysis of the correlogram for all the grains (Fig 3) showed that the autocorrelation, rk die down as the lag increases. It was also obtained that the rk for both local rice and yellow maize followed the same pattern while the rfor beans followed different pattern and was the highest at any of the lag. The rk of the beans followed a regular decline ranging from 0.4035 to 1 while those (rk) of yellow maize and local rice follow non regular decline with the range 0.1448- 1(yellow maize) and 0.2945 -1 (local rice). This indicates that as the period of the study increases, the relationships between the price of any of the commodities and the previous price decreases. Also, from the visual analysis, it is glaring that the data are non-stationary and thus would require differentiation for further analysis.

From the visual analysis, series plots obtained in the present study can be partitioned into two distinct parts, early and reduced price of the commodities and latter and increased commodities price period. The hop nature of the prices of the commodity in the latter period under study is not in conformity with the steady rise in the price of both commodities in the Northern Nigeria (Akanni, 2014). The hop of this time series data is however similar to average crop prices and percentage change in Africa obtained from FAOSTAT by Mustapha and Culas (2019).The ARIMA model components (particularly the intercept) revealed that the non-stationary nature of the initial data have been removed after the first differentiation based on the negative intercept obtained for all the models.
 
The ARIMA model components and statistics
 
The analysis of the autoregressive moving average model of the beans returned the model components that are not significantly different from zero except the first moving average (MA1 - Table 3). The t(113; 0.05) = 4.6 obtained for the MA1 is significant (P < 0.05) while that of other model components (0.29 = AR1; -1.06 = AR2; -1.28= MA2 and -0.2= intercept) were not significant. The standard errors of the estimates were generally low(less than unity) and ranged between 0.06 for the intercept and 0.295 for the AR1). For the yellow maize, the ARMA model components were al significant except the intercept. The t(113; 0.05) = 6.23, -3.7, 19.9 and 9.46 obtained respectively for AR1, AR2, MA1 and MA2 were significant (P < 0.05 - Table 3). The standard error of the ARMA model estimates fall between 0.016 for the intercept 0.102 for AR1. Similarly, all the model components of the ARMA model for the local rice except were significant. The t(113; 0.05) = 4.91, -2.18, 23.19 and 11.06 obtained for  AR1, AR2, MA1 and MA2 were significant (P < 0.05 - Table 3). The standard error of the ARIMA models components ranged between 0.021 for the intercept and 0.106 for AR1.

The model statistics for the ARMA2,2,2 model indicated that high standard error ranging from 20998.333 (beans) to 138609.41 (local rice) and high variance (959.471-1187.905) were obtained. The adjusted R2 of the model are 0.967, 0.46 and 0.660 for beans, yellow maize and local rice. Also, the corrected Akaike information criteria (AICC) obtained were 959.471, 1156.716 and 1187.905 for bean, yellow maize and local rice. The model prediction for the beans followed a similar trend (of increasing cyclical but non regular trend) with the original prices (Fig 4). This indicated a parsimonious prediction and it is in line with the adjusted coefficient of determination (R2 = 0.967) obtained for the model. The ARMA2,2,2 model prediction for yellow maize also has similar random but increasing trend with the original price data (Fig 5). The adjusted coefficient of determination (R2 = 0.469) obtained for the model is also an indication of good prediction though lesser than that of the model for the beans. The visual analysis of the model prediction for the local rice returned a similar cyclical but non regular increasing trend for the price of rice (Fig 6). The model statistics for the ARMA1,2,2 model on the other hand gave a higher variance of the estimates including 185.764, 1179.751 and 1568.693 for bean prices, yellow maize prices and local rice prices respectively. Similarly, the corrected Akaike information criteria (AICC) and other information obtained for the ARIMA1,2,2 were higher than those of ARIMA2,2,2. The AICC obtained for the ARIMA1,2,2 are 958.422 (beans), 1178.169 (yellow maize) and 1211.778 (local rice - Table 5).

The implication of these results is that each of the ARMA2,2,2 model can sufficiently predict the price of the commodities at any period of time than the ARMA1,2,2 model and that this prediction are done at different level of reliability. The parsimony of the ARIMA2,2,2 model arrived at in this study is similar to Assis et al., (2010) which established that Mixed ARIMA model outperformed other investigated models for cocoa bean price forecasting.  It was also found suitable for forecasting food grains production in Bangladesh (Lasker et al., 2013). ARIMA2,2,2 was found to outperformed ARIMA1,2,2 or of any other order though with the AICC far more than those of Kirimi (2016). This may be hinged on the nature of the data in both studies (Present study and Kirimi, 2016). GARCH model was however preferred to ARIMA model in the forecasting of weekly price of green gram (Pani et al., 2019). This difference might have been due to the fact that pricing in each study case might be affected by disparate factors.
The grain deficit of the nation (Nigeria) in conclusion has been established using behavioural model in previous study (Akanni, 2014). Efficient utilization of the instrument of the time series analysis results in the current study and similar studies can be an asset in optimum grain production for self-sufficiency in food production especially in this era of rice importation ban. It is therefore recommended that farmers should be guided based on the grain price dynamics on grain production for profit maximization and the grain reserve body should utilize the price regime dynamics for adequate grain reserve activities.

  1. Abu, O., Olaide, A.R. and Okwoche, V.A. O. (2015). Acreage Response of Soybeans to Price in Nigeria. European Journal of Physical and Agricultural Sciences. 3: 22-31

  2. Aina, I.V., Ayinde, O.E. and Falola, A. (2015) Effect of Price Variation on Rice Production in Nigeria (1970 – 2011). Proceedings of the 29th International Conference of Agricultural Economist (ICAE) held between 8th – 14th August, 2015 at Milan, Italy, 15pp.

  3. Akanni, K.A. (2014) Agricultural Price Policy, Consumer Demand and Implications for Household Food Security in Nigeria. International Journal of Food and Agricultural Economics. 2: 121-132.

  4. Akintunde O.K., Yusuf S.A., Bolarinwa A.O. and Ibe R.B. (2012). Price Formation and Transmission of Staple Food Stuffs in Osun State, Nigeria. ARPN Journal of Agricultural and Biological Science. 7: 699 - 708

  5. Akpan , S.B., Udoh, E.J. and Udo, U.J. (2014). Monthly Price Analysis of Cowpea (Beans) and Maize in Akwa Ibom State, Southern Nigeria. International Journal of Food and Agricultural Economics. 2: 65-86

  6. Assis, K., Amran, A., Remali, Y. and Affendy, H. (2010). A Comparison of Univariate Time Series Methods for Forecasting Cocoa Bean Prices. Trends in Agricultural Economics. 3: 207 - 215.

  7. Box, G.E.P. and Jenkins, G.M. (1976) Time Series Analysis: Forecasting and Control. San Francisco: Holden-Day. 328pp.

  8. Chatfield, C., 2003, The analysis of time series, an introduction, sixth edition: New York, Chapman and Hall/CRC Press, sixth edition.

  9. Dickey, D.A. and Pantula, S.G. (2002). “Determining the Order of Differencing in AR Processes.” Journal of Business Economics Statistics. 20: 18-24.

  10. Economic Times (2019). Definition of Pricing Strategies. An http documents available at https://www.google.com/amp/s/m.economictimes.com/definition/pricing-strategies/amp and assesed on 20th November, 2019, 6pp.

  11. Gieri, A.A, Salihu M. and Salamatu, U. (2015). Determination of Conduct, Performance and Structure of Cowpea Marketing in Yola North and South Local Government Areas of Adamawa State, Nigeria. American Research Journal of Agriculture. 1(2): 23-31.

  12. Huka, H., Ruoja, C. and Mchopa, A. (2014). Price Fluctuation of Agricultural Products and its Impact on Small Scale Farmers Development: Case Analysis from Kilimanjaro Tanzania. European Journal of Business and Management. 6: 155-161.

  13. Ikeokwu N. 2019. The Global Food Crisis and the Challenge to Nigeria. The Nigerian Village Square. An http document available at http://www.nigeriavillagesquare.com. Assessed on Wednessday, 20th November, 2019, 21pp

  14. Kassim, A.A. (2012). Economics of Marketing of Food Grains in South Western Nigeria. economía Mexicana nuevaépoca. 21(2): 373-390.

  15. Karthika, M., Krishnaveni, V. and Thirunavukkarasu, (2017). Forecasting of meteorological drought using ARIMA model. Indian Journal of Agricultural Research. 51(2): 103-111

  16. Kirimi, J. (2016). Modelling the Volatility of Maize Prices Using Autoregressive Integrated Moving Average Model. Mathematical Theory and Modeling. 6(6): 143-149

  17. Lasker, E.A., Masudul, Islam, Md. Rashed K. and Faruque, A. (2013). Forecasting production of food grain using ARIMA model and its requirement in Bangladesh. J.Mech.Cont. and Math. Sci. 7: 1056-1066

  18. Montgomery, D.C. (1990). Forecasting and Time Series Analysis”, 2nd edition, New York: McGRAW-Hill, Inc, 569pp.

  19. Mustapha, U.M. and Culas, R.J. (2019). Causes, magnitude and consequences of price variability, JEL Codes: Q15, Q16, Q18. Australian Conference of Economists. An http document assessed at https://www.murdoch.edu.au/School-of-Business-and-Governance/_document/Australian-Conference-of-Economistsonon.17th November, 2019.

  20. Pani, R, Biswal S.K. and Mishra, U.S. (2019) Green gram weekly price forecasting using time series model. Espacios. 40(7): 15 - 19

  21. Tahir, H.M. (2014). Hectrage Response of Some Selected Cereal Crops to Price and Non-Price Factors in Nigeria (1983-2008). Research on Humanities and Social Sciences. Vol.4: 44-52

Editorial Board

View all (0)