Abstract. We consider compartmental models in epidemiology. For the study of the divergence of the stochastic model from its corresponding deterministic limit (i.e., the solution of an ODE) for long time horizon, a large deviations principle suggests a thorough numerical analysis of the two models. The aim of this paper is to present three such motivated numerical works. We first compute the solution of the ODE model by means of a non-standard finite difference scheme. Next we solve a constraint optimization problem via discrete-time dynamic programming: this enables us to compute the leading term in the large deviations principle of the time of extinction of a given disease. Finally, we apply the τ -leaping algorithm to the stochastic model in order to simulate its solution efficiently. We illustrate these numerical methods by applying them to two examples.Résumé. On considère des modèles comportementaux enépidémiologie. Afin d'étudier l'écart en temps long entre le modèle stochastique et sa limite loi des grands nombres (qui est la solution d'une EDO), on se base sur un principe des grandes dáviations, qui nous conduità mener uneétude numérique des deux modèles, sur trois aspects différents. Tout d'abord, nous calculons une solution approchée de l'EDOà l'aide d'une méthode numérique dite "non-standard". Ensuite une résolvons numériquement un problème de contrôle sous contrainte, afin de calculer le terme principal des grandes déviations du temps de sortie d'une situation endémique. Enfin nous mettons en oeuvre l'algorithme du "τ -leaping" pour simuler efficacement la solution du système stochastique. Nous illustrons ces simulations numériques en les appliquantà deux exemples.