-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmultivariate_localization.tex
More file actions
executable file
·491 lines (462 loc) · 21.8 KB
/
Copy pathmultivariate_localization.tex
File metadata and controls
executable file
·491 lines (462 loc) · 21.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
\documentclass[12pt]{scrartcl}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsbsy}
\usepackage{graphicx}
\usepackage{float}
\usepackage{array}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{bm}
\usepackage{verbatim}
\usepackage[english]{babel}
\usepackage{color}
\usepackage{url}
\usepackage{fancybox}
\usepackage[stable]{footmisc}
\usepackage[format=plain,labelfont=bf]{caption}
\usepackage{fancyhdr}
\usepackage{natbib}
\usepackage{calc}
\usepackage{textcomp}
\usepackage[pdftex,pdfborder={0 0 0}]{hyperref}
\usepackage{pdfpages}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,decorations.pathmorphing}
\usepackage{amsmath}
\usepackage{easybmat}
\usepackage{multirow,bigdelim}
\renewcommand*{\familydefault}{\sfdefault}
\newcommand*\hexbrace[2]{%
\underset{#2}{\underbrace{\rule{#1}{0pt}}}}
% Margins
\addtolength{\textheight}{1.0cm}
\addtolength{\oddsidemargin}{-0.5cm}
\addtolength{\evensidemargin}{-0.5cm}
\addtolength{\textwidth}{1.0cm}
\parindent=0em
% New math commands
\newcommand{\overbar}[1]{\mkern 1.5mu\overline{\mkern-1.5mu#1\mkern-1.5mu}\mkern 1.5mu}
\DeclareMathOperator{\diag}{diag}
\DeclareMathOperator{\Diag}{Diag}
\DeclareMathOperator{\tr}{tr}
\DeclareMathOperator{\Cov}{Cov}
\DeclareMathOperator{\Cor}{Cor}
\newcommand\independent{\protect\mathpalette{\protect\independenT}{\perp}}
\def\independenT#1#2{\mathrel{\setbox0\hbox{$#1#2$}%
\copy0\kern-\wd0\mkern4mu\box0}}
% Appropriate font for \mathcal{}
\DeclareSymbolFont{cmmathcal}{OMS}{cmsy}{m}{n}
\DeclareSymbolFontAlphabet{\mathcal}{cmmathcal}
% Set subscript and superscripts positions
\everymath{
\fontdimen13\textfont2=5pt
\fontdimen14\textfont2=5pt
\fontdimen15\textfont2=5pt
\fontdimen16\textfont2=5pt
\fontdimen17\textfont2=5pt
}
% Bibliography style
\setlength{\bibsep}{1pt}
% Part
\renewcommand\partheadstartvskip{\clearpage\null\vfil}
\renewcommand\partheadmidvskip{\par\nobreak\vskip 20pt\thispagestyle{empty}}
\renewcommand\partheadendvskip{\vfil\clearpage}
\renewcommand\raggedpart{\centering}
\begin{document}
\title{Multivariate localization}
\author{Benjamin Ménétrier}
\date{Last update: \today}
\thispagestyle{empty}
\maketitle
\begin{center}
Documentation for the code "BUMP", distributed under the CeCILL-C license.\\
Copyright \copyright 2015-... UCAR, CERFACS, METEO-FRANCE, IRIT and Meteorologisk Institutt
\end{center}
\tableofcontents
\clearpage
\section{Framework}
\subsection{State vector definition}
The state vector $\mathbf{x} \in \mathbb{R}^n$ is split into $Q$ concatenated sub-vectors $\mathbf{x}_q$ (called ``groups''), each one gathering $P_q$ sub-vectors $\mathbf{x}_{p,q}$ of size $n_q$ (called ``variables''). Each sub-vector $\mathbf{x}_{p,q}$ corresponds to the data for a given physical variable (e.g. zonal wind, temperature, humidity, etc.). In a given group, all variables have the same size ($n_q$). Thus:
\begin{align}
\mathbf{x} = \left( \begin{array}{c}
\mathbf{x}_1 \\[1ex]
\hline
\vdots \\
\hline
\mathbf{x}_Q
\end{array} \right) \quad \text{and} \quad \mathbf{x}_q = \left( \begin{array}{c}
\mathbf{x}_{1,q} \\[1ex]
\hline
\vdots \\
\hline
\mathbf{x}_{P_q,q}
\end{array} \right)
\end{align}
As a consequence:
\begin{itemize}
\item The total number of variables is $\displaystyle P = \sum_{q=1}^Q P_q$.
\item Each group $\mathbf{x}_q$ has a size $P_q n_q$, so the full state vector size is $n = \displaystyle \sum_{q=1}^Q P_q n_q$.
\end{itemize}
\subsection{Illustration setup}
A simple example will be used as an illustration throughout this note. We define a vector $\mathbf{x}$ with $Q = 3$ groups, where $P_1 = 3$, $P_2 = 1$ and $P_3 = 2$:
\begin{align}
\begin{array}{c@{}c}
\mathbf{x} = \left( \begin{array}{c}
\mathbf{x}_{1,1} \\
\mathbf{x}_{2,1} \\
\mathbf{x}_{3,1} \\[1ex]
\hline
\mathbf{x}_{1,2} \\[1ex]
\hline
\mathbf{x}_{1,3} \\
\mathbf{x}_{2,3}
\end{array} \right)
&
\begin{array}{l}
\\[-8.5mm] \rdelim\}{3}{6mm}[$\mathbf{x}_1$ (1$^\text{st}$ group of variables)] \\[11.5mm] \rdelim\}{1}{6mm}[$\mathbf{x}_2$ (2$^\text{nd}$ group of variables)] \\[3.5mm] \rdelim\}{2}{6mm}[$\mathbf{x}_3$ (3$^\text{rd}$ group of variables)]
\end{array} \\[-1ex]
\end{array}
\end{align}
\subsection{Localization square-root}
The localization matrix $\mathbf{L} \in \mathbb{R}^{n \times n}$ is applied to $\mathbf{x}$. The main issue is to design a positive semi-definite $\mathbf{L}$ matrix, and the simplest solution is to build it as:
\begin{align}
\mathbf{L} = \mathbf{UU}^\textrm{T}
\end{align}
where $\mathbf{U} \in \mathbb{R}^{n \times m}$ is called a ``square-root'' of the localization matrix $\mathbf{L}$. The number of colums $m$ of the square-root $\mathbf{U}$ can be smaller or larger than the number of lines $n$. The control vector $\mathbf{v} \in \mathbb{R}^m$ is such that:
\begin{align}
\mathbf{x} = \mathbf{U} \mathbf{v}
\end{align}
We can define a component $\mathbf{U}_q \in \mathbb{R}^{n_q \times m_q}$ for each group. The relationship between the number of columns $m_q$ of each component $\mathbf{U}_q$ and the total number of columns $m$ of $\mathbf{U}$ depends on the multivariate strategy.\\
$ $\\
The main idea behind this distribution of variables into groups is to apply a localization based on the same component to all the variables pairs within a given group. Thus, the number of distinct component can be reduced if the number of groups is smaller than the number of variables.
\section{Zero cross-localization between groups}
For the first three multivariate strategies, cross-correlations between groups are cut off (i.e. cross-localization is zero). Localization is non-zero only for auto-correlations and cross-correlations between variables of the same group.
\subsection{Univariate localization}
For the case where even cross-correlations between variables of the same group are cut off, the square-root $\mathbf{U}$ can be defined as:
\begin{align}
\mathbf{U} = \left( \begin{array}{ccc|c|cc}
\mathbf{U}_1 & 0 & 0 & 0 & 0 & 0 \\
0 & \mathbf{U}_1 & 0 & 0 & 0 & 0 \\
0 & 0 & \mathbf{U}_1 & 0 & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & \mathbf{U}_2 & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & 0 & \mathbf{U}_3 & 0 \\
0 & 0 & 0 & 0 & 0 & \mathbf{U}_3
\end{array} \right)
\end{align}
Thus:
\begin{align}
\mathbf{L} = \left( \begin{array}{ccc|c|cc}
\mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & 0 & 0 & 0 & 0 & 0 \\
0 & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & 0 & 0 & 0 & 0 \\
0 & 0 & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & 0 & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & \mathbf{U}_2 \mathbf{U}_2^\mathrm{T} & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & 0 & \mathbf{U}_3 \mathbf{U}_3^\mathrm{T} & 0 \\
0 & 0 & 0 & 0 & 0 & \mathbf{U}_3 \mathbf{U}_3^\mathrm{T}
\end{array} \right)
\end{align}
In this case, the total control vector size is $\displaystyle m = \sum_{q=1}^Q P_q m_q$
\subsection{Duplicated localization}
It is possible to define the cross-localization between the variables of a same group as duplicates of the diagonal localization, by defining $\mathbf{U}$ as:
\begin{align}
\mathbf{U} & = \left( \begin{array}{c|c|c}
\mathbf{U}_1 & 0 & 0 \\
\mathbf{U}_1 & 0 & 0 \\
\mathbf{U}_1 & 0 & 0 \\[0.3ex]
\hline
0 & \mathbf{U}_2 & 0 \\[0.3ex]
\hline
0 & 0 & \mathbf{U}_3 \\
0 & 0 & \mathbf{U}_3
\end{array} \right) \nonumber \\
& = \left( \begin{array}{c|c|c}
\mathbf{I}_1 & 0 & 0 \\
\mathbf{I}_1 & 0 & 0 \\
\mathbf{I}_1 & 0 & 0 \\[0.3ex]
\hline
0 & \mathbf{I}_2 & 0 \\[0.3ex]
\hline
0 & 0 & \mathbf{I}_3 \\
0 & 0 & \mathbf{I}_3
\end{array} \right)
\left( \begin{array}{c|c|c}
\mathbf{U}_1 & 0 & 0 \\[0.3ex]
\hline
0 & \mathbf{U}_2 & 0 \\[0.3ex]
\hline
0 & 0 & \mathbf{U}_3
\end{array} \right)
\end{align}
where $\mathbf{I}_q \in \mathbf{R}^{n_q,n_q}$ is the identity matrix of size $n_q$. Thus:
\begin{align}
\mathbf{L} = \left( \begin{array}{ccc|c|cc}
\mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & 0 & 0 & 0 \\
\mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & 0 & 0 & 0 \\
\mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & 0 & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & \mathbf{U}_2 \mathbf{U}_2^\mathrm{T} & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & 0 & \mathbf{U}_3 \mathbf{U}_3^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_3^\mathrm{T} \\
0 & 0 & 0 & 0 & \mathbf{U}_3 \mathbf{U}_3^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_3^\mathrm{T}
\end{array} \right)
\end{align}*
In this case, the total control vector size is $\displaystyle m = \sum_{q=1}^Q m_q$
\subsection{Duplicated and weighted localization}
A variant of the previous case uses group-specific lower triangular matrices $\mathbf{S}^q \in \mathbb{R}^{P_q \times P_q}$ to define $\mathbf{U}$ as:
\begin{align}
\mathbf{U} & = \left( \begin{array}{ccc|c|ccc}
S^1_{1,1} \mathbf{U}_1 & 0 & 0 & 0 & 0 & 0 \\
S^1_{2,1} \mathbf{U}_1 & S^1_{2,2} \mathbf{U}_1 & 0 & 0 & 0 & 0 \\
S^1_{3,1} \mathbf{U}_1 & S^1_{3,2} \mathbf{U}_1 & S^1_{3,3} \mathbf{U}_1 & 0 & 0 & 0 \\
\hline
0 & 0 & 0 & S^2_{1,1} \mathbf{U}_2 & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & 0 & S^3_{1,1} \mathbf{U}_3 & 0 \\
0 & 0 & 0 & 0 & S^3_{2,1} \mathbf{U}_3 & S^3_{2,2} \mathbf{U}_3
\end{array} \right) \nonumber \\
& = \left( \begin{array}{ccc|c|ccc}
S^1_{1,1} \mathbf{I}_1 & 0 & 0 & 0 & 0 & 0 \\
S^1_{2,1} \mathbf{I}_1 & S^1_{2,2} \mathbf{I}_1 & 0 & 0 & 0 & 0 \\
S^1_{3,1} \mathbf{I}_1 & S^1_{3,2} \mathbf{I}_1 & S^1_{3,3} \mathbf{I}_1 & 0 & 0 & 0 \\
\hline
0 & 0 & 0 & S^2_{1,1} \mathbf{I}_2 & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & 0 & S^3_{1,1} \mathbf{I}_3 & 0 \\
0 & 0 & 0 & 0 & S^3_{2,1} \mathbf{I}_3 & S^3_{2,2} \mathbf{I}_3
\end{array} \right) \left( \begin{array}{ccc|c|cc}
\mathbf{U}_1 & 0 & 0 & 0 & 0 & 0 \\
0 & \mathbf{U}_1 & 0 & 0 & 0 & 0 \\
0 & 0 & \mathbf{U}_1 & 0 & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & \mathbf{U}_2 & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & 0 & \mathbf{U}_3 & 0 \\
0 & 0 & 0 & 0 & 0 & \mathbf{U}_3
\end{array} \right)
\end{align}
Thus:
\begin{align}
\mathbf{L} = \left( \begin{array}{ccc|c|cc}
W^1_{1,1} \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & W^1_{1,2} \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & W^1_{1,3} \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & 0 & 0 & 0 \\
W^1_{2,1} \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & W^1_{2,2} \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & W^1_{2,3} \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & 0 & 0 & 0 \\
W^1_{3,1} \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & W^1_{3,2} \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & W^1_{3,3} \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & 0 & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & W^2_{1,1} \mathbf{U}_2 \mathbf{U}_2^\mathrm{T} & 0 & 0 \\[0.3ex]
\hline
0 & 0 & 0 & 0 & W^3_{1,1} \mathbf{U}_3 \mathbf{U}_3^\mathrm{T} & W^3_{1,2} \mathbf{U}_3 \mathbf{U}_3^\mathrm{T} \\
0 & 0 & 0 & 0 & W^3_{2,1} \mathbf{U}_3 \mathbf{U}_3^\mathrm{T} & W^3_{2,2} \mathbf{U}_3 \mathbf{U}_3^\mathrm{T}
\end{array} \right)
\end{align}
where $\mathbf{W}^q = \mathbf{S}^q \mathbf{S}^{q\mathrm{T}}$ provides the weights applied to each covariance between variables within the group $q$. In practice, it is easier to set $\mathbf{W}^q$ and to compute $\mathbf{S}^q$ using a Cholesky decomposition. It also seems reasonable to set the diagonal elements of $\mathbf{W}^q$ to one.\\
$ $\\
In this case, the total control vector size is $\displaystyle m = \sum_{q=1}^Q P_q m_q$
\section{Implicit cross-localization between groups}
For the last multivariate strategy, cross-correlations between groups are defined implicitly as the product of components of both groups.
\subsection{Crossed localization}
In this case, $\mathbf{U}$ is reduced to a column:
\begin{align}
\mathbf{U} & = \left( \begin{array}{c}
\mathbf{U}_1 \\
\mathbf{U}_1 \\
\mathbf{U}_1 \\[0.3ex]
\hline
\mathbf{U}_2 \\[0.3ex]
\hline
\mathbf{U}_3 \\
\mathbf{U}_3
\end{array} \right) \nonumber \\
& = \left( \begin{array}{c|c|c}
\mathbf{I}_1 & 0 & 0 \\
\mathbf{I}_1 & 0 & 0 \\
\mathbf{I}_1 & 0 & 0 \\[0.3ex]
\hline
0 & \mathbf{I}_2 & 0 \\[0.3ex]
\hline
0 & 0 & \mathbf{I}_3 \\
0 & 0 & \mathbf{I}_3
\end{array} \right)
\left( \begin{array}{c}
\mathbf{U}_1 \\[0.3ex]
\hline
\mathbf{U}_2 \\[0.3ex]
\hline
\mathbf{U}_3
\end{array} \right)
\end{align}
An additional property is required here: the control vectors of all the components $\mathbf{U}_q$ must be expressed in the same basis (see next section for details). As an obvious consequence, all the components have the same number of columns: $m_1 = ... = m_Q = \overbar{m}$. Thus:
\begin{align}
\mathbf{L} = \left( \begin{array}{ccc|c|cc}
\mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_2^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_3^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_3^\mathrm{T} \\
\mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_2^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_3^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_3^\mathrm{T} \\
\mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_2^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_3^\mathrm{T} & \mathbf{U}_1 \mathbf{U}_3^\mathrm{T} \\[0.3ex]
\hline
\mathbf{U}_2 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_2 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_2 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_2 \mathbf{U}_2^\mathrm{T} & \mathbf{U}_2 \mathbf{U}_3^\mathrm{T} & \mathbf{U}_2 \mathbf{U}_3^\mathrm{T} \\[0.3ex]
\hline
\mathbf{U}_3 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_2^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_3^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_3^\mathrm{T} \\
\mathbf{U}_3 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_1^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_2^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_3^\mathrm{T} & \mathbf{U}_3 \mathbf{U}_3^\mathrm{T}
\end{array} \right)
\end{align}
In this case, the total control vector size is $\displaystyle m = \overbar{m}$.\\
\subsection{Same basis requirement}
In order to get valid cross-products of square-roots like $\mathbf{U}_1 \mathbf{U}_2^\mathrm{T}$, the control vectors of all the components $\mathbf{U}_q$ must be expressed in the basis: \textbf{having the same number of columns ($m_1 = m_2$) is a necessary condition, but not a sufficient one}, as it can be demonstrated with a simple example.\\
$ $\\
Let's build the simplest possible system:
\begin{itemize}
\item Two variables are defined on two grid-points: $\mathbf{x}_1 \in \mathbb{R}^2$ and $\mathbf{x}_2 \in \mathbb{R}^2$.
\item The auto-localization matrices for these variables are:
\begin{align}
\mathbf{L}_1 = \left( \begin{array}{cc}
1 & 0 \\
0 & 1
\end{array} \right) \text{ and } \mathbf{L}_2 = \left( \begin{array}{cc}
4 & 0 \\
0 & 4
\end{array} \right)
\end{align}
\end{itemize}
Thus, the most obvious localization square-root matrices, both expressed in the same control vector basis, are:
\begin{align}
\mathbf{U}_1 = \left( \begin{array}{cc}
1 & 0 \\
0 & 1
\end{array} \right) \text{ and } \mathbf{U}_2 = \left( \begin{array}{cc}
2 & 0 \\
0 & 2
\end{array} \right)
\end{align}
With the crossed strategy, the resulting localization matrix is:
\begin{align}
\mathbf{L} = \left( \begin{array}{c}
\mathbf{U}_1 \\
\hline
\mathbf{U}_2
\end{array} \right) \left( \begin{array}{c|c}
\mathbf{U}_1^\mathrm{T} & \mathbf{U}_2^\mathrm{T}
\end{array} \right) = \left( \begin{array}{cc|cc}
1 & 0 & 2 & 0 \\
0 & 1 & 0 & 2 \\
\hline
2 & 0 & 4 & 0 \\
0 & 2 & 0 & 4
\end{array} \right)
\end{align}
The cross-localization matrices $\mathbf{U}_1 \mathbf{U}_2^\mathrm{T}$ and $\mathbf{U}_2 \mathbf{U}_1^\mathrm{T}$ look relevant: both auto-localizations $\mathbf{L}_1$ and $\mathbf{L}_2$ remove the covariances between the two grid-points, and so do the implicit cross-localization matrices.\\
$ $\\
However, it is possible to introduce any unitary matrix $\mathbf{R}$ such as $\mathbf{R} \mathbf{R}^\mathrm{T} = \mathbf{I}$ to define another valid square-root of $\mathbf{L}_2$: $\widetilde{\mathbf{U}}_2 = \mathbf{U}_2 \mathbf{R}$. This is a simple orthogonal change of basis in the space of the control vector $\mathbf{v}_2$. It is easy to check that $\widetilde{\mathbf{L}}_2 = \widetilde{\mathbf{U}}_2 \widetilde{\mathbf{U}}_2^\mathrm{T} = \mathbf{L}_2$. An obvious example of such a unitary matrix is:
\begin{align}
\mathbf{R} = \left( \begin{array}{cc}
0 & 1 \\
1 & 0
\end{array} \right)
\end{align}
which is just a switch of the two grid-points. In this case, the resulting localization matrix is:
\begin{align}
\widetilde{\mathbf{L}} & = \left( \begin{array}{c}
\mathbf{U}_1 \\
\hline \\[-0.4cm]
\widetilde{\mathbf{U}}_2
\end{array} \right) \left( \begin{array}{c|c}
\mathbf{U}_1^\mathrm{T} & \widetilde{\mathbf{U}}_2^\mathrm{T}
\end{array} \right) \nonumber \\
& = \left( \begin{array}{cc|cc}
1 & 0 & 0 & 2 \\
0 & 1 & 2 & 0 \\
\hline
0 & 2 & 4 & 0 \\
2 & 0 & 0 & 4
\end{array} \right)
\end{align}
Now, the cross-localization matrices $\mathbf{U}_1 \mathbf{U}_2^\mathrm{T}$ and $\mathbf{U}_2 \mathbf{U}_1^\mathrm{T}$ look wrong: both keep the covariances between the two grid-points and removes the covariances of the two grid-points with themselves. The introduction of $\mathbf{R}$ has no impact on the auto-localizations, but it has a dramatic (and wrong) effect on the implicit cross-localizations.\\
$ $\\
A practical application of this constraint concerns spectral methods. In this case, the vertical structure of $\mathbf{U}_q$ is generally built from the eigendecomposition of the vertical structure of $\mathbf{L}_q$. But if this vertical structure differs among the components $\mathbf{L}_1, \dots, \mathbf{L}_Q$, then the eigenvector bases used to define $\mathbf{U}_1, \dots, \mathbf{U}_Q$ will be different too. Thus, \textbf{the same vertical structure must be used for all the components}.
\subsection{Cross-localization amplitude}
The amplitude of cross-localization is not one in this case. For $1 \le q,q' \le Q$, we denote $\mathbf{u}$ the k$^\textrm{th}$ column of $\mathbf{U}_q$ and $\mathbf{u}'$ the k$^\textrm{th}$ column of $\mathbf{U}_{q'}$. The k$^\textrm{th}$ diagonal coefficient of $\mathbf{U}_q \mathbf{U}_{q'}^\mathrm{T}$ is given by $\langle \mathbf{u},\mathbf{u}' \rangle$, where $\langle \cdot, \cdot \rangle$ denotes the canonical inner product. The Cauchy-Schwartz inequality requires that:
\begin{align}
\vert \langle \mathbf{u},\mathbf{u}' \rangle \vert & \le \sqrt{\langle \mathbf{u},\mathbf{u} \rangle \langle \mathbf{u}',\mathbf{u}' \rangle}
\end{align}
Thus, the cross-localization amplitude between groups $q$ and $q'$ is necessarily smaller than the geometric mean of the auto-localization amplitudes for groups $q$ and $q'$. Besides, the more the vectors $\mathbf{u}$ and $\mathbf{u}'$ have different shapes, the smaller their inner product and the smaller the cross-localization amplitude.
\begin{center}
\includegraphics[width=\linewidth]{convolution_exp.pdf}
\captionof{figure}{1D illustration of the product of two localization square-root, with Gaussian localization functions. The dashed black line shows the function amplitude, while the solid red line shows the function length-scale.}
\end{center}
\subsection{Mixing 3D and 2D variables}
In many applications, the state vector contains both 3D and 2D variables. To use the crossed method in this case, it is necessary to consider the 2D variables as 3D variables with only one level containing meaningful data (the first or the last level in general) and the other levels set to zero.\\
$ $\\
For sake of simplicity, we assume here that group 1 contains one 3D variable and group 2 contains one 2D variable. We also assume that both control variable $\mathbf{x}$ and control vector $\mathbf{v}$ can be split into $K$ components, each one handling one vertical level:
\begin{align}
\mathbf{x} = \left( \begin{array}{c}
\mathbf{x}_{1,k=1} \\[1ex]
\vdots \\
\mathbf{x}_{1,k=K} \\[1ex]
\hline
\mathbf{x}_{2}
\end{array} \right) \ \text{ and } \ \mathbf{v} = \left( \begin{array}{c}
\mathbf{v}_{k=1} \\[1ex]
\vdots \\
\mathbf{v}_{k=K} \\[1ex]
\end{array} \right)
\end{align}
We can define an extended control variable:
\begin{align}
\mathbf{x}' = \left( \begin{array}{c}
\mathbf{x}_{1,k=1} \\[1ex]
\vdots \\
\mathbf{x}_{1,k=K} \\[1ex]
\hline
\mathbf{x}'_{2,k=1} \\[1ex]
\vdots \\
\mathbf{x}'_{2,k=K} \\[1ex]
\end{array} \right) = \mathbf{E} \mathbf{x}
\end{align}
where $\mathbf{E}$ is the extension operator padding with zeros, so that both sub-vectors have the same size. In general:
\begin{itemize}
\item either $\mathbf{x}'_{2,k=1} = \mathbf{x}_2$ and
$\mathbf{x}'_{2,k=2}$ to $\mathbf{x}'_{2,k=K}$ are set to zero,
\item or $\mathbf{x}'_{2,k=K} = \mathbf{x}_2$ and
$\mathbf{x}'_{2,k=1}$ to $\mathbf{x}'_{2,k=K-1}$ are set to zero.
\end{itemize}
The adjoint of $\mathbf{E}$, denoted $\mathbf{E}^\mathrm{T}$, is thus a reduction operator removing the zeroed levels from the extended control variable $\mathbf{x}'$ to yield the control variable $\mathbf{x}$:
\begin{align}
\mathbf{x} = \mathbf{E}^\mathrm{T} \mathbf{E} \mathbf{x}
\end{align}
We define an extended square-root $\mathbf{U}'_2$:
\begin{align}
\mathbf{U}'_2 = \left( \begin{array}{cccc}
\mathbf{U}_2 & 0 & \dots & 0 \\[1ex]
0 & 0 & \dots & 0 \\
\vdots & \vdots & \ddots & \vdots \\
0 & 0 & \dots & 0
\end{array} \right) \ \text{ or } \ \mathbf{U}'_2 = \left( \begin{array}{cccc}
0 & \dots & 0 & 0\\
\vdots & \ddots & \vdots & \vdots\\
0 & \dots & 0 & 0 \\
0 & \dots & 0 & \mathbf{U}_2
\end{array} \right)
\end{align}
depending on the location of the 2D level in the 3D grid, at level 1 or $K$, respectively. The extended square-root $\mathbf{U}$ is then given by:
\begin{align}
\mathbf{U}' = \left( \begin{array}{c}
\mathbf{U}_1 \\[1ex]
\hline
\mathbf{U}'_2 \\[1ex]
\end{array} \right)
\end{align}
Finally, we get
\begin{align}
\mathbf{x}' = \mathbf{U}' \mathbf{v}
\end{align}
so we can conclude that:
\begin{align}
\mathbf{U} = \mathbf{E}^\mathrm{T} \mathbf{U}'
\end{align}
In practice, the operator $\mathbf{E}^\mathrm{T} \mathbf{U}'$ can be optimized to avoid the storage in memory of the extended variable $\mathbf{x}'$, keeping the relevant level only for the 2D variables.
\bibliographystyle{mybib-en}
\bibliography{multivariate_localization}
\end{document}