Introduction to Matrices and Matrix Approach to Simple Linear Regression.

Slides:



Advertisements
Similar presentations
4.1 Introduction to Matrices
Advertisements

3_3 An Useful Overview of Matrix Algebra
Maths for Computer Graphics
Review of Matrix Algebra
Chapter 2 Matrices Definition of a matrix.
Boot Camp in Linear Algebra Joel Barajas Karla L Caballero University of California Silicon Valley Center October 8th, 2008.
Pam Perlich Urban Planning 5/6020
Linear regression models in matrix terms. The regression function in matrix terms.
Matrix Approach to Simple Linear Regression KNNL – Chapter 5.
Intro to Matrices Don’t be scared….
Arithmetic Operations on Matrices. 1. Definition of Matrix 2. Column, Row and Square Matrix 3. Addition and Subtraction of Matrices 4. Multiplying Row.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Stats & Linear Models.
Separate multivariate observations
Chapter 2 Systems of Linear Equations and Matrices Section 2.4 Multiplication of Matrices.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
ECON 1150 Matrix Operations Special Matrices
THU, JAN 8, 2015 Create a “Big Book of Matrices” flip book using 4 pages. Do not make your tabs big! BIG BOOK OF MATRICES What is a Matrix? Adding & Subtracting.
Review of Matrices Or A Fast Introduction.
Multivariate Statistics Matrix Algebra II W. M. van der Veld University of Amsterdam.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
Statistics and Linear Algebra (the real thing). Vector A vector is a rectangular arrangement of number in several rows and one column. A vector is denoted.
Unit 3: Matrices.
Matrices. Definitions  A matrix is an m x n array of scalars, arranged conceptually as m rows and n columns.  m is referred to as the row dimension.
Matrix Algebra and Regression a matrix is a rectangular array of elements m=#rows, n=#columns  m x n a single value is called a ‘scalar’ a single row.
Multivariate Statistics Matrix Algebra I W. M. van der Veld University of Amsterdam.
BIOL 582 Supplemental Material Matrices, Matrix calculations, GLM using matrix algebra.
4.8 Rank Rank enables one to relate matrices to vectors, and vice versa. Definition Let A be an m  n matrix. The rows of A may be viewed as row vectors.
Slide Copyright © 2009 Pearson Education, Inc. 7.3 Matrices.
Special Topic: Matrix Algebra and the ANOVA Matrix properties Types of matrices Matrix operations Matrix algebra in Excel Regression using matrices ANOVA.
MATRICES MATRIX OPERATIONS. About Matrices  A matrix is a rectangular arrangement of numbers in rows and columns. Rows run horizontally and columns run.
Sec 4.1 Matrices.
Algebra Matrix Operations. Definition Matrix-A rectangular arrangement of numbers in rows and columns Dimensions- number of rows then columns Entries-
Ch 6 Vector Spaces. Vector Space Axioms X,Y,Z elements of  and α, β elements of  Def of vector addition Def of multiplication of scalar and vector These.
4.8 Rank Rank enables one to relate matrices to vectors, and vice versa. Definition Let A be an m  n matrix. The rows of A may be viewed as row vectors.
STROUD Worked examples and exercises are in the text Programme 5: Matrices MATRICES PROGRAMME 5.
1 G Lect 4W Multiple regression in matrix terms Exploring Regression Examples G Multiple Regression Week 4 (Wednesday)
Linear System of Simultaneous Equations Warm UP First precinct: 6 arrests last week equally divided between felonies and misdemeanors. Second precinct:
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
STROUD Worked examples and exercises are in the text PROGRAMME 5 MATRICES.
Matrices. Matrix - a rectangular array of variables or constants in horizontal rows and vertical columns enclosed in brackets. Element - each value in.
Boot Camp in Linear Algebra TIM 209 Prof. Ram Akella.
Chapter 5: Matrices and Determinants Section 5.1: Matrix Addition.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
A rectangular array of numeric or algebraic quantities subject to mathematical operations. The regular formation of elements into columns and rows.
MTH108 Business Math I Lecture 20.
Introduction to Vectors and Matrices
Matrices and Vector Concepts
12-1 Organizing Data Using Matrices
Linear Algebra review (optional)
Matrix Operations SpringSemester 2017.
Warm-up a. Solve for k: 13 −5
7.3 Matrices.
MATRICES MATRIX OPERATIONS.
Matrices Definition: A matrix is a rectangular array of numbers or symbolic elements In many applications, the rows of a matrix will represent individuals.
الوحدة السابعة : المصفوفات . تنظيم البيانات فى مصفوفات . الوحدة السابعة : المصفوفات . تنظيم البيانات فى مصفوفات . 1 جمع المصفوفات وطرحها.
MATRICES MATRIX OPERATIONS.
Unit 3: Matrices
MATRICES MATRIX OPERATIONS.
Matrices.
Linear Algebra Lecture 38.
Introduction to Vectors and Matrices
3.5 Perform Basic Matrix Operations
1.8 Matrices.
MATRICES MATRIX OPERATIONS.
MATRICES MATRIX OPERATIONS.
Matrix Operations SpringSemester 2017.
1.8 Matrices.
3.5 Perform Basic Matrix Operations Algebra II.
Topic 11: Matrix Approach to Linear Regression
Presentation transcript:

Introduction to Matrices and Matrix Approach to Simple Linear Regression

Matrices Definition: A matrix is a rectangular array of numbers or symbolic elements In many applications, the rows of a matrix will represent individuals cases (people, items, plants, animals,...) and columns will represent attributes or characteristics The dimension of a matrix is it number of rows and columns, often denoted as r x c (r rows by c columns) Can be represented in full form or abbreviated form:

Special Types of Matrices

Regression Examples - Toluca Data

Matrix Addition and Subtraction

Matrix Multiplication

Matrix Multiplication Examples - I

Matrix Multiplication Examples - II

Special Matrix Types

Linear Dependence and Rank of a Matrix Linear Dependence: When a linear function of the columns (rows) of a matrix produces a zero vector (one or more columns (rows) can be written as linear function of the other columns (rows)) Rank of a matrix: Number of linearly independent columns (rows) of the matrix. Rank cannot exceed the minimum of the number of rows or columns of the matrix. rank(A) ≤ min(r A,c a ) A matrix if full rank if rank(A) = min(r A,c a )

Geometry of Vectors A vector of order n is a point in n-dimensional space The line running through the origin and the point represented by the vector defines a 1-dimensional subspace of the n-dim space Any p linearly independent vectors of order n, p < n define a p-dimensional subspace of the n-dim space Any p+1 vectors in a p-dim subspace must have a linear dependency Two vectors u and v are orthogonal if u’v = v’u = 0 and form a 90  angle at the origin Two vectors u and v are linearly dependent if they form a 0  or 180  angle at the origin

Geometry of Vectors - II If two vectors each have mean 0 among their elements then  is the product moment correlation between the two vectors

Matrix Inverse Note: For scalars (except 0), when we multiply a number, by its reciprocal, we get 1: 2(1/2)=1 x(1/x)=x(x -1 )=1 In matrix form if A is a square matrix and full rank (all rows and columns are linearly independent), then A has an inverse: A -1 such that: A -1 A = A A -1 = I

Computing an Inverse of 2x2 Matrix

Use of Inverse Matrix – Solving Simultaneous Equations

Useful Matrix Results

Random Vectors and Matrices

Linear Regression Example (n=3)

Mean and Variance of Linear Functions of Y

Multivariate Normal Distribution

Simple Linear Regression in Matrix Form

Estimating Parameters by Least Squares

Fitted Values and Residuals

Analysis of Variance

Inferences in Linear Regression