1 / 22

Matrix Multiplication

Matrix Multiplication. Rank and Dependency. Columns of a matrix: Matrix A:. Linear Combinations. Columns: Linear Combination:. “Nontrivial” if at least one l is not 0. ** Columns are dependent if there is a nontrivial linear combination for which:. Rank.

agathag
Download Presentation

Matrix Multiplication

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. Matrix Multiplication

  2. Rank and Dependency • Columns of a matrix: • Matrix A:

  3. Linear Combinations • Columns: • Linear Combination: “Nontrivial” if at least one l is not 0 ** Columns are dependent if there is a nontrivial linear combination for which:

  4. Rank • The RANK of a matrix is the maximum number of linearly independent columns that can be selected from the columns of the matrix. • Rank of X is same as rank of X’X. • A matrix is invertible only if • It is square and • It is of FULL RANK

  5. Example - Look forDependency DEPENDENT? MAYBE, MAYBE NOT!

  6. Same Example (con.t) DEPENDENT? YES !!!!

  7. * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * S ri2 Y X

  8. Class Variables • Data Set X MATRIX

  9. Treatment 1: Treatment 2: Treatment 3:

  10. A 2 20 A 5 24 A 8 22 A 11 28 A 14 26 A 17 25 X Y B 2 15 B 6 19 B 7 20 B 12 26 B 14 30 B 17 28 X Y C 1 2 C 5 8 C 9 12 C 11 10 C 14 18 C 15 20 X Y

  11. A 2 20 A 5 24 A 8 22 A 11 28 A 14 26 A 17 25 2 5 8 11 14 17 2 6 7 12 14 17 1 5 9 11 14 15 B 2 15 B 6 19 B 7 20 B 12 26 B 14 30 B 17 28 <== One column One slope X= C 1 2 C 5 8 C 9 12 C 11 10 C 14 18 C 15 20

  12. 0 0 0 0 0 0 0 0 0 0 0 0 1 5 9 11 14 15 2 0 5 0 8 0 11 0 14 0 17 0 0 2 0 6 0 7 0 12 0 14 0 17 0 0 0 0 0 0 0 0 0 0 0 0 A 2 20 A 5 24 A 8 22 A 11 28 A 14 26 A 17 25 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 2 5 8 11 14 17 2 6 7 12 14 17 1 5 9 11 14 15 <== Add TRT*X Interaction B 2 15 B 6 19 B 7 20 B 12 26 B 14 30 B 17 28 X = C 1 2 C 5 8 C 9 12 C 11 10 C 14 18 C 15 20

  13. PROC GLM; CLASS TRT; MODEL Y = TRT X TRT*X; • F test to delete TRT*X • What is being tested? • Key => • What is REDUCED MODEL? • Y = TRT X ==> Single slope • Testing …… • H0: Arbitrary lines • H1: Parallel lines

  14. PROC GLM; CLASS TRT; MODEL Y = TRT TRT*X; • One dependency in TRT • NO dependencies in TRT*X • F for TRT*X • What is it testing NOW? • Reduced model = ? • MODEL Y=TRT • All slopes 0 • H0: All slopes 0 • (not just equal) • H1: Arbitrary slopes

  15. PROC GLM; CLASS TRT; MODEL Y = TRT TRT*X; • One dependency in TRT

  16. Covariance adjusted means Parameter Estimate Estimate INTERCEPT 4.0123 B TRT A 12.2217 B B 10.9158 B C 0.0000 B X 0.8350 • <= • <= • <= NOTE: The X'X matrix has been found to be singular ...

  17. b 1 b 2 b 0 grade IQ study

  18. “Interaction”! grade IQ study

  19. -14.300 -13.00 +5.30 +5.83 IQ=100 IQ=110 IQ=100 IQ=110 110 110 100 100

More Related