Skip to main content

SIS

The Susceptible-Infected-Susceptible model. Individuals return to the susceptible state after recovery, with no lasting immunity.

Compartments

  • Susceptible: individuals who can be infected
  • Infected: individuals who are currently infectious

Transitions

  • Susceptible → Infected: mediated by transmission_rate and the number of Infected individuals
  • Infected → Susceptible: spontaneous at recovery_rate

Parameters

Some parameters can be provided in multiple forms. For example, you can pass R0 instead of transmission_rate, or infectious_period instead of recovery_rate, and they are automatically converted. If both forms are supplied, the rate form wins and the source is dropped silently. See calculated parameters for the conversion machinery.

ParameterStatusDefaultDescription
transmission_rateDefault0.3β\beta. Per-contact transmission rate.
R0Alternative to transmission_rateunsetBasic reproduction number. When passed, transmission_rate = R0 * recovery_rate / CONTACT_MATRIX_EIGENVALUE_ALL.
recovery_rateDefault0.1I → S rate.
infectious_periodAlternative to recovery_rateunsetDays infectious before returning to susceptible. When passed, recovery_rate = 1 / infectious_period.

Examples

Rate form

curl -X POST https://epyscenario-api.isi.it/api/v1/simulations \
-H "Content-Type: application/json" \
-d '{
"model": {
"preset": "SIS",
"parameters": {"transmission_rate": 0.4, "recovery_rate": 0.2}
},
"population": {"name": "United_States"},
"simulation": {"start_date": "2024-01-01", "end_date": "2024-12-31", "Nsim": 10}
}'

Using R0 and infectious_period

curl -X POST https://epyscenario-api.isi.it/api/v1/simulations \
-H "Content-Type: application/json" \
-d '{
"model": {
"preset": "SIS",
"parameters": {"R0": 2.0, "infectious_period": 5.0}
},
"population": {"name": "United_States"},
"simulation": {"start_date": "2024-01-01", "end_date": "2024-12-31", "Nsim": 10}
}'

Seeding initial conditions (percentage)

Seed 0.1% of the population as Infected. The remainder goes to the first compartment (Susceptible). Values in initial_percentages are percentages, not fractions.

curl -X POST https://epyscenario-api.isi.it/api/v1/simulations \
-H "Content-Type: application/json" \
-d '{
"model": {
"preset": "SIS",
"parameters": {"R0": 2.0, "infectious_period": 5.0}
},
"population": {"name": "United_States"},
"simulation": {"start_date": "2024-01-01", "end_date": "2024-12-31", "Nsim": 10},
"initial_conditions": {
"method": "percentage",
"initial_percentages": {"Infected": 0.1}
}
}'