本文介绍了如何用R计算正态分布的概率的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一个变量 M 服从正态分布 N(μ, σ),其中 μ=100,σ = 10.
There is a variable M with normal distribution N(μ, σ), where μ=100 and σ = 10.
求概率 P{|M-80|≥ 11}?
Find the probability P{|M-80|≥ 11}?
我使用 R 所做的是:
What I did using R was:
- P{|M-80|≥ 11} = P{|M|≥ 11 + 80} = P{|M|≥ 91}
- pnorm(91, mean=100, sd=10,lower.tail = FALSE)
但这是不正确的!请您告诉我正确的方法是什么?
But it's incorrect!, please can you tell me what's the correct way?
推荐答案
绝对值转换错了
P{|M-80|>=11} = P{M>=91} + P{M=
P{|M-80|>=11} = P{M>=91} + P{M=<69}
pnorm(91, mean=100, sd=10, lower.tail = FALSE) +
pnorm(69, mean=100, sd=10, lower.tail = TRUE)
这篇关于如何用R计算正态分布的概率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!