Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 R 中,您如何计算出现负读数或零读数的概率?μ 和 σ 给出。
可以使用高斯分布的分布函数:
pnorm(0,μ,σ)
(我猜你说的是高斯分布)
pnorm 是累积密度函数。它的值介于 0 和 1 之间,它在 x 处的值给出了从 -inf 到 x 的高斯曲线下的面积。在我下面的示例中,pnorm 的 0 处的值给出了高斯曲线下粉红色的区域,因此您正在寻找的概率,即按照相应的高斯分布采样值低于或等于 0 的值的概率。