# SIR模型

SIR模型是数理流行病学中的一种仓室模型，它将人群划分为易感者、感染者和康复者，用以预测传染病的传播过程。它被用于理解暴发阈值、预测流行高峰，以及评估疫苗接种等干预措施，至今仍是仓室流行病学建模的经典起点。<sup>[1](https://doi.org/10.1098/rspa.1927.0118)</sup><sup> • </sup><sup>[2](https://hsph.harvard.edu/wp-content/uploads/2025/04/Lecture-1_SIR-Models_2025.pdf)</sup>

| 关键事实 | 取值 |
|---|---|
| 控制方程 | \( \dot{S} = -\beta \cdot S \cdot I / N \), \( \dot{I} = \beta \cdot S \cdot I / N - \gamma \cdot I \), \( \dot{R} = \gamma \cdot I \)<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC9212253/)</sup> |
| \( \beta \) | 有效接触率；\( \beta = c \cdot \tau \)，其中 \( c \) 为每人接触率，\( \tau \) 为每次接触的传播概率<sup>[4](https://courses.physics.ucsd.edu/2021/Fall/physics210b/REFERENCES/Hethcote_infectious_diseases.pdf)</sup> |
| \( \gamma \) | 康复率；\( \gamma = 1/d \)，因此 \( 1/\gamma \) 为平均感染期<sup>[4](https://courses.physics.ucsd.edu/2021/Fall/physics210b/REFERENCES/Hethcote_infectious_diseases.pdf)</sup> |
| 基本再生数 | \( R_{0} = \beta/\gamma \)<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC9212253/)</sup> |
| 暴发阈值 | 仅当 \( R_{0} \cdot S_{0}/N > 1 \) 时疫情才会增长<sup>[5](https://imsarchives.nus.edu.sg/oldwww/Programs/infectiousdiseases/files/hethcote_ln.pdf)</sup> |
| 群体免疫阈值 | \( p = 1 - 1/R_{0} \)<sup>[3](https://pmc.ncbi.nlm.nih.gov/articles/PMC9212253/)</sup> |
| 最终规模关系 | \( \log(S_{0}/S_{\infty}) = R_{0}(1 - S_{\infty}/N) \)<sup>[6](https://www.fields.utoronto.ca/talk-media/1/36/70/slides.pdf)</sup> |

## 原理

该模型假定传播遵循质量作用定律：每个感染者以速率 \( \beta \) 接触他人，新感染的发生率与易感者数量和感染者数量的乘积成正比。转移项 \( \gamma \cdot I \) 对应指数分布的感染期，其中 \( 1/\gamma \) 为在感染仓室中的平均等待时间。<sup>[4](https://courses.physics.ucsd.edu/2021/Fall/physics210b/REFERENCES/Hethcote_infectious_diseases.pdf)</sup> 基本再生数 \( R_{0} \) 是指将一个感染者引入完全易感人群时平均产生的二代感染数。<sup>[5](https://imsarchives.nus.edu.sg/oldwww/Programs/infectiousdiseases/files/hethcote_ln.pdf)</sup>

阈值行为由第二个方程得出。若 \( R_{0} \cdot s_{0} \le 1 \)，感染者数量将减少至零；若 \( R_{0} \cdot s_{0} > 1 \)，感染比例将上升至最大值 \( i_{\max} = i_{0} + s_{0} - 1/R_{0} - \ln(R_{0} \cdot s_{0})/R_{0} \)，随后回落至零。<sup>[5](https://imsarchives.nus.edu.sg/oldwww/Programs/infectiousdiseases/files/hethcote_ln.pdf)</sup> 高峰出现在 \( S = \gamma/\beta \) 时，即易感者比例降至 \( 1/R_{0} \) 之时；这一水平定义了群体免疫，标志着感染开始下降，尽管此时仍有许多易感者。<sup>[7](https://www.differentialequations.macalester.digital/content/p13%20Models%20of%20infectious%20disease.html)</sup><sup> • </sup><sup>[24](https://www.nature.com/articles/s41592-020-0822-z)</sup> 疫情不会耗尽易感者池：最终的易感者比例 \( s_{\infty} \) 是方程 \( i_{0} + s_{0} - s_{\infty} + \ln(s_{\infty}/s_{0})/R_{0} = 0 \) 在 \( (0, 1/R_{0}) \) 内的唯一根，<sup>[5](https://imsarchives.nus.edu.sg/oldwww/Programs/infectiousdiseases/files/hethcote_ln.pdf)</sup> 等价于最终规模关系 \( \log(S_{0}/S_{\infty}) = R_{0} \cdot (1 - S_{\infty}/N) \)。<sup>[6](https://www.fields.utoronto.ca/talk-media/1/36/70/slides.pdf)</sup> 系统的轨迹仅取决于 \( R_{0} \)，而 \( \gamma \) 决定时间尺度。<sup>[8](https://onlinelibrary.wiley.com/doi/10.1155/2022/3007864)</sup>

## 实施方法

典型的工作流程首先是将疾病过程转化为仓室，从最简单的模型开始，仅在公共卫生问题需要时才增加复杂度。<sup>[2](https://hsph.harvard.edu/wp-content/uploads/2025/04/Lecture-1_SIR-Models_2025.pdf)</sup> 随后，实践者选择参数，对方程进行数值积分，并将输出结果与发病率数据进行比较。在Python中，`scipy.integrate.odeint` 可直接对系统进行积分；一个标准演示使用 \( \beta = 0.2 \)、\( 1/\gamma = 10 \) 天、\( N = 1000 \)，以及单个初始感染者。<sup>[9](https://scipython.com/books/book2/chapter-8-scipy/examples/the-sir-epidemic-model/)</sup>

对于更复杂的模型，\( R_{0} \) 通过下一代矩阵方法从无病平衡点计算得出。<sup>[10](https://vtechworks.lib.vt.edu/bitstream/handle/10919/84993/ChildsIntroduction.pdf)</sup> 基于数据的[参数](https://www.edgepedia.org/zh/parameter)估计采用反演建模、暴力搜索、粒子群优化和最小二乘技术。<sup>[11](https://link.springer.com/article/10.1007/s10479-025-06893-1)</sup> 一项已发表的COVID-19拟合使用约束最小二乘（`fminsearchbnd` 例程）对欧洲疾病预防控制中心（ECDC）发病率数据的三日移动平均值进行处理。<sup>[12](https://www.mdpi.com/1099-4300/23/1/59)</sup> 在采信估计值之前应检查可辨识性：当真实过程涉及隔离时，仅凭累计病例数无法估计康复率 \( \gamma \)，需要活跃病例数据。<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC9755423/)</sup>

## 起源

该模型出自威廉·奥格尔维·克马克（William Ogilvy Kermack）与A. G. 麦肯德里克（A. G. McKendrick）1927年发表于《伦敦皇家学会会刊A辑》的论文《对流行病数学理论的贡献》。<sup>[1](https://doi.org/10.1098/rspa.1927.0118)</sup> 该论文确立了阈值密度概念：当人口密度低于某一临界值时，引入一名或多名感染者不会引发疫情。<sup>[1](https://doi.org/10.1098/rspa.1927.0118)</sup> 论文还表明，疫情可以在未耗尽易感者的情况下终止，并推导出一个以初始人口密度和初始感染者数量表示的最终规模型方程。<sup>[1](https://doi.org/10.1098/rspa.1927.0118)</sup>

克马克与麦肯德里克在一系列五篇论文中发展了该理论，首篇发表于《伦敦皇家学会会刊A辑》115(772)(1927)，第700–721页。<sup>[14](https://mathshistory.st-andrews.ac.uk/Extras/Epidemic_theory/)</sup> 人们熟悉的三方程常微分方程组是他们原始模型的一个非常特殊的情形，原始模型以偏微分方程表述，通过卷积积分按“类龄”（自感染起的时间）追踪感染者。<sup>[6](https://www.fields.utoronto.ca/talk-media/1/36/70/slides.pdf)</sup><sup> • </sup><sup>[15](https://royalsocietypublishing.org/rspa/article/477/2254/20210551/57073/A-model-for-the-spread-of-infectious-diseases)</sup>

## 变体

仓室结构可通过改变状态空间或转移规则来扩展。SIS模型允许康复后不产生持久免疫，适用于脑膜炎和鼠疫等某些细菌性疾病，而SIR模型适用于麻疹、腮腺炎和天花等病毒性疾病。<sup>[5](https://imsarchives.nus.edu.sg/oldwww/Programs/infectiousdiseases/files/hethcote_ln.pdf)</sup> [SEIR模型](https://www.edgepedia.org/zh/seir-model)增加一个暴露仓室，其潜伏期服从均值为 \( \alpha^{-1} \) 的指数分布；SVIR模型增加接种疫苗者。<sup>[11](https://link.springer.com/article/10.1007/s10479-025-06893-1)</sup> SI、SIR和SIS模型的离散时间版本由琳达·J. S. 艾伦（Linda J. S. Allen）于1994年在《数学生物科学》上分析。<sup>[16](https://doi.org/10.1016/0025-5564%2894%2990025-6)</sup> 迪特·申茨勒（Dieter Schenzle）于1984年对具有疫苗接种前后动态的年龄结构麻疹传播进行了建模。<sup>[17](https://doi.org/10.1093/imammb/1.2.169)</sup> 列昂尼德·A. 尔瓦乔夫（Leonid A. Rvachev）与艾拉·M. 朗吉尼（Ira M. Longini）于1985年发表了全球尺度的流感传播模型。<sup>[18](https://doi.org/10.1016/0025-5564%2885%2990064-1)</sup>

非线性发病率形式用饱和函数 \( g(I) \cdot S \) 替代线性项 \( \beta \cdot I \cdot S \)；两种广泛使用的选择是 \( f(S,I) = \beta \cdot S \cdot I/(1 + \gamma \cdot I) \) 和标准发病率 \( f(S,I) = \beta \cdot S \cdot I/(S + I) \)。<sup>[19](https://link.springer.com/article/10.1007/s40324-025-00404-9)</sup> 网络SIR模型以具有指定度分布的图上的传播替代均匀混合。

## 应用

SIR类模型用于理解传播、进行预测（例如美国疾病控制与预防中心（CDC）的FluSight流感预测）以及疫苗分配等预防决策。<sup>[2](https://hsph.harvard.edu/wp-content/uploads/2025/04/Lecture-1_SIR-Models_2025.pdf)</sup> 在COVID-19期间，其使用程度超过了以往的健康危机。<sup>[11](https://link.springer.com/article/10.1007/s10479-025-06893-1)</sup> 尼尔·M. 弗格森（Neil M. Ferguson）及其同事2020年3月16日那份颇具影响力的报告假定COVID-19的 \( R_{0} = 2.4 \)，预测在无所作为的情景下，美国81%的人口将被感染，220万人死亡。<sup>[15](https://royalsocietypublishing.org/rspa/article/477/2254/20210551/57073/A-model-for-the-spread-of-infectious-diseases)</sup> 后来对病例数据的再分析发现，所考察的每个国家的 \( R_{0} \sim 4 \)，意味着初始e折时间为3天；这两种估计在文献中仍存争议。<sup>[15](https://royalsocietypublishing.org/rspa/article/477/2254/20210551/57073/A-model-for-the-spread-of-infectious-diseases)</sup> 后来在COVID-19规划中颇为突出的那种基于个体的疫情缓解模拟，由尼尔·M. 弗格森及其同事于2006年在《自然》上应用于流感。<sup>[20](https://doi.org/10.1038/nature04795)</sup>

## 局限与替代方案

经典SIR模型不切实际地假定人群是均匀且同质混合的。<sup>[4](https://courses.physics.ucsd.edu/2021/Fall/physics210b/REFERENCES/Hethcote_infectious_diseases.pdf)</sup> 这些假设包括传染性、易感性和连通性的同质性，康复时间和代际间隔服从指数分布，以及行为不随时间变化；在具有同质连通性的模型中，甚至连旅行限制的效果都无法表示。<sup>[8](https://onlinelibrary.wiley.com/doi/10.1155/2022/3007864)</sup> 当易感性和传染性因群体而异时，同质SIR模型可以被调参以匹配初始增长率和 \( R_{0} \)，但会严重错误估计后期轨迹，且真实最终规模小于同质预测。<sup>[8](https://onlinelibrary.wiley.com/doi/10.1155/2022/3007864)</sup>

实际的不可辨识性是一个核心的失效模式。在一项贝叶斯可辨识性研究中，\( R_{0} \) 和最终暴发规模往往难以从流行率数据中辨识，而在获得截至暴发高峰的数据后，高峰强度、高峰时间和初始增长率的概率平均提高到原来的20倍以上；研究建议将增长率作为比再生数更可靠的首要观察指标。<sup>[21](https://royalsocietypublishing.org/doi/10.1098/rsos.230634)</sup> 一项含时变参数的反问题研究发现，在COVID-19数据上3天预测区间的平均误差接近零，但14天时约为0.17，因此准确性随预测时域延长而下降。<sup>[22](https://beta.iopscience.iop.org/article/10.1088/1361-6420/acb4e7)</sup>

与替代方案相比：任何SEIR模型都可以用一个具有相同初始增长率和 \( R_{0} \)（因而相同最终规模）的SIR模型替代，二者仅在流行病曲线的精确时间上有所不同。<sup>[8](https://onlinelibrary.wiley.com/doi/10.1155/2022/3007864)</sup> 基于个体的模型模拟个体行为与相互作用，能更细致地刻画异质人群。<sup>[23](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-112723-034351)</sup> 增加仓室会增加参数数量，使精确估计更加困难。<sup>[23](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-112723-034351)</sup>

## References

1. [William Ogilvy Kermack, A. G. McKendrick (1927). A contribution to the mathematical theory of epidemics. Proceedings of the Royal Society of London Series A Containing Papers of a Mathematical and Physical Character.](https://doi.org/10.1098/rspa.1927.0118)
2. [Introduction to SIR Modeling (Harvard T.H. Chan School of Public Health workshop slides)](https://hsph.harvard.edu/wp-content/uploads/2025/04/Lecture-1_SIR-Models_2025.pdf)
3. [Analytical solutions and parameter estimation of the SIR epidemic model (Prodanov)](https://pmc.ncbi.nlm.nih.gov/articles/PMC9212253/)
4. [The Mathematics of Infectious Diseases (Hethcote, SIAM Review, PDF copy)](https://courses.physics.ucsd.edu/2021/Fall/physics210b/REFERENCES/Hethcote_infectious_diseases.pdf)
5. [The Basic Epidemiology Models (Hethcote tutorial lectures, IMS NUS)](https://imsarchives.nus.edu.sg/oldwww/Programs/infectiousdiseases/files/hethcote_ln.pdf)
6. [The Kermack–McKendrick Epidemic Model and the Final Size Relation (Fields Institute)](https://www.fields.utoronto.ca/talk-media/1/36/70/slides.pdf)
7. [Equations for the study of infectious disease (Macalester Differential Equations)](https://www.differentialequations.macalester.digital/content/p13%20Models%20of%20infectious%20disease.html)
8. [Modeling Complex Systems: A Case Study of Compartmental Models in Epidemiology](https://onlinelibrary.wiley.com/doi/10.1155/2022/3007864)
9. [The SIR epidemic model (Scipython)](https://scipython.com/books/book2/chapter-8-scipy/examples/the-sir-epidemic-model/)
10. [An introduction to compartmental modeling for the budding infectious disease modeler (Childs)](https://vtechworks.lib.vt.edu/bitstream/handle/10919/84993/ChildsIntroduction.pdf)
11. [Compartmental models in epidemiology: bridging the gap with operations research (Annals of Operations Research)](https://link.springer.com/article/10.1007/s10479-025-06893-1)
12. [Analytical Parameter Estimation of the SIR Epidemic Model. Applications to the COVID-19 Pandemic (Entropy)](https://www.mdpi.com/1099-4300/23/1/59)
13. [Revisiting classical SIR modelling in light of the COVID-19 pandemic](https://pmc.ncbi.nlm.nih.gov/articles/PMC9755423/)
14. [Epidemic theory - MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Extras/Epidemic_theory/)
15. [A model for the spread of infectious diseases compatible with case data (Proc. R. Soc. A)](https://royalsocietypublishing.org/rspa/article/477/2254/20210551/57073/A-model-for-the-spread-of-infectious-diseases)
16. [Some discrete-time SI, SIR, and SIS epidemic models (Mathematical Biosciences, 1994)](https://doi.org/10.1016/0025-5564%2894%2990025-6)
17. [DIETER SCHENZLE (1984). An Age-Structured Model of Pre- and Post-Vaccination Measles Transmission. Mathematical Medicine and Biology A Journal of the IMA.](https://doi.org/10.1093/imammb/1.2.169)
18. [A mathematical model for the global spread of influenza (Mathematical Biosciences, 1985)](https://doi.org/10.1016/0025-5564%2885%2990064-1)
19. [Differential equation models for infectious diseases (SeMA Journal)](https://link.springer.com/article/10.1007/s40324-025-00404-9)
20. [Neil M. Ferguson and colleagues (2006). Strategies for mitigating an influenza pandemic. Nature.](https://doi.org/10.1038/nature04795)
21. [Accurately summarizing an outbreak using epidemiological models takes time (Royal Society Open Science)](https://royalsocietypublishing.org/doi/10.1098/rsos.230634)
22. [Compartmental modelling in epidemic diseases: a comparison between SIR model with constant and time-dependent parameters (Inverse Problems)](https://beta.iopscience.iop.org/article/10.1088/1361-6420/acb4e7)
23. [Infectious Disease Modeling (Annual Review of Statistics)](https://www.annualreviews.org/content/journals/10.1146/annurev-statistics-112723-034351)
24. [Modeling infectious epidemics, Nature Methods](https://www.nature.com/articles/s41592-020-0822-z)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 生命与健康 › 人类健康与医学 › 公共卫生与医疗保健 › Epidemiology as a discipline

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/sir-model

English original: https://www.edgepedia.org/sir-model
