# 逻辑斯谛函数

逻辑斯谛函数是如下定义的S形（乙状）函数：

\[ \sigma(x) = \frac{1}{1 + e^{-x}} \]

它将每个实数映射到开区间(0, 1)内。该函数由比利时数学家皮埃尔-弗朗索瓦·韦尔许斯特（Pierre-François Verhulst）于1838年发明，用以描述在某一极限处趋于平缓的人口增长；1845年，韦尔许斯特赋予它如今的名称。如今，它作为激活函数与联系函数，居于逻辑斯谛回归、神经网络、剂量-反应药理学以及统计学中的逻辑斯谛分布的核心。<sup>[1](https://pages.cs.wisc.edu/~matthewb/pages/notes/pdf/basics/SigmoidFunction.pdf)</sup><sup> • </sup><sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S1369848604000676)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | \( \sigma(x) = 1/(1 + e^{-x}) \)，是从 \( \mathbb{R} \) 到(0, 1)上的连续递增函数<sup>[1](https://pages.cs.wisc.edu/~matthewb/pages/notes/pdf/basics/SigmoidFunction.pdf)</sup> |
| 锚点值 | \( \sigma(0) = 0.5 \)；当 \( x \to \infty \) 时 \( \sigma(x) \to 1 \)，当 \( x \to -\infty \) 时 \( \sigma(x) \to 0 \)<sup>[1](https://pages.cs.wisc.edu/~matthewb/pages/notes/pdf/basics/SigmoidFunction.pdf)</sup> |
| 导数 | \( d\sigma/dx = \sigma(x)(1 - \sigma(x)) \)，在 \( x = 0 \) 处最大<sup>[1](https://pages.cs.wisc.edu/~matthewb/pages/notes/pdf/basics/SigmoidFunction.pdf)</sup> |
| 起源 | 由韦尔许斯特于1838年为人口增长而提出；1845年命名为“逻辑斯谛”；1920年由珀尔与里德重新发现<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S1369848604000676)</sup> |
| 增长形式 | \( dP/dt = rP(1 - P/K) \)，拐点在 \( P = K/2 \) 处，此处增长峰值达 \( rK/4 \)<sup>[3](https://locusmath.org/books/openstax-calculus-2/4-4)</sup> |
| 统计角色 | logit的反函数；标准逻辑斯谛分布均值为0，标准差为 \( \pi/\sqrt{3} \)<sup>[4](https://itl.nist.gov/div898/software/dataplot/refman2/ch8/logcdf.pdf)</sup> |
| 实验室应用 | 四参数逻辑斯谛（Hill）模型是拟合浓度-反应数据的标准方程<sup>[5](https://www.ncbi.nlm.nih.gov/books/NBK92013/)</sup> |

## 数学性质

曲线经过点(0, 0.5)，在原点附近陡峭上升，并向水平渐近线0和1趋于平缓。它严格递增，因此较大的输入总是给出较大的输出；它满足对称性 \( \sigma(-z) = 1 - \sigma(z) \)，这反映了二分类问题中两个类别的互换。<sup>[1](https://pages.cs.wisc.edu/~matthewb/pages/notes/pdf/basics/SigmoidFunction.pdf)</sup><sup> • </sup><sup>[6](https://www.teach.cs.toronto.edu/~csc311notes/linear_classification/logistic_regression.html)</sup>

其导数具有紧凑形式

\[ \frac{d\sigma}{dx} = \sigma(x)\bigl(1 - \sigma(x)\bigr), \]

该导数在 \( x = 0 \) 处最大，并在两端尾部趋于零。这种自乘积的形式使该函数便于基于梯度的训练，因为导数仅由输出值即可算出。<sup>[1](https://pages.cs.wisc.edu/~matthewb/pages/notes/pdf/basics/SigmoidFunction.pdf)</sup><sup> • </sup><sup>[6](https://www.teach.cs.toronto.edu/~csc311notes/linear_classification/logistic_regression.html)</sup>

反函数是logit。若将 \( y = \sigma(z) \) 视为概率，则 \( z = \log(y/(1-y)) \) 是该事件的对数几率，这正是该函数能将输入的无约束线性组合转换为有效概率的原因。<sup>[6](https://www.teach.cs.toronto.edu/~csc311notes/linear_classification/logistic_regression.html)</sup>

## 与韦尔许斯特的渊源

韦尔许斯特（1804–1849）是阿道夫·凯特勒（Adolphe Quetelet）的学生，后成为其同事。他拒绝将马尔萨斯式的几何增长视为长期规律，转而寻找一种随着人口扩张而增长障碍不断增强的表述。他1838年的论文《Notice sur la loi que la population suit dans son accroissement》（关于人口增长所遵循规律的说明）引入了如今称为逻辑斯谛方程的微分方程，而他1845年的论文为该解赋予了名称；“逻辑斯谛”这一名称的由来并无记载。<sup>[7](https://mathshistory.st-andrews.ac.uk//Biographies/Verhulst/)</sup><sup> • </sup><sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S1369848604000676)</sup>

此后，该函数一度被忽视，部分原因是凯特勒认为其思想缺乏物理类比；在接下来的八十年里，它被独立地重新发现过数次，既用于人口增长，也用于自催化化学反应。雷蒙德·珀尔（Raymond Pearl）与洛厄尔·里德（Lowell Reed）1920年关于美国人口增长的研究使这条曲线广为人知；珀尔于1921年承认了韦尔许斯特的优先权。统计学家约瑟夫·伯克森（Joseph Berkson）于1944年引入了"logit"一词，而它在生物测定中的应用将该函数带入了主流统计学。<sup>[7](https://mathshistory.st-andrews.ac.uk//Biographies/Verhulst/)</sup><sup> • </sup><sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S1369848604000676)</sup><sup> • </sup><sup>[8](https://mathshistory.st-andrews.ac.uk/Miller/mathword/l/)</sup>

作为对该模型的检验，韦尔许斯特预测比利时人口的上限为940万；1994年的人口为10,118,000，移民使这一数字变得复杂，但若按无界指数增长，他不可能得出这一数字。<sup>[7](https://mathshistory.st-andrews.ac.uk//Biographies/Verhulst/)</sup>

## 逻辑斯谛增长模型

在种群动力学中，逻辑斯谛函数作为如下微分方程的解出现：

\[ \frac{dP}{dt} = rP\left(1 - \frac{P}{K}\right), \]

其中 \( r \) 为内禀增长率，\( K \) 为环境容纳量，即环境能够无限期维持的最大种群数量。当 \( P \) 相对于 \( K \) 较小时，修正因子 \( 1 - P/K \) 接近1，增长近乎指数式；当 \( P \) 趋近 \( K \) 时，增长放缓；若 \( P \) 超过 \( K \)，增长则变为负值。<sup>[9](https://openstax.org/books/calculus-volume-2/pages/4-4-the-logistic-equation)</sup><sup> • </sup><sup>[3](https://locusmath.org/books/openstax-calculus-2/4-4)</sup>

分离变量可得闭式解

\[ P(t) = \frac{P_0 K}{P_0 + (K - P_0)e^{-rt}}, \]

当 \( P_0 < K \) 时，该解从下方趋近 \( K \)；当 \( P_0 > K \) 时，则从上方趋近 \( K \)。该曲线在 \( P = K/2 \) 处有唯一一个拐点，此处增长率达到最大值 \( rK/4 \)；这一最大增长所在的半容量水平，是渔业与林业管理中最大可持续产量政策的依据。<sup>[3](https://locusmath.org/books/openstax-calculus-2/4-4)</sup><sup> • </sup><sup>[10](https://socr.umich.edu/BPAD1/BPAD1_notes/BPAD1_Chap01_MathFoundations.html)</sup><sup> • </sup><sup>[11](https://onlinelibrary.wiley.com/doi/10.1111/j.1466-822X.2004.00131.x)</sup>

该模型的假设有其局限。《Oikos》2024年的一篇综述认为，逻辑斯谛方程很可能不适用于许多生物系统，因为由消费者-资源动力学导出的密度调节函数通常是非线性的，其曲率呈凸或凹取决于资源与消费者的生物学特性；此外，诸如内禀增长率与平衡密度等参数并不像模型所假设的那样相互独立。<sup>[12](https://nsojournals.onlinelibrary.wiley.com/doi/abs/10.1111/oik.09824)</sup> 存在一系列推广形式：θ-逻辑斯谛或幂律逻辑斯谛模型、加入最小可存活种群的阈值变体，以及将冈珀茨（Gompertz）等增长曲线作为特例纳入的广义形式。<sup>[13](https://pubmed.ncbi.nlm.nih.gov/12047920/)</sup><sup> • </sup><sup>[9](https://openstax.org/books/calculus-volume-2/pages/4-4-the-logistic-equation)</sup>

## 逻辑斯谛回归与机器学习

逻辑斯谛回归将该函数应用于线性预测子：对于单个解释变量，

\[ \hat{p} = \frac{1}{1 + e^{-(\hat{\beta}_0 + \hat{\beta}_1 x)}}, \]

其中 \( \hat{p} \) 是二元响应等于1的预测概率。同一模型可写作 \( \log(\hat{p}/(1-\hat{p})) = \hat{\beta}_0 + \hat{\beta}_1 x \)，这使得系数成为对对数几率的影响。<sup>[14](https://exploration.stat.illinois.edu/learn/Logistic-Regression/Introducing-Logistic-Regression/)</sup>

在机器学习中，该函数是二分类的标准S形激活函数，以交叉熵损失 \( \mathcal{L}(y, t) = -t\log(y) - (1-t)\log(1-y) \) 进行训练。将该损失与S形函数的导数 \( y(1-y) \) 结合，可消去那个棘手的因子，留下梯度 \( (y - t)x_j \)；这既简化了计算，又防止了预测接近0或1时梯度消失——若将S形函数的输出与平方误差搭配，则会出现这一问题。<sup>[6](https://www.teach.cs.toronto.edu/~csc311notes/linear_classification/logistic_regression.html)</sup>

在统计学中，logit是二元结果两种标准联系函数之一，另一种是probit，后者改用累积正态函数。许多作者认为，在涉及二元响应的大多数情形下，在二者之间做选择缺乏理论依据；不过这一选择对系数解释确有影响：大量文献记录了跨群体、跨模型解释与比较logit和probit参数时的困难，作为应对，边际效应、Y标准化以及线性概率模型等替代方法被采用。<sup>[15](https://arxiv.org/abs/2105.00483)</sup><sup> • </sup><sup>[16](https://www.annualreviews.org/doi/10.1146/annurev-soc-073117-041429)</sup>

该函数还定义了逻辑斯谛分布，其标准形式的累积分布函数为 \( F(x) = 1/(1 + e^{-x}) \)，均值为0，标准差为 \( \pi/\sqrt{3} \)；它类似于正态分布，但尾部更重。<sup>[4](https://itl.nist.gov/div898/software/dataplot/refman2/ch8/logcdf.pdf)</sup>

## 剂量-反应分析

药理学使用四参数逻辑斯谛模型（亦称Hill斜率模型）作为拟合浓度-反应数据的标准方程。这四个参数分别确定底部与顶部平台、中点（IC50或EC50）以及斜率。早先的做法只绘制曲线的线性中段，大致为16%至84%的效应范围，这迫使人们排除极端处的数据，尽管正是那些渐近线定义了曲线；非线性拟合消除了这一限制。<sup>[5](https://www.ncbi.nlm.nih.gov/books/NBK92013/)</sup><sup> • </sup><sup>[17](https://www.ncbi.nlm.nih.gov/sites/books/NBK91994/pdf/Bookshelf_NBK91994.pdf)</sup>

拟合细节在实践中很重要。IC50的估计强烈依赖于平台区域；当剂量-反应曲线并非完美的S形时，估计值变化很大，此时Hill方程可能优于固定的四参数逻辑斯谛形式。<sup>[18](https://pmc.ncbi.nlm.nih.gov/articles/PMC3889528/)</sup> 一位评论者提醒道，逻辑斯谛函数是为随时间变化的人口增长而发展的，将其应用于作为浓度函数的药物结合从未得到正式论证，尽管四参数形式如今已属常规。<sup>[19](https://pmc.ncbi.nlm.nih.gov/articles/PMC2816740/)</sup>

## 预测及其他用途

拟合饱和过程的增长曲线是一种标准的预测工具。在一项针对15个国家电话普及率的25个时间序列的比较中，以均方根误差和平均绝对百分比误差衡量，局部逻辑斯谛、简单逻辑斯谛与冈珀茨模型显著优于扩展逻辑斯谛和FLOG模型等更复杂的扩展形式。<sup>[20](https://www.sciencedirect.com/science/article/abs/pii/016920709400556R)</sup> 同样的S形逻辑可描述采用曲线、肿瘤生长与自催化反应，这正是该函数出现在生态学、流行病学、经济学与工程学中的原因。<sup>[2](https://www.sciencedirect.com/science/article/abs/pii/S1369848604000676)</sup><sup> • </sup><sup>[13](https://pubmed.ncbi.nlm.nih.gov/12047920/)</sup>

## References

1. [Matthew Bernstein, Sigmoid functions lecture notes, University of Wisconsin](https://pages.cs.wisc.edu/~matthewb/pages/notes/pdf/basics/SigmoidFunction.pdf)
2. [J. S. Cramer (2004). The early origins of the logit model. Studies in History and Philosophy of Science Part C.](https://www.sciencedirect.com/science/article/abs/pii/S1369848604000676)
3. [Strang, 4.4 The Logistic Equation study guide, Locus (OpenStax Calculus Volume 2)](https://locusmath.org/books/openstax-calculus-2/4-4)
4. [LOGCDF, NIST/SEMATECH Dataplot Reference Manual](https://itl.nist.gov/div898/software/dataplot/refman2/ch8/logcdf.pdf)
5. [In Vivo Assay Guidelines, Assay Guidance Manual, NCBI Bookshelf](https://www.ncbi.nlm.nih.gov/books/NBK92013/)
6. [Logistic Regression, CSC311 Introduction to Machine Learning, University of Toronto](https://www.teach.cs.toronto.edu/~csc311notes/linear_classification/logistic_regression.html)
7. [Pierre Verhulst (1804–1849), MacTutor History of Mathematics, University of St Andrews](https://mathshistory.st-andrews.ac.uk//Biographies/Verhulst/)
8. [Earliest Known Uses of Some of the Words of Mathematics (L), MacTutor](https://mathshistory.st-andrews.ac.uk/Miller/mathword/l/)
9. [4.4 The Logistic Equation, Calculus Volume 2, OpenStax](https://openstax.org/books/calculus-volume-2/pages/4-4-the-logistic-equation)
10. [Biomedical Physics with Applications to Disease, Chapter 1, University of Michigan SOCR](https://socr.umich.edu/BPAD1/BPAD1_notes/BPAD1_Chap01_MathFoundations.html)
11. [Del Monte-Luna et al. (2004). The carrying capacity of ecosystems. Global Ecology and Biogeography.](https://onlinelibrary.wiley.com/doi/10.1111/j.1466-822X.2004.00131.x)
12. [Fronhofer et al. (2024). The shape of density dependence. Oikos.](https://nsojournals.onlinelibrary.wiley.com/doi/abs/10.1111/oik.09824)
13. [Tsoularis & Wallace (2002). Analysis of logistic growth models. Mathematical Biosciences 179(1):21–55.](https://pubmed.ncbi.nlm.nih.gov/12047920/)
14. [Introducing Logistic Regression, Exploration curriculum, University of Illinois Statistics](https://exploration.stat.illinois.edu/learn/Logistic-Regression/Introducing-Logistic-Regression/)
15. [Asymptotic properties in the Probit-Zero-inflated Binomial regression model, arXiv](https://arxiv.org/abs/2105.00483)
16. [Breen, Karlson & Holm (2018). Interpreting and Understanding Logits, Probits, and Other Nonlinear Probability Models. Annual Review of Sociology 44:39–54.](https://www.annualreviews.org/doi/10.1146/annurev-soc-073117-041429)
17. [Assay Operations for SAR Support, NCBI Bookshelf](https://www.ncbi.nlm.nih.gov/sites/books/NBK91994/pdf/Bookshelf_NBK91994.pdf)
18. [Use of Different Parameters and Equations for Calculation of IC50 Values in Efflux Assays, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC3889528/)
19. [Prinz, H. (2010). Hill coefficients, dose–response curves and allosteric mechanisms. J Chem Biol 3(1):37–44.](https://pmc.ncbi.nlm.nih.gov/articles/PMC2816740/)
20. [Meade & Islam (1995). Forecasting with growth curves: An empirical comparison. International Journal of Forecasting 11(2):199–215.](https://www.sciencedirect.com/science/article/abs/pii/016920709400556R)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Ordinary differential equations

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/logistic-function

English original: https://www.edgepedia.org/logistic-function
