Wind speed prediction in some major cities in Africa using Linear Regression and Random Forest algorithms
Keywords:
Energy Generation, Atmospheric Parameters, Statistical Models, Machine Learning Algorithms, African StationsAbstract
Globally, wind energy if properly harnessed, could serve as a source of energy generation in Africa. This study compared the performance of two Machine Learning (ML) algorithms (Linear regression and Random Forest) in predicting wind speed in five major cities in Africa (Yaoundé, Pretoria, Nairobi, Cairo and Abuja). Wind data were collected between January 1, 2000, and December 31, 2022, using the Solar Radiation Data Archive. The data preprocessing was carried out with 80% of the data used for training and 20% for validation. The performance of these ML algorithms was evaluated using Mean Square Error (MSE), Root Mean Square Error (RMSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE) and coefficient of determination (R2). The result shows that Nairobi (3.814795 m/s) closely followed by Cairo (3.606453 m/s) has the highest mean wind speed while Yaoundé (1.090512 m/s) has the lowest. Based on the performance metrics used, the two Machine Learning algorithms were competitive. Still, the Linear Regression (LR) algorithm outperformed the Random Forest Algorithm in predicting wind speed in all the selected major African cities. In Yaoundé (RMSE = 0.3892, MAE= 0.3001, MAPE =0.5030), Pretoria (RMSE=1.2339, MAE=0.9480, MAPE=0.7450) Nairobi (RMSE= 0.4223, MAE =0.6499, MAPE =0.1872), Nairobi (RMSE=0.6499, MAE=0.5171, MAPE =0.1872), Cairo (RMSE =1.0909, MAE =0.8544, MAPE =0.3541) and Abuja (RMSE = 0.70245, MAE =0.5441, MAPE= 0.4515) the Linear regression algorithms was found to outperformed Random Forest Regression. Therefore, the Linear regression algorithm is more reliable in predicting wind speed compared with the Random Forest regression.
Published
How to Cite
Issue
Section
Copyright (c) 2024 Timothy Kayode Samson, Francis Olatunbosun Aweda

This work is licensed under a Creative Commons Attribution 4.0 International License.
How to Cite
Similar Articles
- Segun L. Jegede, Adewale F. Lukman, Kayode Ayinde, Kehinde A. Odeniyi, Jackknife Kibria-Lukman M-Estimator: Simulation and Application , Journal of the Nigerian Society of Physical Sciences: Volume 4, Issue 2, May 2022
- Godwin O. Olutona, Health Risk Assessment of Heavy Metals in Sediment of Tropical Freshwater Stream , Journal of the Nigerian Society of Physical Sciences: Volume 5, Issue 1, February 2023
- N. K. Olasunkanmi, D. T. Ogundele, V. T. Olayemi, W. A. Yahya, A. R. Olasunkanmi, Z. O. Yusuf, S. A. Aderoju, Assessing leachate contamination and groundwater vulnerability in urban dumpsites: a case study of the Ipata Area, Ilorin, Nigeria , Journal of the Nigerian Society of Physical Sciences: Volume 6, Issue 2, May 2024
- Solomon Nehemiah Yusuf, Williams Midala Wakili, Geological mapping and structural analysis from satellite imagery of a section of the Adamawa Massif: Implications for mineralization , Journal of the Nigerian Society of Physical Sciences: Volume 7, Issue 3, August 2025
- N. Kure, H. I. Daniel, C. G. Afuwai, E. J. Adoyi, I. A. Bello, The Delineation of Groundwater and Geotechnical Parameters within Marmara Area of Chikun Local Government of Kaduna State, Nigeria , Journal of the Nigerian Society of Physical Sciences: Volume 1, Issue 1, February 2019
- xiaojie zhou, Majid Khan Majahar Ali, Farah Aini Abdullah, Lili Wu, Ying Tian, Tao Li, Kaihui Li, Implementing a dung beetle optimization algorithm enhanced with multi-strategy fusion techniques , Journal of the Nigerian Society of Physical Sciences: Volume 7, Issue 2, May 2025
- Bright O. Osu, K. N. C. Njoku, B. I. Oruh, On the Investment Strategy, Effect of Inflation and Impact of Hedging on Pension Wealth during Accumulation and Distribution Phases , Journal of the Nigerian Society of Physical Sciences: Volume 2, Issue 3, August 2020
- U. Rilwan, M. I. Sayyed, K. A. Mahmoud, S. Muhammad, A. Alkasim, S. I. Ikpughul, S. J. Iwa, Jibrin Ahmed Guto, O. A. Adeyeba, M. W. Marashdeh, Evaluation of radiation shielding and mechanical properties of palm nut shell ash modernized concrete: a comparative analysis , Journal of the Nigerian Society of Physical Sciences: Volume 8, Issue 1, February 2026
- Sunday D. Olorunfunmi, Armand Bahini, Samuel A. Adeojo, Velocity-in/dependent double folding analysis of 12C + 12C elastic scattering cross section at different energies , Journal of the Nigerian Society of Physical Sciences: Volume 8, Issue 1, February 2026
- Lois Onyejere Nwobodo, Chinonso J. Okonkwo, Edith Angela Ugwu, Udeh Chukwuma Callistus, Okorie Kingsley Maduabuchi, Ngene John Ndubisi, Agbo Kenechukwu Martin, HybOptic-CNN: A hybrid WOA-GWO-optimized convolutional neural network model for enhanced plant disease detection in the Nigerian environment , Journal of the Nigerian Society of Physical Sciences: Volume 8, Issue 4, November 2026 (in progress)
You may also start an advanced similarity search for this article.
Most read articles by the same author(s)
- F. O. Aweda, J. A. Akinpelu, T. K. Samson, M. Sanni, B. S. Olatinwo, Modeling and Forecasting Selected Meteorological Parameters for the Environmental Awareness in Sub-Sahel West Africa Stations , Journal of the Nigerian Society of Physical Sciences: Volume 4, Issue 3, August 2022

