p158 of the ESLII http://www-stat.stanford.edu/~tibs/ElemStatLearn/