1 / 22

Lecture 2 Matrix algebra

Lecture 2 Matrix algebra. A vector can be interpreted as a file of data. A matrix is a collection of vectors and can be interpreted as a data base. The red matrix contain three column vectors. Handling biological data is most easily done with a matrix approach .

tymon
Télécharger la présentation

Lecture 2 Matrix algebra

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture2 Matrix algebra A vectorcan be interpreted as a file of data A matrixis a collection of vectors and can be interpreted as a data base The red matrixcontainthreecolumnvectors Handlingbiological data is most easilydonewith a matrixapproach. An Excel worksheetis a matrix.

  2. A general structure of databases The first subscriptdenotesrows, thesecondcolumns. n and m definethedimension of a matrix. Ahas m rows and n columns. Rowvector Columnvector Twomatricesareequaliftheyhavethe same dimension and allcorrespondingvaluesareidentical.

  3. Solvingsystems of linearequations The Nine Chapters on the Mathematical Art.(1000BC-100AD). Systems of linearequations, Gaussianelimination Gottfried Wilhelm Leibniz(1646-1716)Determinants to solvelinearequations TakakazuShinsuke Seki(1642-1708)Determinants to solvelinearequations Matrixapproaches Arthur Cayley(1821-1895)Formalmatrix algebra Olga Taussky-Todd(1906-1995)Finitevaluematrices Johann Carl Friedrich Gauss (1777 – 1855)Gaussianelimination, inverse

  4. Someelementarytypes of matrices In biology and statisticsaresquarematricesAn,n of particularimportance Lower and uppertriangularmatrices Thesymmetricmatrixis a matrixwhereAn,m = A m,n. Thediagonal matrixis a square and symmetrical. Unit matrixI is a matrixwith one row and one column. Itis a scalar (ordinarynumber).

  5. Matrix operations Addition and Subtraction Addition and subtractionareonlydefined for matriceswithidenticaldimensions S-product

  6. Theinnerordotorscalarproduct Assume you have production data (in tons) of winter wheat (15 t), summer wheat (20 t), and barley (30 t). In the next year weather condition reduced the winter wheat production by 20%, the summer wheat production by 10% and the barley production by 30%. How many tons do you get the next year? (15*0.8 + 20* 0.9 + 30 * 0.7) t = 51 t. Thedotproductisonlydefined for matrices, wherethenumber of columnsinthe first matrixequalsthenumber of rowsinthesecondmatrix.

  7. We add another year and ask how many cereals we get if the second year is good and gives 10 % more of winter wheat, 20 % more of summer wheat and 25 % more of barley. For both years we start counting with the original data and get a vector with one row that is the result of a two step process

  8. Thenumber of columnsinthe first matrixmustequalthenumber of rowsinthesecondmatrix.

  9. TransposeA’ ot AT

  10. Matrixaddin for Excel: www.digilander.libero.it/foxes/SoftwareDownload.htm

  11. Someproperties of thetranspose onlyifAissquare and symmetric alwaysexists and gives a symmetricmatrix IfAisorthogonaland thecolumnvectorsare unit thematrixQiscalledorthonormal and A’Aisthe unit matrix. IfAisorthogonalA’Ais diagonal, but AA’ need not to be diagonal

  12. Groundbeetles on Mazurianlakeislands (Mamry) Carabusproblematicus Carabusauratus Photo Marek Ostrowski

  13. Speciesassociations

  14. Probabilities of co-occurrence

  15. Theentries of thematrixgivethe sum of probabilitiesthattwospeciesmeet on any of theislands.

  16. Assume you are studying a contagious disease. You identified as small group of 4 persons infected by the disease. These 4 persons contacted in a given time withanother group of 5 persons. The latter 5 persons had contact with other persons, say with 6, and so on. How oftendid a person of group C indirectlycontactwith a person of group A? B 1 2 3 4 5 C 1 2 3 4 5 6 A 1 2 3 4 B 1 2 3 4 5 We eliminate group B and leavethe first and last group. No. 1 of group C indirectlycontactedwithallmembers of group A. No. 2 of group A indirectlycontactedwithallsixpersons of group C. C 1 2 3 4 5 6 A 1 2 3 4

  17. Instead of contact we useprobabilities of beinginfected. Person 1 of group C hasthehighestprobability of beinginfected.

  18. Euclideandistance Taxidriveror Manhattan distance Soerensendistance Distancematrix Bray-Curtisdistance Distancematricesaresymmetrical Diagonal entriesoftenhavevalues of 1

  19. Distancemetrics

More Related