1 Chapter 1: Matrix Algebra
1.1 Vectors and Matrices
Let a and b be two vectors, which have the same order n.
Summation of two vectors:
a1 b1 a1 + b1
a2 b2 a2 + b2
a+b= . + . = .
.. .. ..
an bn an + bn
Vector summation is:
− Commutative: a + b = b + a
− Associative: (a + b) + c = a + (b + c), where c is a vector of the same order as a and
b.
Multiplication of a vector with a scalar λ
a1
a2
λa = λ .
..
an
Inner or scalar product of two vectors a and b of the same order n
n
X
⟨a, b⟩ = a′ b = ai bi .
i=1
The length (or norm) of a vector
√
∥a∥ = ⟨a, a⟩1/2 = a′ a.
Any nonzero vector can be normalized by
1
ao = a.
∥a∥
A normalized vector has norm 1.
Collinearity of two vectors a and b
a = λb
for some scalar λ.
3
, Wouter Voskuilen Linear Models in Statistics
Two vectors a and b with ⟨a, b⟩ = 0 are called orthogonal.
If ⟨a, b⟩ = 0 and ∥a∥ = ∥b∥ = 1, then a and b are called orthonormal.
Outer product of two vectors a and b of the same order
a1 b1 · · · a1 bn
ab′ = ... .. ..
. .
an b1 · · · an bn
Let A be a n × m matrix.
− A is square if n = m.
− A is symmetric if n = m and aij = aji , i, j = 1, ..., n.
− A is diagonal if n = m and aij = 0 if i ̸= j, i, j = 1, ..., n.
Result 1
A is symmetric ⇐⇒ A = A′ .
Multiplication of a matrix A with a scalar λ
λA = {λaij }
Multiplication of an n × n matrix A with an m × 1 vector x
m
X
{Ax}i = aiℓ xℓ
ℓ=1
multiplication of an n × n matrix A and an m × k matrix B:
(m )
X
{AB}ij = ail blj
l=1
The resulting matrix AB is of dimension n × k.
Note: The number of columns of the first matrix equals the number of rows in the sec-
ond matrix.
A and B are conformable if their orders are such that AB is defined.
Result 2
For conformable matrices, (ABC)′ = C ′ B ′ A′ .
In the product AB:
4
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller woutervoskuilen. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $9.11. You're not tied to anything after your purchase.