Exercise 3.9 - Bayesian analysis of the uniform distribution

Answers

The conjugate prior for uniform distribution is the Pareto distribution, whose density function is defined by:

p ( 𝜃 | K , b ) = Pa ( 𝜃 | K , b ) = K b K 𝜃 ( K + 1 ) 𝕀 [ 𝜃 b ] .

Let m = max { | x i | } i = 1 n , the joint distribution of 𝜃 and 𝒟 is:

p ( 𝜃 , 𝒟 | K , b ) = p ( 𝜃 | K , b ) p ( 𝒟 | 𝜃 ) = K b K 𝜃 ( K + 1 ) 𝕀 [ 𝜃 b ] 𝕀 [ 𝜃 m ] ( 𝜃 ) n = K b K 𝜃 ( K + n + 1 ) 𝕀 [ 𝜃 max ( b , m ) ] .

Now p ( 𝜃 , 𝒟 | K , b ) = p ( 𝒟 | K , b ) p ( 𝜃 | 𝒟 , K , b ) , hence the posterior distribution depends on 𝜃 through:

𝜃 ( K + n + 1 ) 𝕀 [ 𝜃 max ( b , m ) ] .

So the posterior distribution is another Pareto distribution with hyperparameters K + n , max ( b , max { | x i | } i = 1 n ) .

The evidence is computed from the Bayesian rule:

p ( 𝒟 | K , b ) = 0 p ( 𝒟 , 𝜃 | K , b ) d 𝜃 = max ( b , m ) K b K 𝜃 K + n + 1 d 𝜃 .

The rest is trivial calculus.

User profile picture
2021-03-24 13:42
Comments