Probability
3.1 Discrete Random Variables Basics
Anna Karlin Most slides by Alex Tsun
Probability 3.1 Discrete Random Variables Basics Anna Karlin Most - - PowerPoint PPT Presentation
Probability 3.1 Discrete Random Variables Basics Anna Karlin Most slides by Alex Tsun Agenda Intro to Discrete Random Variables Probability Mass Functions Cumulative Distribution function Expectation Flipping two coins Random
Anna Karlin Most slides by Alex Tsun
Isupport
91
111
a
203 b 20
c
18
d F
a
b
c
d Which cont
Whichhas Range
42,3
a a
b
b
c
4
d
d
a Kaka
b Ypg
c Ma
d
ag
The cumulative distribution function (CDF) of a random variable specifies for each possible real number , the probability that , that is
FX(x)
<latexit sha1_base64="sRHOyOvZfuCwr5D5z+nUz+WLjz4=">AB7nicbVDLSgNBEOz1GeMr6tHLYBDiJexGQY9BQTxGMA9IljA7mU2GzM4uM71iCPkILx4U8er3ePNvnCR70MSChqKqm+6uIJHCoOt+Oyura+sbm7mt/PbO7t5+4eCwYeJUM15nsYx1K6CGS6F4HQVK3ko0p1EgeTMY3kz95iPXRsTqAUcJ9yPaVyIUjKVmrfdVunpjHQLRbfszkCWiZeRImSodQtfnV7M0ogrZJIa0/bcBP0x1SiY5JN8JzU8oWxI+7xtqaIRN/54du6EnFqlR8JY21JIZurviTGNjBlFge2MKA7MojcV/PaKYZX/lioJEWu2HxRmEqCMZn+TnpCc4ZyZAlWthbCRtQTRnahPI2BG/x5WXSqJS983Ll/qJYvc7iyMExnEAJPLiEKtxBDerAYAjP8ApvTuK8O/Ox7x1xclmjuAPnM8f9lKOqg=</latexit>x
<latexit sha1_base64="hL+FaLtOT9luwfLW3Ut08xl3Pcw=">AB6HicbVDLTgJBEOzF+IL9ehlIjHxRHbRI9ELx4hkUcCGzI79MLI7OxmZtZICF/gxYPGePWTvPk3DrAHBSvpFLVne6uIBFcG9f9dnJr6xubW/ntws7u3v5B8fCoqeNUMWywWMSqHVCNgktsG4EthOFNAoEtoLR7cxvPaLSPJb3ZpygH9GB5CFn1Fip/tQrltyOwdZJV5GSpCh1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dWGZAwVrakIXP190RGI60nUWA7I2pGetmbif953dSE137GZIalGyxKEwFMTGZ/U4GXCEzYmIJZYrbWwkbUWZsQmVbAje8surpFWrehfV2v1lpX6Tx1GEziFc/DgCupwBw1oAoMxPMrvDmJ8+K8Ox+L1oKTzxzDHzifP3objwE=</latexit>Prob Outcome w X(w) 1/6 1 2 3 3 1/6 1 3 2 1 1/6 2 1 3 1 1/6 2 3 1 1/6 3 1 2 1/6 3 2 1 1
I
pmf
43
ko
g
Alex Tsun Joshua Fan
Prob Outcome w X(w) 1/6 1 2 3 3 1/6 1 3 2 1 1/6 2 1 3 1 1/6 2 3 1 1/6 3 1 2 1/6 3 2 1 1
X
nXHP
w
X123P123
X 132P 132
t X 2B P 2B
tX 321 P321
X231 P231
t X 312 P 312
Flip a biased coin until get heads (flips independent)
With probability p of coming up heads Keep flipping until the first Heads observed. Let X be the number of flips until done.
a pk
b
fl p
k c
tp
p
d p
u p
Flip a biased coin until get heads (flips independent)
With probability p of coming up heads Keep flipping until the first Heads observed. Let X be the number of flips until done. What is E(X)?
A
x'I
k
at
Probability p of coming up heads, n coin flips X: number of Heads observed.
a K p
b pkapy
k
c
E a pj
d 2 pkap'T
Flip a biased coin with probability p of coming up Heads n
X is number of Heads. What is E(X)? A 20
p
a
I
b
4
c
5 d
10
Flip a biased coin with probability p of coming up Heads n times. X is number of Heads. What is E(X)?
Alex Tsun
Let’s say you and your friend sell fish for a living.
how many fish do the two of you bring in (Z = X + Y) on an average day? E[Z] = E[X + Y] = e[X] + E[Y] = 3 + 7 = 10 You can sell each fish for $5 at a store, but you need to pay $20 in rent. How much profit do you expect to make? E[5Z - 20] = 5E[Z] - 20 = 5 x 10 - 20 = 30
Let’s say you and your friend sell fish for a living.
how many fish do the two of you bring in (Z = X + Y) on an average day? E[Z] = E[X + Y] = You can sell each fish for $5 at a store, but you need to pay $20 in rent. How much profit do you expect to make? E[5Z - 20] = 5E[Z] - 20 = 5 x 10 - 20 = 30
Let’s say you and your friend sell fish for a living.
how many fish do the two of you bring in (Z = X + Y) on an average day? E[Z] = E[X + Y] = e[X] + E[Y] = 3 + 7 = 10 You can sell each fish for $5 at a store, but you need to pay $20 in rent. How much profit do you expect to make? E[5Z - 20] = 5E[Z] - 20 = 5 x 10 - 20 = 30
Let’s say you and your friend sell fish for a living.
how many fish do the two of you bring in (Z = X + Y) on an average day? E[Z] = E[X + Y] = e[X] + E[Y] = 3 + 7 = 10 You can sell each fish for $5 at a store, but you need to pay $20 in rent. How much profit do you expect to make? E[5Z - 20] = 5E[Z] - 20 = 5 x 10 - 20 = 30