The estimation of residual variance in regression analysis