From ordinary to generalized least squares : a worked example