On the equivalence of the weighted least squares and the generalised least squares, with applications to kernel smoothing