Bayesian Inference and Decision Rules
Bayesian Inference and Decision Rules
Bayes Estimator
Minimax procedures
Predictions
Bayesian Inference
December 2, 2023
1/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
3/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Bayes risk
Bayes decision rule Minimax procedures
Predictions
3/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Bayes risk
Bayes decision rule Minimax procedures
Predictions
3/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Bayes risk
Bayes decision rule Minimax procedures
Predictions
Remarks: R(π, d(x)) is the average risk and a single value unlike
R(θ, d(x)) and
3/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Bayes risk
Bayes decision rule Minimax procedures
Predictions
Remarks: R(π, d(x)) is the average risk and a single value unlike
R(θ, d(x)) and
Bayes decision rule is the decision with minimum Bayes risk
3/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Bayes Estimator Minimax procedures
Predictions
Weighted squared loss function
Let d ∗ (x) be the decision rule that minimizes the Bayes risk within
class D of decision rules.
4/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Bayes Estimator Minimax procedures
Predictions
Weighted squared loss function
Let d ∗ (x) be the decision rule that minimizes the Bayes risk within
class D of decision rules.
Then d ∗ (x) is the Bayes estimator or the Bayes decision rule
4/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Bayes Estimator Minimax procedures
Predictions
Weighted squared loss function
Let d ∗ (x) be the decision rule that minimizes the Bayes risk within
class D of decision rules.
Then d ∗ (x) is the Bayes estimator or the Bayes decision rule
Posterior risk function: Let π(θ) be the prior of θ and π(θ|x) be its
posterior distribution.
4/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Bayes Estimator Minimax procedures
Predictions
Weighted squared loss function
Let d ∗ (x) be the decision rule that minimizes the Bayes risk within
class D of decision rules.
Then d ∗ (x) is the Bayes estimator or the Bayes decision rule
Posterior risk function: Let π(θ) be the prior of θ and π(θ|x) be its
posterior distribution.
Then the posterior risk for the decision rule denoted by r (π, d(x)) is
defined as
r (π, d(x)) = Eθ|x [L(θ, d(x))]
4/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Bayes Estimator Minimax procedures
Predictions
Weighted squared loss function
Let d ∗ (x) be the decision rule that minimizes the Bayes risk within
class D of decision rules.
Then d ∗ (x) is the Bayes estimator or the Bayes decision rule
Posterior risk function: Let π(θ) be the prior of θ and π(θ|x) be its
posterior distribution.
Then the posterior risk for the decision rule denoted by r (π, d(x)) is
defined as
r (π, d(x)) = Eθ|x [L(θ, d(x))]
5/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Bayes Estimator. Minimax procedures
Predictions
Weighted squared loss function
5/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Bayes Estimator. Minimax procedures
Predictions
Weighted squared loss function
6/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Squared Loss function Minimax procedures
Predictions
Weighted squared loss function
6/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Squared Loss function Minimax procedures
Predictions
Weighted squared loss function
6/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Squared Loss function Minimax procedures
Predictions
Weighted squared loss function
6/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Squared Loss function Minimax procedures
Predictions
Weighted squared loss function
7/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Example Minimax procedures
Predictions
Weighted squared loss function
7/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Example Minimax procedures
Predictions
Weighted squared loss function
7/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Example Minimax procedures
Predictions
Weighted squared loss function
8/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Absolute loss function Minimax procedures
Predictions
Weighted squared loss function
8/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Absolute loss function Minimax procedures
Predictions
Weighted squared loss function
8/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Absolute loss function Minimax procedures
Predictions
Weighted squared loss function
Hence the only value of θ that would satisfy this inequality is the
median of the posterior distribution. This implies that ”a” is the
median.
8/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Example Minimax procedures
Predictions
Weighted squared loss function
Let L(θ, a) = |θ − a|. Obtain the Bayes estimator for θ under loss
function given that
−3
2θ , θ > 1;
f (θ|x) =
0, elsewhere.
9/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Example Minimax procedures
Predictions
Weighted squared loss function
Let L(θ, a) = |θ − a|. Obtain the Bayes estimator for θ under loss
function given that
−3
2θ , θ > 1;
f (θ|x) =
0, elsewhere.
Solution: The Bayes estimator under this loss function is the media
of the posterior distribution. Let Md be the median
Z Md
pr [θ < Md ] = 0.5 ⇒ 2θ−3 dθ = 0.5
1
Md 1 √
θ−2 1
= 0.5; ⇒1− 2 = 0.5; ∴ Md = 2
Md
9/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Example Minimax procedures
Predictions
Weighted squared loss function
Let L(θ, a) = |θ − a|. Obtain the Bayes estimator for θ under loss
function given that
−3
2θ , θ > 1;
f (θ|x) =
0, elsewhere.
Solution: The Bayes estimator under this loss function is the media
of the posterior distribution. Let Md be the median
Z Md
pr [θ < Md ] = 0.5 ⇒ 2θ−3 dθ = 0.5
1
Md 1 √
θ−2 1
= 0.5; ⇒1− 2 = 0.5; ∴ Md = 2
Md
Suppose f (θ|x) = N(5, 1). Obtain the Bayes estimator for θ under
the absolute loss function. Solution: Md = 5 This is because under
the normal pdf, the mean partitions it in to two equal sections
9/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Weighted squared loss function Minimax procedures
Predictions
Weighted squared loss function
10/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Weighted squared loss function Minimax procedures
Predictions
Weighted squared loss function
10/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Weighted squared loss function Minimax procedures
Predictions
Weighted squared loss function
10/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Weighted squared loss function Minimax procedures
Predictions
Weighted squared loss function
Minimizing w.r.t. d(x) and equating to zero while solving for d(x)
we get R
θ.w (θ)f (θ|x)dθ Eθ|x θw (θ)
d(x) = Rθ =
θ
w (θ)f (θ|x)dθ Eθ|x w (θ)
10/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Example Minimax procedures
Predictions
Weighted squared loss function
11/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Example Minimax procedures
Predictions
Weighted squared loss function
11/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Example Minimax procedures
Predictions
Weighted squared loss function
11/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Squared loss functions
Bayes Estimator
Absolute loss function
Example Minimax procedures
Predictions
Weighted squared loss function
Let dπ (x) be the Bayes estimator for θ with respect to the prior
π(θ) and R(π, dπ (x)) be the Bayes risk for dπ (x).i.e.
12/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Minimax procedures. Minimax procedures
Predictions
Credibility intervals
Let dπ (x) be the Bayes estimator for θ with respect to the prior
π(θ) and R(π, dπ (x)) be the Bayes risk for dπ (x).i.e.
12/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Minimax procedures. Minimax procedures
Predictions
Credibility intervals
Let dπ (x) be the Bayes estimator for θ with respect to the prior
π(θ) and R(π, dπ (x)) be the Bayes risk for dπ (x).i.e.
12/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Minimax Bayes. Minimax procedures
Predictions
Credibility intervals
Theorem: Suppose π(θ) is the prior for θ and dπ (x) is the Bayes
estimator with respect to π(θ) such that the following holds
Z
R(π, dπ′ (x)) = R(θ, dπ (x))π(θ)dθ = sup R(θ, dπ (x))
θ θ
13/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Minimax Bayes. Minimax procedures
Predictions
Credibility intervals
Theorem: Suppose π(θ) is the prior for θ and dπ (x) is the Bayes
estimator with respect to π(θ) such that the following holds
Z
R(π, dπ′ (x)) = R(θ, dπ (x))π(θ)dθ = sup R(θ, dπ (x))
θ θ
Then (i) dπ (x) is minimax Bayes; (ii) If dπ (x) is unique, then its the
unique minimax Bayes (iii) π(θ) is least favourable
13/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Minimax Bayes. Minimax procedures
Predictions
Credibility intervals
Theorem: Suppose π(θ) is the prior for θ and dπ (x) is the Bayes
estimator with respect to π(θ) such that the following holds
Z
R(π, dπ′ (x)) = R(θ, dπ (x))π(θ)dθ = sup R(θ, dπ (x))
θ θ
Then (i) dπ (x) is minimax Bayes; (ii) If dπ (x) is unique, then its the
unique minimax Bayes (iii) π(θ) is least favourable
Proof: Let d(x) be another decision rule.
Z
sup R(θ, d(x)) ≥ R(θ, d(x))π(θ)dθ
θ
Zθ
≥ R(θ, dπ (x))π(θ)dθ
θ
sup R(θ, dπ (x)) ≤ sup R(θ, d(x)), ∴ dπ (x) is minimax
θ θ
13/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Minimax Bayes. Minimax procedures
Predictions
Credibility intervals
Theorem: Suppose π(θ) is the prior for θ and dπ (x) is the Bayes
estimator with respect to π(θ) such that the following holds
Z
R(π, dπ′ (x)) = R(θ, dπ (x))π(θ)dθ = sup R(θ, dπ (x))
θ θ
Then (i) dπ (x) is minimax Bayes; (ii) If dπ (x) is unique, then its the
unique minimax Bayes (iii) π(θ) is least favourable
Proof: Let d(x) be another decision rule.
Z
sup R(θ, d(x)) ≥ R(θ, d(x))π(θ)dθ
θ
Zθ
≥ R(θ, dπ (x))π(θ)dθ
θ
sup R(θ, dπ (x)) ≤ sup R(θ, d(x)), ∴ dπ (x) is minimax
θ θ
14/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Minimax Bayes.. Minimax procedures
Predictions
Credibility intervals
14/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Minimax Bayes.. Minimax procedures
Predictions
Credibility intervals
15/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Example. Minimax procedures
Predictions
Credibility intervals
15/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Example. Minimax procedures
Predictions
Credibility intervals
From the risk function, since θ exists, then the Bayes estimator is
not minimax. We then determine values of α and β that makes
constant risk function.
16/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Example.. Minimax procedures
Predictions
Credibility intervals
From the risk function, since θ exists, then the Bayes estimator is
not minimax. We then determine values of α and β that makes
constant risk function.
Thereafter we can find minimax Bayes and least favourable prior.
2
knθ(1 − θ) βθ − α(1 − θ)
R(θ, dπ (x)) = +
(α + β + nk)2 α + β + nk
[α + θ(kn − 2βα − 2α2 )] + θ2 [β 2 − kn + 2αβ + α2 ]
2
=
(α + β + nk)2
16/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Example.. Minimax procedures
Predictions
Credibility intervals
From the risk function, since θ exists, then the Bayes estimator is
not minimax. We then determine values of α and β that makes
constant risk function.
Thereafter we can find minimax Bayes and least favourable prior.
2
knθ(1 − θ) βθ − α(1 − θ)
R(θ, dπ (x)) = +
(α + β + nk)2 α + β + nk
[α + θ(kn − 2βα − 2α2 )] + θ2 [β 2 − kn + 2αβ + α2 ]
2
=
(α + β + nk)2
Equating then coefficients of θ and θ2 to zero, we solve for
√ α and β.
kn − 2α(β + α) = 0 and (α + β)2 − kn = 0, ∴ α = β = kn/2
16/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Example.. Minimax procedures
Predictions
Credibility intervals
From the risk function, since θ exists, then the Bayes estimator is
not minimax. We then determine values of α and β that makes
constant risk function.
Thereafter we can find minimax Bayes and least favourable prior.
2
knθ(1 − θ) βθ − α(1 − θ)
R(θ, dπ (x)) = +
(α + β + nk)2 α + β + nk
[α + θ(kn − 2βα − 2α2 )] + θ2 [β 2 − kn + 2αβ + α2 ]
2
=
(α + β + nk)2
Equating then coefficients of θ and θ2 to zero, we solve for
√ α and β.
kn − 2α(β + α) = 0 and (α + β)2 − kn = 0, ∴ α = β = kn/2
The corresponding Bayes estimator has a constant risk function is
our minimax Bayes estimator and the resulting prior is the least
favourable i.e.
√
kn
√ √ !
+ k x̄ kn kn
dπ (x) = √2 , π(θ) = Beta ,
kn + nk 2 2
16/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Admissibility Minimax procedures
Predictions
Credibility intervals
17/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Admissibility Minimax procedures
Predictions
Credibility intervals
17/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Admissibility Minimax procedures
Predictions
Credibility intervals
17/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Admissibility Minimax procedures
Predictions
Credibility intervals
17/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Admissibility Minimax procedures
Predictions
Credibility intervals
18/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Admissibility. Minimax procedures
Predictions
Credibility intervals
18/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Admissibility. Minimax procedures
Predictions
Credibility intervals
18/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Admissibility.. Minimax procedures
Predictions
Credibility intervals
19/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Admissibility.. Minimax procedures
Predictions
Credibility intervals
19/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Admissibility.. Minimax procedures
Predictions
Credibility intervals
19/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Admissibility.. Minimax procedures
Predictions
Credibility intervals
20/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Credibility intervals Minimax procedures
Predictions
Credibility intervals
20/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Credibility intervals Minimax procedures
Predictions
Credibility intervals
20/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Credibility intervals Minimax procedures
Predictions
Credibility intervals
20/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Credibility intervals. Minimax procedures
Predictions
Credibility intervals
One difficulty with such credibility intervals is that they are not
uniquely defined and any region that satisfies the integral above will
do.
21/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Credibility intervals. Minimax procedures
Predictions
Credibility intervals
One difficulty with such credibility intervals is that they are not
uniquely defined and any region that satisfies the integral above will
do.
To overcome this problem an additional constraint is imposed. This
constraint requires that the interval be as small as possible.
21/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Credibility intervals. Minimax procedures
Predictions
Credibility intervals
One difficulty with such credibility intervals is that they are not
uniquely defined and any region that satisfies the integral above will
do.
To overcome this problem an additional constraint is imposed. This
constraint requires that the interval be as small as possible.
Such a region is known as the highest posterior density (HPD)
region.
21/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Credibility intervals. Minimax procedures
Predictions
Credibility intervals
One difficulty with such credibility intervals is that they are not
uniquely defined and any region that satisfies the integral above will
do.
To overcome this problem an additional constraint is imposed. This
constraint requires that the interval be as small as possible.
Such a region is known as the highest posterior density (HPD)
region.
In general such intervals have to be found numerically. However for
most univariate posterior distribution the values are tabulated for a
range of α values.
21/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Example.. Minimax procedures
Predictions
Credibility intervals
22/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Example.. Minimax procedures
Predictions
Credibility intervals
22/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Example.. Minimax procedures
Predictions
Credibility intervals
22/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Example.. Minimax procedures
Predictions
Credibility intervals
22/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Example.. Minimax procedures
Predictions
Credibility intervals
22/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
minimax Bayes
Bayes Estimator
Admissibility
Example.. Minimax procedures
Predictions
Credibility intervals
23/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Predictions Minimax procedures
Predictions
23/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Predictions Minimax procedures
Predictions
23/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Predictions Minimax procedures
Predictions
23/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Predictions Minimax procedures
Predictions
24/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Predictions Minimax procedures
Predictions
24/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Predictions Minimax procedures
Predictions
24/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Predictions Minimax procedures
Predictions
Now,
f (x, y , θ) f (x|θ)f (y |θ)π(θ)
f (y , θ|x) = ≡
f (x) f (x)
f (x|θ)π(θ)
= f (y |θ)
f (x)
= f (θ|x)f (y |θ)
Z
∴ f (y |x) = f (y , θ|x)dθ
ZΩ
= f (θ|x)f (y |θ)dθ
Ω
= Eθ|x [f (y |θ)]
25/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Posterior Predictive distributions Minimax procedures
Predictions
Now,
f (x, y , θ) f (x|θ)f (y |θ)π(θ)
f (y , θ|x) = ≡
f (x) f (x)
f (x|θ)π(θ)
= f (y |θ)
f (x)
= f (θ|x)f (y |θ)
Z
∴ f (y |x) = f (y , θ|x)dθ
ZΩ
= f (θ|x)f (y |θ)dθ
Ω
= Eθ|x [f (y |θ)]
26/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Solution. Minimax procedures
Predictions
26/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Solution. Minimax procedures
Predictions
27/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
solution.. Minimax procedures
Predictions
α = α′ + mȳ ; β ′′ = β ′ + mn − mȳ
′′
27/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Example.. Minimax procedures
Predictions
α = α′ + mȳ ; β ′′ = β ′ + mn − mȳ
′′
m
Y n Γ(α + β + nk) Γ(α′′ )Γ(β ′′ )
=
yj Γ(α + k x̄)Γ(β + nk − k x̄) Γ(α′′ + β ′′ )
j=1
m
Γ(α′′ )Γ(β ′′ )
Y n Γ(α + β + nk)
=
yj Γ(α + k x̄)Γ(β + nk − k x̄) Γ(α + β + nk − mn)
j=1
m
n Γ(α′ + β ′ ) Γ(α′ + mȳ )Γ(β ′ + mn − mȳ )
Y
=
yj Γ(α′ )Γ(β ′ ) Γ(α′ + β ′ − mn)
j=1
28/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Example.. Minimax procedures
Predictions
α = α′ + mȳ ; β ′′ = β ′ + mn − mȳ
′′
m
Y n Γ(α + β + nk) Γ(α′′ )Γ(β ′′ )
=
yj Γ(α + k x̄)Γ(β + nk − k x̄) Γ(α′′ + β ′′ )
j=1
m
Γ(α′′ )Γ(β ′′ )
Y n Γ(α + β + nk)
=
yj Γ(α + k x̄)Γ(β + nk − k x̄) Γ(α + β + nk − mn)
j=1
m
n Γ(α′ + β ′ ) Γ(α′ + mȳ )Γ(β ′ + mn − mȳ )
Y
=
yj Γ(α′ )Γ(β ′ ) Γ(α′ + β ′ − mn)
j=1
29/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Example 2 Minimax procedures
Predictions
29/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Example 2 Minimax procedures
Predictions
30/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Solution. Minimax procedures
Predictions
30/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Solution. Minimax procedures
Predictions
31/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Example 3 Minimax procedures
Predictions
31/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Example 3 Minimax procedures
Predictions
31/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Example 3 Minimax procedures
Predictions
32/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Sampling Minimax procedures
Predictions
32/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Sampling Minimax procedures
Predictions
32/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023
Bayes decision rule
Bayes Estimator
Posterior Predictive distribution
Sampling Minimax procedures
Predictions
32/33
Ivivi Joseph Mwaniki The University of Nairobi DOM STA 402 Bayesian inference December 2, 2023