Linear Models Flashcards
Recall the standard linear regression model, define any terms and indices
yi=B0+B1xi1+B2xi2+…+Bkxik+ei
yi is the ith response
xij is the ith value of the jth regressor
k is the number of regressors (k+1=p parameters)
B0 is the y-intercept
Bj is coefficient associated with the jth regressor
ei is an error term, usually assumed iid random with mean 0 and variance sig^2
Matrix form of regression model and what are any assumptions made (OLS assumptions)?
y = XB + e
E[e]=0
var(e)=sig2 I
OLS estimate of B variance and expected value
Bhat = (X’X)-1X’Y
Var(Bhat)= sig2(X’X)-1
E(Bhat)=B
What does OLS estimate, Bhat, do?
Minimizes the sum of squared residuals (in matrix form: SSres= [y-yhat]’ [y-yhat])
SSres in quadratic form (Y’AY where A is symmetric)
Y’[I - X(X’X)-1X’]Y
Global F-test
H0: B1=B2=…=Bk=0
Ha: Bj ≠ 0
Test statistic is MSreg / MSres ~ F
Where MSreg = SSreg / k
SSreg = SUM (yhati - ybar)2
Write SSreg in terms of matrix notation
SSreg = Y’ [X(X’X)-1X’ - 1(1’1)-11’]Y
Describe a cell means model
yij= ui + eij
yij is the jth observation for the ith group
i=1,2,…,t
j=1,2,…,ni
ui is the true mean for the ith group
eij is the error term
For a cell means model, define y, M, and u
What is the incidence matrix and what is uhat, M’M, (M’M)-1?
Less than Full Rank ANOVA Model (overly paramterized)
Where the row length of X is larger than the column length
Difference between overly parameterized and fully parameterized
Overly paramterized models have columns in the X matrix which are linear combinations of the first column (ie not orthogonal)
For less than full rank anova model, what happens to Bhat?
Since Bhat= (X’X)-1X’Y it cannot be estimated because X’X does not have an inverse. But, X’X does have generalized inverses which have to be solved that way
Consequences of Less than Full rank ANOVA models
Generalized inverses are not unique
There are no unique estimates for B
Serious limitations on what we can estimate and test
Usual focus: contrasts (pairwise comparisons, factorial effects)
Things of critical importance: eigenvalues and rank of matrices (provides degrees of freedom)
If A and B are nxn square matrices then det[AB]=
det[A]det[B}
If A is nxn then det[A]=0 iff
A is singular
The rank of A is…
the greatest number of linearly independent columns (or rows) of A. (Linear dependence implies that at least one column (or row) of A can be written as a linear combination of the other columns (or rows) )
If A and B are non-singular, then for any matix C
C, AC, CB, ACB
all have the same rank
If A is an mxn matrix of rank r, then there exist non-singular matrices P and Q such that PAQ is one of the following:
The rank of AB cannot
exceed the rank of either A or B
If A is a nxn matrix then det[A]=0 iff
the rank of A is less than n
The matrix of a quadratic form can always
be chosen to be symmetric
A and B are said to be congruent matrices iff
there exists a non-singular matrix, C, such that
B=C’AC
We say C is the congruent transformation of A
Let A be an nxn symmetric matrix of rank r. There exists a non-singular matrix C such that
C’AC=D
where D is a diagonal matrix with exactly r non-sero diagonal elements
If A and B are congruent matrices, then
they have the same rank
Let C be an mxn matrix with rank r then the ranks of C’C and CC’
are also r
Let A be an nxn matrix. There will always exist
n eigenvalues that satisfy
det[A-LI]=0
where L is a diagonal matrix of the n eigenvalues
Let A be an nxn symmetric matrix. The rank of A
is the number of non-sero eigenvalues
Let A be an nxn matrix. A has at least one zero eigenvalue iff
A is singular
Let A be an nxn matrix. The determinant of A is the
product of eigenvalues
Let A be an nxn matrix and let C be any nxn non-singular matrix then
A, C-1AC, CAC-1
all have the same number of eigenvalues
Let A be an nxn real matrix. A necessary and sufficient condition that there exist a nonzero y that satisfies Ay=ey
is that e be an eigenvalue of A
Let P be an nxn matrix. P is called orthonormal iff
P-1=P’ and therefore PP’=P’P=I
Let A be an nxn matrix, and let P be an nxn orthonormal matrix, then
det[A]=det[P’AP]
Let x and y be nx1 vectors. x and y are called orthogonal if
x’y=0 or y’x=0
Let A be a mxn matrix and B be an nxp matrix. A and B are said to be orthogonal if
AB=0
Let A be nxn symmetric matrix. There exists an orthonormal matrix P such that
P’AP=D where D is a diagonal matrix whose diagonal elements are the eigenvalues of A
Let A be an mxn matrix with rank r>0. There exist matrices AL (mxr with rank r) and AR (rxn with rank r) such that
A=ALAR
Define column and row space
Column space of a matrix A is the set of vectors that can be generated as linear combinations of the columns of A.
Row space of a matrix A is the set of vectors that can be generated as linear combinations of the rows of A.
Let A be an nxn matrix. A is called positive semidefinite if
a) A=A’ (A is symmetric)
b) y’Ay ≥ 0 for all y
c) There exists at least one y ≠ 0 such that y’Ay=0
If A, an nxn matrix, is positive semidefinite then (3 things)
1) The rank of A is less than n
2) The eigenvalues of A are greater than or equal to 0
3) If P is an nxn non-singular matrix then P’AP is also positive semidefinite
Let A be an nxn matrix. A is positive definite if
a) A=A’ (A is symmetric)
b) y’Ay > 0 for all y≠0
If A is positive definite then (3 things)
1) The rank of A is n
2) All of the eigenvalues of A are greater than 0
3) Let P be an nxn non-singular matrix. P’AP is also positive definite
A matrix is called non-negative definite if it is
either positive definite or positive semidefinite
Let C be an mxn matrix with rank r. C’C and CC’ are
both non-negative definite.
C’C or CC’ are positive definite iff they have full rank
Let A be an nxn symmetric non-negative definite matrix. There exists some nxn matrix B such that
B’B=A
Let A and B be nxn symmetric matrices. If A is positive definite, then there exists a non-singular matrix Q such that Q’AQ= ____ and Q’BQ=____
Q’AQ=I and Q’BQ=D where D is a diagonal matrix whose diagonal elements are the roots of det[B-lambdaA]
If A and B are both non-negative definite, then there exists a matrix Q such that both Q’AQ and Q’BQ are
diagonal
Let A be a nxn non-singular matrix partitioned into
A=[A11 A12
A21 A22]
where both A11 and A22 are square and non-singular and let A-1=C
What is C?
Let A be an nxnx matrix. We call A idempotent if
AA=A
If A is an nxn idempotent matrix with rank n, then A=
I
If A is an nxn idempotent matrix of rank less than n, then A is
positive semidefinite
If A is an idempotent matrix with rank r, then it has
r non-zero eigenvalues, each equal to 1