March 7, 2006Lecture 8aSlide #1 Matrix Algebra, or: Is this torture really necessary?! What for? –Permits compact, intuitive depiction of regression analysis.

Slides:



Advertisements
Similar presentations
Matrices A matrix is a rectangular array of quantities (numbers, expressions or function), arranged in m rows and n columns x 3y.
Advertisements

Maths for Computer Graphics
Review of Matrix Algebra
March 7, 2006Lecture 8bSlide #1 Class Analysis Review Predict expected temperature change (c4_34_tc), using the following independent variables: –Age (c5_3_age)
Basic Mathematics for Portfolio Management. Statistics Variables x, y, z Constants a, b Observations {x n, y n |n=1,…N} Mean.
Linear regression models in matrix terms. The regression function in matrix terms.
Matrix Definition A Matrix is an ordered set of numbers, variables or parameters. An example of a matrix can be represented by: The matrix is an ordered.
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 Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 5QF Introduction to Vector and Matrix Operations Needed for the.
Today Wrap up of probability Vectors, Matrices. Calculus
4.5, x 2 and 3 x 3 Matrices, Determinants, and Inverses Date: _____________.
Algebra 2: Lesson 5 Using Matrices to Organize Data and Solve Problems.
ECON 1150 Matrix Operations Special Matrices
Little Linear Algebra Contents: Linear vector spaces Matrices Special Matrices Matrix & vector Norms.
Matrix Entry or element Rows, columns Dimensions Matrix Addition/Subtraction Scalar Multiplication.
Chapter 4 Matrices By: Matt Raimondi.
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.
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Lecture 28: Mathematical Insight and Engineering.
10.4 Matrix Algebra 1.Matrix Notation 2.Sum/Difference of 2 matrices 3.Scalar multiple 4.Product of 2 matrices 5.Identity Matrix 6.Inverse of a matrix.
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.
September 1, 2009 Session 2Slide 1 PSC 5940: Regression Review and Questions about “Causality” Session 2 Fall, 2009.
4.4 Identify and Inverse Matrices Algebra 2. Learning Target I can find and use inverse matrix.
Multivariate Statistics Matrix Algebra I Solutions to the exercises W. M. van der Veld University of Amsterdam.
Special Topic: Matrix Algebra and the ANOVA Matrix properties Types of matrices Matrix operations Matrix algebra in Excel Regression using matrices ANOVA.
Matrix Algebra Section 7.2. Review of order of matrices 2 rows, 3 columns Order is determined by: (# of rows) x (# of columns)
MT411 Robotic Engineering Asian Institution of Technology (AIT) Chapter 1 Introduction to Matrix Narong Aphiratsakun, D.Eng.
10.4 Matrix Algebra 1.Matrix Notation 2.Sum/Difference of 2 matrices 3.Scalar multiple 4.Product of 2 matrices 5.Identity Matrix 6.Inverse of a matrix.
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.
LEARNING OUTCOMES At the end of this topic, student should be able to :  D efination of matrix  Identify the different types of matrices such as rectangular,
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:
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.
4.3 Multiplying Matrices Dimensions matching Rows times Columns.
1 Matrix Math ©Anthony Steed Overview n To revise Vectors Matrices.
MTH108 Business Math I Lecture 20.
Matrices and Vector Concepts
Multiplying Matrices.
Linear Algebra review (optional)
Linear Algebra Lecture 2.
Copyright © 2009 Dan Nettleton
Matrix Operations Monday, August 06, 2018.
Matrix Operations Add and Subtract Matrices Multiply Matrices
Regression.
Warm Up Use scalar multiplication to evaluate the following:
Multiplying Matrices.
Matrix Algebra.
الوحدة السابعة : المصفوفات . تنظيم البيانات فى مصفوفات . الوحدة السابعة : المصفوفات . تنظيم البيانات فى مصفوفات . 1 جمع المصفوفات وطرحها.
Matrix Algebra - Overview
Multiplying Matrices.
Solving Linear Systems Using Inverse Matrices
Lecture 11 Matrices and Linear Algebra with MATLAB
Matrices.
Multiplying Matrices.
Matrix Definitions It is assumed you are already familiar with the terms matrix, matrix transpose, vector, row vector, column vector, unit vector, zero.
Matrix Algebra.
Dimensions matching Rows times Columns
Linear Algebra review (optional)
1.8 Matrices.
1.8 Matrices.
Multiplying Matrices.
Multiplying Matrices.
Multiplying Matrices.
L4-5/L4-6 Objective: Students will be able to evaluate determinants of matrices.
Presentation transcript:

March 7, 2006Lecture 8aSlide #1 Matrix Algebra, or: Is this torture really necessary?! What for? –Permits compact, intuitive depiction of regression analysis –Flexible, in that it can handle any number of independent variables –Generally used in statistical presentation, for OLS and other techniques You need to be able to interpret it.

March 7, 2006Lecture 8aSlide #2 The Basics Matrix form:

March 7, 2006Lecture 8aSlide #3 Transpose (“prime”) of a Matrix

March 7, 2006Lecture 8aSlide #4 Vectors Vectors are essentially single rows or columns:

March 7, 2006Lecture 8aSlide #5 Adding Matrices Addition works only if matrices have the same dimension:

March 7, 2006Lecture 8aSlide #6 Multiplication of Matrices Dimensions: A(r*q) * B(q*c) = C(r*c), So the number of columns in the first matrix must match the number of rows in the second matrix

March 7, 2006Lecture 8aSlide #7 Rules for Matrix Multiplication Are matrices conformable? A x B = C (r x q) (q x c) (r x c) Vector times a matrix: A x B = C (r x c) (c x 1) (r x 1) Row and column vectors: A x B = C (r x 1) (1 x p) (r x p) A x B = C (1 x r) (r x 1) (1 x 1) a scalar

March 7, 2006Lecture 8aSlide #8 Identity Matrices Square matrices with 1’s on diagonal and 0’s elsewhere: Identity matrices act like 1’s in familiar algebra: I x B = B (r x r) (r x c) (r x c) 4 x 4 identity matrix

March 7, 2006Lecture 8aSlide #9 Matrix Inversion Acts a bit like division in algebra: any matrix multiplied by its inverse is equal to the identity matrix: The text uses the following example: Inversion works only for square matrices

March 7, 2006Lecture 8aSlide #10 Finding the Identity Matrix: An Example 2a + 4b = 0 so 2a = -4b and a = -2b 3a + b = 1 so 3(-2b) + b = 1, and -5b=1 so b = -1/5 Therefore: a = -2(-1/5) so a = 2/5 3c + d = 0 so d = -3c 2c + 4d = 1 so 2c + 4(-3c) = 1 and -10c = 1 so c = -1/10 Therefore d = -3(-1/10) so d = 3/10

March 7, 2006Lecture 8aSlide #11 Example Continued Now we can check and see the result of C x C -1 :

March 7, 2006Lecture 8aSlide #12 Regression in Matrix Form Assume a model using n observations, with K-1 X i (independent) variables

March 7, 2006Lecture 8aSlide #13 Regression in Matrix Form Note: we can’t uniquely define (X’X) if any column in the X matrix is a linear function of any other column(s) in X. Why is that?

March 7, 2006Lecture 8aSlide #14 The X’X Matrix Note that you can obtain the basis for all the necessary means, variances and covariances from the (X’X) matrix

March 7, 2006Lecture 8aSlide #15 An Example of Matrix Regression Using a sample of 7 observations, where X has Elements {X 0, X 1, X 2, X 3 }

March 7, 2006Lecture 8aSlide #16 New Dataset: Scientists Sample of AAAS members –US and EU –Collected in 2002 –Focus on science, security, GCC… Available on the class data page –See the codebook and do file

March 7, 2006Lecture 8aSlide #17 Application of Multivariate Regression Analysis Predict expected temperature change (c4_34_tc), using the following independent variables: –Age (c5_3_age) –Gender (c5_4_gen) –Ideology (c4_1_ide)) –Fragile nature (c4_2_nat) –US or EU (recoded: usa_c) Run the model Evaluate the Output Draw Initial Conclusions

March 7, 2006Lecture 8aSlide #18 Break for analysis... Feel free to work in groups Discuss Analyses Take 20 minutes