Chapter5. Joint random variables

advertisement
1
Chapter5. Joint random variables
Problem PP143
1. When you roll one more time you receive 𝑠 + π‘˜ when you roll k (probability = 1⁄2𝑛)
with the die provided 𝑠 + π‘˜ ≤ 2𝑛, otherwise you receive nothing. Hence,
𝐸𝐢 (𝑠) =
2.
1
4𝑛
1
2𝑛
∗ [(𝑠 + 1) + (𝑠 + 2) + … + 2𝑛];
∗ (2𝑛 − 𝑠) ∗ (2𝑛 + 𝑠 + 1) = 𝑠 or
𝑠 2 + (4𝑛 + 1) ∗ 𝑠 − 4𝑛2 − 2𝑛 = 0
1
Solving the quadratic equation: 𝑠𝑓 = 2 ∗ (−4𝑛 − 1 + √32𝑛2 + 16𝑛 + 1) (the second
root is negative).
Notice that continuing to roll is better than stopping when the left hand side of the
quadratic equation is smaller than 0. Also the quadratic function has a convex shape,
hence 𝑠 ∗ = ⌊𝑠𝑓 ⌋.
Problem PP144
1. Straightforward;
2. Let 𝑆 = 𝑋1 + 𝑋2 and 𝑇 = 𝑋1. The joint pdf of S and T is
𝑓(𝑠, 𝑑) = 2 ∗ (𝑠 − 𝑑) , 0 ≤ 𝑑 ≤ 1 π‘Žπ‘›π‘‘ 𝑑 ≤ 𝑠 ≤ 𝑑 + 1
The marginal pdf of S:
𝑠
𝑓(𝑠) = ∫ 2 ∗ (𝑠 − 𝑑) ∗ 𝑑𝑑 = 𝑠 2 , 0 ≤ 𝑠 ≤ 1
0
1
= ∫𝑠−1 2 ∗ (𝑠 − 𝑑) ∗ 𝑑𝑑 = 𝑠 ∗ (2 − 𝑠) , 1 ≤ 𝑠 ≤ 2
1
2
4. 𝐸(𝑆) = ∫0 𝑠 3 ∗ 𝑑𝑠 + ∫1 𝑠 2 ∗ (2 − 𝑠) ∗ 𝑑𝑠 = 7⁄6 = 1.16667
or: 𝐸(𝑆) = 𝐸(𝑋1 ) + 𝐸(𝑋2 ) = 7⁄6
5. Straightforward
2
6. Let M denote the median. Using the result in Step 5:
− 𝑀3 ⁄3 + 𝑀2 − 1⁄3 = 1⁄2. Use the Solver to find 𝑀 = 1.168;
Problem PP145
1
1−π‘₯1
1. ∫0 ∫0
π‘˜ ∗ π‘₯1 ∗ π‘₯2 ∗ 𝑑π‘₯2 ∗ 𝑑π‘₯1 = 1
⟹
π‘˜ = 24
1−π‘₯
2. 𝑓(π‘₯1 ) = ∫0 1 24 ∗ π‘₯1 ∗ π‘₯2 ∗ 𝑑π‘₯2 = 12 ∗ π‘₯1 ∗ (1 − π‘₯1 )2 , 0 ≤ π‘₯1 ≤ 1: beta pdf with
parameters 𝛼 = 2 and 𝛽 = 3. Because of symmetry the pdf of 𝑋2 has the same pdf;
3. 𝐸(𝑋1 ) = 𝐸(𝑋2 ) =
𝛼
𝛼𝛽
𝛼+𝛽
= 2⁄5 , π‘£π‘Žπ‘Ÿ(𝑋1 ) = π‘£π‘Žπ‘Ÿ(𝑋2 ) = (𝛼+𝛽)2
∗(𝛼+𝛽+1)
= 1⁄25;
4. Let 𝑆 = 𝑋1 + 𝑋2 and 𝑇 = 𝑋2. Then 𝑋1 = 𝑆 − 𝑇 and 𝑋2 = 𝑇. The J(acobian) is 𝐽 = 1.
𝑓(𝑠, 𝑑) = 24 ∗ 𝑑 ∗ (𝑠 − 𝑑) , 0 ≤ 𝑑 ≤ 𝑠 ≤ 1
𝑠
𝑓(𝑠) = ∫ 24 ∗ 𝑑 ∗ (𝑠 − 𝑑) ∗ 𝑑𝑑 = 4 ∗ 𝑠 3 , 0 ≤ 𝑠 ≤ 1
0
1
5. 𝐸(𝑆) = ∫0 𝑠 ∗ 4 ∗ 𝑠 3 ∗ 𝑑𝑠 = 4⁄5 = 0.8
2⁄75
1
1−π‘₯1 π‘₯1
6. 𝐸(𝑋1⁄𝑋2 ) = ∫0 ∫0
π‘₯2
24∗π‘₯1 ∗π‘₯2
7. 𝑓(π‘₯2 |π‘₯1 ) = 12∗π‘₯
2
1 ∗(1−π‘₯1 )
π‘£π‘Žπ‘Ÿ(𝑆) = 𝐸(𝑆 2 ) − [𝐸(𝑆)]2 = 2⁄3 − 16⁄25 =
∗ 24 ∗ π‘₯1 ∗ π‘₯2 ∗ 𝑑π‘₯2 ∗ 𝑑π‘₯1 = 2
π‘₯
= 2 ∗ (1−π‘₯2
2
1)
, 0 ≤ π‘₯2 ≤ 1 − π‘₯1
Problem PP146
𝑛
𝑓(π‘₯, πœƒ) = ( ) ∗ πœƒ π‘₯ ∗ (1 − πœƒ)𝑛−π‘₯ ∗ 1 , 0 ≤ πœƒ ≤ 1 ,
π‘₯
π‘₯ = 0, 1, 2, … , 𝑛
1
𝑛
𝑝(π‘₯) = ( ) ∗ ∫ πœƒ π‘₯ ∗ (1 − πœƒ)𝑛−π‘₯ ∗ π‘‘πœƒ =
π‘₯
0
1
𝑛 Γ(π‘₯ + 1) ∗ Γ(𝑛 + π‘₯ + 1)
Γ(𝑛 + 2)
( )∗
∗∫
∗ πœƒ π‘₯ ∗ (1 − πœƒ)𝑛−π‘₯ ∗ π‘‘πœƒ =
π‘₯
Γ(𝑛 + 2)
Γ(π‘₯
+
1)
∗
Γ(𝑛
+
π‘₯
+
1)
0
3
= (𝑛π‘₯) ∗
Γ(π‘₯+1)∗Γ(𝑛+π‘₯+1)
Γ(𝑛+2)
1
= 𝑛+1 , π‘₯ = 0, 1, 2, … , 𝑛
(integrand is a beta pdf)
Problem PP148
1. 𝑓(𝑙1 ) = 1 , 1 ≤ 𝑙1 ≤ 2 and likewise for 𝑙2 .
𝐹(𝑙1 ) = 𝑃(𝐿1 ≤ 𝑙1 ) = 𝑙1 − 1 ,
1 ≤ 𝑙1 ≤ 2
𝑃(𝐿 ≤ 𝑙) = 𝐹(𝑙) = 𝑃(𝐿1 ≤ 𝑙 β‹‚ 𝐿2 ≤ 𝑙) = (𝑙 − 1)2 , 1 ≤ 𝑙 ≤ 2
𝑓(𝑙) = 2 ∗ (𝑙 − 1) , 1 ≤ 𝑙 ≤ 2
2
2. 𝐸(𝐿) = 2 ∗ ∫1 𝑙 ∗ (𝑙 − 1) ∗ 𝑑𝑙 = 5⁄3
2
2)
𝐸(𝐿
= 2 ∗ ∫ 𝑙 2 ∗ (𝑙 − 1) ∗ 𝑑𝑙 = 17⁄6
1
π‘£π‘Žπ‘Ÿ(𝐿) = 𝐸(𝐿2 ) − [𝐸(𝐿)]2 = 1⁄18
3. 𝐿𝑠 = 𝐿1 + 𝐿2 , 2 ≤ 𝐿𝑠 ≤ 4
Let 𝑙𝑠 = 𝑙1 + 𝑙2 and 𝑙𝑑 = 𝑙1 . Then 𝑙1 = 𝑙𝑑 and 𝑙2 = 𝑙𝑑 − 𝑙𝑠 , 𝐽(π‘Žπ‘π‘œπ‘π‘–π‘Žπ‘›) = 1
𝑓(𝑙𝑑 , 𝑙𝑠 ) = 1 , 1 ≤ 𝑙𝑑 ≤ 2 , 𝑙𝑑 + 1 ≤ 𝑙𝑠 ≤ 𝑙𝑑 + 2
𝑙𝑠 −1
𝑓(𝑙𝑠 ) = ∫
=
𝑑𝑙𝑑 = 𝑙𝑠 − 2 , 2 ≤ 𝑙𝑠 ≤ 3
1
2
∫𝑙 −2 𝑑𝑙𝑑
𝑠
= 4 − 𝑙𝑠 , 3 ≤ 𝑙𝑠 ≤ 4
4. 𝐸(𝐿𝑠 ) = 𝐸(𝐿1 + 𝐿2 ) = 𝐸(𝐿1 ) + 𝐸(𝐿2 ) = 1
π‘£π‘Žπ‘Ÿ(𝐿𝑠 ) = π‘£π‘Žπ‘Ÿ(𝐿1 ) + π‘£π‘Žπ‘Ÿ(𝐿2 ) = 1⁄6
Problem PP149
1. 𝐸(2 ∗ 𝐿 + 2 ∗ π‘Š) = 2 ∗ 𝐸(𝐿) + 2 ∗ 𝐸(π‘Š) = 2 ∗ 100 + 2 ∗ 70 = 340
π‘£π‘Žπ‘Ÿ(2 ∗ 𝐿 + 2 ∗ π‘Š) = 4 ∗ π‘£π‘Žπ‘Ÿ(𝐿) + 4 ∗ π‘£π‘Žπ‘Ÿ(π‘Š) = 4 ∗ 100 + 4 ∗ 25 = 500
C is a linear combination of Normally distributed random variables, hence also normally distributed;
4
2. 𝑃(300 ≤ 𝐢 ≤ 350) = 𝑁𝑂𝑅𝑀. 𝐷𝐼𝑆𝑇(350,340, 𝑆𝑄𝑅𝑇(500), 1) −
𝑁𝑂𝑅𝑀. 𝐷𝐼𝑆𝑇(300,340, 𝑆𝑄𝑅𝑇(500), 1) = 0.6358;
3. 𝐸(𝐴) = 𝐸(𝐿 ∗ π‘Š) = 𝐸(𝐿) ∗ 𝐸(π‘Š) = 100 ∗ 70 = 7000 π‘š2
π‘£π‘Žπ‘Ÿ(𝐴) = π‘£π‘Žπ‘Ÿ(𝐿 ∗ π‘Š) = 𝐸(𝐿2 ∗ π‘Š 2 ) − 𝐸 2 (𝐿 ∗ π‘Š) = 𝐸(𝐿2 ) ∗ 𝐸(π‘Š 2 ) − 70002
= [π‘£π‘Žπ‘Ÿ(𝐿) + 𝐸 2 (𝐿)] ∗ [π‘£π‘Žπ‘Ÿ(π‘Š) + 𝐸 2 (π‘Š)] − 70002 = 742500 π‘š4
Problem PP150
1. Let 𝐹1 (𝐹2 ) be the end of operation 1 (operation 2). Then 𝐹1 − 𝐹2 is normally
distributed with 𝐸 (𝐹1 − 𝐹2 ) = −1 and π‘£π‘Žπ‘Ÿ(𝐹1 − 𝐹2 ) = 4.
𝑃(𝐹1 ≤ 𝐹2 ) = 𝑃(𝐹1 − 𝐹2 ≤ 0) = 𝑁𝑂𝑅𝑀. 𝐷𝐼𝑆𝑇(0, −1,2,1) = 0.6914;
2. 𝑃(−1 ≤ 𝐹1 − 𝐹2 ≤ 0) = 𝑁𝑂𝑅𝑀. 𝐷𝐼𝑆𝑇(0, −1,2,1) − 𝑁𝑂𝑅𝑀. 𝐷𝐼𝑆𝑇(−1, −1,2,1) =
0.1915;
3. Let X be the time that operation 2 starts after the start of operation 1 (in minutes).
𝐹1 − 𝐹2 ∼ 𝑁(5 − 𝑋, 2).
The probability that part 1 will be available before part 2 but by no more than 3
minutes:
𝑃(−3 ≤ 𝐹1 − 𝐹2 ≤ 0) = 𝑁𝑂𝑅𝑀. 𝐷𝐼𝑆𝑇(0,5 − 𝑋, 2,1) − 𝑁𝑂𝑅𝑀. 𝐷𝐼𝑆𝑇(−3,5 − 𝑋, 2,1)
which should be maximized.
Problem PP151
1. Let 𝑋𝑖 be the weight of sweet i. Then 𝑋𝑖 ∼ 𝑁(5 , √0.5 ). The sum ∑𝑛𝑖=1 𝑋𝑖 of the
weight of n sweets is normal with expected value 5 ∗ 𝑛 and variance 0.5 ∗ 𝑛. The
number of sweets required is the smallest integer such that
𝑛
∑𝑛𝑖=1 𝑋𝑖 − 5 ∗ 𝑛 200 − 5 ∗ 𝑛
𝑃 (∑ 𝑋𝑖 > 200) = 𝑃 (
>
) ≥ 0.999
𝑖=1
√0.5 ∗ 𝑛
√0.5 ∗ 𝑛
n is the smallest integer larger than the solution of
200 − 5 ∗ 𝑛
√0.5 ∗ 𝑛
= −3.09
or 5 ∗ 𝑛 − 3.09 ∗ √0.5 ∗ 𝑛 − 200 = 0 ⟹ 𝑛 = 45
5
Problem PP152
1. Let A (B) denote the arrival time of A (B). Let DTA (DTB) denote the journey time of A
(B).
𝐸(𝐴) = 4 π‘π‘š
𝐸(𝐷𝑇𝐡) = 5 + 1⁄2 + 2 + 1⁄2 + 2.5 = 10.5 β„Žπ‘Ÿπ‘  ⟹ 𝐸(𝐡) = 4.30 π‘π‘š
2. DTB is normally distributed with expected value 630 minutes and variance 900 + 100 +
225 = 1225 π‘šπ‘–π‘›π‘’π‘‘π‘’π‘  2 .
𝑃(𝐴 < 5 π‘π‘š) = 𝑃(𝐷𝑇𝐴 < 660 π‘šπ‘–π‘›) = 0.84
𝑃(𝐡 < 5 π‘π‘š) = 𝑃(𝐷𝑇𝐡 < 660 π‘šπ‘–π‘›) = 0.804
3. 𝑃(𝐡 π‘Žπ‘Ÿπ‘Ÿπ‘–π‘£π‘’π‘  π‘π‘’π‘“π‘œπ‘Ÿπ‘’ 𝐴) = 𝑃(𝐷𝑇𝐡 − 𝐷𝑇𝐴 < 0) = 𝑃 (𝑧 <
0−30
) = 0.333
√1225+3600
Problem PP153
1. Let π‘‹π‘˜ be the length of step k with pmf
𝑃(π‘‹π‘˜ = 1) = 0.5 and 𝑃(π‘‹π‘˜ = −0.8) = 0.5
𝐸(π‘‹π‘˜ ) = 0.1 π‘š , π‘£π‘Žπ‘Ÿ(π‘‹π‘˜ ) = 0.81 π‘š2
The sum ∑900
π‘˜=1 π‘‹π‘˜ is approximately normally distributed with expected value 90 and
variance 729. Hence, approximately,
900
𝑃 (∑
π‘‹π‘˜ ≥ 100) = 𝑃 (𝑍 ≥
π‘˜=1
100 − 90
√729
) = 0.355
2. The pdf of π‘‹π‘˜ is uniform:
𝑝(π‘‹π‘˜ ) = 1⁄1.8 ,
−0.8 ≤ π‘₯π‘˜ ≤ 1
𝐸(π‘‹π‘˜ ) = 0.1 π‘š , π‘£π‘Žπ‘Ÿ(π‘‹π‘˜ ) = 0.27 π‘š2
900
𝑃 (∑
π‘‹π‘˜ ≥ 100) = 𝑃 (𝑍 ≥
π‘˜=1
3. The pmf of π‘‹π‘˜ is
𝑝(π‘₯π‘˜ ) = 1⁄4 , π‘₯π‘˜ = 1
= 1⁄2 , π‘₯π‘˜ = 0
= 1⁄4 , π‘₯π‘˜ = −1
100 − 90
√243
) = 0.2606
6
𝐸(π‘‹π‘˜ ) = 0 π‘š , π‘£π‘Žπ‘Ÿ(π‘‹π‘˜ ) = 0.5 π‘š2
900
𝑃 (∑
π‘‹π‘˜ ≥ 10) = 𝑃 (𝑍 ≥
0 − 10
π‘˜=1
√450
) = 0.3187
Problem PP156
1. We solve the problem for general parameters πœ†1 and πœ†2 .
Let 𝑦 = π‘₯1 ⁄π‘₯2 and 𝑑 = π‘₯2 . Then π‘₯1 = 𝑦 ∗ 𝑑 and π‘₯2 = 𝑑. The Jacobian of the
transformation: 𝐽 = 𝑑.
𝑓(𝑦, 𝑑) = πœ†1 ∗ πœ†2 ∗ 𝑒 −πœ†1 ∗𝑦∗𝑑 ∗ 𝑒 −πœ†2 ∗𝑑 ∗ 𝑑
,
𝑦, 𝑑 > 0
∞
𝑓(𝑦) = πœ†1 ∗ πœ†2 ∗ ∫ 𝑑 ∗ 𝑒 −𝑑∗(πœ†2 +𝑦∗πœ†1 ) ∗ 𝑑𝑑
0
Notice that the integrand is, except for the constant (πœ†2 + 𝑦 ∗ πœ†1 )2 , a gamma density
with parameters 𝛼 = 2 and 𝛾 = πœ†2 + 𝑦 ∗ πœ†1 . Hence,
𝑓(𝑦) =
πœ†1 ∗ πœ†2
, 𝑦>0
(πœ†2 + 𝑦 ∗ πœ†1 )2
2.
∞
3. 𝑃(π‘Œ > π‘˜) = πœ†1 ∗ πœ†2 ∗ ∫π‘˜
1
(πœ†2 +𝑦∗πœ†1
)2
∗ 𝑑𝑦 = πœ†
πœ†2
2 +π‘˜∗πœ†1
.
For πœ†1 = 4, πœ†2 = 2 and π‘˜ = 2:
𝑃(π‘Œ > 2) = 0.2
Problem PP157
1. 𝑇 = π‘šπ‘Žπ‘₯(𝑋, π‘Œ) where X (Y) is the time to finish project 1 (project 2).
π‘₯ 1
1
𝐹𝑋 (π‘₯) = ∫10 10 ∗ 𝑑π‘₯ = 10 ∗ (π‘₯ − 10) , 10 < π‘₯ < 20. Similarly for Y.
𝑃(𝑇 ≤ 𝑑) = 𝑃(𝑋 ≤ 𝑑 ∩ π‘Œ ≤ 𝑑) =
1
∗ (𝑑 − 10)2 , 10 < 𝑑 ≤ 20
150
1
= 1 ∗ 15 ∗ (𝑑 − 10) , 20 < 𝑑 ≤ 25
7
𝑓(𝑑) =
1
∗ (𝑑 − 10) , 10 < 𝑑 ≤ 20
75
1
= 15
, 20 < 𝑑 ≤ 25;
1
43
2. 𝑃(𝑇 > 18) = 1 − 150 ∗ (18 − 10)2 = 75
𝐸(𝑓𝑖𝑛𝑒) = 75000 ∗
43
= 43000
75
𝐸(π‘π‘Ÿπ‘œπ‘“π‘–π‘‘) = 50000 − 43000 = € 7000
Problem PP159
1. Let 𝑀 = π‘₯ 2 ∗ y and 𝑣 = 𝑦. Then π‘₯ = √𝑀 ⁄𝑣 and 𝑦 = 𝑣. The J(acobian) is
1
𝐽 = 2 ∗ (𝑣 ∗ 𝑀)−1⁄2.
𝑓(𝑣, 𝑀) = 6 ∗ [1 − (𝑀 ⁄𝑣)1⁄2 ] , 0 ≤ 𝑀 ≤ 𝑣 ≤ 1
1
𝑓(𝑀) = 6 ∗ ∫ [1 − (𝑀 ⁄𝑣)1⁄2 ] ∗ 𝑑𝑣 = 6 ∗ (1 + 𝑀 − 2 ∗ √𝑀) , 0 ≤ 𝑀 ≤ 1
𝑀
1
2. 𝐸(π‘Š) = 6 ∗ ∫0 𝑀 ∗ (1 + 𝑀 − 2 ∗ √𝑀) ∗ 𝑑𝑀 = 1⁄5
Problem PP160
1. 𝑓(𝑦|π‘₯) =
𝑓(π‘₯, 𝑦) =
𝑓(𝑦) =
1
√2πœ‹
1
2
∗ 𝑒 −2∗(𝑦−2∗π‘₯)
, −∞ < 𝑦 < +∞
1 2
1
1
1
2
2
2
∗ 𝑒 −2∗[π‘₯ +(𝑦−2∗π‘₯) ] =
∗ 𝑒 −2∗(5∗π‘₯ +𝑦 −4∗π‘₯∗𝑦) ,
2πœ‹
2πœ‹
−∞ < π‘₯, 𝑦 < +∞
+∞
5
1 2
1
2 4
∗ 𝑒 −2∗𝑦 ∗ ∫ 𝑒 −2∗(π‘₯ −5∗π‘₯∗𝑦) ∗ 𝑑π‘₯
2πœ‹
−∞
+∞
5
1 2
2 2
1
2 4 2 4
=
∗ 𝑒 −2∗𝑦 ∗ 𝑒 5∗𝑦 ∗ ∫ 𝑒 − 2∗(π‘₯ +25𝑦 −5∗π‘₯∗𝑦) ∗ 𝑑π‘₯
2πœ‹
−∞
2
+∞
1
2
1 2
1
1
1
−
∗(π‘₯− ∗𝑦)
− ∗𝑦
5
=
∗ 𝑒 10 ∗ √1⁄5 ∗ ∫
∗
∗ 𝑒 2∗(1⁄5)
∗ 𝑑π‘₯
√2πœ‹
−∞ √2πœ‹ √1⁄5
8
=
1
1
√2πœ‹∗√5
2
∗ 𝑒 −2∗5∗𝑦 : normal with expected value 0 and variance 5;
2. Let 𝑣 = π‘₯ + 𝑦 and 𝑀 = π‘₯. Then 𝑦 = 𝑣 − 𝑀 and π‘₯ = 𝑀. The Jacobian of the
transformation is 1.
𝑓(𝑣, 𝑀) =
𝑓(𝑣) =
=
=
1
1
2
2
∗ 𝑒 − 2∗[𝑀 +(𝑣−3𝑀) ] ,
2πœ‹
−∞ < 𝑣, 𝑀 < +∞
+∞
10
1 2
1
2 6
∗ 𝑒 −2∗𝑣 ∗ ∫ 𝑒 − 2 ∗(𝑀 −10∗𝑣∗𝑀) ∗ 𝑑𝑀
2πœ‹
−∞
1
∗𝑒
√2πœ‹
1
2
− ∗𝑣 2
1
√2πœ‹∗√10
∗𝑒
1
9
20
1
∗ √10 ∗
+∞ 1
∫−∞ √2πœ‹
∗
1
√1⁄10
1
∗
3
−
∗(𝑀− ∗𝑣)
10
𝑒 2⁄10
2
∗ 𝑑𝑀
2
∗ 𝑒 −2∗10∗𝑣 : normal with expected value 0 and variance 10
Problem PP162
1. Call your arrival time 0, X the arrival time of the first arriving bus and Y the arrival
time of the first arriving cab. Then
𝑓(π‘₯) = 1 , 0 ≤ π‘₯ ≤ 1 and
𝑓(𝑦) = 𝑒 − 𝑦 , 𝑦 > 0
π‘Š = π‘šπ‘–π‘›(𝑋, π‘Œ)
𝑃(π‘Š > 𝑀) = 0 , 𝑀 > 1
= 𝑃(𝑋 > 𝑀 ∩ π‘Œ > 𝑀) = (1 − 𝑀) ∗ 𝑒 − 𝑀
𝐹(𝑀) = 1 − (1 − 𝑀) ∗ 𝑒 − 𝑀
𝑓(𝑀) = (2 − 𝑀) ∗ 𝑒 − 𝑀 , 0 ≤ 𝑀 ≤ 1
1
𝐸(π‘Š) = ∫ 𝑀 ∗ (2 − 𝑀) ∗ 𝑒 − 𝑀 ∗ 𝑑𝑀 = 𝑒 −1 = 0.368
0
1
π‘₯
2. 𝑃(π‘‘π‘Žπ‘₯𝑖 π‘π‘’π‘“π‘œπ‘Ÿπ‘’ 𝑏𝑒𝑠) = 𝑃(π‘Œ < 𝑋) = ∫0 𝑑π‘₯ ∗ ∫0 𝑒 − 𝑦 ∗ 𝑑𝑦 = 𝑒 − 1 = 0.368
9
Problem PP163
1
Γ(𝛼+𝛽)
1. 𝑝𝑋 (π‘˜) = ∫0 (π‘›π‘˜) ∗ π‘ž π‘˜ ∗ (1 − π‘ž)𝑛−π‘˜ ∗ Γ(𝛼)∗Γ(𝛽) ∗ π‘ž 𝛼−1 ∗ (1 − π‘ž)𝛽−1 ∗ π‘‘π‘ž
𝑛!
1
Γ(𝛼+𝛽)
= π‘˜ !∗(𝑛−π‘˜) ! ∗ Γ(𝛼)∗Γ(𝛽) ∗ ∫0 π‘ž 𝛼+π‘˜−1 ∗ (1 − π‘ž)𝑛+𝛽−π‘˜−1 ∗ π‘‘π‘ž
𝑛!
Γ(𝛼+𝛽)
= π‘˜ !∗(𝑛−π‘˜) ! ∗ Γ(𝛼)∗Γ(𝛽) ∗
Γ(𝛼+π‘˜)∗Γ(𝑛+𝛽−π‘˜)
Γ(𝛼+𝛽+𝑛)
Problem PP166
1. 𝑓(π‘₯, 𝑦) = 2⁄π‘₯ , 0 < 𝑦 < π‘₯ 2 , 0 < π‘₯ < 1
1
Let 𝑣 = π‘₯ 2 − 𝑦 and 𝑀 = 𝑦. Then π‘₯ = (𝑣 + 𝑀)1⁄2 and 𝑦 = 𝑀. The J(acobian): 𝐽 = 2 ∗
(𝑣 + 𝑀)− 1⁄2
1
, 𝑣 > 0 ,𝑀 > 0 ,0 ≤ 𝑣 + 𝑀 ≤ 1
𝑣+𝑀
𝑓(𝑣, 𝑀) =
1−𝑣
𝑓(𝑣) = ∫
0
1
∗ 𝑑𝑀 = −𝑙𝑛(𝑣) , 0 < 𝑣 < 1
𝑣+𝑀
1
𝐸(𝑉) = ∫ 𝑣 ∗ ln(𝑣) ∗ 𝑑𝑣 = 1⁄4
0
1
2. Let 𝑣 = π‘₯ 2 + 𝑦 and 𝑀 = 𝑦. Then π‘₯ = (𝑣 − 𝑀)1⁄2 and 𝑦 = 𝑀. The J(acobian): 𝐽 = 2 ∗
(𝑣 − 𝑀)− 1⁄2
1
, 𝑣 > 2 ∗ 𝑀 ,𝑣 ≤ 𝑀 + 1 ,0 ≤ 𝑀 ≤ 1 ,0 ≤ 𝑣 ≤ 2
𝑣−𝑀
𝑓(𝑣, 𝑀) =
𝑣⁄2
𝑓(𝑣) = ∫
0
𝑣⁄2
=∫
𝑣−1
2
1
∗ 𝑑𝑀 = 𝑙𝑛(2) , 0 ≤ 𝑣 ≤ 1
𝑣−𝑀
1
∗ 𝑑𝑀 = −𝑙𝑛(𝑣⁄2) = 𝑙𝑛(2) − 𝑙𝑛(𝑣) , 1 ≤ 𝑣 ≤ 2
𝑣−𝑀
2
𝐸(𝑉) = ∫ 𝑣 ∗ 𝑙𝑛(2) ∗ 𝑑𝑣 − ∫ 𝑣 ∗ 𝑙𝑛(𝑣) ∗ 𝑑𝑣 = 3⁄4
0
1
10
Problem PP167
∞
1. 𝑓(π‘₯) = πœ†2 ∗ ∫π‘₯ 𝑒 − πœ†∗𝑦 ∗ 𝑑𝑦 = πœ† ∗ 𝑒 − πœ†∗π‘₯ , π‘₯ > 0 ;
𝑦
2. 𝑓(𝑦) = πœ†2 ∗ ∫0 𝑒 − πœ†∗𝑦 ∗ 𝑑𝑦 = πœ†2 ∗ 𝑦 ∗ 𝑒 − πœ†∗𝑦 , 𝑦 > 0 ;
3. 𝑓(𝑦|π‘₯) =
πœ†2 ∗𝑒 −πœ†∗𝑦
πœ†∗𝑒 − πœ†∗π‘₯
= πœ† ∗ 𝑒 − πœ†∗(𝑦−π‘₯) , 𝑦 > π‘₯
𝑦
𝐹(𝑦|π‘₯) = πœ† ∗ 𝑒 πœ†∗π‘₯ ∗ ∫ 𝑒 − πœ†∗𝑧 ∗ 𝑑𝑧 = 1 − 𝑒 − πœ†∗(𝑦−π‘₯) , 𝑦 > π‘₯
π‘₯
To generate a random value of Y given 𝑋 = π‘₯, set
1 − 𝑒 − πœ†∗(𝑦−π‘₯) = 𝑅 where R is a random number. Solving for y/
1
𝑦 = π‘₯ − ∗ 𝑙𝑛(1 − 𝑅)
πœ†
4. Let 𝑣 = π‘₯⁄𝑦 and 𝑀 = 𝑦. Then π‘₯ = 𝑣 ∗ 𝑀 and 𝑦 = 𝑀. The J(acobian) is 𝐽 = 𝑀.
𝑓(𝑣, 𝑀) = πœ†2 ∗ 𝑒 − πœ†∗𝑀 ∗ 𝑀 , 𝑀 > 0 , 0 < 𝑣 < 1
∞
2
𝑓(𝑣) = πœ† ∗ ∫ 𝑀 ∗ 𝑒 − πœ†∗𝑀 ∗ 𝑑𝑀 = 1 , 0 < 𝑣 < 1
0
5. 𝐸(𝑉) = 1⁄2
6. Let 𝑀 = 𝑦⁄π‘₯ and 𝑒 = π‘₯. Then 𝑦 = 𝑒 ∗ 𝑀 and π‘₯ = 𝑒. The J(acobian) is 𝐽 = 𝑒.
𝑓(𝑀, 𝑒) = πœ†2 ∗ 𝑒 − πœ†∗𝑀∗𝑒 ∗ 𝑒 , 𝑀 > 1 , 𝑒 > 0
∞
2
𝑓(𝑀) = πœ† ∗ ∫ 𝑒 ∗ 𝑒 − πœ†∗𝑒∗𝑀 ∗ 𝑑𝑒 = 1⁄𝑀 2 , 𝑀 > 1
0
∞
1
7. 𝐸(π‘Š) = ∫1 𝑀 ∗ 𝑀 2 ∗ 𝑑𝑀 = +∞
11
Problem PP168
1. Let 𝐡𝑖 denote the number of balls in box i. Then
𝑋𝑖 = 0 π‘€β„Žπ‘’π‘› 𝐡𝑖 = 0
𝑋𝑖 = 𝐡𝑖 − 1 π‘€β„Žπ‘’π‘› 𝐡𝑖 > 0
𝑛
𝐸(𝑋𝑖 ) = ∑
𝑛
(𝑏 − 1) ∗ 𝑃(𝐡𝑖 = 𝑏) = ∑
𝑏=1
𝑛
𝑏 ∗ 𝑃(𝐡𝑖 = 𝑏) − ∑
𝑏=1
𝑏=1
𝑃(𝐡𝑖 = 𝑏)
= 𝑛 ∗ 𝑝𝑖 − [1 − 𝑃(𝐡𝑖 = 0)] = 𝑛 ∗ 𝑝𝑖 − 1 + (1 − 𝑝𝑖 )𝑛 as 𝐡𝑖 is binomially distributed
with parameters n and 𝑝𝑖 .
π‘˜
𝐸 (∑
π‘˜
𝑋𝑖 ) = ∑
𝑖=1
π‘˜
𝐸(𝑋𝑖 ) = 𝑛 − π‘˜ + ∑
𝑖=1
(1 − 𝑝𝑖 )𝑛
𝑖=1
Download