Algorithm Search⌘K

Techniquecore

Covariance localization

Also called Schur product localization.

Multiplies the ensemble covariance elementwise by a compactly supported correlation to remove spurious long-range correlations.

Covariance localization removes the spurious correlations between distant variables from the sample covariance of an ensemble. A forecast ensemble of NN members gives a covariance PfP^f of rank at most N−1N - 1, and between two variables that are in fact unrelated it shows a sample correlation of typical size 1/N−11/\sqrt{N - 1}. An observation then changes variables far away from it. Localization multiplies PfP^f entry by entry (the Schur product) by a correlation matrix ρ\rho that is 11 on the diagonal, falls with distance and is zero beyond a cutoff, often the Gaspari-Cohn function. The Schur product theorem keeps the result a covariance matrix, and makes it full rank. Houtekamer and Mitchell (2001) and Hamill, Whitaker and Snyder (2001) introduced it in the ensemble Kalman filter.

In plain words

With twenty members, two numbers that have nothing to do with each other will still look a little related, just by chance. The filter takes this chance relation for real, so an observation in one place changes the state in a far place. Localization says: trust the ensemble for nearby pairs of variables, trust it less as the distance grows, and ignore it beyond some distance. It does this by multiplying each covariance by a weight that depends on the distance. The weights are chosen so that the result is still a valid covariance.

When it applies

  • An ensemble filter or smoother whose ensemble is much smaller than the number of variables, so that PfP^f is rank deficient.
  • A system where the true correlations decay with distance, as in the atmosphere, the ocean or the Lorenz-96 model.
  • An analysis that changes variables far from all observations, or a filter that needs very large inflation or diverges with a small ensemble.

The template

XX and YY are the unscaled perturbations of the state and of the predicted observations, so PfH⊤≈XY⊤/(N−1)P^fH^\top \approx XY^\top/(N - 1) and HPfH⊤≈YY⊤/(N−1)HP^fH^\top \approx YY^\top/(N - 1). ∘\circ is the Schur (entrywise) product. The holes are the taper ϕ\phi (a correlation function) and the length scale cc. In the notation of Ide, Courtier, Ghil and Lorenc (1997), ff marks the forecast.

  1. LOCALIZED-GAIN(X, Y, R, positions, phi, c)
  2. 1rho^xy_jk <- phi(dist(grid j, obs k) / c) ▷ hole: phi and c
  3. 2rho^yy_kl <- phi(dist(obs k, obs l) / c)
  4. 3PH^T <- rho^xy o (X Y^T / (N - 1))
  5. 4HPH^T <- rho^yy o (Y Y^T / (N - 1))
  6. 5K <- PH^T (HPH^T + R)^-1
  7. 6return K ▷ use in any ensemble analysis

Lines L1 and L2 compute the weights from the distances. Lines L3 and L4 localize the two covariances that the gain needs, which is the form of Houtekamer and Mitchell (2001). For a linear HH that only picks grid values, they are (ρ∘Pf)H⊤(\rho \circ P^f)H^\top and H(ρ∘Pf)H⊤H(\rho\circ P^f)H^\top for the correlation matrix ρ\rho on the grid. A serial filter that takes one observation at a time, like the serial EnSRF, only needs line L3 for one column: it multiplies the regression coefficients of the state on the observation by ϕ(dist/c)\phi(\text{dist}/c).

Localization in observation space. The LETKF has no gain matrix of the full state. It computes a separate analysis for each grid point with the nearby observations, and divides the error variance of observation kk by the weight wk=ϕ(dist/c)w_k = \phi(\text{dist}/c). This acts on RR instead of PfP^f. The two forms agree for observations at the grid point and differ elsewhere.

Why the matrix stays a covariance. The Schur product theorem: if AA and BB are symmetric positive semidefinite, so is A∘BA \circ B. Proof: write B=∑kbkbk⊤B = \sum_k b_kb_k^\top. Then x⊤(A∘B)x=∑k(x∘bk)⊤A(x∘bk)≥0x^\top(A \circ B)x = \sum_k (x \circ b_k)^\top A(x \circ b_k) \ge 0. If AA is positive definite and BB has a positive diagonal, the sum is zero only if x∘bk=0x \circ b_k = 0 for all kk. Each ii has some kk with bk,i≠0b_{k,i} \ne 0, because Bii=∑kbk,i2>0B_{ii} = \sum_k b_{k,i}^2 > 0, so x=0x = 0. Hence a positive definite ρ\rho with unit diagonal turns any sample covariance with positive variances into a positive definite matrix of full rank, with the same variances. This is why ϕ\phi must be a correlation function in the dimension of the grid, not just any function that falls to zero.

How large the spurious correlations are. Let uu and vv be independent, with vv Gaussian, and let rr be the sample correlation of NN independent draws. Then E[r2]=1/(N−1)\mathbb E[r^2] = 1/(N - 1). Proof: given the draws of uu, r=a⊤vc/∣vc∣r = a^\top v_c/|v_c|, where aa is a fixed unit vector in the space of dimension N−1N - 1 of vectors with zero sum and vcv_c is the centred vector of the draws of vv. vcv_c is a standard Gaussian vector in that space times the standard deviation of vv, so vc/∣vc∣v_c/|v_c| is uniform on its unit sphere. Each of the N−1N - 1 coordinates of a uniform unit vector has the same mean square, and the squares add to 11. With N=20N = 20 the root mean square of a spurious correlation is 1/19≈0.231/\sqrt{19} \approx 0.23.

A worked example. Take two grid points at positions 00 and 33, two members (−1,−1)(-1, -1) and (1,1)(1, 1), and one observation yo=1y^o = 1 of point 00 with R=1R = 1. The sample covariance is (2222)\begin{pmatrix} 2 & 2\\ 2 & 2\end{pmatrix}, so without localization the gain is (2/3,2/3)(2/3, 2/3) and the mean of point 33 moves from 00 to 2/32/3, as far as point 00. With the Gaspari-Cohn taper and c=2c = 2, the distance 3=1.5c3 = 1.5c has the weight 19/115219/1152. The localized cross covariance is 2⋅19/1152=19/5762 \cdot 19/1152 = 19/576, the gain for point 33 becomes (19/576)/3=19/1728≈0.011(19/576)/3 = 19/1728 \approx 0.011, and its mean moves only to 0.0110.011. Point 00 keeps the gain 2/32/3. The LETKF form on the same data moves point 33 to 19/595≈0.03219/595 \approx 0.032 (see its page), because it changes the weight of the observation and not the covariance.

Measurements on the other pages. On the Lorenz-96 model with n=40n = 40, every other variable observed and N=20N = 20, the serial EnSRF with ρ=1.02\rho = 1.02 had the RMSE 0.3730.373 with c=4c = 4, 0.3030.303 with c=10c = 10 and 4.524.52 without localization. The EnKF had 0.3470.347 with c=8c = 8 and ρ=1.05\rho = 1.05, and above 4.64.6 without localization even with large inflation. With localization both filters stayed well below the error 3.73.7 of a free ensemble.

Classic examples

Variations

  • Choice of taper. The Gaspari-Cohn function is the usual choice because it looks like a Gaussian and has compact support. Any compactly supported correlation function of the right dimension works.
  • Length scale. cc is tuned. A small cc removes more noise but also removes true correlations; a large cc keeps more noise. In the EnSRF measurement above the error fell as cc grew up to 1515, the largest value tried (with the distance along the ring, for which the taper matrix at c=15c = 15 has a negative eigenvalue; see the pitfall on the wrong distance below), and the EnKF did best near c=8c = 8 to 1010, so the best value depends on the filter.
  • Several distances. A separate length scale can be used for each direction, for example for the vertical in a model of the atmosphere.
  • Localization in time. In a smoother, the spurious correlations between distant times are not removed by a spatial taper. A shorter lag does this.

Pitfalls

  • A taper that is not positive definite (line L1). A function that is 11 at zero and falls to zero, such as a cut-off step or a triangle in two dimensions, can give a matrix ρ\rho with negative eigenvalues. Then ρ∘Pf\rho \circ P^f can fail to be a covariance and the analysis can be unstable.
  • The wrong distance (line L1). A correlation function of R3\mathbb R^3 stays positive definite on a sphere or a circle with the chordal distance, because these lie in R3\mathbb R^3. With the distance along the circle this holds only while the support is at most half the circle. On the Lorenz-96 ring of 40 points the Gaspari-Cohn matrix with the distance along the ring has a negative eigenvalue for c=11c = 11 and more; see the Gaspari-Cohn function page.
  • Half-width or support. With the Gaspari-Cohn function, cc is the half-width and the weight is zero beyond 2c2c. A stated "localization radius" can mean either of the two. Check which one a value means.
  • Imbalance. Localization also removes true long-range correlations, for example physical balances between variables, so the analysis can be out of balance.
  • Nonlocal observations. An observation of an integral over many grid points, such as a satellite radiance, has no single position, so its distance to a grid point is not well defined.

References

  1. P. L. Houtekamer and H. L. Mitchell, A sequential ensemble Kalman filter for atmospheric data assimilation, Monthly Weather Review 129(1) (2001) 123-137, the localized gain with a compactly supported correlation function
  2. T. M. Hamill, J. S. Whitaker and C. Snyder, Distance-dependent filtering of background error covariance estimates in an ensemble Kalman filter, Monthly Weather Review 129(11) (2001) 2776-2790, the Schur product of the ensemble covariance with a correlation function and its effect for small ensembles
  3. G. Gaspari and S. E. Cohn, Construction of correlation functions in two and three dimensions, Quarterly Journal of the Royal Meteorological Society 125(554) (1999) 723-757, eq. (4.10), the compactly supported fifth order function used as the taper
  4. B. R. Hunt, E. J. Kostelich and I. Szunyogh, Efficient data assimilation for spatiotemporal chaos: a local ensemble transform Kalman filter, Physica D 230(1-2) (2007) 112-126, the local analysis with the observations near each grid point and their weighting by distance
  5. K. Ide, P. Courtier, M. Ghil and A. C. Lorenc, Unified notation for data assimilation, operational, sequential and variational, Journal of the Meteorological Society of Japan 75(1B) (1997) 181-189, the notation of the data assimilation pages

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW3 standard
  • five exercises