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
- Y. B. Lawal, E. T. Omotoso, Investigation of Point Refractivity Gradient and Geoclimatic Factor at 70 m Altitude in Yenagoa, Nigeria , Journal of the Nigerian Society of Physical Sciences: Volume 5, Issue 1, February 2023
- C. A. Onate, I. B. Okon, E. S. Eyube, E. Omugbe, A. D. Ahmed, Computation of vibrational partition function: a comparative analysis between Poisson summation and classical limit , Journal of the Nigerian Society of Physical Sciences: Volume 8, Issue 1, February 2026
- S. N. Enemuo, O. N. Akande, M. O. Lawrence, I. C. Saidu, Optimized aspect level sentiment analysis of tweet data using deep learning and rule-based techniques , Journal of the Nigerian Society of Physical Sciences: Volume 7, Issue 2, May 2025
- Mahesh Kumar Singh, Pushpa Choudhary, Arun Kumar Singh, Pushpendra Singh, LWRNPIP: Design of a light weight restrictive non-fungible token based on practically unclonable functions via image signature patterns , Journal of the Nigerian Society of Physical Sciences: Volume 7, Issue 4, November 2025
- Tertsea Igbawua, Aondongu Alexander Tyovenda, Terver Sombo, Idugba Mathias Echi, Spatio-temporal assessment of aerosol-induced atmospheric heating rates in Nigeria , Journal of the Nigerian Society of Physical Sciences: Volume 7, Issue 2, May 2025
- Sylvester J. Gemanam, Nursakinah Suardi, Barnabas A. Ikyo, Samson Damilola Oluwafemi, Terver Daniel, Samuel T. Kungur, Biostimulation Effects and Temperature Variation in Stimulated Dielectric Substance (Diabetic Blood Comparable to Non-Diabetic Blood) Based on the Specific Absorption Rate (SAR) in Laser Therapy , Journal of the Nigerian Society of Physical Sciences: Volume 3, Issue 2, May 2021
- W. A. Yahya, A. A. Yahaya, A. A. Adewale, A. A. Sholagberu, N. K. Olasunkanmi, A DFT study of optoelectronic, elastic and thermo-electric properties of the double perovskites Rb2SeX6 (X=Br,Cl) , Journal of the Nigerian Society of Physical Sciences: Volume 5, Issue 2, May 2023
- Olumide S. Adesina, Adedayo F. Adedotuun, Kayode S. Adekeye, Ogbu F. Imaga, Adeleke J. Adeyiga, Toluwalase J. Akingbade, On logistic regression versus support vectors machine using vaccination dataset , Journal of the Nigerian Society of Physical Sciences: Volume 6, Issue 1, February 2024
- Nneka Ernestina Richard-Nnabu, Chinagolum Ituma, Henry Friday Nweke, Convolutional neural networks method for folded naira currency denominations recognition and analysis , Journal of the Nigerian Society of Physical Sciences: Volume 6, Issue 4, November 2024
- Ebere Uzoka Chidi, Edward Anoliefo, Collins Udanor, Asogwa Tochukwu Chijindu, Lois Onyejere Nwobodo, A blind navigation guide model for obstacle avoidance using distance vision estimation based YOLO-V8n , Journal of the Nigerian Society of Physical Sciences: Volume 7, Issue 1, February 2025
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

