Statistics for Stability analysis and optimal control of an epidemic model with awareness programs by media