当前位置:网站首页>Matlab求正态函数积分,积分对应的分位点
Matlab求正态函数积分,积分对应的分位点
2022-07-15 17:39:00 【璇焱如柳】
1. 求正态分布的积分值
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函数求均值为mu,标准差为sigma的正态分布,在 [ − ∞ , x ] [-∞,x] [−∞,x]上的积分
其中,mu和sigma分别是公式里的 μ 和 σ \mu和\sigma μ和σ。
示例:
% 均值为2,方差为1的正态分布,在[-∞,2]上的积分
>> normcdf(2,2,1)
ans =
0.5000
% 均值为2,方差为1的正态分布,在[1.1,2]上的积分
>> normcdf(2,2,1) - normcdf(1.1,2,1)
ans =
0.3159
2. 已知积分值,求分位点 x x x
x = norminv( p )
x = norminv( p,mu )
x = norminv( p,mu,sigma )
示例:
% 均值为2,方差为1的正态分布,积分值为0.5时的分位点
>> norminv(0.5,2,1)
ans =
2
% 标准正态分布满足P{
x0>x}=0.99
>> norminv(0.99)
ans =
2.3263
边栏推荐
- DevSecOps研发安全实践——设计篇
- Openharmony module II parsing of header files under interfaces (8)
- Those things on the server side
- 3-6月面经总结,200多页真题笔记和详解(含核心考点及6家大厂)
- 云平台与基础架构中需要考虑哪些安全风险
- mysql中出现Unit mysql.service could not be found 的解决方法
- Why can MySQL temporary tables have duplicate names?
- 万物皆可Cassandra——HUAWEI Tag背后的神仙数据库
- 1、华为机试题记录
- AES encryption learning of openharmony security module
猜你喜欢

Query distance according to longitude and latitude and sort by distance

Pytorch中torch.repeat()函数解析

Things about the client (2)

1. Huawei machine test question record

J9数字科普:Web3.0很遥远?不它已经来了

VSCode【因为在此系统上禁止运行脚本】

(open source project) abattoir unity game

2022中国移动创客马拉松大赛物联网专题赛开赛啦

服务端的那些事儿

Preliminary analysis of openharmony module II (2)
随机推荐
Probability meditation: 1 Plausible reasoning
云上数字创新,如何塑造一座城市的幸福感?
AES encryption learning of openharmony security module
LINQ implements dynamic orderby
OpenHarmony模块二下文件samgr_server解析(1)
来自JRockit的礼物:JMC虚拟机诊断工具
前六章补充案例和知识点(一)
AMD Ryzen 5 7600X 6核心和4.4GHz 'Zen 4 ' CPU现身跑分数据库
滲透測試流程
云平台与基础架构中需要考虑哪些安全风险
Pytorch中torch.max()函数解析
Query distance according to longitude and latitude and sort by distance
软件架构与设计(二)-----架构模型
vscode默认新建目录重叠
1、华为机试题记录
OpenHarmony模块二interfaces下头文件解析(9)
软件架构与设计(九)-----基于组件的架构
2022 China mobile maker marathon Internet of things special competition kicks off
OpenHarmony模块二下文件samgr_server解析(5)
(open source project) abattoir unity game