Bayesian Theory and Decision Rules
Bayesian Theory and Decision Rules
Bayes theorem
Prior distribution
Bayesian Statistics.
1/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
1 Introduction
Decision Rules
Admissibility
2 Bayes theorem
Bayesian Inference
Loss functions
3 Prior distribution
Informative Priors
Conjugate Prior
Jeffery’s Prior
2/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction Bayes theorem
Prior distribution
Admissibility
3/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction Bayes theorem
Prior distribution
Admissibility
3/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction Bayes theorem
Prior distribution
Admissibility
3/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction Bayes theorem
Prior distribution
Admissibility
3/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction Bayes theorem
Prior distribution
Admissibility
4/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction Bayes theorem
Prior distribution
Admissibility
4/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction Bayes theorem
Prior distribution
Admissibility
Action
space A
4/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction.. Bayes theorem
Prior distribution
Admissibility
5/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction.. Bayes theorem
Prior distribution
Admissibility
5/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction.. Bayes theorem
Prior distribution
Admissibility
5/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction.. Bayes theorem
Prior distribution
Admissibility
5/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Introduction.. Bayes theorem
Prior distribution
Admissibility
5/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules Bayes theorem
Prior distribution
Admissibility
6/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules Bayes theorem
Prior distribution
Admissibility
6/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules Bayes theorem
Prior distribution
Admissibility
6/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules Bayes theorem
Prior distribution
Admissibility
6/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules Bayes theorem
Prior distribution
Admissibility
7/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules. Bayes theorem
Prior distribution
Admissibility
7/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules. Bayes theorem
Prior distribution
Admissibility
7/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules. Bayes theorem
Prior distribution
Admissibility
Pn
E(d(x)) = θ i=1 ci = 1. We show that within this class x̄ is the
minimax. One can get the Risk function, minimize and get the
optimal solution.
7/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules. Bayes theorem
Prior distribution
Admissibility
8/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules. Bayes theorem
Prior distribution
Admissibility
8/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules. Bayes theorem
Prior distribution
Admissibility
θ(1 − θ)
R(θ, d1 (x)) = var (x̄) =
n
is the minimum of all the other decision rules
8/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules.. Bayes theorem
Prior distribution
Admissibility
Admissibility:
Definition
Consider two decision rules d1 (x) and d2 (x) for θ. The decision rule
d1 (x) is said to dominate d2 (x) if
R(θ, d1 (x)) ≤ R(θ, d2 (x)), ∀ θ and R(θ, d1 (x)) < R(θ, d2 (x)), for some θ
9/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Decision rules.. Bayes theorem
Prior distribution
Admissibility
Admissibility:
Definition
Consider two decision rules d1 (x) and d2 (x) for θ. The decision rule
d1 (x) is said to dominate d2 (x) if
R(θ, d1 (x)) ≤ R(θ, d2 (x)), ∀ θ and R(θ, d1 (x)) < R(θ, d2 (x)), for some θ
R(θ, d(x) ≤ R(θ, d ∗ (x)), ∀ θ and R(θ, d(x) < R(θ, d ∗ (x)), for some θ
9/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples Bayes theorem
Prior distribution
Admissibility
10/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples Bayes theorem
Prior distribution
Admissibility
10/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples Bayes theorem
Prior distribution
Admissibility
10/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples. Bayes theorem
Prior distribution
Admissibility
11/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples. Bayes theorem
Prior distribution
Admissibility
11/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples. Bayes theorem
Prior distribution
Admissibility
11/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples. Bayes theorem
Prior distribution
Admissibility
12/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples.. Bayes theorem
Prior distribution
Admissibility
12/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples.. Bayes theorem
Prior distribution
Admissibility
13/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples... Bayes theorem
Prior distribution
Admissibility
13/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples... Bayes theorem
Prior distribution
Admissibility
Determine the risk function for these decision rules. Which decision
rule is minimax?. Which decision rule is admissible?
13/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples... Bayes theorem
Prior distribution
Admissibility
14/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples... Bayes theorem
Prior distribution
Admissibility
Minimax decision
15/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples.... Bayes theorem
Prior distribution
Admissibility
Minimax decision
15/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Decision Rules
Examples.... Bayes theorem
Prior distribution
Admissibility
Minimax decision
15/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian theory Bayes theorem
Prior distribution
Loss functions
16/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian theory Bayes theorem
Prior distribution
Loss functions
16/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian theory Bayes theorem
Prior distribution
Loss functions
16/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian theory Bayes theorem
Prior distribution
Loss functions
16/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian theory Bayes theorem
Prior distribution
Loss functions
17/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayes theorem. Bayes theorem
Prior distribution
Loss functions
17/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian Inference Bayes theorem
Prior distribution
Loss functions
18/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian Inference Bayes theorem
Prior distribution
Loss functions
f (x|θ)f (θ)
f (θ|x) =
f (x)
∝ f (x|θ)f (θ)
π(θ|x) ∝ f (x|θ)π(θ)
18/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian Inference Bayes theorem
Prior distribution
Loss functions
f (x|θ)f (θ)
f (θ|x) =
f (x)
∝ f (x|θ)f (θ)
π(θ|x) ∝ f (x|θ)π(θ)
18/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian Inference Bayes theorem
Prior distribution
Loss functions
f (x|θ)f (θ)
f (θ|x) =
f (x)
∝ f (x|θ)f (θ)
π(θ|x) ∝ f (x|θ)π(θ)
π(θ|x) ∝ f (x|θ)π(θ)
19/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian Inference steps
Bayes theorem
Prior distribution
Loss functions
π(θ|x) ∝ f (x|θ)π(θ)
19/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian Inference steps
Bayes theorem
Prior distribution
Loss functions
π(θ|x) ∝ f (x|θ)π(θ)
19/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Bayesian Inference steps
Bayes theorem
Prior distribution
Loss functions
π(θ|x) ∝ f (x|θ)π(θ)
19/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Sequential data updates
Bayes theorem
Prior distribution
Loss functions
20/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Sequential data updates
Bayes theorem
Prior distribution
Loss functions
20/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Sequential data updates
Bayes theorem
Prior distribution
Loss functions
20/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Sequential data updates
Bayes theorem
Prior distribution
Loss functions
20/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Sequential data updates
Bayes theorem
Prior distribution
Loss functions
20/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Sequential data updates
Bayes theorem
Prior distribution
Loss functions
21/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Types of loss functionsBayes theorem
Prior distribution
Loss functions
21/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Types of loss functionsBayes theorem
Prior distribution
Loss functions
21/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Types of loss functionsBayes theorem
Prior distribution
Loss functions
21/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Types of loss functionsBayes theorem
Prior distribution
Loss functions
21/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Types of loss functionsBayes theorem
Prior distribution
Loss functions
22/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Loss functions,Examples
Bayes theorem
Prior distribution
Loss functions
22/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Loss functions,Examples
Bayes theorem
Prior distribution
Loss functions
22/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Loss functions,Examples
Bayes theorem
Prior distribution
Loss functions
23/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Loss functions,Examples.
Bayes theorem
Prior distribution
Loss functions
23/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Loss functions,Examples.
Bayes theorem
Prior distribution
Loss functions
23/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Loss functions,Examples.
Bayes theorem
Prior distribution
Loss functions
24/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction
Bayesian Inference
Loss functions,Examples..
Bayes theorem
Prior distribution
Loss functions
24/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
f (x|θ)f (θ)
f (θ|x) =
f (x)
∝ f (x|θ)f (θ)
π(θ|x) ∝ f (x|θ)π(θ)
25/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
f (x|θ)f (θ)
f (θ|x) =
f (x)
∝ f (x|θ)f (θ)
π(θ|x) ∝ f (x|θ)π(θ)
25/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
f (x|θ)f (θ)
f (θ|x) =
f (x)
∝ f (x|θ)f (θ)
π(θ|x) ∝ f (x|θ)π(θ)
25/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
f (x|θ)f (θ)
f (θ|x) =
f (x)
∝ f (x|θ)f (θ)
π(θ|x) ∝ f (x|θ)π(θ)
25/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
f (x|θ)f (θ)
f (θ|x) =
f (x)
∝ f (x|θ)f (θ)
π(θ|x) ∝ f (x|θ)π(θ)
26/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
26/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
26/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
26/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
26/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
26/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
27/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
27/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
27/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
27/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
28/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
28/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
28/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
28/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
thus prior and posterior are from the same parent distribution hence
conjugate prior.
29/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
thus prior and posterior are from the same parent distribution hence
conjugate prior.
If
1
θα−1 e −( β )
θ
π(θ) =
Γαβ α
The corresponding posterior distribution has the same gamma
distribution but with different parameters Gamma(n + α, nx̄ + β1 )
29/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
30/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
30/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
30/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
X, Θ θ1 θ2
0.8, if θ = θ1 ; x1 0.6 0.1
π(θ) = f (x|θ) =
0.2, if θ = θ2 . x2 0.3 0.2
x3 0.1 0.7
31/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
X, Θ θ1 θ2
0.8, if θ = θ1 ; x1 0.6 0.1
π(θ) = f (x|θ) =
0.2, if θ = θ2 . x2 0.3 0.2
x3 0.1 0.7
solution:
f (x1 ) = f (x1 |θ1 )π(θ1 ) + f (x1 |θ2 )π(θ2 ) = 0.6(.8) + .2(.1) = 0.5
f (x2 ) = f (x2 |θ1 )π(θ1 ) + f (x2 |θ2 )π(θ2 ) = 0.3(.8) + .2(.2) = 0.28
= f (x3 |θ1 )π(θ1 ) + f (x3 |θ2 )π(θ2 ) = 0.1(.8) + .2(.7) = 0.22
f (x3 )
π(θ|x) = π(θ = θ1 |x = xi ); π(θ = θ2 |x = xi ), i = 1, 2, 3.
f (x|θ)π(θ) .6(.8)
π(θ|x) = ; π(θ = θ1 |x = x1 ) = = .96
f (x) .5
f (x1 |θ2 )π(θ2 ) .1(.2)
π(θ = θ2 |x = x1 ) = = = .04
f (x1 ) .5
31/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
Similarly
f (x1 |θ2 )π(θ2 ) .1(.2)
π(θ = θ2 |x = x1 ) = = = .04
f (x1 ) .5
f (x2 |θ1 )π(θ1 ) .3(.8)
π(θ = θ1 |x = x2 ) = = = .86
f (x2 ) .28
f (x2 |θ2 )π(θ2 ) .2(.2)
π(θ = θ2 |x = x2 ) = = = .14
f (x2 ) .28
f (x3 |θ1 )π(θ1 ) .1(.8)
π(θ = θ1 |x = x3 ) = = = .36
f (x3 ) .22
f (x3 |θ2 )π(θ2 ) .7(.2)
π(θ = θ2 |x = x3 ) = = = .64
f (x3 ) .22
32/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
Similarly
f (x1 |θ2 )π(θ2 ) .1(.2)
π(θ = θ2 |x = x1 ) = = = .04
f (x1 ) .5
f (x2 |θ1 )π(θ1 ) .3(.8)
π(θ = θ1 |x = x2 ) = = = .86
f (x2 ) .28
f (x2 |θ2 )π(θ2 ) .2(.2)
π(θ = θ2 |x = x2 ) = = = .14
f (x2 ) .28
f (x3 |θ1 )π(θ1 ) .1(.8)
π(θ = θ1 |x = x3 ) = = = .36
f (x3 ) .22
f (x3 |θ2 )π(θ2 ) .7(.2)
π(θ = θ2 |x = x3 ) = = = .64
f (x3 ) .22
The resulting posterior distribution is summarized in table form
X, Θ θ1 θ2
x1 0.96 0.04
π(θ|x) =
x2 0.86 0.14
x3 0.36 0.64 32/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
33/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
34/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
34/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
35/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
35/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
36/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
36/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
37/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors
37/37
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian theory November 16, 2023
Introduction Informative Priors