chi sqared  minimization on test data notebook added