Exercise 5.9 - Posterior median is optimal estimate under L1 loss

Answers

The posterior loss expectation is (where we have omitted 𝒟 w.l.o.g.):

ρ ( a ) = | y a | p ( y ) d y = a ( a y ) p ( y ) d y + a + ( y a ) p ( y ) d y = a { a p ( y ) d y a + p ( y ) d y } a 𝑦𝑝 ( y ) d y + a + 𝑦𝑝 ( y ) d y .

Differentiating the loss w.r.t. a ends up with:

∂𝑎 ρ ( a ) = { a p ( y ) 𝑑𝑦 a + p ( y ) } + a 2 p ( a ) a 2 p ( a ) .

Set it to zero so:

a p ( y ) 𝑑𝑦 = a + p ( y ) ,

whose summation is unity, hence a satisfies:

a p ( y ) 𝑑𝑦 = a + p ( y ) = 1 2 ,

which identifies the median.

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