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
- A. A. Willoughby, M. E. Sanyaolu, M. O. Osinowo, A. O. Soge, O. F. Dairo, Estimation of some Radio Propagation Parameters using Measurements of Surface Meteorological Variables in Ede, Southwest Nigeria , Journal of the Nigerian Society of Physical Sciences: Volume 5, Issue 1, February 2023
- Nikita Bhardwaj, Monika Saini, Ashish Kumar, Estimation of reliability characteristics of single-unit repairable system with preventive maintenance and server arrival time , Journal of the Nigerian Society of Physical Sciences: Volume 8, Issue 2, May 2026
- K. M. Omatola, A. D. Onojah, R. Larayetan, A. O. Ohiani, I. I. Oshatuyi, M. B. Ochang, O. Anawo, P. Abraham, Isolation and investigation of the structure of silicon quantum dots from rice husk ultrafine silica for possible applications in nanoelectromechanical systems , Journal of the Nigerian Society of Physical Sciences: Volume 7, Issue 4, November 2025
- Abiola T. Owolabi, Kayode Ayinde, Taiwo J. Adejumo, Wakeel A. Kasali, Emmanuel T. Adewuyi, Comparative Analysis of the Implication of Periods Before and During Vaccination of COVID-19 Infection in Some Regional Leading African Countries , Journal of the Nigerian Society of Physical Sciences: Volume 4, Issue 2, May 2022
- Aladodo Sarafadeen Shehu, Ibrahim Bolaji Balogun, Ibrahim Yakubu Tudunwada, Variation, distribution and trends of aerosol optical properties in Africa during 2000-2022 , Journal of the Nigerian Society of Physical Sciences: Volume 7, Issue 2, May 2025
- S. S. Aladodo, C. O. Akoshile, J. O. Otu, A Review of Evidence of Aerosol Transmission of SARS-CoV-2 Particles , Journal of the Nigerian Society of Physical Sciences: Volume 3, Issue 3, August 2021
- A. A. Willoughby, A. A. Soge, O. F. Dairo, O. D. Olukanni, E. U. Durugbo, W. S. Michael, T. A. Adebayo, Fabrication and Characterization of a Dye-Sensitized Solar Cell using Natural Dye Extract of Rosella (Hibiscus sabdariffa L.) as Photosensitizer , Journal of the Nigerian Society of Physical Sciences: Volume 3, Issue 4, November 2021
- A. F. Afolabi, S. S. Oluyamo, I. A. Fuwape, Synthetic characterization and structural properties of nanocellulose from moringa oleifera seeds , Journal of the Nigerian Society of Physical Sciences: Volume 3, Issue 3, August 2021
- Danat Nanle Tanko, Farah Aini Abdullah, Majid K. M Ali, Matthew O. Adewole, James Andrawus, Onchocerciasis control via Caputo-Fabrizio fractional dynamics: a focus on early treatment and vector management strategies , Journal of the Nigerian Society of Physical Sciences: Volume 8, Issue 1, February 2026
- Osita Miracle Nwakeze, Naveed Uddin Mohammed, Obaze Caleb Akachukwu, Umerah Anthony Tochukwu, Oji Nkechi Blessing, Ibeh Sylvarine Chinasa, Odeh Christopher, Dynamic-kernel CNN-LSTM for real-time intrusion detection in low-power healthcare IoT systems , Journal of the Nigerian Society of Physical Sciences: Volume 8, Issue 3, August 2026
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

