Weekly cotton prices and weather data for Perambalur and Salem districts, Tamil Nadu, India (2010–2025), with forecasting code
Description
This dataset supports a study of whether weather information improves short-term cotton price forecasts in Tamil Nadu, India. It contains weekly modal prices of seed cotton (kapas, ₹ per quintal) for the regulated markets of Perambalur and Salem districts from January 2010 to December 2025. The prices come from AGMARKNET (Directorate of Marketing and Inspection, Government of India). They are matched with weekly maximum and minimum temperature (°C), relative humidity at 2 m (%) and precipitation (mm day⁻¹) from the NASA POWER daily archive, averaged to the same weeks. Weeks 1–783 (2010–2024) were used for model estimation and testing, and the 52 weeks of 2025 form a hold-out sample. For Salem, most prices from 2010 to 2023 are monthly values repeated across weeks, and 2025 prices are identical in the two districts as published in the source. The Python code fits time-delay, LSTM, GRU and GRU–LSTM networks with and without weather inputs. It also fits random-walk, seasonal-naive, ARIMA and ARIMAX benchmarks and runs the Diebold–Mariano tests reported in the article
Files
Steps to reproduce
1. Install Python 3.10+ with pandas, numpy, statsmodels, scikit-learn and TensorFlow. 2. Place the two district data files in the data folder. 3. Run the preprocessing script to build weekly series and lagged weather inputs. 4. Run the model scripts to estimate each network with and without weather inputs and the benchmarks, using the July 2023–December 2024 test window, rolling-origin evaluation for 2021–2024 and the 2025 hold-out. 5. Run the evaluation script to compute RMSE, MAE and MAPE and the Diebold–Mariano tests.
Institutions
- Tamil Nadu Agricultural UniversityTamil Nadu, Coimbatore