Matrix Algebra - Overview

Slides:



Advertisements
Similar presentations
Applied Informatics Štefan BEREŽNÝ
Advertisements

3_3 An Useful Overview of Matrix Algebra
MF-852 Financial Econometrics
Maths for Computer Graphics
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 12 System of Linear Equations.
Psychology 202b Advanced Psychological Statistics, II January 18, 2011.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 14 Elimination Methods.
Review of Matrix Algebra
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Part 3 Chapter 8 Linear Algebraic Equations and Matrices PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The.
Group members: M.Shozib, Hasnain Khan, M.Awais, Shahid Rafiq Asad ali.
Chapter 5 Determinants.
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
A matrix having a single row is called a row matrix. e.g.,
5  Systems of Linear Equations: ✦ An Introduction ✦ Unique Solutions ✦ Underdetermined and Overdetermined Systems  Matrices  Multiplication of Matrices.
ECON 1150 Matrix Operations Special Matrices
Little Linear Algebra Contents: Linear vector spaces Matrices Special Matrices Matrix & vector Norms.
Presentation on Matrices and some special matrices In partial fulfillment of the subject Vector calculus and linear algebra ( ) Submitted by: Agarwal.
Presentation by: H. Sarper
Unit 3: Matrices.
Multivariate Statistics Matrix Algebra I W. M. van der Veld University of Amsterdam.
4.4 Identify and Inverse Matrices Algebra 2. Learning Target I can find and use inverse matrix.
ES 240: Scientific and Engineering Computation. Chapter 8 Chapter 8: Linear Algebraic Equations and Matrices Uchechukwu Ofoegbu Temple University.
CALCULUS – III Matrix Operation by Dr. Eman Saad & Dr. Shorouk Ossama.
Unit 3 Matrix Arithmetic IT Disicipline ITD 1111 Discrete Mathematics & Statistics STDTLP 1 Unit 3 Matrix Arithmetic.
Matrices and Determinants
CS 450: COMPUTER GRAPHICS TRANSFORMATIONS SPRING 2015 DR. MICHAEL J. REALE.
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
Introduction Types of Matrices Operations
MATRICES A rectangular arrangement of elements is called matrix. Types of matrices: Null matrix: A matrix whose all elements are zero is called a null.
Linear Algebra by Dr. Shorouk Ossama.
Matrices Introduction.
MTH108 Business Math I Lecture 20.
MAT 322: LINEAR ALGEBRA.
Linear Algebra Review.
Matrices and Vector Concepts
7.1 Matrices, Vectors: Addition and Scalar Multiplication
Matrix Algebra MATRIX OPERATIONS © 2012 Pearson Education, Inc.
Matrices and Matrix Operations
Linear Algebraic Equations and Matrices
nhaa/imk/sem /eqt101/rk12/32
Chapter 7 Matrix Mathematics
ECON 213 Elements of Mathematics for Economists
MATHEMATICS Matrix Algebra
5 Systems of Linear Equations and Matrices
MATHEMATICS Matrix Multiplication
Linear Algebraic Equations and Matrices
Matrix Algebra MATRIX OPERATIONS © 2012 Pearson Education, Inc.
Matrix Operations.
L5 matrix.
Computer Graphics Matrix
7.3 Matrices.
Dr Huw Owens Room B44 Sackville Street Building Telephone Number 65891
CSE 541 – Numerical Methods
Section 2.4 Matrices.
2.2 Introduction to Matrices
Matrices Introduction.
CS100: Discrete structures
Matrices and Matrix Operations
6 Systems of Linear Equations and Matrices
Presented By Farheen Sultana Ist Year I SEM
Matrices Introduction.
Matrix Algebra MATRIX OPERATIONS © 2012 Pearson Education, Inc.
Matrices and Determinants
Applied Discrete Mathematics Week 4: Functions
Matrices and Determinants
Presentation transcript:

Matrix Algebra - Overview Multivariate Stats for Ecologists (FISH560), Fall 2011, J.D. Olden Matrix Algebra - Overview Introduction to Matrices R-mode vs. Q-mode Linear Algebra Special Matrices Trace, Diagonal, Identity, Scalars, Transpose Matrix Addition Matrix Multiplication

Matrix Algebra Matrix algebra is an essential tool for multivariate analysis because most data sets are recorded in a matrix format (rows & columns). The use of matrices provides a succinct representation of ecological information and with matrix algebra we can perform operations and analyses of whole data sets. We won’t dive too deeply into this in FISH 560, but it is important to have a basic understanding of matrix algebra to help grasp key concepts in multivariate statistics.

Table Structure of Data Ecological data are typically recorded in a table, or matrix, where each column j corresponds to a descriptor yj (species abundance, habitat variable, diet item) and each row i refers to an object xi (sampling site, individual, etc.). Objects c1 c2 c3 cj r1 a11 a12 a13 a1j r2 a21 r3 a31 ri ai1 aij Each cell (i,j) of the matrix is the value of ith object for jth descriptor:

Objects and Descriptors Sometimes it may not be clear as to what are the objects and what are the descriptors. A common approach in community ecology is to compare different sampling sites (the objects) based on the assemblage of organisms observed at each one (the descriptors). In contrast, in fish diet analyses we would consider individual fishes as objects and diet items found in fish stomachs as the descriptors. It is therefore necessary to define what are objects and descriptors before analyzing the data.

R-mode and Q-mode anlyses The distinction between objects and descriptors has very important implications. The analysis of relationships among descriptors at the given set of objects is known as R-mode analysis. In contrast, a Q-mode analysis quantifies the relationships among the objects given a series of descriptors. Each type of analysis can require very different multivariate techniques

Linear Algebra As described above, a table of ecological data is referred to as a matrix. Linear algebra is the branch of mathematics that works with matrices. A matrix of dimension r X c is a rectangular array of numbers with r rows and c columns.

Matrix Form Matrices can take many forms: rectangular, square, row or column. A square matrix (r = c) A column vector (r X 1) A row vector (1 X c) A scalar (1 x 1)

Matrix Notation Matrix notation provides a mechanism for writing and describing elements of data sets. As such, it corresponds to the way computers and programming languages interpret tables of data. Many statistical programs can handle data entered in matrix format. So, matrices are a very useful when working with multivariate data

Square Matrices For a square matrix A (of order n × n), the diagonal elements those with identical subscripts (e.g., a11, a22, etc.). Thus, they are located on the main diagonal of the square matrix (from upper left to lower right). The sum of the diagonal elements is known as the trace.

Diagonal Matrices A diagonal matrix is a square matrix in which only the diagonal elements are non-zero. An identity matrix, I, is a diagonal matrix in which all the diagonal elements are one.

Null and Triangular Matrices A matrix where all elements are zero is called a zero matrix or null matrix. It is indicated by 0 or [0]. A square matrix with all elements below (or above) the main diagonal being zero, is called an upper (or lower) triangular matrix.

Transposing Matrices The transpose of matrix A with dimensions (n × p) is indicated as A’ and is a new matrix of dimensions (p × n) in which a’ij = aji. Transposing matrices is very important in many forms of statistical analysis including multivariate analyses.

Symmetric Matrices A square matrix that is identical to its transpose is said to be symmetric. In this case, the terms aij and aji, which lie on either side of the diagonal, are equal. For example:

Matrix Addition Matrices must be of the same order to be added. If you sampled 3 sites and measured the abundance of 2 species on once per month and wanted to know the total abundance sampled, you could use matrix addition: June July August Summer Site 1 Site 2 Site 3 Sp.1 Sp.2

Matrix Multiplication The result of a scalar product of two vectors is equal to the sum of the products of those corresponding order numbers. The scalar product is usually designated by a dot (or by no symbol at all). For example: A scalar

Matrix Multiplication … Going back to the earlier example, we can multiply a month matrix with a vector of appropriate order. Total fish abundance Sampling efficiency June Site 1 Site 2 Site 3 Sp.1 Sp.2

Matrix Multiplication … Multiplying two matrices is an extension of the product of a vector by a matrix. To multiply matrix C by a second matrix B, consider C as a set of column vectors (e.g., c1, c2, etc.). For example: and Simply multiply B by the vectors d and e.

NB: To multiply two matrices they must be conformable, which means the number of columns of the first matrix must equal the number of rows in the second. The resulting matrix will have the same no. of rows as B and no. of columns as C. and thus