The concern of the citizens of countries such as Honduras, Guatemala, Nicaragua, El Salvador or Venezuela about the price of the Basic Food Basket is very high due to the influence that climatic or political factors have on it..
It is also for the non-profit organizations with which we collaborate, who wonder how to know the method that predicts the price of food and its evolution in order to be able to make decisions regarding the provision of aid to families whose economic situation makes it difficult for them to buy these basic foodstuffs.
At GIS4tech we have been working on the process of predicting the prices of the Basic Food Basket in Venezuela using as data the reports of CENDA (Documentation and Analysis Center for Workers), from the Central Bank of Venezuela and . "DolarTodaybenchmark in exchange rates.
The Basic Food Basket is the set of different foods expressed in quantities to satisfy the calorie needs of an average household, composed of dairy products, meats, eggs, legumes, cereals, sugars, fats, vegetables and fruit.
The formats "Scraping PDF Data,andScraping HTML o Franja AnimadaThe "Canasta Básica Alimentaria" reports the prices of the Basic Food Basket in Dollars (US), but the Web reports have the prices in Bolivars, which implies that an exchange rate must be applied to make the transformation to Dollars (US), for which another Web Scraping of the page was carried out. "DolarToday"and used historical data from the Central Bank of Venezuela (BCV):
BCV data was used to reconstruct the time series in the period where CENDA data was available prior to 2021 and DolarToday data from 2021 onwards.
With this, we were able to obtain the minimum amount of data needed to complete the dollar price data series for previous years. These are essential to create this time series and reflect the variations in food prices over time, and in turn, to predict future prices of the Basic Food Basket by applying a time series algorithm. Machine Learning Techniques “ARIMA"Integrated Autoregressive Moving Average Model, which is used to find patterns to predict data:
We incorporate to the variables already included in the algorithm ARIMA una variable externa composed of people's searches of the Basic Basket on the Internet, as reflected in Google Trends from 2010 to the date we developed this process to achieve a precise and accurate price prediction, reflected in the following image; searches are correlated with the prices of the Basic Food Basket:
Next, a new algorithm was trained incorporating the variable represented by the Google Trends keyword searches discussed above. The result shows minimum average prediction error of $4.88 (US), which indicates that the algorithm is able to reproduce price trend changes with a low margin of error:
After this, we proceeded to the actual prediction of the prices of the Basic Food Basket for the period October 2021 - October 2022 based on the historical series and Google Trends:
Finally, the prices of the Basic Food Basket for the next 30 days were predicted based on the historical series and on Google Trends:
Correo electrónico: info@gis4tech.com