Matrix Algebra and Applications

Slides:



Advertisements
Similar presentations
4.1 Introduction to Matrices
Advertisements

MF-852 Financial Econometrics
Maths for Computer Graphics
Matrix Operations. Matrix Notation Example Equality of Matrices.
Review of Matrix Algebra
MOHAMMAD IMRAN DEPARTMENT OF APPLIED SCIENCES JAHANGIRABAD EDUCATIONAL GROUP OF INSTITUTES.
Matrix Approach to Simple Linear Regression KNNL – Chapter 5.
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 7 Matrix Mathematics Matrix Operations Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 5QF Introduction to Vector and Matrix Operations Needed for the.
Perform Basic Matrix Operations Chapter 3.5. History The problem below is from a Chinese book on mathematics written over 2000 years ago: There are three.
259 Lecture 14 Elementary Matrix Theory. 2 Matrix Definition  A matrix is a rectangular array of elements (usually numbers) written in rows and columns.
Final Exam Review II Chapters 5-7, 9 Objectives and Examples.
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.
4.2 An Introduction to Matrices Algebra 2. Learning Targets I can create a matrix and name it using its dimensions I can perform scalar multiplication.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 5-1 1© 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Module 5 Mathematical.
Matrices Addition & Subtraction Scalar Multiplication & Multiplication Determinants Inverses Solving Systems – 2x2 & 3x3 Cramer’s Rule.
Copyright © 2013, 2009, 2005 Pearson Education, Inc. 1 5 Systems and Matrices Copyright © 2013, 2009, 2005 Pearson Education, Inc.
Unit 6 : Matrices.
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.
Unit 3: Matrices.
Linear Algebra 1.Basic concepts 2.Matrix operations.
Operations with Matrices
Elementary Linear Algebra Anton & Rorres, 9 th Edition Lecture Set – 02 Chapter 2: Determinants.
PHARMACOECONOMIC EVALUATIONS & METHODS MARKOV MODELING IN DECISION ANALYSIS FROM THE PHARMACOECONOMICS ON THE INTERNET ®SERIES ©Paul C Langley 2004 Maimon.
Class Opener:. Identifying Matrices Student Check:
Copyright © Cengage Learning. All rights reserved. 7 Linear Systems and Matrices.
Relations, Functions, and Matrices Mathematical Structures for Computer Science Chapter 4 Copyright © 2006 W.H. Freeman & Co.MSCS Slides Relations, Functions.
Meeting 18 Matrix Operations. Matrix If A is an m x n matrix - that is, a matrix with m rows and n columns – then the scalar entry in the i th row and.
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.
Algebra Matrix Operations. Definition Matrix-A rectangular arrangement of numbers in rows and columns Dimensions- number of rows then columns Entries-
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.
Linear System of Simultaneous Equations Warm UP First precinct: 6 arrests last week equally divided between felonies and misdemeanors. Second precinct:
(4-2) Adding and Subtracting Matrices Objectives: To Add and subtract Matrices To solve certain Matrix equations.
Unit 3: Matrices. Matrix: A rectangular arrangement of data into rows and columns, identified by capital letters. Matrix Dimensions: Number of rows, m,
Systems of Equations and Matrices Review of Matrix Properties Mitchell.
CS480 Cryptography and Information Security Huiping Guo Department of Computer Science California State University, Los Angeles 3. Mathematics of Cryptography.
Matrix Algebra Definitions Operations Matrix algebra is a means of making calculations upon arrays of numbers (or data). Most data sets are matrix-type.
Warm-UP A = 7-310B = C =7-4Find:A 22 and C 31 97Find: the dimensions of each -88 Matrix Find: A + B and B – A and C + B.
Matrices. Variety of engineering problems lead to the need to solve systems of linear equations matrixcolumn vectors.
10.4 Matrix Algebra. 1. Matrix Notation A matrix is an array of numbers. Definition Definition: The Dimension of a matrix is m x n “m by n” where m =
Linear Algebra by Dr. Shorouk Ossama.
MTH108 Business Math I Lecture 20.
Matrices and Vector Concepts
Chapter 7 Matrix Mathematics
Matrix Operations SpringSemester 2017.
FW364 Ecological Problem Solving
7.3 Matrices.
Lecture 11 Matrices and Linear Algebra with MATLAB
4.1 Matrices – Basic Operations
Unit 3: Matrices
2.2 Introduction to Matrices
Matrices and Matrix Operations
Presented By Farheen Sultana Ist Year I SEM
Mathematics for Signals and Systems
3.5 Perform Basic Matrix Operations
Lecture 8 System of Linear Differential Equations fall semester
Matrices Introduction.
1.8 Matrices.
Lecture 7 System of Linear Differential Equations fall semester
Matrix Operations SpringSemester 2017.
1.8 Matrices.
3.5 Perform Basic Matrix Operations Algebra II.
Matrices and Determinants
Presentation transcript:

Matrix Algebra and Applications Mathematical Biology Matrix Algebra and Applications Nik Cunniffe Department of Plant Sciences njc1001@cam.ac.uk

Lecture One Topic : Introduction to matrix algebra Outline: 1) Biological context of these lectures 2) Elementary aspects of matrix algebra - what is a matrix? - special types of matrix - linear combinations of matrices - matrix multiplication - properties of matrix multiplication

These lectures Focus on two commonly used model frameworks - discrete time Markov chains - structured population models Iterated matrix-vector products are used to solve both Requires certain aspects of matrix algebra Some of you may have studied matrices before, but unlikely to have gone as far with the theory (please see first few lectures as revision if you studied matrices at A level) Will focus on the problems first, but before that a timetable…

Timetable for these lectures This block has 7 lectures and 2 practicals Both practicals are examples classes There are no assessed practicals this term No practical class today…first is Thursday 3rd May First four and a half lectures are on matrix theory… …applications to biology in final pair of lectures

Discrete time Markov chains Models of stochastic processes (i.e. include randomness) Model tracks the probability of being in each of a particular set of states at each timestep Discrete time => change every day, month, year, … Markov => probability of transition between states depends only on the current state (i.e. no memory) Very widely used as simple model of a random processes

Discrete time Markov chains Example: take-all epidemics (fungal root disease of wheat) Question: what is the probability of a take-all epidemic in successive years of wheat monoculture? Infected wheat roots (withered and blackened) Patch of infected wheat plants (yellow)

Modelling take-all epidemics Track disease state of a field in successive years via two probabilities - qm = p(no epidemic in year m) - rm = p(an epidemic in year m) Biology summarised via state diagram which shows transitions If no epidemic this year then the probability of no epidemic next year is equal to 0.9 No epidemic this year doesn’t always mean there will definitely not be epidemic next year (since, for e.g. disease can be brought in on tools) Epidemic this year is not always followed by epidemic in the next (inoculum will be in the soil, but weather might be unsuitable)

Modelling take-all epidemics Questions (given an initial state): What is the probability of an epidemic next year? In five years? In the long term?

Dynamics of annual plants Model probability in year m of a particular patch of habitat being empty or being occupied by individual of species one or of species two e.g. if species one a good coloniser, this probability will be large… …compared to this one Three state model: matrices allow same generic theory to be used for absolutely any number of states

Models of structured populations Big assumption in Michaelmas term was that populations are homogeneous (i.e. all members the same) Clearly a simplification, as individuals can be categorised, e.g. - by gender - by relative fitness - by age/stage in life cycle Category affects p(survival) and number of offspring Earlier assumption of homogeneity can be relaxed We concentrate on models in discrete time (for organisms with separated generations)

Modelling bird populations Obvious distinction between juveniles and adults Model tracks numbers of each in year m Only adult birds reproduce Adults have different year to year survival probability than juvenile birds

Modelling bird populations Questions (given initial state): What is the population size next year? In five years? Does the population grow or decline in the long term? How does the ratio of juveniles to adults change over time?

Matrices Just a set of numbers organised into a table Size (“dimension”) is number of rows x numbers of columns - A is a “2 x 2 matrix” - B is a “2 x 3 matrix” Notation: individual elements denoted by lower case - aij is the element in ith row and jth column of A - (for e.g. a12 = 2, b13 = 3000, b31 just doesn’t exist) - (we shall rarely need to worry about notation too much)

Special Matrices Square matrix - number of rows = number of columns Identity matrix - square matrix with all elements zero, apart from ones down the leading diagonal 3) Column matrix (aka a “vector”) - a matrix with only one column - denoted by bold (typed), underlined (written) 4) Zero matrix - every single element is zero

Matrix addition/subtraction To find (for e.g.) P + Q, Q – P, just add/subtract corresponding elements of the two matrices NOTE: CAN ONLY ADD OR SUBTRACT A PAIR OF MATRICES IF THEY ARE THE SAME SIZE (e.g. P and R are different sizes, so P + R is not defined)

Scalar matrix multiplication, e.g. what is 10R? Multiply each element in turn by the scalar

Linear Combinations of Matrices Combination of scalar multiplication and addition, e.g.

Matrix matrix multiplication Multiplication is a bit more involved. Consider two matrices There is a formal definition (given for completeness in notes) However, don’t focus on this - will explain the method

Matrix matrix multiplication See OHP for some examples

Algebra of matrix multiplication See Examples Sheet for some examples

Matrix vector multiplication See OHP for an example

Lecture Two Topic : Determinants and linear equations Outline : 1) Solutions of linear equations 2) Define determinant of a square matrix - 2 x 2 - 3 x 3 3) How does solution of Av = b relate to the determinant of A and the value of b?

A matrix vector equation is just a set of linear simultaneous equations and vice versa A matrix vector equation like Av = b is just a set of linear simultaneous equations A set of linear simultaneous equations is just a matrix vector equation of the form Av = b Note that going from simultaneous equations to Av = b is crucial for us (since want to write models in this form) See OHP for examples

Simultaneous equations to matrix vector equation

Determinant of a 2x2 matrix

Determinant of a 3x3 matrix

Solutions of equations