Final Version

In and out of sample error correction