Abstract: This paper is devoted to presenting a study of Covid-19 data in Morocco and analyzing the impact on the Moroccan economy. In this work, we approximate the Covid-19 data using a variational method approach, specifically through smoothing variational splines. We propose an application of the pandemic’s effects on the Moroccan economy. Finally, we demonstrate the effectiveness of our method by presenting graphical results of the Moroccan data.