CSC 5800: Intelligent Systems:: Algorithms and Tools
CSC 5800: Intelligent Systems:: Algorithms and Tools
CSC 5800: Intelligent Systems:: Algorithms and Tools
Intelligent Systems:
Algorithms and Tools
Lecture 2:
Linear algebra Review
Some Terminology
• Point — a geometric object; a location in 3D (or 2D) space.
1
Matrices
• Matrix is a tabular representation of a set of numbers
as a collection of rows and columns
Matrix Addition
• Two matrices should be of same dimension
• Associative ((A+B)+C=A+(B+C))
• Additive Inverse of A is –A
2
Scalar Multiplication
• The product of a scalar α and matrix A, is the matrix B= αA
Matrix Multiplication
• To multiply two matrices
– No. of columns in the First matrix must the same as the No. of
rows in the Second Matrix
• A (m X n) B (n X k) = C (m X k)
• Generally, it is not Commutative AB<>BA
• Associativity, (AB)C=A(BC)
• Distributivity,
– A(B+C)=AB+AC
– (B+C)A=BA+CA
3
Matrix Properties
• The column rank of a matrix A is the maximal
number of linearly independent columns of A.
Likewise, the row rank is the maximal number
of linearly independent rows of A.
Matrices
• Singular Matrix have no inverse
– Determinant is zero
• Inverse of a Matrix
• AA-1 = I
• (ABC)-1 = C-1B-1A-1
4
Determinant
Determinant
5
Statistical Operations (from Wikipedia.org)
• Mode of a data sample is the element that occurs most often in the
collection.
– For example, the mode of the sample [1, 3, 6, 6, 6, 6, 7, 7, 12, 12, 17]
is 6.
– Given the list of data [1, 1, 2, 4, 4] the mode is not unique, unlike the
arithmetic mean.
Percentile
• A percentile is the value of a variable below which a
certain percent of observations fall.
6
Harmonic Mean
• The harmonic mean H of the positive real numbers a1, ...,
an is defined to be
• i.e. the total amount of time for the trip is the same as if
you travelled the entire trip at 48 kilometres per hour.
Geometric Mean
• The nth root of the product of all the samples of the data
set, where n is the number of samples.
7
Relationship of the means
• In case of two numbers
chi-square statistic
• X2 is the chi-square statistic is given by
X2 = Sigma [ (O-E)2 / E ]