In many classification problems one has the option either of assigning x to class j or, if you are too uncertain, of choosing the reject option. If the cost for rejects is less than the cost of falsely classifying the object, it may be the optimal action. Let αi mean you choose action i, for i=1:C+1, where C is the number of classes and C+1 is the reject action. Let Y=j be the true (but unknown) state of nature. Define the loss function as follows
λ(αi∣Y=j)=⎩⎨⎧0λrλsif i=j and i,j∈{1,…,C}if i=C+1otherwise
In other words, you incur 0 loss if you correctly classify, you incur λrloss (cost) if you choose the reject option, and you incur λs loss (cost) if you make a substitution error (misclassification).
a. Show that the minimum risk is obtained if we decide Y=j if p(Y=j∣x)≥p(Y=k∣x) for all k (i.e., j is the most probable class) and if p(Y=j∣x)≥1−λsλr; otherwise we decide to reject.
b. Describe qualitatively what happens as λr/λs is increased from 0 to 1 (i.e., the relative cost of rejection increases).
解答:
a. 易知 p(Y=j∣x)≥p(Y=k∣x),拒绝时期望损失 λr,选择 j 类别期望损失 (1−p(Y=j∣x))×λs+p(Y=j∣x)×0,当选择 j 类别期望损失小于拒绝时则接受,即 p(Y=j∣x)≥1−λsλr。
b. 当 λsλr 从 0 到 1 增加时,即拒绝的相对成本变高,则更有可能选择 j 类别。
Exercise 5.2 [Newsvendor problem †]
Consider the following classic problem in decision theory / economics. Suppose you are trying to decide how much quantity Q of some product (e.g., newspapers) to buy to maximize your profits. The optimal amount will depend on how much demand D you think there is for your product, as well as its cost to you C and its selling price P. Suppose D is unknown but has pdf f(D) and cdf F(D). We can evaluate the expected profit by considering two cases: if D>Q, then we sell all Q items, and make profit π=(P−C)Q; but if D<Q, we only sell D items, at profit (P−C)D, but have wasted C(Q−D) on the unsold items. So the expected profit if we buy quantity Q is
Let B=p(D∣H1)/p(D∣H0) be the Bayes factor in favor of model 1. Suppose we plot two ROC curves, one computed by thresholding B, and the other computed by thresholding p(H1∣D). Will they be the same or different? Explain why.