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
- S. A. Agunbiade, J. U. Abubakar, T. L. Oyekunle, M. T. Akolade, Stagnation point flow of viscous nanofluid towards a shrinking sheet with quadratic buoyancy and thermophoresis influence: convection through porous media , Journal of the Nigerian Society of Physical Sciences: Volume 6, Issue 3, August 2024
- V. Ramanjini, G. Gopi Krishna, Mani Ramanuja, Hari Kamala Sree, S. R. Mishra, Unsteady Prandtl nanofluidic flow through stretching sheet due to mixed convection, first-order slip, and chemical reaction , Journal of the Nigerian Society of Physical Sciences: Volume 5, Issue 4, November 2023
- C. B. Adindu, S. C. Nwanonenyi, C. B. C. Ikpa, Experimental and computational studies of the corrosion inhibitive effects of Zingiber officinale rhizomes on mild steel corrosion in acidic solutions , Journal of the Nigerian Society of Physical Sciences: Volume 5, Issue 3, August 2023
- M. E Khan, E. E. Etim, V. J Anyam, A Abel, I. G Osigbemhe, C. T Agber, Computational studies on Emodin (C15H10O5) from Methanol extract of Pteridium acquilinum leaves , Journal of the Nigerian Society of Physical Sciences: Volume 3, Issue 4, November 2021
- Kashif Hussain, Oluwaseun Adeyeye, Nazihah Ahmad, Numerical Solution of Second Order Fuzzy Ordinary Differential Equations using Two-Step Block Method with Third and Fourth Derivatives , Journal of the Nigerian Society of Physical Sciences: Volume 5, Issue 2, May 2023
- Dyavappa B M, Velocity distribution of 43Ca+ion cloud in the low temperature limit in a quadrupole Penning Trap , Journal of the Nigerian Society of Physical Sciences: Volume 3, Issue 1, February 2021
- A. S. Akingboye, Geohydraulic characteristics and groundwater vulnerability assessment of tropically weathered and fractured gneissic aquifers using combined georesistivity and geostatistical methods , Journal of the Nigerian Society of Physical Sciences: Volume 4, Issue 4, November 2022
- D. Eli, M. Y. Onimisi, S. Garba, R. U. Ugbe, J. A. Owolabi, O. O. Ige, G. J. Ibeh, A. O. Muhammed, Simulation and Optimization of Lead-Based Perovskite Solar Cells with Cuprous Oxide as a P-type Inorganic Layer , Journal of the Nigerian Society of Physical Sciences: Volume 1, Issue 2, May 2019
- A. A. Faremi, S. S. Oluyamo, K. D. Adedayo, Y. A. Odusote, O. I. Olusola, Influence of Silicon Nanoparticle on the Electrical Properties of Heterostructured CdTe/CdS thin films based Photovoltaic Device , Journal of the Nigerian Society of Physical Sciences: Volume 3, Issue 3, August 2021
- T. W. David, B. J. Adekoya, C. M. Michael, S. A. Adekoya, O. A. Adenuga, S. O. Kareem, H. T. Oladunjoye, A. E. Ajetunmobi, O. T. Williams, D. T. Ogundele, A Study of the Relationship Between Southward Bz > -10 nT and Storm Time Disturbance Index During Solar Cycle 23 , Journal of the Nigerian Society of Physical Sciences: Volume 4, Issue 4, November 2022
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

