Plots for test data and determines LS residual