本文章基本是对https://stats.stackexchange.com/questions/130998/explanation-of-formula-for-median-closest-point-to-origin-of-n-samples-from-unit 的翻译。
解决问题为Element of Statistical Learning (ESL, https://web.stanford.edu/~hastie/ElemStatLearn/)课后习题2.1.
题目简介
Suppose each of
K
-classes has an associated target
解题
||tk−y^||2=∑i=1Ky^2i−y^2k+(1−y^k)2=∑i=1Ky^2i+1−2y^kargmink||tk−y^||2=argmin(−2y^k)=argmaxk(y^k)