Professional Documents
Culture Documents
Research Matters
Nearest Correlation Matrices
February 25, 2009
Nick Higham
Nick Higham
School of Mathematics
Director of Research
The University of Manchester
School of Mathematics
higham@ma.man.ac.uk
http://www.ma.man.ac.uk/~higham/
1/6
What is a Matrix Function?
It’s not
det(A) or trace(A),
elementwise evaluation: f (aij ),
AT ,
matrix factor (e.g., A = LU).
d 2y
+ Ay = 0, y (0) = y0 , y 0 (0) = y00
dt 2
has solution
√ √ −1 √
y (t) = cos( A t)y0 + A sin( A t)y00 .
d 2y
+ Ay = 0, y (0) = y0 , y 0 (0) = y00
dt 2
has solution
√ √ −1 √
y (t) = cos( A t)y0 + A sin( A t)y00 .
But also
y0 y00
0 −tA
= exp .
y t In 0 y0
ez − 1 ez − 1 − z
ϕ0 (z) = ez , ϕ1 (z) = , ϕ2 (z) = ,...
z z2
ϕk (z) − 1/k !
ϕk +1 (z) = .
z
∞
X zj
ϕk (z) = .
(j + k )!
j=0
dy
= Ay , y (0) = y0 ⇒ y (t) = eAt y0 .
dt
dy
= Ay , y (0) = y0 ⇒ y (t) = eAt y0 .
dt
dy
= Ay + b, y (0) = 0 ⇒ y (t) = t ϕ1 (tA)b.
dt
dy
= Ay , y (0) = y0 ⇒ y (t) = eAt y0 .
dt
dy
= Ay + b, y (0) = 0 ⇒ y (t) = t ϕ1 (tA)b.
dt
dy
= Ay + ct, y (0) = 0 ⇒ y (t) = t 2 ϕ2 (tA)c.
dt
..
.
Pm (s−1 A)j −1
Choose s so Tm (s−1 A) = j=0 ≈ es A . Then
j!
yields bs ≈ eA b.
Alg AH ode15s
time cost error time cost error
orani678 0.13 878 4e-8 136 7780+ · · · 2e-6
bcspwr10 0.021 215 7e-7 2.92 1890+ · · · 5e-5
poisson 3.76 29255 2e-6 2.48 402+ · · · 8e-6
4 poisson 15 116849 9e-6 3.24 49+ · · · 1e-1
>> A^0.1
ans =
1 0
0 1
>> expm(0.1*logm(A))
ans =
1.0000e+000 1.0000e-009
0 1.0000e+000
1
(q + 1)Xk − Xkq+1 A
Xk +1 = X0 = A,
q
Xk → A−1/q .
Properties:
symmetric,
1s on the diagonal,
off-diagonal elements between −1 and 1,
eigenvalues nonnegative.
Properties:
symmetric,
1s on the diagonal,
off-diagonal elements between −1 and 1,
eigenvalues nonnegative.
Is this a correlation matrix?
1 1 0
1 1 1.
0 1 1
Properties:
symmetric,
1s on the diagonal,
off-diagonal elements between −1 and 1,
eigenvalues nonnegative.
Is this a correlation matrix?
1 1 0
1 1 1. Spectrum: −0.4142, 1.0000, 2.4142.
0 1 1
S
1
S2
X η + |{z}
ξ = |{z} F |{z}
ε , ηi , εi ∈ N(0, 1),
|{z}
n×k k ×1 n×n n×1
D = diag(I − XX T ), X = [x1 , . . . , xk ].
y1T y2 y1T yn
1 ...
T ..
y y 1 ... .
C(X ) = 1. 2 .. , yi ∈ Rk .
.. . T
yn−1 yn
y1T yn ... T
yn−1 yn 1
k
X
min f (x) := kA − C(X )k2F subject to xij2 ≤ 1.
X ∈Rn×k
j=1
T. Crilly.
Arthur Cayley: Mathematician Laureate of the Victorian
Age.
Johns Hopkins University Press, Baltimore, MD, USA,
2006.
ISBN 0-8018-8011-4.
xxi+610 pp.
P. I. Davies and N. J. Higham.
A Schur–Parlett algorithm for computing matrix
functions.
SIAM J. Matrix Anal. Appl., 25(2):464–485, 2003.
N. J. Higham.
The scaling and squaring method for the matrix
exponential revisited.
SIAM J. Matrix Anal. Appl., 26(4):1179–1193, 2005.
N. J. Higham.
Functions of Matrices: Theory and Computation.
Society for Industrial and Applied Mathematics,
Philadelphia, PA, USA, 2008.
ISBN 978-0-898716-46-7.
xx+425 pp.
N. J. Higham.
The scaling and squaring method for the matrix
exponential revisited.
SIAM Rev., 51(4):747–764, 2009.
N. J. Higham and A. H. Al-Mohy.
Computing matrix functions.
Acta Numerica, 19:159–208, 2010.
J. D. Lawson.
Generalized Runge-Kutta processes for stable systems
with large Lipschitz constants.
SIAM J. Numer. Anal., 4(3):372–380, Sept. 1967.
L. Lin.
Roots of Stochastic Matrices and Fractional Matrix
Powers.
PhD thesis, The University of Manchester, Manchester,
UK, 2010.
117 pp.
MIMS EPrint 2011.9, Manchester Institute for
Mathematical Sciences.
K. H. Parshall.
James Joseph Sylvester. Jewish Mathematician in a
Victorian World.
Johns Hopkins University Press, Baltimore, MD, USA,
2006.
ISBN 0-8018-8291-5.
xiii+461 pp.