当前位置:网站首页>MCS: discrete random variable Bernoulli distribution
MCS: discrete random variable Bernoulli distribution
2022-06-23 05:22:00 【Fight the tiger tonight】
Bernoulli
x x x Is Bernoulli variable , The value is 0/1:
P ( x = 1 ) = p P(x = 1) = p P(x=1)=p
p ( x = 0 ) = 1 − p p(x = 0) = 1 - p p(x=0)=1−p
Expectation and variance :
E ( x ) = p E(x) = p E(x)=p
V ( x ) = p ( 1 − p ) V(x) = p(1 - p) V(x)=p(1−p)
The generation process of random Bernoulli variables is as follows :
- Generate a random uniform variable u ∼ U ( 0 , 1 ) u \sim U(0, 1) u∼U(0,1)
- if u < p , x = 1 ; e l s e , x = 0 u < p , x = 1; else, x = 0 u<p,x=1;else,x=0
example : Set a Bernoulli variable x x x, p ( x = 1 ) = 0.7 p(x = 1) = 0.7 p(x=1)=0.7, The random Bernoulli variables are generated as follows :
- Generate a random variable u = 0.5 u = 0.5 u=0.5
- u < p ( x = 1 ) , x = 1 u < p(x = 1), x = 1 u<p(x=1),x=1
边栏推荐
- Baidu PaddlePaddle's "universal gravitation" first stop in 2022 landed in Suzhou, comprehensively launching the SME empowerment plan
- Economic development is driven by new technology
- Snippet Manager snippetslab
- Un processus GC complet pour le principe JVM
- 第十六届东北地区大学生程序设计竞赛(热身赛)B-String Value(字符串dp)
- How can functional testers spend one month to become advanced automation software test engineers
- 左侧固定,右侧自适应 三种实现办法(Flex,float + BFC ,float-margin-left)
- 九九乘法表.bat
- 戏问花门酒家翁
- STP总结
猜你喜欢

物联网开源开发平台 Shifu 开放内测!第一版技术文档发布

BGP experiment

【Leetcode】最长递增子序列问题及应用

Beyond chips and AI, why is hard technology capital becoming more and more "hard core"?

IDEA 代码开发完毕后,提交代码,提交后发现分支不对,怎么撤回

MCS:连续随机变量——Chi-Square分布

飞桨框架v2.3发布高可复用算子库PHI!重构开发范式,降本增效

软件项目管理 8.4.软件项目质量计划

JDBC入门学习(二)之封装工具类

Ams:startactivity desktop launch application
随机推荐
A compiler related bug in rtklib2.4.3 B34
MCS:离散随机变量——Bernoulli分布
如何进行探索性数据分析
App hangs~
应用挂了~
Three methods of GNSS velocity calculation
导出带水印的PDF
STP summary
PHP move_ uploaded_ File failed to upload mobile pictures
MySQL自定义序列数的实现
Event日志关键字:EventLogTags.logtags
Drag and drop frame
关于重放攻击和防御
Penetration test basis | attached test points and test scenarios
Fund performance evaluation
Error related to synchronizing domestic AOSP code
LeetCode-1757. 可回收且低脂的产品_SQL
JVM原理之完整的一次GC流程
Post processing of multisensor data fusion using Px4 ECL
When SBAS encounters rtklib