mean error and plot.