Matrix Multiplication Rank and Dependency n Columns of a matrix: n Matrix A:

Slides:



Advertisements
Similar presentations
5.2 Rank of a Matrix. Set-up Recall block multiplication:
Advertisements

Topic 12: Multiple Linear Regression
General Linear Model With correlated error terms  =  2 V ≠  2 I.
A. The Basic Principle We consider the multivariate extension of multiple linear regression – modeling the relationship between m responses Y 1,…,Y m and.
GENERAL LINEAR MODELS: Estimation algorithms
Linear Equations Review. Find the slope and y intercept: y + x = -1.
Factorial ANOVA More than one categorical explanatory variable.
BA 275 Quantitative Business Methods
Review By: Kevin Alvernaz Henze Gustave Elias Peralta Brielle Wanamaker.
The General Linear Model. The Simple Linear Model Linear Regression.
3_3 An Useful Overview of Matrix Algebra
Some Terms Y =  o +  1 X Regression of Y on X Regress Y on X X called independent variable or predictor variable or covariate or factor Which factors.
Psychology 202b Advanced Psychological Statistics, II February 1, 2011.
Psychology 202b Advanced Psychological Statistics, II January 25, 2011.
Matrix A matrix is a rectangular array of elements arranged in rows and columns Dimension of a matrix is r x c  r = c  square matrix  r = 1  (row)
Statistics for Managers Using Microsoft® Excel 5th Edition
Some useful linear algebra. Linearly independent vectors span(V): span of vector space V is all linear combinations of vectors v i, i.e.
The Terms that You Have to Know! Basis, Linear independent, Orthogonal Column space, Row space, Rank Linear combination Linear transformation Inner product.
Chapter 3 Summarizing Descriptive Relationships ©.
Basics of regression analysis
Analysis of Covariance Goals: 1)Reduce error variance. 2)Remove sources of bias from experiment. 3)Obtain adjusted estimates of population means.
Special Topic: Matrix Algebra and the ANOVA Matrix properties Types of matrices Matrix operations Matrix algebra in Excel Regression using matrices ANOVA.
INDR 262 INTRODUCTION TO OPTIMIZATION METHODS LINEAR ALGEBRA INDR 262 Metin Türkay 1.
Intro to Matrices Don’t be scared….
1 1 Slide Simple Linear Regression Chapter 14 BA 303 – Spring 2011.
Simple Linear Regression. Types of Regression Model Regression Models Simple (1 variable) LinearNon-Linear Multiple (2
Chapter 15 Modeling of Data. Statistics of Data Mean (or average): Variance: Median: a value x j such that half of the data are bigger than it, and half.
 Combines linear regression and ANOVA  Can be used to compare g treatments, after controlling for quantitative factor believed to be related to response.
Chapter 2 Simultaneous Linear Equations (cont.)
We will use Gauss-Jordan elimination to determine the solution set of this linear system.
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.
Regression. Population Covariance and Correlation.
Thomas Knotts. Engineers often: Regress data  Analysis  Fit to theory  Data reduction Use the regression of others  Antoine Equation  DIPPR.
تهیه کننده : نرگس مرعشی استاد راهنما : جناب آقای دکتر جمشید شنبه زاده.
March 28, 30 Return exam Analyses of covariance 2-way ANOVA Analyses of binary outcomes.
4.6: Rank. Definition: Let A be an mxn matrix. Then each row of A has n entries and can therefore be associated with a vector in The set of all linear.
SE-280 Dr. Mark L. Hornick Multiple Regression (Cycle 4)
Analysis of Covariance Combines linear regression and ANOVA Can be used to compare g treatments, after controlling for quantitative factor believed to.
Topic 26: Analysis of Covariance. Outline One-way analysis of covariance –Data –Model –Inference –Diagnostics and rememdies Multifactor analysis of covariance.
PSYC 3030 Review Session April 19, Housekeeping Exam: –April 26, 2004 (Monday) –RN 203 –Use pencil, bring calculator & eraser –Make use of your.
Notes Over 5.2 Write an equation of the line that passes through the point and has the given slope. Write the equation in slope-intercept form.
Chapter 6 (cont.) Difference Estimation. Recall the Regression Estimation Procedure 2.
Environmental Modeling Basic Testing Methods - Statistics III.
Categorical Independent Variables STA302 Fall 2013.
Special Topic: Matrix Algebra and the ANOVA Matrix properties Types of matrices Matrix operations Matrix algebra in Excel Regression using matrices ANOVA.
9.1 Chapter 9: Dummy Variables A Dummy Variable: is a variable that can take on only 2 possible values: yes, no up, down male, female union member, non-union.
Linear Models Alan Lee Sample presentation for STATS 760.
1.3 Solutions of Linear Systems
6-1 Solving Systems by Graphing 6-2 Solving Systems by Substitution 6-3 Solving Systems by Elimination 6-4 Solving Special Systems 6-5 Applying Systems.
WARM UP GRAPHING LINES Write the equation in slope- intercept form and then Graph. (Lesson 4.7) 1.3x + y = 1 2.x + y = 0 3.y = -4 3.
1.7 Linear Independence. in R n is said to be linearly independent if has only the trivial solution. in R n is said to be linearly dependent if there.
is a linear combination of and depends upon and is called a DEPENDENT set.
Stats & Summary. The Woodbury Theorem where the inverses.
2.5 – Determinants and Multiplicative Inverses of Matrices.
Analysis of Covariance KNNL – Chapter 22. Analysis of Covariance Goal: To Compare treatments (1-Factor or Multiple Factors) after Controlling for Numeric.
The General Linear Model. Estimation -- The General Linear Model Formula for a straight line y = b 0 + b 1 x x y.
MathematicalMarketing Slide 5.1 OLS Chapter 5: Ordinary Least Square Regression We will be discussing  The Linear Regression Model  Estimation of the.
29 October 2009 MRC CBU Graduate Statistics Lectures 4: GLM: The General Linear Model - ANOVA & ANCOVA1 MRC Cognition and Brain Sciences Unit Graduate.
Section 6-2: Matrix Multiplication, Inverses and Determinants There are three basic matrix operations. 1.Matrix Addition 2.Scalar Multiplication 3.Matrix.
Matrices and Vector Concepts
B&A ; and REGRESSION - ANCOVA B&A ; and
Chapter 2 Simultaneous Linear Equations (cont.)
Regression.
Basics of Group Analysis
Some useful linear algebra
4.6: Rank.
Linear Functions.
Analysis of Covariance
Topic 11: Matrix Approach to Linear Regression
WARM UP 3 WRITING EQUATIONS Write in slope-intercept form the equation of the line that passes through the given point and has the given slope. (Lesson.
Presentation transcript:

Matrix Multiplication

Rank and Dependency n Columns of a matrix: n Matrix A:

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

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

Example - Look for Dependency DEPENDENT? MAYBE, MAYBE NOT!

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

* * * * * * * * * * * * * * * * * X Y  r i 

Class Variables  Data Set X MATRIX

Treatment 1: Treatment 2: Treatment 3:

X YA 2 20 A 5 24 A 8 22 A A A X YB 2 15 B 6 19 B 7 20 B B B X YC 1 2 C 5 8 C 9 12 C C C 15 20

A 2 20 A 5 24 A 8 22 A A A B 2 15 B 6 19 B 7 20 B B B C 1 2 C 5 8 C 9 12 C C C X= <== One column One slope

A 2 20 A 5 24 A 8 22 A A A B 2 15 B 6 19 B 7 20 B B B C 1 2 C 5 8 C 9 12 C C C X = <== Add TRT*X Interaction

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

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

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

Parameter Estimate Estimate INTERCEPT B TRT A B B B C B X Covariance adjusted means NOTE: The X'X matrix has been found to be singular... <=

grade IQ study b 1 b 2 b 0

grade IQ study “Interaction”!

IQ= IQ=