Prediction Assignment Writeup for practical machine learning class