Group Bates

Group Description
Statistical matrices, D. Bates, Univ. Wisconsin
http://www.stat.wisc.edu/~bates

---------------
Chem* matrices:
---------------

There will be no fill-in regardless of the ordering and it is even the case
that the inverse has the same pattern of nonzeros as the original L factor.

To explain why this happens it may be best if I explain what "nested grouping
factors" means.  In the Chem97 example in that writeup I sent the matrix Zt is
generated according to the school and the lea (local education authority - the
British equivalent of a school district) that the student was in when they took
the exam.  The rows of Zt correspond to schools and to lea's.  The rows
correspond to students.  The "grouping factors" are school and lea.  We say
that school is nested within lea in the sense that each school occurs in one
and only one lea.  This is in contrast to the other example using the "star"
data where the grouping factors are student, teacher and school.  Multiple
observations on the same student are often with different teachers so student
is not nested within teacher.

Returning to the Chem97 example, the Zt matrix for this model is an indicator
matrix of the school for each student vertically concatenated with the
indicator matrix of the lea for each student.  The structure of Zt (Zt)' has
a diagonal block corresponding to schools, a diagonal block corresponding to
lea's and the off-diagonal block.  The point is that there is exactly one
nonzero in each column of the off-diagonal block in the lower-left.

The way I would reorder these columns and rows to show the structure would be
to put all the schools associated with the first lea followed by the first lea
followed by all the schools associated with the second lea followed by the
second lea ...  Then the L matrix will be block diagonal with each block
corresponding to an lea.  Within each block the structure is a diagonal matrix
in the first k-1 rows and columns and a dense row underneath it.

By the way, don't try to decompose ZtZ as it is only positive semidefinite.
The matrix that is decomposed is ZtZ + Omega where Omega is diagonal with the
diagonal consisting of 2410 elements of 4.419696 (corresponding to schools) and
131 elements of 349.0238 (corresponding to lea's).

---------------
sls matrix:
---------------

The data are 10 years of grade point scores at a large state
university (not mine).  The covariates that are recorded with the
scores are the student id, the instructor id and the department.

Number of obs: 1685394, groups: id, 54711; instr, 7915; dept, 102

Even though these scores are from different semesters and one of the
questions of interest is whether grade inflation has taken place,
initially I fit a simple model that has an effect for the student, an
effect for the instructor and an effect for the department.  There is
also an overall average gradepoint.  The overall average is what we
call a fixed effect. In computations terms this means it is estimated
without a penalty. The other effects are what we call random effects.
In terms of parameters we estimate a variance for each group of random
effects (student, instructor and department).  We assume that the
random effects come from a normal (or Gaussian) distribution, which
has the effect of shrinking the estimates of the individual effects
towards the origin.  If the variance of that distribution is large,
there is little penalty and the estimates for each of the students or
each of the instructors or each of the departments is close to the
least squares estimate.  If the variance is small then they are much
closer to zero.

Overall we will estimate 3 variances, 1 fixed-effect and 62728 = 54711
+ 7915 + 102 random effects. The matrix we will decompose will be
62729 columns (the last column comes from the fixed-effect) and
1685394 + 62728 rows.  The 62728 rows come from the penalty part and
consist of an identity matrix of size 62728 with a column of zeros
appended on the right.  The rows determined by the data (I think of
these as being the top part of the matrix but it doesn't matter if
they are on the top or the bottom) consist of 54711 columns of
indicators for the student followed by 7915 columns of indicators for
the instructor followed by 102 columns of indicators for the
department followed by a column of 1's.  In general we will have
columns for random effects followed by columns for fixed effects.
Here the fixed-effects column is trivial but in general we may have
more than 1 and they don't have to be as trivial as this.

At least as far as I have been able to analyze the computation, I can
allow for permutations of the columns for the random effects but I
don't want to mix up the columns for the random effects and the
columns for the fixed effects. I always want to keep the columns for
the fixed effects as a block on the right. (Usually these columns are
dense or close to it so it isn't a problem to force them to be on the
right.) The reason is that I need the logarithm of the square of the
determinant of the triangular factor from the random effects columns
only.

During the optimization phase we fix values of the three variances,
update the numeric values in the matrix, decompose, calculate the
determinant of the leading part of the triangular factor, and evaluate
the penalized residual sum of squares.  The logarithm of the
determinant and the penalized residual sum of squares are combined to
create a criterion called the profiled log-likelihood which is to be
maximized

The update operation changes the numerical values of the
data-determined part according to three multipliers.  The first
multiplier is applied to the first 54711 columns, the next multiplier
is applied to the next 7915 columns and the last multiplier is applied
to the next 102 columns.  The last column stays fixed.

We start from the factors for the student, instructor and department
then generate the indicators to form Z.  The factors can be
represented as integers and the response is a grade point score
(allowed to be half integers).
Displaying all 3 collection matrices
Id Name Group Rows Cols Nonzeros Kind Date Download File
1400 Chem97Zt Bates 2,541 31,022 62,044 Statistical/Mathematical Problem 2006 MATLAB Rutherford Boeing Matrix Market
1401 Chem97ZtZ Bates 2,541 2,541 7,361 Statistical/Mathematical Problem 2006 MATLAB Rutherford Boeing Matrix Market
2218 sls Bates 1,748,122 62,729 6,804,304 Least Squares Problem 2008 MATLAB Rutherford Boeing Matrix Market