Stat 135: Matrix Theory For Statistics: RD RD ND ST
Stat 135: Matrix Theory For Statistics: RD RD ND ST
Section 1.1 defines the matrix including a brief description of several special
matrices. Meanwhile, vectors and scalars are presented in Section 1.2. A review of the
summation notation as well as a discussion of the dot notation is given in Section 1.3.
Finally, Section 1.4 presents some important uses and applications of Matrix Theory in
Statistics.
Illustration
Suppose that data on the food expenditure (in Php) of 3 UP students for 4 school
days is given as follows:
Now, consider the array of numbers in the table extracted and written as:
where the position of the entry in this array determines its meaning; for example,
the entry in the 3rd row and 3rd column, 190, represents the amount spent by
Student 3 on food for Day 3 (Thursday), or the entry in the 2nd row and 1st column,
97, represents the amount spent by Student 2 for Day 1 (Tuesday). In the array of
numbers, A, a row represents a particular student and a column represents a
particular day of the week. This array of numbers is called a matrix.
Remarks:
• A matrix is named using an underlined capital letter, say A, and its elements are
denoted by lowercase letters with subscripts indicating the position in the
matrix.
• A matrix A is denoted by
• Equivalently, A can be denoted A = {𝑎𝑖𝑗 }, where 𝑎𝑖𝑗 is the element in the 𝑖 𝑡ℎ row
and 𝑗 𝑡ℎ column, 𝑖=1,2,…,r and 𝑗=1,2,…,c
• 𝑎11 is called the leading element of the matrix A.
• If A is an 𝑟𝑥𝑐 matrix, then 𝑟 indicates the number of rows (horizontal) and 𝑐
indicates the number of columns (vertical).
• The size of the matrix, 𝑟𝑥𝑐, is called its order or dimension.
• The rows of a matrix are of equal length, as are the columns.
Exercises
1. Determine which of the following are matrices and find the dimension.
1 3
a. A = [5 4]
6 2
45 34 66
b. B = [67 56 84]
98
1
−√2 11
c. C = [ ]
𝜋 3
The elements 𝑎11 , 𝑎22 , …, 𝑎𝑟𝑟 of a square matrix are referred to as the diagonal
elements or the diagonal of the matrix.
The elements of a square matrix that lie in a line parallel to and just below the
diagonal are sometimes referred to as the subdiagonal elements.
Elements of a square matrix other than the diagonal elements are called off-
diagonal or nondiagonal elements.
Triangular Matrix
A triangular matrix is a square matrix with all elements above (or below) the
diagonal being zero.
Example:
Diagonal Matrix
A diagonal matrix is a square matrix having zero for all its nondiagonal
elements, i.e., a matrix D = {𝑑𝑖𝑗 } is a diagonal matrix if 𝑑𝑖𝑗 = 0 ∀ 𝑖 ≠ 𝑗, 𝑖, 𝑗 = 1,2,
…, r It is denoted by D{ 𝑎11 , 𝑎22 , 𝑎33 , … , 𝑎𝑟𝑟 } where 𝑎𝑖𝑖 are the diagonal elements,
𝑖 = 1,2,…,r.
Scalar Matrix
A scalar matrix is a diagonal matrix with all diagonal elements equal.
Example:
3 0 0
S = [0 3 0 ]
0 0 3
Identity Matrix
An identity matrix of order 𝑟, denoted by Ir, is a diagonal matrix having all
diagonal elements equal to one.
Example:
1 0 0
1 0
I2 = [ ] I 3 = [0 1 0 ]
0 1
0 0 1
Null Matrix
A null matrix, denoted by O, is a matrix of zeros, i.e., every element is zero. It is
also called the zero matrix.
Example:
0 0
0 0
O2 = [ ] O3x2 = [0 0]
0 0
0 0
Remarks:
• A column vector is denoted by an underlined small letter.
• A row vector is denoted by an underlined small letter with a prime (‘).
Summation
𝑛
∑ 𝑋𝑖 = 𝑋1 + 𝑋2 + 𝑋3 + ⋯ + 𝑋𝑛
𝑖=1
Properties of Summation:
• The summation of the sum of two or more terms equals the sum of the
individual summations.
𝑛 𝑛 𝑛 𝑛
∑(𝑋𝑖 + 𝑌𝑖 + 𝑍𝑖 ) = ∑ 𝑋𝑖 + ∑ 𝑌𝑖 + ∑ 𝑍𝑖
𝑖=1 𝑖=1 𝑖=1 𝑖=1
• The summation of the product of a constant, c, with 𝑋𝑖 equals the product the
constant with the summation of 𝑋𝑖 .
𝑛 𝑛
∑ 𝑐𝑋𝑖 = 𝑐 ∑ 𝑋𝑖
𝑖=1 𝑖=1
∑ 𝑐 = 𝑛𝑐
𝑖=1
𝑟
• 𝑎.𝑗 = ∑ 𝑎𝑖𝑗
𝑖=1
𝑐
• 𝑎𝑖. = ∑ 𝑎𝑖𝑗
𝑗=1
𝑟 𝑐 𝑟 𝑐
• 𝑎.. = ∑ 𝑎𝑖.𝑗 = ∑ 𝑎.𝑗 = ∑ 𝑖𝑗 ∑ 𝑎𝑖𝑗
𝑖=1 𝑗=1 𝑖=1 𝑗=1
Product Notation
𝑛
Remarks:
Exercises
5 3 8 0 2 4
W=[ 2 4 7 ] and H = [ 6 −3 5]
−2 0 −1 9 6 4
show that
𝑋 𝑋 𝜇𝑥 𝑋 𝜎𝑥2 𝜎𝑥𝑦
[ ] 𝐸 ([ ])=[𝜇 ] 𝑉𝑎𝑟 ([ ])=[ ]
𝑌 𝑌 𝑦 𝑌 𝜎𝑥𝑦 𝜎𝑦2
This can be further extended to the k-variate case wherein there are 𝑘 random
variables, say 𝑋1 , 𝑋2 , … , 𝑋𝑘 have means 𝜇1 , 𝜇2 , … , 𝜇𝑘 , variances 𝜎12 , 𝜎22 , … , 𝜎𝑘2 and
covariances 𝜎12 , 𝜎13 , … 𝜎𝑘−1,𝑘 which can be represented by the following vectors.