R solution of 3.2 with chi^2