A disease modeling paper seeks to determine how a zombie infection would unfold in real life. Their methodology:

We introduce a basic model for zombie infection, determine equilibria and
their stability, and illustrate the outcome with numerical solutions. We then refine the
model to introduce a latent period of zombification, whereby humans are infected, but
not infectious, before becoming undead. We then modify the model to include the
effects of possible quarantine or a cure. Finally, we examine the impact of regular,
impulsive reductions in the number of zombies and derive conditions under which
eradication can occur.

Their conclusion:

In summary, a zombie outbreak is likely to lead to the collapse of civilisation, unless it
is dealt with quickly. While aggressive quarantine may contain the epidemic, or a cure may
lead to coexistence of humans and zombies, the most effective way to contain the rise of
the undead is to hit hard and hit often. As seen in the movies, it is imperative that zombies
are dealt with quickly, or else we are all in a great deal of trouble.

Hit hard and hit often. Sounds about right, if you’re able to do anything more than run away screaming.