MATH 20: PROBABILITY
Midterm 2 Xingru Chen xingru.chen.gr@dartmouth.edu
XC 2020
MATH 20: PROBABILITY Midterm 2 Xingru Chen - - PowerPoint PPT Presentation
MATH 20: PROBABILITY Midterm 2 Xingru Chen xingru.chen.gr@dartmouth.edu XC 2020 Ex Exam How many hours you spend preparing for the exam? Wrapper Wr How many hours you spend on the exam? Content on the last two weeks.
Midterm 2 Xingru Chen xingru.chen.gr@dartmouth.edu
XC 2020
for midterm 2
How many hours you spend preparing for the exam? How many hours you spend
the exam? Content
the last two weeks. Arrangements for the final. β¦
XC 2020
Problem 1: True or False
XC 2020
?
Can π follow a continuous uniform distribution?
XC 2020
Density Functions of Continuous Random Variable
Β§ Let π be a continuous real-valued random
density function for π is a real-valued function π that satisfies π π β€ π β€ π = β«
! " π π¦ ππ¦,
for π, π β β. Β§ If πΉ is a subset
β, thenπ π¦ β πΉ = β«
# π π¦ ππ¦.
Β§ In particular, if πΉ is an interval [π, π], the probability that the
the experiment falls in πΉ is given by π [π, π] = β«
! " π π¦ ππ¦.
π π π π
XC 2020
?
Can π follow a continuous uniform distribution?
No
?
Can π follow a discrete uniform distribution?
π π¦ = β―
XC 2020
?
Can π follow a discrete uniform distribution?
π π¦ = 0 π π¦ > 0
XC 2020
?
Can π follow a discrete uniform distribution?
π π¦ = 0 π π¦ > 0 ,
!"# $%
0 = 0 ,
!"# $%
π = +β No
XC 2020
Problem 1: True or False
Discr crete variance ce π π πΉ π& β π& = 0 = = πΉ π β π & = ,
'β)
(π¦ β π)&π(π¦) .
Co Continuous variance π π
0 = 6
*% $%
π¦ β π &π π¦ ππ¦
π = π
XC 2020
Problem 2: Computation
XC 2020
?
πΉ π&#&# = πΉ&#&#(π)
XC 2020
The Product of Two Random Variables
Β§ Let π and π be independent real-valued continuous random variables with finite expected
we have πΉ(ππ) = πΉ(π)πΉ(π). Β§ More generally, for π mutually independent random variables π!, we have πΉ π+π& β― π, = πΉ π+ πΉ π& β― πΉ(π,).
?
πΉ π&#&# = πΉ&#&#(π)
XC 2020
?
Are π and π independent? Β§ If π is any random variable and π is any constant, then π ππ = π&π(π), π π + π = π(π). Β§ Let π and π be two independent random
π(π + π) = π(π) + π(π). π 2π = 4π π ? π π + π = 2π π ?
XC 2020
Problem 2: Computation
XC 2020
!
Moment: πΉ π, , where π = 1, 2, 3, β―
XC 2020
Problem 3: Proof
π¦! β Μ π¦ = (π¦! β π) + (π β Μ π¦)
XC 2020
πΉ π‘& = π β 1 π π& How to redefine π‘&, so that πΉ π‘& = π&?
XC 2020
XC 2020
!
Extreme: π- π¦ = 0
!
Maximum: π-- π¦ < 0
!
Minimum: π-- π¦ > 0
XC 2020
Problem 4: Manipulation
XC 2020
XC 2020
XC 2020
v
π = ππ + π, πΉ π = ππΉ π + π, π π = π&π(π) π: uniform
[0, 1], πΉ π = +
&,
π π = +
+&
π: uniform
[π, π], πΉ π = .$/
& ,
π π = (/*.)!
+&
XC 2020
Problem 5: Educational Attainment
XC 2020
Bin Binomia ial d dist istrib ibutio ion
π π, π, π = π π π!π"#!
Po Poisson Distribution
π π = π = π! π! π#$
Which one to use? !
tw two parameter eters
!
parameter
π π π
XC 2020
Bin Binomia ial d dist istrib ibutio ion
π π, π, π = π π π!π"#!
Po Poisson Distribution
π π = π = π! π! π#$
Which one to use? !
π < +β
!
π β +β
XC 2020
Bin Binomia ial d dist istrib ibutio ion
π π, π, π = π π π!π"#!
Po Poisson Distribution
π π = π = π! π! π#$
Which one to use? !
π = π, π, β―
!
π = ππ, πππ, β―
=
ππ = π
XC 2020
When you cannot explain something: use Po Poisson di distribu bution (Poisson process)!
XC 2020
XC 2020
Problem 6: Cupidβs Arrow
XC 2020
XC 2020
π(π > π) 6
'"# $%
6
2"' $%
ππ§ππ¦
XC 2020
XC 2020
π(π > π) 6
'"# $%
6
2"# '
ππ§ππ¦
XC 2020
π(π β₯ π + 300) 6
'"# $%
6
2"'$3## $%
ππ§ππ¦
XC 2020
?
Daphne will break free from the enchantment first? π π > π = 2 7 golden arrow: 200 years lead arrow: 500 years
π. = 1 200 π/ = 1 500
1 500 1 200 + 1 500 = 2 7 π π > π = π4 π5 + π4
XC 2020
?
Apollo will break free from the enchantment first and Daphne has to wait another 300 years
more before her arrow wears
π π > π β© π β₯ π + 300 π π β₯ π + 300 = 5 7 π*3/7
XC 2020
π π β₯ π + 300 = 5 7 π*3/7
π. = 1 200 π/ = 1 500
π π > π = π4 π5 + π4 = 2 7 π π > π = π5 π5 + π4 = 5 7 π π > π§ = π*8"2 π π > 300 = π*3/7
XC 2020
π π β₯ π + 300 = 5 7 π*3/7 π π > π = π5 π5 + π4 = 5 7 π π > 300 = π*3/7 π π β₯ π + 300 = π π > 300 π(π > π) π π > π + 300|π > π π(π > π)
π π > π + π‘|π > π = π π > π‘
Memoryless Property
XC 2020
Problem 7: Man with No Name: A fistful of Nuts
XC 2020
Conditional Expectation
Β§ If πΊ is any event and π is a random variable with sample space Ξ© = {π¦+, π¦&, β― }, then the conditional expectation given πΊ is defined by πΉ π πΊ = β9 π¦9π(π = π¦9|πΊ). Β§ Let π be a random variable with sample space Ξ©. If πΊ
+,
πΊ&, β―, πΊ
: are
events such that πΊ! β© πΊ
9 = β for
π β π and Ξ© =βͺ9 πΊ
9,
then πΉ π = β9 πΉ π πΊ
9 π(πΊ 9).
XC 2020
Conditional Expectation
Β§ Conditional density π
.|/ π¦ π§ = 5$,&(7, 8) 5&(8) .
Β§ Conditional expected value πΉ π π = π§ = β« π¦π
.|/ π¦ π§ ππ¦.
Β§ Expected value πΉ π = β« πΉ π π = π§ π
/ π§ ππ§. marginal density joint density
XC 2020
Farming Sim
XC 2020
Example
Β§ A point π is chosen at random from [0, 1] uniformly. A second point π is then uniformly and randomly chosen from the interval [0, π]. Find the expected value for π. π
5|4 π¦ π§ = π 5,4(π¦, π§)
π
4(π§)
πΉ π π = π§ = 6 π¦π
5|4 π¦ π§ ππ¦
1
π§
XC 2020
!
sa same me
!
in independent
Ge Geometric Di Distribu bution π π = π = π,*+π
tr trial 1
tr trial 2
!
tw two
!
fi first
XC 2020
πΉ π = 1 π Ge Geometric π π = π = π,*+π Ge Geometric Di Distribu bution π π = π = π,*+π π π = π = π¦,(1 β π¦)
XC 2020
XC 2020
v
π π = π π = π¦ = π¦,(1 β π¦) πΉ π = π π = π¦ = 6
# +
π¦π π = π π = π¦ ππ¦ πΉ π = π π = π¦ = ,
,"# $%
ππ π = π π = π¦
XC 2020
XC 2020
Problem 8: Man with No Name: Out of San Pecan
XC 2020
Expectation of Functions of Random Variables
Β§ If π is a real-valued random variable and if π: π β π is a continuous real-valued function with domain [π, π], then πΉ π(π) = β«
*% $%π(π¦)π π¦ ππ¦,
provided the integral exists. Discr crete expect cted value π π(π) ,
'β)
π(π¦)π(π¦) Con
expect cted value π π(π) 6
*% $%
π(π¦)π π¦ ππ¦
XC 2020
XC 2020