Professional Documents
Culture Documents
Slides PDF
Slides PDF
Petteri Piiroinen
University of Helsinki
Spring 2020
fX (x ) ∝ x α−1 (1 − x )β−1
2
1
0
## [1] 0.6399499
## [1] 0.7128906
P(0.2 < Θ < 0.8|Y = y ) ≈ 0.9996, since
pbeta(0.8, alpha, beta) - pbeta(0.2, alpha, beta)
## [1] 0.9996158
α y +1 17
E(Θ|Y = y ) = = = ≈ 0.53125
α+β n−y +1+y +1 32
y 16
θ(y
b )= = ≈ 0.5333333
n 30
Definition.
Conditional distribution of the data set given the parameter,
y 7→ fY|Θ (y|θ),
θ 7→ fY|Θ (y|θ)
Because our data set is a vector, in the general case a structure of the
sampling distribution can be quite complicated.
We can simplify things by assuming that our observations are
(conditionally) independent (given the value of the parameter Θ
Y1 , . . . , Yn ⊥
⊥|Θ,
Definition.
A marginal distribution θ 7→ fΘ (θ) of the parameter is called a prior
distribution.
Priori is latin for before: the prior distribution describes our beliefs
about the likely values of the parameter θ before observing any data.
fθ|Φ (θ|φ),
and
Θ prior distribution (priorijakauma)
Together (via chain rule) these specify
Definition.
The conditional distribution Θ|Y of the parameter given the data is called a
posterior distribution.
Because the thumbtack stays the same, it makes sense to use same
binomial model
Ye ∼ Bin(m, θ)
it makes sense to model the old and the new observations independent
given the parameter:
Ye,Y⊥ ⊥|Θ.
e |Y ,
the proper Bayesian predictive distribution is the distribution of Y
the distribution of new observations given the observed data
This is denoted by
fYe |Y (ye |y ).
Lemma 1.
If in addition the new observations are independent of the observed data
given the parameter
e ⊥Y)|Θ,
(Y⊥
then (for densities)
Z
fY y|y) =
e|Y (e fY y|θ)fΘ|Y (θ|y)dθ
e|Θ (e (2)
Ω
fe
Y,Θ|Y
(e
y, θ|y) = fe
Y|Θ
y|θ)fΘ|Y (θ|y)
(e
Z
fYe |Y (ye |y ) = fYe |Θ (ye |θ)fΘ|Y (θ|y )dθ
Ω
!
m B(ye + α1 , m + β1 − ye )
=
ye B(α1 , β1 )
* This means:
e |Y ∼ Beta-bin(m, α1 , β1 )
Y
where α1 = y + 1, β1 = n − y + 1 the parameters of the posterior
distribution
g2 (e
y, θ) := fY y|θ)
e|Θ (e