Exercise 5.2 - Optimal threshold on classification probability

Answers

For question (a), the posterior loss expectation for choosing action ŷ , given x , is:

ρ ( ŷ | x ) = 𝔼 p ( y | x ) [ L ( y , ŷ ) ] = p 0 L ( ŷ , 0 ) + p 1 L ( ŷ , 1 ) = p 0 L ( ŷ , 0 ) + ( 1 p 0 ) L ( ŷ , 1 ) = L ( ŷ , 1 ) + p 0 ( L ( ŷ , 0 ) L ( ŷ , 1 ) ) .

Thus:

ρ ( 0 | x ) = λ 01 p 0 λ 01 ,

ρ ( 1 | x ) = p 0 λ 10 .

As both ρ ( 0 | x ) and ρ ( 1 | x ) are linear functions of p 0 , hence the unique optimal threshold is where ρ ( 0 | x ) = ρ ( 1 | x ) , i.e.,

p 0 = λ 01 λ 01 + λ 10 ,

p 1 = λ 10 λ 01 + λ 10 .

For question (b), let λ 10 = 1 , λ 01 = 9 will do.

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