The process of creating the analysis in data assimilation often involves minimization of a cost function.
where \mathbf{B} denotes the background error covariance, \mathbf{R} the observational error covariance.