N4 Probability
N4 Probability
Probability space R F P
Power set
I sample space
I collection of subsets of R E 2h
P F to o B
mapping from
is a
r
what properties must I satisfy F E 2
i
0 E F A
g
ii r EE NT
A EI A EE
N A B E F AUB EF
HA HT TH TT
I
5 0
Hit HT THZETTZ
AH HT HH THT HH.TT HT TH3 HT.TT ETHTT3
HH HT TH HH.HT.TT HA TH.TT HT.TH.TT
HH HT TH TT
PCA flat
Example 2
Example 3
Exampleofaninprobability Fn
P 0 O 025
pf HH3 0.25 P ET131
P HH 1137 0 4
Events
A Er is an event Technically AEF
Two events A B are independent if
Conditioning
has happened is
Probability Of event A given event B
PCANBI
PLA 1B
PCB
Bandom Yariables
D HH HT TH TT 5 F I P A i
Ly I Al
X i r R
Let X be the number of heads Then X expressed as
a function is given by
X HH 2 X TH L
X HT I y X TT O
Probability Mars function example
f x PIX x
p wer x w x
x n
Ex PC were XCw 23 Pcr I
pf were X Cut 23 p it 3
Y4
f l P Xii
F X O pf o t l P X l t 2 PCx 2
Iz t 2
tf
Linearity of expectation
F axt by a a EX BEY
Multipletariade's
X S IR
Y c IR
Jointdistribution
f G4y P X X y y
P Ew X Cw sign wer XCw y3
Conditional distribution
f yldly pcx.sc y y
PCX y y
PCYn y
independence
X b H fns g h
a y
are ind events f yCX y f fyly EfgCx hCyD
for all a b ECgcxDEChCyD
y
X and Y are
Coulx D 0
E yg E x Ely
uncorrelated
F XY EX Ey
Conditioniample D AH HT TH TTY F 2
P C 14 Axiom
PCAIB PCAAB P HT 1 3
PCB 314
n 2
3
Independence example 1
A HH HT P A t
Ya
B HH TH PCB L
probability space
Independenceexampies
Axiom Note the
A HH HT P os
B HH 1
3 PCB 05
P AIB PCE't o
IF PIA
Is
Independentample
P c Ict Axiom
X w ICW H
Y w I Iwa T
Conditionpectationexample
D HAH HHT HTH HTT THA THT TTH TTT
I 21
Axioms
Pcc GL 14
X Of Heads
Y of Tails
w of Heads in the first two tosses
2 1 Toss 3 Head i.e Z W ICW H
F Exly 3 Y
E E Ext'D 3 EY
I 5 EX
Prove
W 2 are independent Random Variables
Prove
Cov x y F XY HX Ely co
More Conditional Expectation Examples
Experiment You keep tossing
a biased coin independently
till a Head let 0 be the bias
you get for heads
e 0 EX I
EX YO
Experiment You keep tossing a
fair coin
infinitely
many times
F XIA It EX
F XIA e
E XIA Aa PCAA F XIA AE MAE
F XIA Aa 2
F XIA AE 2T EX
EX 1.5 O 75 EX
i EX 6
Bayes Rule
Bayes Ruleexample
prevalence Of COVID O 01
P COV'D True O 01
O 9 0.01 t o ol 0.99
0.009 t 0.0099
O O 19
P X 11 0
ii Binomial no Xt 0,1 n
m
05
PCx m
nom om Ci
Properties
X Xn n Bernoulli O independent
X t Xn Y n Binomial n O
Continuously bles
F is an
increasing function
Properties
f lx O
I
J f X da
cx dx 5 u
f is the derivative off
f
0 if 11lb
f x X E a a
if Xt aib
Ia
0 if X Z b
a 0 b
EX f x f cx dx
Xi N
Example
Xn Unit a b
PT EX Atb
2
YarEx CBI
12
Joint distribution
f x
y a P XE x xtdx YE Cy ytdy
y
Properties
f x y dy f cx
y
of yH g doc fy ly
f f yG4Y fy lybDf bD
yldly
fycy fyly
Example X y f y fx
f Xt 1,2 1,4
xylol g t if yt
if X E 2,3 Y C 2,3
Y Yg
n
0 Otherwise
3
2
f X 34 if Xt 1,2
Yc if It 2,3
O i 2 3 0 Otherwise
The Normal Distribution
X n N Mah
4
f
ja expf ta.la lui
F EX µ EX MI oh
F 23 0 EG I
T
Let X 02 t M EX µ Effi Mi
H
X n N guest
The Multivariate Normal
Let Z 2 22
Z n N 0,1
Zz n N 0,1
Then
fz z at expf tzcz.tk
z n N 83 too
EG Oo E 22T o
Let
X W Z t
µ
F Ex M
E X M x MJ E wz wz T
EWzzTw
W E 22
1
WT
W WT
E
X n NCH E
What about density
Let Zn N Od Id
Let X WZtµ
Then X n N E where E WW
µ
f x
L CtaCx x5Ecx xD
ftp.yaae
Xu NCM E gut Rd Et Rd'd
f x I exptzlx xjsicx.su
a dkfE
EX M E x A Cx MY E
Let d 2 E E
fee I't f
Recall earlier Let µ Oo
X WZ and E WWT
x f Kilda f 2
z
X IX X n N loca l et
X h N o l
111
rly
Fx
ftp.expf tz ffcxa eoe 5tci ebx
J
z.EeaCxa e45
fzexPf expf tax
f Kalai Fx Cx
µ
XLIX X N ex I K
x N O l
pls
e74
sci
Te
vn t
y
x
it
42
2 X NN 1,075
22 em
712
24 2 Xin NG o B
In
a
0 25,1 25
2 i
C
lX 74
712
05
Exercise
ab
sT legal Values of a b c dare
Xu N Oo
Cd a O d O b C E trad trad
X 1 2 Xa
General rules for conditioning of Normals
Mda
db Eaa daxda
E
f film Egg Egg Earsdaxds
Eba dbXda
CRd
b dgXd
Precision matrix
e
III i I
Let Xu N o E Nco a
we have that
Then
Xa IX Mais Aaj
n
se N
Xb
n N 0 E
Bb
Mrly
N Abia 1155
Xblxa da n
Xa n N 0 Eaa
Where Mya Aj's Nba Xa
KL Divergence and Entropy
KL Png FE P log 9
KL divergence
i KL P 1197 0 P q
ii KLCP1197 30
Let p Ber O
X X2 1 Xn Ind RVs
f f f Expectation and
n Variance exist
I n X t 1An
I b N Ex varenxi CLT
PHI EX I E 0 as n sa
LLN
Gamma distribution
If X in GammaCa p
Icsc
BI xd e
Bx
Exercise Zn NCO 1
P T E 221 n
I
Random variable
Moments EX EX Ex
Centred moments 0 F x Ext EG Ex
Moment
Generating function
f Ct E etX
E it txt
tI tt
It f EX t
taExt t
f lo Ex
f lo Exa
Maximum likelihood estimator
Parameter space
P Po O to NIM.D MERT
e.g
E W
set of distribution parameterised
distributions
by 0
Data k da kn drawn i i d from some Po
Task Estimate or
find 0 from the data
L O P x x ix 10
II Polki
2h10 n
EE log Polxi
E
LL 10
E log Polk l 1 log 7 1 10
ta x µ t const
L2 M e
2 x gift const
I l LL
µ FE x
x O
Il 241µmol o
Min s Eye
Exercise
P N µ oh MEIR ftp 3
P Unit a b at R b E IR
X Iz Xp
i
am M.in X
bn m Ki
P Bern O Otto D
X X x t X t 0,13
Om In EX