The relationship between two methods for estimating uncertainties in data assimilation