当前位置:网站首页>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
边栏推荐
猜你喜欢

(IntelliJ) plug in background image plus

Onnxoptimizer, onnxsim usage records

The tiobe programming language ranking is an indicator of the popular trend of programming languages

Calculate Euclidean distance and cosine similarity

Penetration test basis | attached test points and test scenarios

大環境不好難找工作?三面阿裏,幸好做足了准備,已拿offer

Jetpack Compose 从开门到入门之 MenuBar桌面菜单(Desktop Menu)

OSPF分流实验

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

OSPF shunt test
随机推荐
Drag and drop拖放框架
HCIP 重发布实验
Mysql入门学习(一)之语法
8 years' experience: monthly salary of 3000 to 30000, the change of Test Engineer
MCS:离散随机变量——Uniform分布
Introduction to unityshader -- rendering optimization technology in unity (IV)
shutdown关机命令
九九乘法表.bat
UI automation positioning edge -xpath actual combat
JVM原理之完整的一次GC流程
软件项目管理 8.4.软件项目质量计划
1010 Radix
[microservices | Nacos] list of issues related to the Nacos version
JDBC入门学习(一)之DML操作
物联网开源开发平台 Shifu 开放内测!第一版技术文档发布
[MAC] there is no source option in security and privacy
Laravel8 implementation of picture verification code
MCS:连续随机变量——LogNormal分布
【opencv450】 图像相减、二值化、阈值分割
导出带水印的PDF