Matrices Definition: A matrix is a rectangular array of numbers or symbolic elements In many applications, the rows of a matrix will represent individuals.

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.
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.
MATRICES MATRIX OPERATIONS. About Matrices  A matrix is a rectangular arrangement of numbers in rows and columns. Rows run horizontally and columns run.
CE 311 K - Introduction to Computer Methods Daene C. McKinney
Stats & Linear Models.
Separate multivariate observations
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
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.
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.
Introduction to Matrices and Matrix Approach to Simple Linear Regression.
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.
MATRIX A set of numbers arranged in rows and columns enclosed in round or square brackets is called a matrix. The order of a matrix gives the number of.
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.
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.
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)
Linear independence and matrix rank
Matrix Operations SpringSemester 2017.
Warm-up a. Solve for k: 13 −5
7.3 Matrices.
MATRICES MATRIX OPERATIONS.
الوحدة السابعة : المصفوفات . تنظيم البيانات فى مصفوفات . الوحدة السابعة : المصفوفات . تنظيم البيانات فى مصفوفات . 1 جمع المصفوفات وطرحها.
Introduction to Matrices
MATRICES MATRIX OPERATIONS.
Unit 3: Matrices
MATRICES MATRIX OPERATIONS.
Matrices.
Linear Algebra Lecture 38.
Matrix Definitions It is assumed you are already familiar with the terms matrix, matrix transpose, vector, row vector, column vector, unit vector, zero.
Mathematics for Signals and Systems
Introduction to Vectors and Matrices
3.5 Perform Basic Matrix Operations
Linear Algebra review (optional)
1.8 Matrices.
MATRICES MATRIX OPERATIONS.
MATRICES MATRIX OPERATIONS.
Matrix Operations Ms. Olifer.
Matrix Operations SpringSemester 2017.
1.8 Matrices.
Eigenvalues and Eigenvectors
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 its 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 - Carpet 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(rA,ca) A matrix if full rank if rank(A) = min(rA,ca)

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 a 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