当前位置:网站首页>MCS: discrete random variable
MCS: discrete random variable
2022-06-23 05:22:00 【Fight the tiger tonight】
Discrete Arbitrary
x x x Is a discrete variable , It represents a set of values , x i x_i xi For the th in the set i i i Number ,( i ∼ 1 → N i \sim 1 \to N i∼1→N), A specific value in a collection x i x_i xi The probability of is written as : P ( x i ) = P ( x = x i ) P(x_i) = P(x = x_i) P(xi)=P(x=xi), therefore P ( x 1 ) , . . . P ( x N ) P(x_1), ... P(x_N) P(x1),...P(xN) Defined variables x x x Probability distribution of .
∑ i P ( x i ) = 1 \sum_i P(x_i) = 1 i∑P(xi)=1
Variable x x x Expectation and variance of :
E ( x ) = ∑ i x i P ( x i ) E(x) = \sum_i x_i P(x_i) E(x)=i∑xiP(xi)
V ( x ) = E ( x 2 ) − E ( x ) 2 V(x) = E(x^2) - E(x)^2 V(x)=E(x2)−E(x)2
E ( x 2 ) = ∑ i x i 2 P ( x i ) E(x^2) = \sum_i x_i^2 P(x_i) E(x2)=i∑xi2P(xi)
CDF:
F ( x i ) = P ( x < = x i ) F(x_i) = P(x <= x_i) F(xi)=P(x<=xi)
Generate random variables that obey any probability distribution
- For each x i x_i xi, find F ( x i ) , i ∼ 1 → N F(x_i), i \sim 1 \to N F(xi),i∼1→N
- Generate a random continuous uniform u ∼ U ( 0 , 1 ) u \sim U(0, 1) u∼U(0,1)
- Locate the smallest x i x_i xi where u < F ( x i ) u < F(x_i) u<F(xi)
- $ x = x_i$
- Return x x x
example : hypothesis x x x Is discrete , Obey the following probability distribution and cumulative distribution function :
| x | P(x) | F(x) |
|---|---|---|
| 0 | 0.4 | 0.4 |
| 1 | 0.3 | 0.7 |
| 2 | 0.2 | 0.9 |
| 3 | 0.1 | 1.0 |
- Generate a uniformly distributed random variable : u ∼ U ( 0 , 1 ) , u = 0.58 u \sim U(0, 1), u = 0.58 u∼U(0,1),u=0.58
- u < F ( 1 ) = 0.7 u < F(1) = 0.7 u<F(1)=0.7
- x = 1 x = 1 x=1
边栏推荐
- Direct insertion sort - [common sort method (1/8)]
- 戏问花门酒家翁
- gis利器之Gdal(三)gdb数据读取
- pygame音乐相关的功能实现
- Zygote进程
- shutdown关机命令
- [MAC] there is no source option in security and privacy
- [microservices | Nacos] Nacos realizes data isolation of multi environment and multi tenant
- Swiftui 2.0 course notes Chapter 4
- konva 系列教程 1:konva 是什么?
猜你喜欢
随机推荐
Jetpack compose menubar Desktop Menu from door opening to entry
BGP实验
MCS:离散随机变量——Uniform分布
组合式API-composition-api
TIOBE 编程语言排行榜是编程语言流行趋势的一个指标
JDBC call stored procedure, MySQL trigger
Difficult to find a job in a bad environment? Ali on three sides. Fortunately, he has made full preparations and has offered
OSPF分流实验
Onnxoptimizer, onnxsim usage records
When SBAS encounters rtklib
HCIP 交换机实验
Drama asking Huamen restaurant Weng
PHP move_ uploaded_ File failed to upload mobile pictures
关于重放攻击和防御
onnxoptimizer、onnxsim使用记录
关于DOS/DDOS攻击和防御
Drag and drop frame
Go 分组 & 排序
应用挂了~
JDBC入门学习(四)之Druid连接池的使用









