当前位置:网站首页>Matlab calculates the integral of normal function, and the quantile corresponding to the integral
Matlab calculates the integral of normal function, and the quantile corresponding to the integral
2022-07-18 07:54:00 【Xuan yanru Liu】
1. Find the integral value of normal distribution
f ( x ) = ∫ − ∞ x 1 2 π e x p [ − ( x − μ ) 2 2 σ 2 ] d x f(x) = \int_{-∞}^{x}{\frac{1}{\sqrt{2 \pi}}exp[-\frac{(x- \mu)^2}{2 \sigma^2}]}dx f(x)=∫−∞x2π1exp[−2σ2(x−μ)2]dx
p = normcdf(x)
p = normcdf(x,mu)
p = normcdf(x,mu,sigma)
normcdf Function finding The mean for mu, The standard deviation is sigma Is a normal distribution , stay [ − ∞ , x ] [-∞,x] [−∞,x] Integral on
among ,mu and sigma They are in the formula μ and σ \mu and \sigma μ and σ.
Example :
% The mean for 2, The variance of 1 Is a normal distribution , stay [-∞,2] Integral on
>> normcdf(2,2,1)
ans =
0.5000
% The mean for 2, The variance of 1 Is a normal distribution , stay [1.1,2] Integral on
>> normcdf(2,2,1) - normcdf(1.1,2,1)
ans =
0.3159
2. The integral value is known , Quantile x x x
x = norminv( p )
x = norminv( p,mu )
x = norminv( p,mu,sigma )
Example :
% The mean for 2, The variance of 1 Is a normal distribution , The integral value is 0.5 Quantile of time
>> norminv(0.5,2,1)
ans =
2
% The standard normal distribution satisfies P{
x0>x}=0.99
>> norminv(0.99)
ans =
2.3263
边栏推荐
猜你喜欢
随机推荐
使用 SSH 方式拉取代码
990.等式方程的可满足性·并查集
338.比特位计数·动态规划
Simple understanding of CAS and AQS
Procédure d'essai de pénétration
3-6月面经总结,200多页真题笔记和详解(含核心考点及6家大厂)
How to solve Oracle cross network disconnection forwarding?
One question per day · 735 Planetary collision · stack simulation
745.前缀和后缀搜索
Matlab:trainingOptions()详解 训练选项
蓝领困顿,直播带岗是真伪需求?
Pytorch中的广播机制(Broadcast)
二路归并排序总结
LAN attack and network device security configuration
Devsecops R & D security practice - Design
Pytorch中的广播机制(Broadcast)
中金财富证券是正规证券公司吗?开户安全吗
307·区域和检索-数组可修改
【详细教程】一文参透MongoDB聚合查询
fftshift有什么用?MATLAB做FFT后为什么还要fftshift?









