Answer
Prerequisites
- Bayes Decision Rule (BDR)
- Absolute Loss Function ( loss)
- Conditional Risk
- Leibniz Integral Rule
- Definition of Median
Step-by-Step Derivation
-
Define the Conditional Risk for : For , the loss function is the absolute loss: . The conditional risk is:
-
Split the Integral: To handle the absolute value, we split the integral at :
-
Minimize the Conditional Risk: We take the derivative of with respect to and set it to zero. We use the Leibniz integral rule, which states:
Applying this to our risk function (letting be the variable we differentiate with respect to):
First term:
Second term:
Combining them:
-
Set the Derivative to Zero:
-
Interpret the Result: The equation states that the probability mass to the left of must equal the probability mass to the right of . Since the total probability is 1, each side must equal 0.5: This is the exact definition of the median of the conditional distribution . Therefore, .