in Strutz:Data Fitting and Uncertainty (2nd edition), there is a Section 7.6 "Weighted least squares with correlated data" explaining the formulae in simple manner.