Professional Documents
Culture Documents
MRM834 Notes
MRM834 Notes
Multivariate data: p ≥ 1 variables, each variable recorded for n distinct items, indi-
viduals or experimental trials.
Example: annual maximum temperature and annual maximum rainfall in Manch-
ester from 1901-2000. Here, p = 2 and n = 100.
Also denoted by sii . The sample standard deviation of the ith variable is the
√
square root sii .
The sample covariance of the ith and the kth variables is defined by:
∑
n
sik = 1
n−1
(xij − x̄i )(xkj − x̄k ).
j=1
1
Note sik = ski .
The sample correlation coefficient between the ith and the kth variables is defined
by:
rik = √siisik
√
skk
.
Also rik = rki .
The corresponding matrix representations are:
x̄1
x̄2
x = ..
.
x̄p
s11 s12 · · · s1p
s21 s22 · · · s2p
.
S=
. ..
.. .. . .
. .
..
sp1 sp2 . spp
and
1 r12 · · · r1p
r21 1 · · · r2p
R= .. .. . . . ..
. . .
rp1 rp2 ··· 1
2
Minkowski distance between x and y is:
( )1/λ
d(x, y) = w1 |x1 − y1 |λ + · · · + wp |xp − yp |λ .
11
1)
+ ··· + spp
.
Also known as the Karl Pearson distance (named after the British statistician).
Mahalanobis distance between x and y is:
xT y = x1 y1 + · · · + xk yk .
c1 x1 + + cn xn = 0.
3
2.1.1 Matrices
Transpose
((A)T )T = A.
(A + B)T = AT + B T .
(AB)T = B T AT .
A matrix A is symmetric if A = AT .
A matrix A is idempotant if A = AT and A2 = A.
Trace
The trace of a matrix is sum of its diagonal elements denoted by tr(A).
tr(c) = c.
tr(cA) = c tr(A).
∑
tr(AB) = tr(BA) = aij bji .
i,j
∑
tr(AAT ) = tr(AT A) = i,j a2ij .
Determinants
∑ ∑
|A| = ki=1 aij Aij = kj=1 aij Aij , where Aij are the co-factors.
|A| = |AT |.
|cA| = ck |A|.
|AB| = |A||B|.
For k = 3, |A| = a11 (a22 a33 −a23 a32 )−a12 (a21 a33 −a23 a31 )+a13 (a21 a32 −a31 a22 ).
4
Rank
The rank of a matrix A is the maximum number of linearly independent rows or
columns.
rank(A) = rank(AT ).
Inverse
For a k × k matrix A if there exists a matrix B such that
BA = I
then B is called the inverse of A and is denoted by A−1 . Here, I denotes the k × k
identity matrix.
(AB)−1 = B −1 A−1 .
For k = 2, ( )
−1 1 a22 −a12
A = .
a11 a22 −a12 a21 −a21 a11
Orthogonal Matrices
A k × k matrix A is said to be orthogonal if AT = A−1 .
AT A = I.
|A| = ±1.
aTi ai = 1 and aTi aj = 0 for i ̸= j, where aTi denotes the ith row of A.
5
Eigenvalues and Eigenvectors
The eigenvalues λ1 , · · · , λk of a k × k symmetric matrix A are the solutions of the
equation |A − λI| = 0. The eigenvector ej corresponding to λj is given by:
Aej = λj ej .
Usually the eigenvectors are chosen to satisfy eT1 e1 = · · · = eTk ek = 1 and be mutually
perpendicular.
|A| = Πλi .
∑
tr(A) = λi .
Spectral Decomposition
The spectral decomposition of any k × k symmetric matrix A is:
A = λ1 e1 eT1 + · · · + λk ek eTk .
∑
k
A−1 = 1
e eT
λi i i
= P Λ−1 P T ,
i=1
∑
k √
1/2
A = λi ei eTi = P Λ1/2 P T ,
i=1
∑
k
−1/2
A = √1 ei eT
λi i = P Λ−1/2 P T ,
i=1
∑
k
n
A = λni ei eTi = P Λn P T
i=1
and
∑
k
m/n
Am/n = λi ei eTi = P Λm/n P T .
i=1
6
2.1.2 Definiteness
A k × k symmetric matrix A is said to be nonnegative definite (denoted by A ≥ 0) if
xT Ax ≥ 0
xT Ax > 0
for all x ̸= 0.
If A ≥ 0 if and only if λi ≥ 0.