For high-risk group fraction , fixed total contact rates and reciprocal cross-group contacts, let . The displayed SIS model describes within-group infectious fractions. In fractions the transmission matrix is ; in infected-person counts it is . A common recovery rate gives basic reproduction number . The mean population susceptible fraction does not generally equal its reciprocal.
Epidemic threshold for the closed SIR model Created 2026-10-06 Updated 2026-10-14
The deterministic SIR model with initial susceptible count grows initially exactly when . Its basic reproduction number is under unnormalized mass-action infection. If that ratio is at most one, decreasing prevents later infectious growth.
Next-generation matrix 2026-10-14
The entry is the expected number of newly infected type- individuals produced by a newly infected type- individual while the population is disease-free. In a compartmental linearization, describes new-infection production and transitions and removal. Provided the infection-lifetime subsystem is transient, its integrated occupation matrix is , yielding . The basic reproduction number is its spectral radius. This construction is described in the original next-generation-matrix derivation.
The Gillespie algorithm draws a waiting time with total event rate , then chooses infection with probability and recovery otherwise. Each event conserves , and is absorbing in this closed stochastic SIR model.
Choose a horizon of 100 days, which is longer than all extinction times in the runs reported here. This independent implementation also avoids executing a sampled event beyond the horizon:
import numpy as np
import matplotlib.pyplot as plt

EPIDEMIC_RNG = np.random.default_rng(2345)

def sir_sim(t_max,X0,beta,gamma,rng=None):
    if rng is None:rng=EPIDEMIC_RNG
    state=np.array(X0,dtype=int);population=state.sum();time=0.
    times=[time];states=[state.copy()]
    while time<t_max and state[1]>0:
        infection=beta*state[0]*state[1]/population;recovery=gamma*state[1]
        rate=infection+recovery
        if rate==0:
            times.append(float(t_max));states.append(state.copy());break
        next_time=time+rng.exponential(1/rate)
        if next_time>t_max:
            times.append(float(t_max));states.append(state.copy());break
        if rng.random()<infection/rate:state+=np.array([-1,1,0])
        else:state+=np.array([0,-1,1])
        time=next_time;times.append(time);states.append(state.copy())
    return np.array(times),np.array(states)

rng = np.random.default_rng(2345)
trajectories = [sir_sim(100, [99,1,0], 1, .25, rng) for _ in range(10)]
for times, states in trajectories:
    plt.step(times, states[:,1], where="post", alpha=.8)
plt.xlabel("Time (days)")
plt.ylabel("Infected individuals")
plt.show()
A step plot represents the piecewise constant infected population between events. The trajectories show both substantial outbreaks and early epidemic extinction despite the large basic reproduction number .
A microparasite typically multiplies within an infected host on a much shorter time scale than between-host transmission. A useful first model classifies hosts by infection status. A macroparasite, such as an adult parasitic worm, instead requires a count of parasites per host: two infected hosts can carry very different within-host parasite burdens. These are modelling distinctions rather than a rule determined only by an organism's physical size.
For a microparasite with no lasting immunity, a homogeneous SIS model is
The basic reproduction number is , and the prevalence describes the infected-host fraction. A SIR model adds an immune class, and a SEIR model adds a latent class. Contact structure, age, susceptibility, recovery rate and infectiousness can require several such classes. Then a next-generation matrix or operator, rather than a single averaged contact rate, sets the invasion threshold. Stochastic epidemic models are relevant to early extinction and finite populations; network or spatial models represent nonuniform contact opportunities.
For a simple macroparasite burden model, let be the fraction of hosts carrying adult worms. Assume acquisitions at rate , independent adult-worm losses at rate , and a number of infective stages in a well-mixed environmental reservoir. The immigration-death worm-burden model has
This birth-death process needs the burden distribution or its probability generating function, not just an infected/not-infected partition. Its mean satisfies . With host number fixed and each adult producing infective stages at rate , one possible environmental closure is
For this asexual, unsaturated transmission approximation, one worm's basic reproduction number is . Growth above the invasion threshold requires additional density regulation if a finite endemic burden is sought. Sex-dependent mating would change this closure.
With constant external exposure , the equilibrium burden follows a Poisson distribution with mean , giving infected-host prevalence . If exposure rates vary across hosts as a gamma distribution, the Poisson-gamma mixture gives a negative binomial distribution with mean and aggregation parameter :
The same mean burden can therefore coexist with very different prevalence and highly infected subgroups. Aggregation of macroparasite burdens affects treatment coverage, burden-dependent host mortality, immunity and parasite fecundity. For sexually reproducing worms, hosts need both sexes for fertile output; a mean alone may not determine it. With independent equally likely sexes and Poisson burden, the probability of both sexes is , illustrating mating-limited macroparasite transmission and its low-burden bottleneck.
Both microparasite and macroparasite models need heterogeneous exposure and host responses. The special extra difficulty for macroparasites is translating a distributed worm burden, and possibly worm sex or developmental stage, into transmission and host harm. Conversely, complicated within-host microparasite processes can also require more than a binary host state when the simple fast-within-host approximation fails.
Let be the infectious proportion in a closed population. With homogeneous frequency-dependent transmission rate and recovery rate , the SIS model is
The basic reproduction number is the expected number of secondary infections produced by a typical newly infected individual in an otherwise susceptible population under the specified contact conditions. Here the infectious duration has mean , so .
For the attracting endemic equilibrium has . The homogeneous SIS susceptible fraction is therefore
For the physical equilibrium is disease-free, , . At equality approach to zero is algebraic. Thus is an endemic relation, not a formula demanding more than one susceptible person per person below the invasion threshold.
Use an assortatively mixed two-risk-group SIS model with equal per-person recovery rate . Let be infectious proportions in groups of sizes . Let be their fixed contact rates and the transmission probability per contact. Suppose a small fixed fraction of high-risk contacts is with the low-risk group. Contact reciprocity in a two-group epidemic requires
For sufficiently small , both groups make most contacts within their own group, and the total cross-group contacts are of order . Define , , and . The forces of infection give
Here and hold in the small- regime. High-risk per-person cross contact is order one but its group size is order ; low-risk per-person cross contact is order . These distinctions are needed to count each cross-group partnership consistently.
Linearize about the disease-free state. In infectious fractions the transmission matrix is
In infected-individual counts the next-generation matrix is instead
The count and fraction formulations are related by a diagonal change of coordinates, so their eigenvalues coincide. The basic reproduction number is the spectral radius , not an average of the two group reproduction numbers. The larger real eigenvalue is
This model makes a particular reciprocal mixing convention explicit; different defensible contact laws can change the first-order coefficients.
Use fractions of all farms, so and . Assume farm size is fixed, contacts mix randomly, infectious periods have size-independent exponential mean , and the farm-size distribution has finite moments and . Write . The farm-size stratified SIR model with susceptibility proportional to size is
Here includes the common contact-rate constant; using frequency-dependent mixing avoids introducing an extra total-farm factor. An infectious farm of any size generates infections in initially susceptible size- farms. The next-generation matrix has rank one, giving the basic reproduction number
The comparison SIR model replaces every size by , so it has the same basic reproduction number and the same initial exponential growth rate .
As the epidemic develops, put . For negligible initial infection, . Large farms leave the susceptible class faster. If with , differentiation gives
The mean size of newly infected farms is , larger than the susceptible mean unless all sizes agree. If , then
Recovery cancels from this equation because its rate is size-independent. Starting with representative infectives, initially rises toward the size-biased mean ; later depletion of large susceptible farms lowers and usually lowers . It is incorrect to assert that the mean size of infectives must decrease from every possible initial condition. In the growing linearized mode, , so its mean is already .
The aggregate growth equation is . The falling susceptible mean adds a depletion effect absent from the homogeneous SIR model. The final size relation for an epidemic, with vanishing initial seed and attack fraction , is
By Jensen's inequality, the right side is at most , so is no larger than the homogeneous attack fraction. For a common small representative seed the illustrated epidemic is flatter and infects fewer farms; exact pointwise ordering of infected fractions for every time and arbitrary initial seed is not a consequence of equality of .
Figure 1.
Farm-size heterogeneity: epidemic prevalence and mean livestock counts for the three transmission assumptions
. Details.
The original sketch uses equally many farms of sizes 1 and 3, recovery rate , and a representative infected seed of . Each homogeneous comparison has . The left, middle and right columns correspond to parts (a), (b) and (c). The top row shows infected farm fractions, and the bottom row distinguishes the mean sizes of susceptible and infected farms. These are illustrative trajectories under the stated model, not universal empirical outbreak curves.
With susceptibility independent of size and infectivity proportional to size, define . The farm-size stratified SIR model is
An infectious size- farm has next-generation column . Its sole nonzero eigenvalue gives the basic reproduction number
again equal to the comparison SIR model.
Since every susceptible farm experiences the same force of infection, all ratios remain fixed. For a representative initial seed, and , uniqueness of the differential equations gives , , for all time. Consequently and
For this representative seed, the heterogeneous and homogeneous epidemics coincide exactly, and both susceptible and infected farm means stay at . This is the overlapping middle-column sketch above, not merely an approximation based on equal reproduction numbers.
With a nonrepresentative seed the susceptible mean remains its initial value, but the infected mean need not. The influx of new infectives has the constant susceptible mean, so
Thus it is pulled toward while incidence continues. Infectivity variation alone does not selectively remove large susceptible farms. The exact homogeneous reduction depends on the representative initial condition; specifying only and does not determine a trajectory for every possible seed.
Both weights now equal farm size, giving the farm-size stratified SIR model
The next-generation matrix is , whose nonzero eigenvalue is
The variance matters because large farms are both more likely to acquire infection and more effective sources afterward. This positive correlation increases the basic reproduction number relative to the homogeneous SIR model. In particular the heterogeneous population can permit invasion when the homogeneous comparison is subcritical.
Put . Apart from the negligible initial seed, . The susceptible mean obeys . For infectives, the incidence mean is again , and
The growing mode has mean , not . As the larger susceptible farms are depleted, the mean size of incoming infectives falls; the current infected mean follows it with a delay. These equations give the direction of change for any initial condition without imposing false monotonicity of the infected mean.
The weighted infected total satisfies , so the effective reproduction number declines from as the susceptible size distribution changes. The final size relation for an epidemic becomes
The right-column sketch illustrates the larger initial growth rate and preferential depletion of large farms. The homogeneous comparison has size in both transmission factors; it must not be assigned the heterogeneous second moment. The general conclusions are enhanced invasion and selective removal of large susceptible farms. The final unweighted fraction of farms infected has no universal ordering relative to the homogeneous comparison: higher transmission and stronger heterogeneity-induced depletion compete, and the displayed final-size equations determine the answer for a specified distribution. For example, with , the infinitesimal-seed attack fractions are approximately versus when the homogeneous reproduction number is , but versus when it is ; the two comparisons have opposite ordering.
The basic reproduction number is the expected value of secondary infections caused by one typical infectious individual introduced into an otherwise susceptible population. For a heterogeneous model it is the dominant eigenvalue of the next-generation operator, so the appropriate infected-type distribution is part of “typical.” A small introduction grows when and decays when , under the usual linear invasion assumptions.
The asymptotic susceptible level depends on the model. In a homogeneous SIS model with transmission rate and recovery rate , the positive endemic equilibrium has when . In a closed SIR model, however, the final size relation for an epidemic is
For an infinitesimal seed in a wholly susceptible population this becomes . The epidemic peak occurs at , and a nontrivial outbreak leaves . Thus is an endemic or instantaneous invasion threshold, not a universal final susceptible fraction.
For cooperative infections, let be the fractions carrying neither infection, only , only , and both, with sum one. Let , , assume each infection independently recovers at rate , and multiply susceptibility to the second infection by . One suitable pair of SIS models is
Recovery of one infection from leads to the other single-infection class, not directly to . The probability simplex is invariant. At the disease-free equilibrium the eigenvalues are , and . Therefore failure of both isolated and low-density invasion requires , . Enhancement of secondary susceptibility does not alter these linear thresholds because coinfection is second order at introduction.
For completeness, a joint positive equilibrium must have
and
To obtain these, divide the equilibrium equations for total and total prevalence by their positive prevalences, yielding and . Substitution into the balance gives the quadratic. Its discriminant must be nonnegative and the resulting positive. These conditions test equilibrium feasibility for unequal rates; stability must also be checked rather than inferred from the mere presence of a root.
A fully explicit Allee effect results in the symmetric permitted case , . The joint equilibria have
Two feasible positive equilibria coexist with the stable disease-free state exactly in the strict range
Indeed at the fold the two roots coalesce, and at the smaller-prevalence branch reaches the disease-free boundary. For , roots at do not give positive singly infected fractions. Strict inequalities exclude these marginal endpoints.
Here is the stability check underlying the cooperative SIS coinfection threshold. On the symmetric subspace put and . Then
At a positive equilibrium . Its two-dimensional Jacobian matrix has
The higher-prevalence branch has positive determinant and negative trace, while the lower-prevalence branch is a saddle equilibrium. The remaining antisymmetric mode, from , has eigenvalue . Thus the smaller susceptible root is a stable joint endemic equilibrium, separated from the stable zero state by a finite seeding threshold. Neither infection can persist alone in this range. Strong cooperation can sustain both infections after a sufficiently large joint introduction even though neither invades from rarity. The numerical condition belongs to the specified secondary-susceptibility model; alternative cooperation mechanisms need their own threshold calculation.
The infectious count in the SIR model obeys . At the initial state, , so initial epidemic growth requires the epidemic threshold for the closed SIR model
Here is the basic reproduction number in this mass-action infection convention. Necessity also follows globally: is nonincreasing, so if , then for all time and never increases. When , growth is impossible.
At an endemic equilibrium, , so . Substitution into the susceptible equation gives
These values are physically positive exactly when . The Jacobian matrix at this equilibrium is
Both eigenvalues have negative real parts, so the endemic equilibrium is locally asymptotically stable. Its decay exponents are
The regime means recovery is rapid compared with demographic replacement. For fixed away from the threshold, the exponents form a complex conjugate pair with frequency approximately . Hence
Strictly, oscillations require ; alone does not ensure this uniformly for every arbitrarily close to one or arbitrarily large.
Vaccinating a fraction of newborns replaces the susceptible input by . The effective basic reproduction number is , and the same calculation replaces by . Provided and the oscillatory approximation remains applicable, vaccination lengthens the oscillation period, because is smaller. Extremely near eradication the exponents become real and there is no oscillation period to extrapolate indefinitely.
Adding the three equations of the SIRS model gives
so
At a fixed point, . The disease-free equilibrium is
For an endemic equilibrium , one has and . Conservation then gives
It exists with positive infected population exactly when
equivalently when the basic reproduction number exceeds one.
Eliminating yields
At the endemic equilibrium its Jacobian matrix is
Its trace and determinant are
Therefore the endemic equilibrium is locally asymptotically stable. It is a stable node when
and a stable focus when the inequality is reversed. Near a node, perturbations are sums of two nonoscillatory decaying exponentials. Near a focus, they execute damped oscillations with decay rate and angular frequency .
At an endemic equilibrium, , so forces
The equation gives . The conservation law therefore yields
A positive endemic state exists exactly when , equivalently when the basic reproduction number exceeds one.
Dividing the equation by the equation gives
Therefore
is a first integral. Define the basic reproduction number by . At the removal peak, , and hence
and, using ,
This is the SIR model with waning immunity. The mass-action interaction term transfers people from the susceptible compartment to the infected compartment, transfers infectives to the recovered compartment, and returns recovered people to susceptibility as immunity wanes. Adding the equations gives
so the total population is conserved.
When and infection is rare, and
Thus initially decays if . Equivalently, the basic reproduction number is , so the epidemic invasion threshold is not crossed and no epidemic occurs.
Under frequency-dependent mass-action kinetics, if of the individuals are infectious, the force of infection is
One newly infectious person in an otherwise susceptible population transmits at total rate approximately for mean infectious duration . Hence the basic reproduction number is
where is the infectious, rather than latent-plus-infectious, duration.
If the seed is positive, infection initially increases precisely when
Indeed, . Susceptibility is nonincreasing, so if , the infectious count never starts an increasing phase. When , it grows until , the SIR infection peak, and then declines.
The basic reproduction number compares transmission and removal: one infectious individual generates infections at initial rate and remains infectious for mean time . Their product is the expected number of secondary cases at that susceptible level. Above one, an infectious generation can replace itself with more cases. An exactly zero infectious seed remains zero regardless of this threshold.
A simple model is especially valuable when it overturns a clearly stated expectation and explains why, but surprise is a means to understanding rather than a requirement that every useful model be counterintuitive. The expectation must be explicit enough to test, and the model should identify which assumptions make it fail. A surprising simulation without a mechanism or a plausible connection to observations is not sufficient.
One expectation is that a deterministic system with few variables must settle to a simple, predictable state. The logistic map,
provides a compact counterexample. Its positive fixed point is , and the derivative there is . Thus the fixed point is locally stable for ; changing a single parameter can destroy that stability. At , repeated iteration approaches a two-cycle near and . For typical initial conditions at , the Lyapunov exponent is , so nearby initial states separate exponentially on average until the bounded state space limits their separation. Robert M. May's analysis made the consequences of such simple difference equations particularly influential in population modeling.[ref]
The broken expectation is not that determinism is false: the rule remains deterministic. Rather, an irregular trajectory need not be caused by a complicated mechanism or external stochasticity, and exact rules need not permit long-range prediction from imperfectly measured initial conditions. This does not show that every irregular population time series is chaotic. Real populations may experience demographic noise, environmental variation or overlapping generations, and the map's parameters and state must have a defensible biological interpretation. Evidence should distinguish those alternatives. Even within the mathematical example, special initial states can be periodic; the claim about concerns typical trajectories, not every point of the interval.
A second expectation is that diffusion can only erase spatial variation. In a coupled reaction-diffusion equation,
diffusion smooths each species separately, yet can destabilize their coupled uniform equilibrium. Linearizing about that equilibrium gives the mode matrix . Local stability of therefore does not by itself imply stability of every spatial mode. This is the organizing insight of the Turing instability.[ref]
For a concrete dimensionless linearization, take
The well-mixed system has trace and determinant , so its perturbations decay. Writing , the spatial mode has trace and determinant
This determinant is negative for , creating one positive eigenvalue and a growing nonuniform mode. Equal diffusivities would instead shift both eigenvalues left and could not create this two-species instability. On a finite domain, at least one of the modes allowed by the boundary conditions must lie in the unstable band. The algebra exposes exactly why the intuition about smoothing fails: differential transport changes the balance of an interacting local system.
A Turing instability establishes a possible pattern-generating mechanism, not proof that a particular animal's markings use it. One must identify candidate interacting species, measure transport and response properties, and test perturbations that alter the predicted wavelength or stability. The linear example specifies onset only; nonlinear dynamics determine whether growth saturates into a stable pattern. Its value is to convert a vague statement about morphogenesis into discriminating questions, while leaving those experimental obligations visible.
Figure 1.
Original mathematical illustrations of changing logistic-map dynamics, sensitivity to initial conditions and diffusion-driven instability
. Details.
A third expectation is that an infection with a basic reproduction number above one must produce a major outbreak. Consider the early phase as a continuous-time branching process, with independent per-infective transmission rate and recovery rate , while susceptible depletion is negligible. If is the probability of eventual extinction starting from one infective, conditioning on the first event gives
Taking the smallest solution in yields when , and when . Thus still gives an early-lineage extinction probability of . A deterministic SIR model describes mean-field growth but omits this individual realization uncertainty. In a finite closed stochastic SIR model, every epidemic eventually ends; the branching calculation concerns early extinction before substantial susceptible depletion, not that eventual end or an arbitrary peak-size cutoff.
These examples show different benefits of simplicity: a stability calculation can separate predictable from sensitive dynamics, a mode calculation can uncover a new mechanism, and a probability recursion can expose what an average trajectory hides. The same discipline also explains why the word “should” needs qualification. A simple exponential-decay model that confirms a familiar expectation can still calibrate a rate, serve as a control, or expose a faulty measurement. A useful mathematical model must earn its simplifications through the question it answers. Breaking an expectation is a powerful route to discovery when the contradiction is precise, robust to reasonable assumptions and experimentally consequential; novelty alone is not a validation criterion.