












Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!













based on
models
probabilities
to
quantities
&
· model-based
with
~
update
them Via
Bayes
rule
related
to the
sampled population
statistical induction
:
the
characteristics of a
from a subset of it
o dataset
the information of
y
is used to decrease the
uncertainty
on o
Y
,
(parameter
Space)
:
the value that
best
tile o
set of all datasets set of all parameters
Y
,
,
we
that O is the true population
characteristic)
>
knowledge
based info
,
VyfY f(y1O)
is the outcome if
we knew
o to be tice(
Once we
obtainy
(Oly) posterior
(Delief that
o is tile value
given y(
1
= f
(e
.
,
IP)
,
.. ...,
Ho
Of &
S .
t
. IP(Hr)'O
FK
,
.
t
. IPCE)sO
IP(HilE)
=H
(ElHi)
IP (Hil
=
IP(ElHi)
IP
(Hil
TH FOR RU
Y
,
.
I. Y10-f)
.
Out(
.
/ densities
1
TO1Y
=
=
Y ,
IV
,
Random Vector
I
.
of
With
density
dominated model
probability
measure on (
,
B(O1)
TH FOR
=
=
do
if it has a
density
= f(y10(π(0)
My
.
,
,
.. ..
%18 to
TO1)
:
given ,
·
choose a prior
fors and update
it
using only y1 ,
then consider the
Olde
as D new prior
to be
)
equivalent
tra
·
the
of O
both
4
. 4
at once
1 .
estimates
:
posterior
mean
median
level of the interval
(regions
if
O Multidimensional) ((8CIR S .
t .
&
·
=
(PM ,
Pa)
Where
=
of
the
equal-tailed
(T)
·
c
=
(01T(Oly)
.
t .
1-a
(highest probability density
interval(
hypothesis testing
Ho
: Of Go VS Hi
: Off ,
,
of f
To = (80)
,
I
= 1
To 9 ,
PriOi densities Under Ho
,
=
Topollo(0)
.
prior
mass of
the
hypotheses
Tof
(0)
& Go
#(0(y)
=
I
M(y)
( t
090(8(
(1-To)Co
,
Fog
(
Off ,
posterior
odds
select Ho
if K
/
k 0 .
5
~
·
I'BFa
: evidence for Ho but not worth
more than a mention
· 10" BEo
,
" : Substantial evidence for
Ho
prior
odds
FACTOR
BFo
· 10 :BFo
,
:
Strong
evidence for Ho
·
BFo" 10 : decisive evidence for
Ho
forecast new data:
distribution Y
. ....
Yo
,
You
i
fo
~ Mynel
....,
in
(y/y ,
...
=
Jof(y(8)π(8(y ,
..
.,
yn)DO
,
... .
Y) is
if
.....
=
,
... .
Yu)
8
permutation
it
.
a
(Yoln ,
↑
the Order
=
,
,
=
Yi) , ...
exchangeability
s
:Symmetry
Dinary
Data
(y
=
=
=
=
0
.
=
=
= 1
.
/
=
:
the values of the joint
distribution do not depend
where we had
on but on their
total number
(YIn, Sequence
of
IV is
exchangeable
I 7 D
Probability
Measure
.
.
,
.
t
.
=
....n
=
=
(0.
,
&(
O(
**
F(d8)
When (Yn ,
is
exchangeable
: ~FORD Y
,
..
18 Be(El
M
·
there's an
equivalence
between
exchangeable
and trials
and with
a fixed
,
unknown
probability
:
scientifically
relevant information available
·
reference
prior
: small impact
on the
analysis
~ flat PriOr
=
C 10
,
if o is not bounded and
marginals
not exist
Posteriors
may
the likelihood
~
Jeffrey's
<
,
/(locylo)))
=
/-clopf(y(0))
improper ,
invariant
to
Fisher information
random Variable
,
Target
distribution
(posterior
~
Monte Carlo method
: draw iid
Samples &"O" ...
from
it
,
to learn
i
distribution Over O
,
h : 0 IR S.t . Joh(8)/it(dol
: a
,
o "
,
...
of iv iid from I
~
1 .
=
[0")"
CORON(DO)
=
pe( .
of ha
of 1h(8")
, ...,
h(8) I
if
we want
,
=
:
>
err
= F -
TH (((T) it distribution Over 0
,
h : 0
< IR S .
t . Joh(0)lit(DO)
:
a
,
=
0'
,
,
...
of iV iid from I
> 1
.
T(FY
= N
.
.
om
=
1
Fa
~
err"
=
N( .
)
<(1-0)
b)
close to 0 if
ilarge
MC standard error
if we want an iid sample
from
the
posterior predictive
distribution
augmentation
trick
Y X in but we can't
directly
sample
,
.
.
t .
We can id
Sample
,
.
and
:
sample
,
.
and
obtain a
sequence
for t
=
1
, ...,
T
diaw
·
~
,
"
,
Xil ,
. ...
(X
Xi) 2(X
,
...,
2(Xi)
~>
apply
=
,
...,
·
.
=
,
=
,
... .
Yn)
.
Density
,
... ,
Yn)
draw
from D
density
we
cannot
directly
from
~ assume
<
.
iCtl
=
-CO
.
if
U : T(z) accept
8
=
z
,
and
go
back to 1 .
~
,
sequence
of random elements With values
in ECIR" is D
time-homogeneous
=
Xo
,
... .
Xx
=
Xn)
=
,
fA(Xx
=
Xn)
state space
P (Xn
,
A)
,
is D transition
probability
,
is Measurable FA-E
,
A) is a
Probability
On (E
,
probability
measure
it is
invariant if
(P(X ,
=
i
.
t .
:
0 7 n
=
,
,
:
0 FXEE .
is irreducible if
.
t
.
it is
measure
~
the Chain
Visits all
States in I finite
number of steps
visits
the whole
support
of the
posterior
· MC
.
t .
&"has I
strictly
density
·
If
has discrete and absolute continuous
and 7721
S .
t
.
the
continuous
of " has
strictly
density
wit
a
then
is
irreducible with
↓"
maximal
irreducibility
distribution
is
.
t
. 4
and
.
0 .
> O
i
.
.
=
-D .
e .
Wit X
~
MC Teaches all states
infinitely
often
,
at least from almost all Initial
the posterior assigned
to
any
With the relative frequency
of
visits to A of the MCMC
MC irreducible and recurrent
is
positive
recurrent if it admits an invariant
probability
0
.
.
=
1 AXfE
S .
t
.
&(X
,
Ei)
= 1 j
=
i
1 MODM EXEEi
Harris
ergodic
(1) (2)
Y It is invariant
:
reversibility
it
IT(X(p(X ,
y(x(X
,
y)
=
π(y)p(y ,
X(d(y .
,
if
, y)
X)(1)
=
π(y(p(y ,
=
X)
=
π(X(q(X ,
y)
(
,
x)
=
1
to check
irreducibility
we need
stronger
on
p(X
,
·
random walk MH P(X , y)
=
f(y-X) ,
is irreducible
,
recurrent
,
aperiodic
. The Candidate
is
iT(y)
:
·
independence
p(x , y)
=
f(y) ,
if
D .
e .
On Et
WitM
>
,
recurrent
,
aperiodic
1
.
< D .
e .
WitM
>
q(X , y)
:
0 XX
Positivity
,
O
,
In exist it it NOT
improper
·
p-dimensional
rector 1 .
=
X ,
"
.....
=
,
Simulate
~
.
....
)
.
/X
....
&
**
~
,
X
,
...,
.
1X
!
"
,
,
Xp)
p
~
.....
Xp)
.
/X"
....,
n + 1
GiDDS
= MH in which each
is
Sequentially
and x
=
1
·
trace
=
history
of the generated
iterates for each
as D time Series
~
converges ,
should look like white noise
·
autocorrelation plots
=
Daiplots
of
:
1
,
9 ,
...
~
should decrease as
lag
increases
~priance of h(8")
·
Markov Chain StandDiD
error
=
stanDDID
deviation of
:
ie
=
[Vit(h(Xo))
[COVR(X
,
n(
Correlation Between↓(8")
,
h(8)
variance of Monte (Gile
01
0
Stypically
OCCUT
TT
estimate
(*)
=
(
:
values should be small
,
empirical
covariances
Ür
empirical
variance
·
size
=
We should id simulate from the
posterior
to
get
the Markov Chain Se we have obtained
~ S .
t .
Vi(h)
= :
Should be
High
i
invertible
> P
·
reference
ISB ,
[10(t)
:
BIE.
. X-N(B.
[ (XX(
:
)
.
X-COMMD(PP
,
·
conditionally Conjugate
B
[
B-
N(Do
.
.
invertible PXP
the full conditionals
die N
,
Gamma
: Y is
generated
fromD distribution in the
family
random
-exp-family
scale parameter
>
f(y
=
exp(y
-b(5)
, 41)
natural parameter
linear
predictor
=
XiB
link
function
=
indepently sample
epch Z :
(BIZ
,
Y)
<
[N(z i XiB1t(BI
a
NCE
.
N(Do
,
Bo
HIERARCHICAL MODELS
~
models with latent variables U
,
treated
as
Ply .
.
Plaid
,
Nol
.
=
plys ,
dipiriditio
plo ,
a
,
multilevel model
>
p(t ,
y)
=
) P(tly ,
,
Ulp(O , Uly)dOdr
we need to
able to sample
from
p(810. y) .
P(U .
. PCEly ,
.
Y
.
:
: i p(y(Vil
Within
-Group
.....
,
8'ü
,
,
....
~
P
between-group
model
~
. ...,
t -
NCM ,
Il
PrIOT
6
~
,
ros
,
1
thanks to
exchangeability ,
information is Shared DCOSS
groups
/. N.
the
Bayesian
estimee
&. T'Doirows
info from Other
groups
:
=
Observation
representing
the j-th unit within the i-th
= Unit-level Covariates
~
within
-proup heterogeneity
as Y :
=
X Bi
.
1 :
Y:/B :,
0
group
specific regression
coefficients
linear mixed effects model
across-group heterogeneity
described as
Bil
,
l
Bi
=
8 + Vi VilzN
l
.
~ π(8) x
Yi
=
fixed effect random effect
more
generally
=
ZiVi
~
ti
,
Xis
De of different
group-specific
.
,
O-N(Mo.
INV WisMArt (So
0 O ~inVGamma
(To
,
Tool
a
new subject from D new
CTC
ye
,
Burl
y1 ,
. ...
X
1
... .
Xm
,
=
)
,
,
DB,
.
,
.
DDtD X
=
(2(Ym
Bm
.
**
1,
.
, Bm ,
.
DOtO
,
Xer
/
=
(
Bm.
**
(Bmal
Be. .. .
Bm
.
.
.
,
Xe)
...
,
=
(
Bm.
**
(Bm
.
,
..
,
.
data)
=
2(Y/B c
..
.
,
B ,
...
.
Bm
,
,
.
<
2(Bm
,
1
,
21 from their
new
from the
population
distribution N
,
3
. draw O' from its
marginal
4
the likelinood
of new
existing gioup
,
=
,
,
.
,
=
(
Bi ,
Bi ,
.
penalization term
WAl.
=opm(y
:
Mil-
= (PML ,
for i
large
=(
Mi
=V
,
Mil
it Could be WAlC i
=
; + Pw >
> smallest
: are data consistent with the selected Model
?
~"Outlier detection via
tail
:=
MinSIP(
=
:
M)
,
hierarchical Mixture model
glIETYIX))
=
X
+... +
duxiliDiy
variables
=
, ...,
,
11 indicates if
the associated variable enters the Model U Be(0)"/B
.
=
that B: is large enough
to
this
: SPIKE AND SLAB PRIOR induces a
positive
prior probability
On
Ho :
=
0
Bilo
in STAN : SSUS With
concentrated at
o
slab-gussion widely
spread
:
~
=
,
Marginal
I(Uoly)
=
posterior
model
P(y([)
highest
posterior probability
CIgMex(Uly)
=
Diga
MCMC values from the posterior marginal
of u
median
probability
model; :( :
=
(1y)
=
marginal
posterior
inclusion probability
Hard
Shrinkage
Select all covariates such that of
in the
marginal credibility
interval of
the
regressor
~
analysis
of data
that crise
when
studying
the time until the occurrence of an
event
: time-to-event data
positive
and absolutely
continuous
ivs
.
Could
be censored
=
Survival time (positive and
absolutely
continuous)
>
F(t)
=
Survival function
=
1
F(t)
=
1P(Ty t)
nazarD function h(t)
=
IP(tTetttITYt
F(t)
=
1-exp(-[n(v1du
0 and
IP(T(t
S(T
t)
=
exp(-(n(u)(x)
#t S(t)
~
propensity
to failure
·
increasing
failure rate
Ch(t)
increasing
t + S(T
=
S)
·
decreasing
decreasing)
t)
:
:
S(
=
constant
< <
=
can be censored
: 1.
Tight censoring
(it's not
to
observe the event of
interest due to another event occurring prior
to it(
if
we're not able to observe the
actual time that an event occuried
=
censoring
time
> Y:
=
,
6
=
4
if T
= C
if the event
is censored
O if
TY C
censoring
patient entering
late in the
study
(
censoring
Assumptions independent
censoring
·
censoring
=
on the
We
only
right
censored data
:
:
) Observations
,
..
/f))
,
9() f((9))
= Y
=
(Tild(C)"
Si
=
~
P(34e ,
, ....
(4n ,
10
=
Ef
. 914 = PC .
Gild
di
= 1
~
P(4:,
=
1181
=
IP(y:
=
Ti
,
Ti < C :
=
:
:
·
Si
=
0
>
PS
= 0181
=
= Co
,
=
glyi)(1-F(yil
4(y. ,
6
:
18)a((
:
Si
= 1
>
,
....,
,
63183 a 9f(yll
Ch(yill
"
S(
:
)
noninformative censoring
:
Si
= 0
we must
.
)
~
family
of distributions indexed
Dy
(parametric
Models)
:
given
it (0) we can simulate
IT(Oly ,
61 by
and
inference
~
,
>
+10)
,
mean survival time survival
at a fixed time
number of uncensored obs
i ,
, ...,
:
=
0
.
P(y ,
(e)1-11-
=
=
Qhg-ousi
~
gamma
,
B)
=
Oly ,
6
gamme (a
. B +
conjugate
prior
SPATIAL MODELS
Data 1 . Point-referenced
data Y/s) random Vector at location SEIR" that varies
continuously
Over
DCIRi
Contains Di-dim rectangle
of positive volume
Grea datDY(S)
.
,
a finite number
of drea
units With well defined Doundaries
,
.
random and the index set of
gives
the location of random events that are
spatial
near
to each
other will be
more similar
1 measurement
:
>no
,
SEDI DCIR' Stochastic
,
1 locations S
, ...,
Sn x data
(y(S
,
)
,
... , y(Sn))
=
The process
is
strictly stationary
if
.
,. ..,
So
,
n 2(Y(S 1
.
... .
y(S
=
2(Y(Se
h)
.. .,
Semivariogram
.
=
.
"
=
=
20(h)
= y(S) is
stationaly
only
on h
~
r(n)
=
= =
((n)
=
=
U(h)
Covariance
(weakly) Stationary
~
The
isotiopic
=
stationary
and
=
homogeneous
exponential USDI-USINI)
=
E
a
= 0
=
=
20
=
0
liU(d)
variability
= 1
range
,
decay .
range
& distance for which theGirelation is negligible
=M
sill
,
o partial
powered exponential
USD)
=
USDI)
=
T + 01-e)
: 2
E
a
= 0
=
=
LGO
·
gussian
=
Se
=
0
modified Bessel Function
·
r(a)
=
(t
Kl
= 0
=
(
=
0
=
0
non-spatial
residual a so called hierarchical
=
(S(B
·
spatial gaussian
,
involving
I
nomogeneous
model with
spatial
residuals
·
error terms
exp/power exp/mater
GAUSSIAN SPATIAL REGRESSION MODEL
Y /w
, B ,
t
=
N(XB
,
EI) 8 i y /
B ,
N(XB ,
.
09
(IlS: -Sill
:
His
=
: -Sill : Pl
B
N &
MB ,
[B)
=
100
.
.
t' D
,
O'vinvgamma & -i
~
Bayesian Kriping
=
prediction P (01y ,
,
=
( P(40 , B ,
Oly ,
=
/
P(4014 , B .
. X01P(B ,
,
~
assuming ( .
41/B , ~N/XXB
Dugmented
from O'H(P) +
[ In
Or distance between
i
,
j
Y
=
1
,
... ,
Continuous/bindry/
Count
: 11 died
Units S
=
=
diag)
[ , ...,
il
~
X 1yi
N/Diyi ,
ti)
:
P(y...... yn)
a
expl-YYD")I-BIY)
joint
IOW
,
,
·
=
CI-BLD
#is'
must be symmetric
can be extended to exp family
=
diag)Wer ,
...,
With
if Di
=
W
=plye ...
&PD-Wq)
BUT Dr-W
is singular
IMPROPER
Wit
CAR
=
S .
t
.
it
IS
:
/y
~
N(p FWisSi ,
S
(
,
,
prior
with mass near 1
L sed when data die counts
prior
on
spatial
random effects Y vector of responses .
& Vector of
Know Offsets
modelled
by
X
=
Matrix of
covariates and @
=
N(
,
spatio-temporal Greal
Units
With CAR priois and QutoCorrelated
randOm effects Ukt
~ K areal units
,
N time periods
Yat
((k
5
Mk
~
N(Mo
·
, ,
.. ..
%
P
.
P-Da
: P1Y
.....
Yn
(Conjugate
DiriChlet prior
·
D
the total mass parameter
is D + M
·
a posteriori
the mean
parameter
is
a))
d
=
the
estimate
is the
estinate
a
1
=
.
ti(c)
=
1
< for the Dirichlet
Supp(Dal
=
Pm"
~
Dax
Xm (IR)
measure On
IR
AmO
~
,
X do
Alm"
~ Pin do
MARGINAL DISTRIBUTION discietness Of DP
:
Positive probability
of
ties
(POlyDYin)
~
distribution 2 (Y
.
....
(n)
=
2 (X (2)
2 (Yn / Y
,
. ..
,
Yn)
·
=
,
=
S
,
= ESP
=
do
:
any
distribution of Y: is do
~
P
·
=
,
·D
=
,
,
Y .
=
,
=
(PDan
=
p
·
2
,
... .
Ym)
=
,
... .
Ym)
=
(n)
C + n
1
~ 2(Y
.
... ,
Yn)
=
&D
the
mechanism of
from
it is called
generalized POlyD
IM
process
: distributions Die disciete
: for Continuous densities : USe
(Dirichet process
random measure as the mixting
measure
Y &
in a
mixture Over
a Simple parametric
form
function
,
0
:
f(y
=
Jok(y
.
81P(48) Mixture of
.
01 Wit
,
, ....
Yn(p
f(y)
=
Sok(y.
·
k(y ,
=
density
of N(
.
·
k(y.
=
density
of
N(M.
~ Da
·
k( ,
=
density
of a
gamma/Weibull
if
If
P iS ConStrUCteD ViD
D
Stick-Diecking process" f(y) =
k(y .
[Vi
is %18. K).
,
:
/ indeed
.
=
Jah(Y
.
Do . , ....
=
Sa2(Y......
Yn
,
...,
,
....
Don19)
=
(2(Y
:
, ...,
In 1P P
=
Sok(yc ,
... Sek(4 ,
P
~
Da
the
distribution of P is a Mixture of Dirichlet
PlY
.....
Yn
SonDatasaH
.
. .. ,
Don I Ye
,
... .
Yn)
not simple
to compute
Bayesian
estimate of fly)
is
(f(y)ly .
=
E(Sok(y ,
81p(40)/y
.
. ... )
=
SoK(y.
.....
On IR
CLUSTERING
The
previous
formulation Of
DiriChlet Process Mixture Model induces D
probability
model on the clusters of
items [
,
2
.....
discrete nature
:
positive probability
for ties among
the latent
:
=
1
,
in
values in ( , ....
.
=
:
=
,
i
=
.
l
:
.
. ....
Sul random (can
assume a
number of values (
forms a partition
of 21
....,
14
Dirichlet
Mixture Model
D
on
Dby
:
we can
g
data and estimate the
clustering
might
be different that the One induced
by
DP
=
=
CrgMinE((
,
n]
Bayesian
Model-based
to
loss function