pe function

Calculate prediction error curve