Matrix Approach to Simple Linear Regression KNNL – Chapter 5.

Slides:



Advertisements
Similar presentations
3_3 An Useful Overview of Matrix Algebra
Advertisements

Maths for Computer Graphics
Review of Matrix Algebra
Chapter 2 Matrices Definition of a matrix.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Pam Perlich Urban Planning 5/6020
Linear regression models in matrix terms. The regression function in matrix terms.
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
1 Chapter 3 Matrix Algebra with MATLAB Basic matrix definitions and operations were covered in Chapter 2. We will now consider how these operations are.
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.
Algebra 2: Lesson 5 Using Matrices to Organize Data and Solve Problems.
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.
Row 1 Row 2 Row 3 Row m Column 1Column 2Column 3 Column 4.
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.
Company LOGO Chapter 1: Matrix, Determinant, System of linear equations Module 1: Matrix Natural Science Department Example 1: The following rectangular.
Lesson 11-1 Matrix Basics and Augmented Matrices Objective: To learn to solve systems of linear equation using matrices.
Introduction to Matrices and Matrix Approach to Simple Linear Regression.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
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.
3.6 Solving Systems Using Matrices You can use a matrix to represent and solve a system of equations without writing the variables. A matrix is a rectangular.
1.3 Solutions of Linear Systems
3.4 Solution by Matrices. What is a Matrix? matrix A matrix is a rectangular array of numbers.
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-
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.
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,
Do Now: Perform the indicated operation. 1.). Algebra II Elements 11.1: Matrix Operations HW: HW: p.590 (16-36 even, 37, 44, 46)
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.
12-2 MATRIX MULTIPLICATION MULTIPLY MATRICES BY USING SCALAR AND MATRIX MULTIPLICATION.
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.
Ch. 12 Vocabulary 1.) matrix 2.) element 3.) scalar 4.) scalar multiplication.
Matrices.
MTH108 Business Math I Lecture 20.
Introduction to Vectors and Matrices
Matrices and Vector Concepts
12-1 Organizing Data Using Matrices
Matrix Operations.
Matrix Operations SpringSemester 2017.
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.
Introduction to Vectors and Matrices
3.5 Perform Basic Matrix Operations
Chapter 4 Matrices & Determinants
1.8 Matrices.
MATRICES MATRIX OPERATIONS.
Matrix Operations Ms. Olifer.
Matrix Operations SpringSemester 2017.
1.8 Matrices.
3.5 Perform Basic Matrix Operations Algebra II.
Topic 11: Matrix Approach to Linear Regression
Presentation transcript:

Matrix Approach to Simple Linear Regression KNNL – Chapter 5

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 )

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