# Data Mining: Algorithms and Applications Matrix Math Review

Size: px
Start display at page:

## Transcription

1 .6 Data Mining: Algorithms and Applications Matrix Math Review The purpose of this document is to give a brief review of selected linear algebra concepts that will be useful for the course and to develop some intuition for these concepts. Introduction and Definitions A scalar is simply a value or number, such as 7,., or 66. We typically refer to scalars using lower case variables (e.g. x 7, y., z 66), and we can visualize them as lying on the real number line: y. A vector is an array of scalars, such as ( /, /), (,, ), or (,,,,,,, ). We typically refer to vectors using bold lower case variables (e.g. w (,, ) ). For vectors of dimension or, we can visualize them as points in a coordinate space, or as arrows in a coordinate space pointing away from the origin point (,): z z (,,) (,,) x x y y A matrix is a table of numbers. Examples include:

2 A, B, C / /6 /6 /6 /6 / /6 /6 /6 /6 / /6 /6 /6 /6 / We typically refer to matrices using upper case variables. To refer to an element of a matrix, we use subscripts. For instance, M refers to the element in the first row and second column of the matrix M. In the matrix A, we have A. The dimensions of a matrix are the number of rows and columns. A m n matrix has m rows and n columns. The matrix A above has dimensions, B has dimensions, and C has dimensions. Note that we can think of a vector as a special case of a matrix with one of the dimensions equal to. That is, the vector w can be thought of as a matrix of dimensions. A matrix with the same number of rows as columns is called a square matrix. A square matrix M for which M ij M ji is called a symmetric matrix, and a square matrix with nonzero entries only on the diagonal entries is called a diagonal matrix (Note that the matrix C above is an example of a matrix that is symmetric but not diagonal.). The transpose of a matrix M is denoted by M and is formed by switching the rows and columns of M. That is, for any row i and column j, M ij M ji. For example, the transpose of the matrix A given above is: A Matrix Operations. Matrix Addition and Subtraction We can add (or subtract) matrices that have the same dimensions by simply adding (or subtracting) on an element-by-element basis. For instance:..... Scalar Multiplication We can also multiply a matrix of any dimensions by a scalar by performing the multiplication on an elementby-element basis. For instance: 6 8. Matrix Multiplication Mutliplication of two matrices is somewhat more complicated. Matrix multiplication is only defined for matrices of certain dimensions. To multiply two matrices, the number of columns in the first matrix must equal the number of rows in the second matrix. The resulting product matrix will then have the same number of rows as the first matrix and the same number of columns as the second matrix. For instance, suppose we wanted to multiply a matrix A by a matrix B. We can perform this multiplication, since the number of columns of A equals the number of rows of B (). The resulting matrix will have dimensions. A diagram:

3 Dimensions of A Dimensions of B x x These must match. Dimensions of product We cannot, however, multiply a matrix A by a matrix C, since the number of columns of A (), is different from the number of columns of C (). To see how to multiply two matrices, let s look first at the special case of multiplying a matrix by a matrix. Consider: a b We denote the matrix product of a and b as ab, and it is computed by multiplying the corresponding elements of a and b, then summing the results. So, ab ( ) + ( ) + ( ) We can also multiply matrices with multiple rows and columns. Consider: A, D 6 Notice that A has columns and D has rows, so we can multiply AD. Element, of the result is the matrix product of the first row of A and the first column of D. Element, is the first row of A times the second column of D, and so forth. To illustrate: AD ( ) + ( ) ( ) + ( 6) ( ) + ( ) ( ) + ( 6) Matrix multiplication is associative, meaning that if we would like to compute ABC, we can first compute AB then multiply by C, or we can multiply A times BC. In symbols, this means that (AB)C A(BC). It is also distributive, meaning that as long as the dimensions are appropriate for matrix multiplication, we have A(B + C) AB + AC. Matrix multiplication, however, is not commutative, meaning that in general AB BA.

4 .. Linear Combinations Suppose we have a set of k vectors x, x,..., x k a, a,..., a k. Then a sum of the following form, (all of the same dimension), and a set of k scalars a x + a x + + a k x k is called a linear combination of the vectors x, x,..., x k. Note that if we use matrix multiplication to multiply two vectors, then we are really just computing a linear combination of the second vector using the first vector for scalars (or we can view it as a linear combination of the first vector using the second vector for scalars). Similarly, we can view a general matrix multiplication as computing sets of linear combinations. In this sense, multiplying by a matrix is sometimes also called a linear transform... Matrices as a Notational Device Matrices and vectors allow us to significantly simplify notation. Consider, for instance, a linear system of equations and unknowns: If we define: A a x + a x + a x + a x b a x + a x + a x + a x b a x + a x + a x + a x b a x + a x + a x + a x b a a a a a a a a a a a a a a a a x x x x x b We can use matrix and vector notation to write the entire system of equations simply as Ax b... Graphical Interpretation of Matrix Multiplication We can interpret matrix multiplication as a transformation of vectors in the coordinate space. For illustration, let s consider the case where we multiply a matrix (vector) by a matrix. The following is a plot of the vector x (, ): b b b b (,)

5 Observe the effect of multiplying the vector by the matrix T for various choices: T. This matrix is called the identity matrix and has the special property that it leaves the original vector unchanged. T (,) T. This matrix leaves the vector direction unchanged, but doubles its length. T (,)

6 . This matrix leaves the vector length unchanged, but flips the vector over the hori- T zontal axis. T (, ) T. In general, matrix multiplication will have the effect of changing both the length and orientation of the vector: T (,) Let s now consider how matrix multiplication affects sets of vectors. The following plot shows vectors plotted in a coordinate space. I also connect the points with lines to form a pentagonal shape: 6

7 .... (,) (,.) (,). (,) (,)..... below: Suppose we multiply each of the vectors by the matrix T T T T T.. T. We perform the multiplications The transformed vectors are plotted below. We notice that multiplying by the matrix T has the effect of stretching the shape by a factor of two in each coordinate direction... (,).. (,) (,). (,) (,)

8 We repeat the exercise for various choices of T. Note the effect of the matrix multiplication on the size and orientation of the shape. For the following choice of T, for instance, the shape is stretched in one coordinate direction and shrunk in the other:.. T.... (,.) (,.7) (,.) (,) (,)..... Multiplication by this T tilts the shape:.. T.. (,) (.,.) (,). (,) (,)..... Multiplication by this T has the effect of stretching, tilting, and flipping the shape:. (.,) (.,.). T... (...).. (,) (,.)

9 Note that this final choice of T has no effect on the size or orientation of the shape. This is the only matrix with this property, and is a special matrix called the identity matrix. This is the subject of the next section... T.. (,) (,.) (,). (,) (,) Identity Matrix and Matrix Inverses A square matrix which has ones on its diagonal and zeros elsewhere is called an identity matrix and is typically designated I. For example, the identity matrix is as follows: I Identity matrices have the special property that any matrix times the identity matrix is the matrix itself. That is for any matrix M and the appropriate identity matrix I, we have MI M. Note that for the special case of the identity matrix,, this property simply reduces to the simple fact that any scalar times gives the scalar itself. Division is not defined with respect to matrices. However, for some square matrices there is a notion of a matrix inverse. The inverse of a matrix M is denoted M and has the property that MM I. The details of computing matrix inverses is beyond the scope of this document (For details, see the references given at the end of the document). Only square matrices can have inverses, and inverses do not even exist for all square matrices. A square matrix that has an inverse is called an invertible matrix. The matrix A used in earlier sections has the unusual property that it is its own inverse. One can easily verify using matrix multiplication that AA I. Thus A is invertible and A A. (This is not typically the case!) Note briefly the analogy with the scalar case. Recall that the inverse of a scalar x is simply /x. If we multiply a scalar x times its inverse /x, we get the scalar identity, which is. Thus the notions of matrix identity and matrix inverses is a generalization of well-known notions in arithmetic. Eigenvalues and Eigenvectors A somewhat more advanced topic related to matrices is that of eigenvalues and eigenvectors of a square matrix. The definition is as follows: suppose we have a square matrix M, and that we can find a vector x and a scalar λ such that the following equation is true: Mx λx 9

10 Then the vector x is called an eigenvector of the matrix M and the scalar λ is the corresponding eigenvalue. We will not explain how to compute eigenvalues and eigenvectors here (see the references for details), but we will briefly discuss some properties of them. As an example, consider the simple matrix F. First, see that the vector x and the scalar λ 7 are an eigenvector and an eigenvalue for F because: 7 In fact, the zero vector is an eigenvector for every square matrix. Furthermore, any choice of scalar is a corresponding eigenvalue. We can also find more interesting eigenvector/eigenvalue pairs. The vector x and the scalar λ are an eigenvector and eigenvalue for F because: We can also derive another eigenvector and eigenvalue by multiplying the previous ones by. That is, we can easily show that x and λ are also an eigenvector/eigenvalue pair for F. In general, if we have an eigenvector/eigenvalue pair x and λ for a matrix, then any multiple of x and λ will also be an eigenvector/eigenvalue pair. There is one more set of eigenvectors and eigenvalues of F that are not multiples of x and λ. These are the eigenvector x and the eigenvalue λ (and all multiples of these). How many eigenvectors and eigenvalues does a matrix have? In general, a n n square matrix has at most n linear independent eigenvector/eigenvalue pairs (not counting the zero eigenvector), meaning that there are at most n eigenvectors that cannot be formed by adding and scalar multiplying the other eigenvectors. What is the intuition behind the eigenvectors and eigenvalues? As we did in section.., let s think of matrix multiplication as a transformation of vectors. We saw in the plots of section.. that in general, when we multiply a matrix times a vector the vector is transformed. If we think of vectors as arrows pointing away from the origin point (, ), then this transformation will in general change the length and direction of the vector. Eigenvectors are special vectors whose length changes, but who remain pointing in the same direction. The eigenvalue is the factor by which the length changes in the process of the matrix multiplication. To illustrate, consider again the matrix F, and recall that x and λ are an eigenvector and eigenvalue for F. Let s examine the plot of x and F x and note the relationship between x and F x:

11 Fx(,) Note: Fx is same direction but times longer than x. x(,) On the other hand, the vector y is not an eigenvector of F. Note that y and F y in the plot below do not exhibit this special relationship: y(,) Note: Fy is different length and direction from y. Fy(,) Eigenvectors and eigenvalues serve as useful summaries of matrices, and there is a deep theory of eigenvectors and eigenvalues in linear algebra. For a more detailed explanation of eigenvalues and eigenvalues and their properties, please see the references. Covariance Matrices and Positive Definiteness Recall that if we have two discrete random variables X and Y with means µ X and µ Y, we define covariance of X and Y as: cov(x, Y ) n p i (x i µ X )(y i µ Y ) i We define the variance-covariance matrix (often called just the covariance matrix) of X and Y as follows:

12 var(x) cov(x, Y ) cov(y, X) var(y ) The covariance matrix is clearly square, and since cov(x, Y ) cov(y, X), we have that the covariance matrix is also symmetric. A property that is less obvious is that the covariance matrix has all positive eigenvalues. A square symmetric matrix with this property is refered to as a positive definite matrix. We can also define the so-called correlation matrix of X and Y as follows: corr(x, Y ) corr(y, X) Correlation matrices are also square, symmetric, and positive definite. We can also generalize the notion of the covariance and correlation matrices to the case with more than two random variables. These matrices will also be square, symmetric, and positive definite. As an example, the following is the covariance matrix for three random variables X, Y, and Z: var(x) cov(x, Y ) cov(x, Z) cov(y, X) var(y ) cov(y, Z) cov(z, X) cov(z, Y ) var(z) Concepts of Distance Distance is a key measure of proximity in data mining and in classical statistics. In classification, if observation x is close to z, one may assume that those two points belong to the same class. However, how do we measure closeness or distance? Before elaborating on the different distance measures, let s review some basic properties of distances, including symmetry, distinguishability and triangular inequality.. Symmetry: Given two observations, x and z, the distance D(x, z), between the observations x and z is equal to the distance between observations z and x and should be greater than zero. i.e, D(x, z) D(z, x).. Distinguishability: Given two observations, x and z, if D(x, z), then x and z are the same observations. If D(x, z), then x and z are not the same.. Triangular Inequality: Given three observations, x, z and w, D(x, z) D(x, w) + D(w, z). This property says that the lengths of any given side of a triangle is less than the sum of the lengths of the remaining two sides. Note: sometimes we may relax this condition. A simple and common measure of distance is the Euclidean distance. Suppose vectors x and z are d- dimensional vectors, where x i and z i is the i th element of vector x and z, respectively. Then the Euclidean distance is defined as follows: ED(x, z) d (x i z i ) (x z) (x z) () i Often, we may simply deal with the squared Euclidean distance ( ED(x, z) d i (x i z i ) ) for notational simplicity (note that the square root function in monotonic with its argument, thus ED(x, z) > ED(x, w) implies ED(x, z) > ED(x, w). Since we often care only about the relative pairwise distances, it would not matter if we used distances versus squared distances ). However, Euclidean distance is not independent of scale. For example, suppose the first dimension is the height on an individual and the second dimension is weight. The relative distances between

13 individuals, x, z and w, may change if we use feet to measure height instead of inches, or pounds versus kilograms for weight. One set of units may say person x is closer (more similar) to person z than to person w, but different units of measurements may change this relation (although the physical characteristics of each individuals clearly remain the same). We deal with this problem by scaling the variables with is standard deviation. Suppose σ j is the standard deviation of dimension j. Then the squared statistical distance between points x and z is as follows: SD(x, z) d ( ) xi z i () i The statistical distance is the same as taking the Euclidean distance of data after the data is standardized (each dimension is divided by its standard deviation). Thus, whether height is measured with inches or feet, the statistical distances should be the same. Thus, it is invariant with respect to a change in scale. However, statistical distances still do not take into account correlation between the variables. For example, Figure illustrates a data set where there exist a positive correlation between the two variables. It seems apparent that we need to consider this correlation when measuring closeness between points. Mahalanobis distance is a measure of distance that does just that. The squared Mahalanobis distance is defined as follows: σ j MD(x, z) (x z) Σ (x z) () where Σ is the d by d dimensional covariance matrix of the variables. Clearly, if there are no correlation between the variables (i.e., Σ is a diagonal matrix), then the Mahalanobis distance is the same as the statistical distance. Further, if the variables are standardized (i.e. Σ is the identity matrix), then the Mahalanobis distance is the same as the Euclidean distance. Figure illustrates the advantage of Mahalanobis distance. It plots sample points from a data set with mean (,) and the covariance matrix Σ (i.e, the variance of variable is, the variance of variable is and the covariances of variables and is equal to ). Figure : A x B C x The three points, A, B, and C, have the following coordinates: A (,), B (-,-), C (, ). Without doing any calculations, which of points B and C seem closer to A from the picture? The following table illustrates the pairwise distances: Both Euclidean and statistical distances imply that point C is closer to A than B. However, when considering the positive covariance between variable and, point C seems further away from A than B, with respect to the other data points. We used this concept in discriminant analysis and will revisit it in clustering analysis, where distance measure play a central role.

14 Table : Pair of points ED SD MD A and B 6. A and C.6 6. References Steven J. Leon. Linear Algebra with Applications. New York: Macmillan Publishing Company, 99. Thomas P. Ryan. Modern Regression Methods. New York: John Wiley & Sons, 997, pp. -6. Gilbert Strang. Introduction to Linear Algebra. Wellesley, MA: Cambridge Press, 998.

### Introduction to Matrix Algebra

Psychology 7291: Multivariate Statistics (Carey) 8/27/98 Matrix Algebra - 1 Introduction to Matrix Algebra Definitions: A matrix is a collection of numbers ordered by rows and columns. It is customary

### 1 Introduction to Matrices

1 Introduction to Matrices In this section, important definitions and results from matrix algebra that are useful in regression analysis are introduced. While all statements below regarding the columns

### 13 MATH FACTS 101. 2 a = 1. 7. The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

3 MATH FACTS 0 3 MATH FACTS 3. Vectors 3.. Definition We use the overhead arrow to denote a column vector, i.e., a linear segment with a direction. For example, in three-space, we write a vector in terms

### December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B. KITCHENS

December 4, 2013 MATH 171 BASIC LINEAR ALGEBRA B KITCHENS The equation 1 Lines in two-dimensional space (1) 2x y = 3 describes a line in two-dimensional space The coefficients of x and y in the equation

### Linear Algebra Review. Vectors

Linear Algebra Review By Tim K. Marks UCSD Borrows heavily from: Jana Kosecka kosecka@cs.gmu.edu http://cs.gmu.edu/~kosecka/cs682.html Virginia de Sa Cogsci 8F Linear Algebra review UCSD Vectors The length

### Linear Algebra Notes for Marsden and Tromba Vector Calculus

Linear Algebra Notes for Marsden and Tromba Vector Calculus n-dimensional Euclidean Space and Matrices Definition of n space As was learned in Math b, a point in Euclidean three space can be thought of

### Eigenvalues, Eigenvectors, Matrix Factoring, and Principal Components

Eigenvalues, Eigenvectors, Matrix Factoring, and Principal Components The eigenvalues and eigenvectors of a square matrix play a key role in some important operations in statistics. In particular, they

### [1] Diagonal factorization

8.03 LA.6: Diagonalization and Orthogonal Matrices [ Diagonal factorization [2 Solving systems of first order differential equations [3 Symmetric and Orthonormal Matrices [ Diagonal factorization Recall:

### MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS 1. SYSTEMS OF EQUATIONS AND MATRICES 1.1. Representation of a linear system. The general system of m equations in n unknowns can be written a 11 x 1 + a 12 x 2 +

### Brief Introduction to Vectors and Matrices

CHAPTER 1 Brief Introduction to Vectors and Matrices In this chapter, we will discuss some needed concepts found in introductory course in linear algebra. We will introduce matrix, vector, vector-valued

### Manifold Learning Examples PCA, LLE and ISOMAP

Manifold Learning Examples PCA, LLE and ISOMAP Dan Ventura October 14, 28 Abstract We try to give a helpful concrete example that demonstrates how to use PCA, LLE and Isomap, attempts to provide some intuition

### MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS Systems of Equations and Matrices Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a

### Notes on Determinant

ENGG2012B Advanced Engineering Mathematics Notes on Determinant Lecturer: Kenneth Shum Lecture 9-18/02/2013 The determinant of a system of linear equations determines whether the solution is unique, without

### Lecture 2 Matrix Operations

Lecture 2 Matrix Operations transpose, sum & difference, scalar multiplication matrix multiplication, matrix-vector product matrix inverse 2 1 Matrix transpose transpose of m n matrix A, denoted A T or

### Inner products on R n, and more

Inner products on R n, and more Peyam Ryan Tabrizian Friday, April 12th, 2013 1 Introduction You might be wondering: Are there inner products on R n that are not the usual dot product x y = x 1 y 1 + +

### MATH 551 - APPLIED MATRIX THEORY

MATH 55 - APPLIED MATRIX THEORY FINAL TEST: SAMPLE with SOLUTIONS (25 points NAME: PROBLEM (3 points A web of 5 pages is described by a directed graph whose matrix is given by A Do the following ( points

### Introduction to Multivariate Analysis

Introduction to Multivariate Analysis Lecture 1 August 24, 2005 Multivariate Analysis Lecture #1-8/24/2005 Slide 1 of 30 Today s Lecture Today s Lecture Syllabus and course overview Chapter 1 (a brief

### Algebra I Vocabulary Cards

Algebra I Vocabulary Cards Table of Contents Expressions and Operations Natural Numbers Whole Numbers Integers Rational Numbers Irrational Numbers Real Numbers Absolute Value Order of Operations Expression

### DATA ANALYSIS II. Matrix Algorithms

DATA ANALYSIS II Matrix Algorithms Similarity Matrix Given a dataset D = {x i }, i=1,..,n consisting of n points in R d, let A denote the n n symmetric similarity matrix between the points, given as where

### Math 115A HW4 Solutions University of California, Los Angeles. 5 2i 6 + 4i. (5 2i)7i (6 + 4i)( 3 + i) = 35i + 14 ( 22 6i) = 36 + 41i.

Math 5A HW4 Solutions September 5, 202 University of California, Los Angeles Problem 4..3b Calculate the determinant, 5 2i 6 + 4i 3 + i 7i Solution: The textbook s instructions give us, (5 2i)7i (6 + 4i)(

### Vector and Matrix Norms

Chapter 1 Vector and Matrix Norms 11 Vector Spaces Let F be a field (such as the real numbers, R, or complex numbers, C) with elements called scalars A Vector Space, V, over the field F is a non-empty

### Section 6.1 - Inner Products and Norms

Section 6.1 - Inner Products and Norms Definition. Let V be a vector space over F {R, C}. An inner product on V is a function that assigns, to every ordered pair of vectors x and y in V, a scalar in F,

### Dimensionality Reduction: Principal Components Analysis

Dimensionality Reduction: Principal Components Analysis In data mining one often encounters situations where there are a large number of variables in the database. In such situations it is very likely

### by the matrix A results in a vector which is a reflection of the given

Eigenvalues & Eigenvectors Example Suppose Then So, geometrically, multiplying a vector in by the matrix A results in a vector which is a reflection of the given vector about the y-axis We observe that

### SF2940: Probability theory Lecture 8: Multivariate Normal Distribution

SF2940: Probability theory Lecture 8: Multivariate Normal Distribution Timo Koski 24.09.2015 Timo Koski Matematisk statistik 24.09.2015 1 / 1 Learning outcomes Random vectors, mean vector, covariance matrix,

### Chapter 6. Orthogonality

6.3 Orthogonal Matrices 1 Chapter 6. Orthogonality 6.3 Orthogonal Matrices Definition 6.4. An n n matrix A is orthogonal if A T A = I. Note. We will see that the columns of an orthogonal matrix must be

### Section 1.1. Introduction to R n

The Calculus of Functions of Several Variables Section. Introduction to R n Calculus is the study of functional relationships and how related quantities change with each other. In your first exposure to

### 9 MATRICES AND TRANSFORMATIONS

9 MATRICES AND TRANSFORMATIONS Chapter 9 Matrices and Transformations Objectives After studying this chapter you should be able to handle matrix (and vector) algebra with confidence, and understand the

### Section 5.3. Section 5.3. u m ] l jj. = l jj u j + + l mj u m. v j = [ u 1 u j. l mj

Section 5. l j v j = [ u u j u m ] l jj = l jj u j + + l mj u m. l mj Section 5. 5.. Not orthogonal, the column vectors fail to be perpendicular to each other. 5..2 his matrix is orthogonal. Check that

### Orthogonal Projections

Orthogonal Projections and Reflections (with exercises) by D. Klain Version.. Corrections and comments are welcome! Orthogonal Projections Let X,..., X k be a family of linearly independent (column) vectors

### Similar matrices and Jordan form

Similar matrices and Jordan form We ve nearly covered the entire heart of linear algebra once we ve finished singular value decompositions we ll have seen all the most central topics. A T A is positive

### Matrix Algebra in R A Minimal Introduction

A Minimal Introduction James H. Steiger Department of Psychology and Human Development Vanderbilt University Regression Modeling, 2009 1 Defining a Matrix in R Entering by Columns Entering by Rows Entering

### Multiple regression - Matrices

Multiple regression - Matrices This handout will present various matrices which are substantively interesting and/or provide useful means of summarizing the data for analytical purposes. As we will see,

### Similarity and Diagonalization. Similar Matrices

MATH022 Linear Algebra Brief lecture notes 48 Similarity and Diagonalization Similar Matrices Let A and B be n n matrices. We say that A is similar to B if there is an invertible n n matrix P such that

### Eigenvalues and Eigenvectors

Chapter 6 Eigenvalues and Eigenvectors 6. Introduction to Eigenvalues Linear equations Ax D b come from steady state problems. Eigenvalues have their greatest importance in dynamic problems. The solution

### Math 312 Homework 1 Solutions

Math 31 Homework 1 Solutions Last modified: July 15, 01 This homework is due on Thursday, July 1th, 01 at 1:10pm Please turn it in during class, or in my mailbox in the main math office (next to 4W1) Please

### Operation Count; Numerical Linear Algebra

10 Operation Count; Numerical Linear Algebra 10.1 Introduction Many computations are limited simply by the sheer number of required additions, multiplications, or function evaluations. If floating-point

### Review Jeopardy. Blue vs. Orange. Review Jeopardy

Review Jeopardy Blue vs. Orange Review Jeopardy Jeopardy Round Lectures 0-3 Jeopardy Round \$200 How could I measure how far apart (i.e. how different) two observations, y 1 and y 2, are from each other?

### MATH 423 Linear Algebra II Lecture 38: Generalized eigenvectors. Jordan canonical form (continued).

MATH 423 Linear Algebra II Lecture 38: Generalized eigenvectors Jordan canonical form (continued) Jordan canonical form A Jordan block is a square matrix of the form λ 1 0 0 0 0 λ 1 0 0 0 0 λ 0 0 J = 0

### MAT188H1S Lec0101 Burbulla

Winter 206 Linear Transformations A linear transformation T : R m R n is a function that takes vectors in R m to vectors in R n such that and T (u + v) T (u) + T (v) T (k v) k T (v), for all vectors u

### Vector Notation: AB represents the vector from point A to point B on a graph. The vector can be computed by B A.

1 Linear Transformations Prepared by: Robin Michelle King A transformation of an object is a change in position or dimension (or both) of the object. The resulting object after the transformation is called

### 1 2 3 1 1 2 x = + x 2 + x 4 1 0 1

(d) If the vector b is the sum of the four columns of A, write down the complete solution to Ax = b. 1 2 3 1 1 2 x = + x 2 + x 4 1 0 0 1 0 1 2. (11 points) This problem finds the curve y = C + D 2 t which

### Multivariate Normal Distribution

Multivariate Normal Distribution Lecture 4 July 21, 2011 Advanced Multivariate Statistical Methods ICPSR Summer Session #2 Lecture #4-7/21/2011 Slide 1 of 41 Last Time Matrices and vectors Eigenvalues

### October 3rd, 2012. Linear Algebra & Properties of the Covariance Matrix

Linear Algebra & Properties of the Covariance Matrix October 3rd, 2012 Estimation of r and C Let rn 1, rn, t..., rn T be the historical return rates on the n th asset. rn 1 rṇ 2 r n =. r T n n = 1, 2,...,

### Solution to Homework 2

Solution to Homework 2 Olena Bormashenko September 23, 2011 Section 1.4: 1(a)(b)(i)(k), 4, 5, 14; Section 1.5: 1(a)(b)(c)(d)(e)(n), 2(a)(c), 13, 16, 17, 18, 27 Section 1.4 1. Compute the following, if

### Using row reduction to calculate the inverse and the determinant of a square matrix

Using row reduction to calculate the inverse and the determinant of a square matrix Notes for MATH 0290 Honors by Prof. Anna Vainchtein 1 Inverse of a square matrix An n n square matrix A is called invertible

### Notes on Symmetric Matrices

CPSC 536N: Randomized Algorithms 2011-12 Term 2 Notes on Symmetric Matrices Prof. Nick Harvey University of British Columbia 1 Symmetric Matrices We review some basic results concerning symmetric matrices.

### Continued Fractions and the Euclidean Algorithm

Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction

### University of Lille I PC first year list of exercises n 7. Review

University of Lille I PC first year list of exercises n 7 Review Exercise Solve the following systems in 4 different ways (by substitution, by the Gauss method, by inverting the matrix of coefficients

### Au = = = 3u. Aw = = = 2w. so the action of A on u and w is very easy to picture: it simply amounts to a stretching by 3 and 2, respectively.

Chapter 7 Eigenvalues and Eigenvectors In this last chapter of our exploration of Linear Algebra we will revisit eigenvalues and eigenvectors of matrices, concepts that were already introduced in Geometry

### Introduction to Matrices for Engineers

Introduction to Matrices for Engineers C.T.J. Dodson, School of Mathematics, Manchester Universit 1 What is a Matrix? A matrix is a rectangular arra of elements, usuall numbers, e.g. 1 0-8 4 0-1 1 0 11

### The Characteristic Polynomial

Physics 116A Winter 2011 The Characteristic Polynomial 1 Coefficients of the characteristic polynomial Consider the eigenvalue problem for an n n matrix A, A v = λ v, v 0 (1) The solution to this problem

### AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables

AMATH 352 Lecture 3 MATLAB Tutorial MATLAB (short for MATrix LABoratory) is a very useful piece of software for numerical analysis. It provides an environment for computation and the visualization. Learning

### A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions

A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions Marcel B. Finan Arkansas Tech University c All Rights Reserved First Draft February 8, 2006 1 Contents 25

### Orthogonal Diagonalization of Symmetric Matrices

MATH10212 Linear Algebra Brief lecture notes 57 Gram Schmidt Process enables us to find an orthogonal basis of a subspace. Let u 1,..., u k be a basis of a subspace V of R n. We begin the process of finding

### SF2940: Probability theory Lecture 8: Multivariate Normal Distribution

SF2940: Probability theory Lecture 8: Multivariate Normal Distribution Timo Koski 24.09.2014 Timo Koski () Mathematisk statistik 24.09.2014 1 / 75 Learning outcomes Random vectors, mean vector, covariance

### THREE DIMENSIONAL GEOMETRY

Chapter 8 THREE DIMENSIONAL GEOMETRY 8.1 Introduction In this chapter we present a vector algebra approach to three dimensional geometry. The aim is to present standard properties of lines and planes,

### LINEAR ALGEBRA. September 23, 2010

LINEAR ALGEBRA September 3, 00 Contents 0. LU-decomposition.................................... 0. Inverses and Transposes................................. 0.3 Column Spaces and NullSpaces.............................

### Torgerson s Classical MDS derivation: 1: Determining Coordinates from Euclidean Distances

Torgerson s Classical MDS derivation: 1: Determining Coordinates from Euclidean Distances It is possible to construct a matrix X of Cartesian coordinates of points in Euclidean space when we know the Euclidean

### 6. Cholesky factorization

6. Cholesky factorization EE103 (Fall 2011-12) triangular matrices forward and backward substitution the Cholesky factorization solving Ax = b with A positive definite inverse of a positive definite matrix

### Mehtap Ergüven Abstract of Ph.D. Dissertation for the degree of PhD of Engineering in Informatics

INTERNATIONAL BLACK SEA UNIVERSITY COMPUTER TECHNOLOGIES AND ENGINEERING FACULTY ELABORATION OF AN ALGORITHM OF DETECTING TESTS DIMENSIONALITY Mehtap Ergüven Abstract of Ph.D. Dissertation for the degree

### Lecture notes on linear algebra

Lecture notes on linear algebra David Lerner Department of Mathematics University of Kansas These are notes of a course given in Fall, 2007 and 2008 to the Honors sections of our elementary linear algebra

### Linear Algebraic Equations, SVD, and the Pseudo-Inverse

Linear Algebraic Equations, SVD, and the Pseudo-Inverse Philip N. Sabes October, 21 1 A Little Background 1.1 Singular values and matrix inversion For non-smmetric matrices, the eigenvalues and singular

### Linear Algebra Notes

Linear Algebra Notes Chapter 19 KERNEL AND IMAGE OF A MATRIX Take an n m matrix a 11 a 12 a 1m a 21 a 22 a 2m a n1 a n2 a nm and think of it as a function A : R m R n The kernel of A is defined as Note

### Definition 8.1 Two inequalities are equivalent if they have the same solution set. Add or Subtract the same value on both sides of the inequality.

8 Inequalities Concepts: Equivalent Inequalities Linear and Nonlinear Inequalities Absolute Value Inequalities (Sections 4.6 and 1.1) 8.1 Equivalent Inequalities Definition 8.1 Two inequalities are equivalent

### 1 VECTOR SPACES AND SUBSPACES

1 VECTOR SPACES AND SUBSPACES What is a vector? Many are familiar with the concept of a vector as: Something which has magnitude and direction. an ordered pair or triple. a description for quantities such

### 3. INNER PRODUCT SPACES

. INNER PRODUCT SPACES.. Definition So far we have studied abstract vector spaces. These are a generalisation of the geometric spaces R and R. But these have more structure than just that of a vector space.

### Recall the basic property of the transpose (for any A): v A t Aw = v w, v, w R n.

ORTHOGONAL MATRICES Informally, an orthogonal n n matrix is the n-dimensional analogue of the rotation matrices R θ in R 2. When does a linear transformation of R 3 (or R n ) deserve to be called a rotation?

### Chapter 17. Orthogonal Matrices and Symmetries of Space

Chapter 17. Orthogonal Matrices and Symmetries of Space Take a random matrix, say 1 3 A = 4 5 6, 7 8 9 and compare the lengths of e 1 and Ae 1. The vector e 1 has length 1, while Ae 1 = (1, 4, 7) has length

### Solution of Linear Systems

Chapter 3 Solution of Linear Systems In this chapter we study algorithms for possibly the most commonly occurring problem in scientific computing, the solution of linear systems of equations. We start

### Mathematics Course 111: Algebra I Part IV: Vector Spaces

Mathematics Course 111: Algebra I Part IV: Vector Spaces D. R. Wilkins Academic Year 1996-7 9 Vector Spaces A vector space over some field K is an algebraic structure consisting of a set V on which are

### Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix multiplication).

MAT 2 (Badger, Spring 202) LU Factorization Selected Notes September 2, 202 Abstract: We describe the beautiful LU factorization of a square matrix (or how to write Gaussian elimination in terms of matrix

### LINEAR ALGEBRA W W L CHEN

LINEAR ALGEBRA W W L CHEN c W W L Chen, 1997, 2008 This chapter is available free to all individuals, on understanding that it is not to be used for financial gain, and may be downloaded and/or photocopied,

### Component Ordering in Independent Component Analysis Based on Data Power

Component Ordering in Independent Component Analysis Based on Data Power Anne Hendrikse Raymond Veldhuis University of Twente University of Twente Fac. EEMCS, Signals and Systems Group Fac. EEMCS, Signals

### Elementary Matrices and The LU Factorization

lementary Matrices and The LU Factorization Definition: ny matrix obtained by performing a single elementary row operation (RO) on the identity (unit) matrix is called an elementary matrix. There are three

### Understanding and Applying Kalman Filtering

Understanding and Applying Kalman Filtering Lindsay Kleeman Department of Electrical and Computer Systems Engineering Monash University, Clayton 1 Introduction Objectives: 1. Provide a basic understanding

### Linear Algebra I. Ronald van Luijk, 2012

Linear Algebra I Ronald van Luijk, 2012 With many parts from Linear Algebra I by Michael Stoll, 2007 Contents 1. Vector spaces 3 1.1. Examples 3 1.2. Fields 4 1.3. The field of complex numbers. 6 1.4.

### SOLVING LINEAR SYSTEMS

SOLVING LINEAR SYSTEMS Linear systems Ax = b occur widely in applied mathematics They occur as direct formulations of real world problems; but more often, they occur as a part of the numerical analysis

### Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

Biggar High School Mathematics Department National 5 Learning Intentions & Success Criteria: Assessing My Progress Expressions & Formulae Topic Learning Intention Success Criteria I understand this Approximation

### Factoring Patterns in the Gaussian Plane

Factoring Patterns in the Gaussian Plane Steve Phelps Introduction This paper describes discoveries made at the Park City Mathematics Institute, 00, as well as some proofs. Before the summer I understood

### α = u v. In other words, Orthogonal Projection

Orthogonal Projection Given any nonzero vector v, it is possible to decompose an arbitrary vector u into a component that points in the direction of v and one that points in a direction orthogonal to v

### Introduction to General and Generalized Linear Models

Introduction to General and Generalized Linear Models General Linear Models - part I Henrik Madsen Poul Thyregod Informatics and Mathematical Modelling Technical University of Denmark DK-2800 Kgs. Lyngby

GENERATING SETS KEITH CONRAD 1 Introduction In R n, every vector can be written as a unique linear combination of the standard basis e 1,, e n A notion weaker than a basis is a spanning set: a set of vectors

### Linear algebra and the geometry of quadratic equations. Similarity transformations and orthogonal matrices

MATH 30 Differential Equations Spring 006 Linear algebra and the geometry of quadratic equations Similarity transformations and orthogonal matrices First, some things to recall from linear algebra Two

### Lecture L3 - Vectors, Matrices and Coordinate Transformations

S. Widnall 16.07 Dynamics Fall 2009 Lecture notes based on J. Peraire Version 2.0 Lecture L3 - Vectors, Matrices and Coordinate Transformations By using vectors and defining appropriate operations between

### Linear Algebra: Determinants, Inverses, Rank

D Linear Algebra: Determinants, Inverses, Rank D 1 Appendix D: LINEAR ALGEBRA: DETERMINANTS, INVERSES, RANK TABLE OF CONTENTS Page D.1. Introduction D 3 D.2. Determinants D 3 D.2.1. Some Properties of

### 26. Determinants I. 1. Prehistory

26. Determinants I 26.1 Prehistory 26.2 Definitions 26.3 Uniqueness and other properties 26.4 Existence Both as a careful review of a more pedestrian viewpoint, and as a transition to a coordinate-independent

### Unified Lecture # 4 Vectors

Fall 2005 Unified Lecture # 4 Vectors These notes were written by J. Peraire as a review of vectors for Dynamics 16.07. They have been adapted for Unified Engineering by R. Radovitzky. References [1] Feynmann,

### Metric Spaces. Chapter 7. 7.1. Metrics

Chapter 7 Metric Spaces A metric space is a set X that has a notion of the distance d(x, y) between every pair of points x, y X. The purpose of this chapter is to introduce metric spaces and give some

### a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.

Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given

### Notes on Orthogonal and Symmetric Matrices MENU, Winter 2013

Notes on Orthogonal and Symmetric Matrices MENU, Winter 201 These notes summarize the main properties and uses of orthogonal and symmetric matrices. We covered quite a bit of material regarding these topics,

### 6.4 Normal Distribution

Contents 6.4 Normal Distribution....................... 381 6.4.1 Characteristics of the Normal Distribution....... 381 6.4.2 The Standardized Normal Distribution......... 385 6.4.3 Meaning of Areas under

### Figure 1.1 Vector A and Vector F

CHAPTER I VECTOR QUANTITIES Quantities are anything which can be measured, and stated with number. Quantities in physics are divided into two types; scalar and vector quantities. Scalar quantities have

### Inner Product Spaces and Orthogonality

Inner Product Spaces and Orthogonality week 3-4 Fall 2006 Dot product of R n The inner product or dot product of R n is a function, defined by u, v a b + a 2 b 2 + + a n b n for u a, a 2,, a n T, v b,

### Sections 2.11 and 5.8

Sections 211 and 58 Timothy Hanson Department of Statistics, University of South Carolina Stat 704: Data Analysis I 1/25 Gesell data Let X be the age in in months a child speaks his/her first word and

### Introduction to Principal Component Analysis: Stock Market Values

Chapter 10 Introduction to Principal Component Analysis: Stock Market Values The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from

### Elasticity Theory Basics

G22.3033-002: Topics in Computer Graphics: Lecture #7 Geometric Modeling New York University Elasticity Theory Basics Lecture #7: 20 October 2003 Lecturer: Denis Zorin Scribe: Adrian Secord, Yotam Gingold

### 1 Sets and Set Notation.

LINEAR ALGEBRA MATH 27.6 SPRING 23 (COHEN) LECTURE NOTES Sets and Set Notation. Definition (Naive Definition of a Set). A set is any collection of objects, called the elements of that set. We will most