Ch1 [General Sta­tis­tics]

posted by ElMaestro  – Denmark, 2014-02-25 09:45 (4501 d 06:14 ago) – Posting: # 12489
Views: 8,526

In matrix notation will write

y=Xb+e

y is a vector of observations.
X is the design matrix.
b is the effects vector.
e is the error or residual vector.

Let's somehow try to get the dataset above transmogriffed into some kind of matrix notation.

I will not go through matrix notation or mutiplication here. Google it, or use Wikipedia. Along the same lines, I will not go through anything that leads to the least squares solution of the normal linear model, but I will mention without proof that:
  1. If the error is normal with mean zero and some variance then the most likely set of constants in b is those for which the sum of squared residuals ete is minimal.
    That solution is analytically
    b=(XtX))-1Xty

  2. This solution implies inversion of the matrix XtX. If this matrix cannot be inverted then we have screwed up.

  3. For all practical purposes, if XtX is invertible, then we have a solution. This is the case when the rank of X equals the number of columns in X.

  4. If any columns of X add up to give another column (or sum of columns) in X then the rank is not equal to the number of columns, and we cannot get a solution.

We can write the equations like this (focus for now only on sequence and observations):

17.11=1*intercept + 1*SeqTR + 0*SeqRT + …
17.76=1*intercept + 1*SeqTR + 0*SeqRT + …



22.87=1*intercept + 0*SeqTR + 1*SeqRT + …
20.80=1*intercept + 0*SeqTR + 1*SeqRT + …


Let's transmogriph this into a model matrix. In X we have a column for each constant we wish to determine. Above we just worked with three constants (intercept, and two sequence constants).
In the rows of the intercept put a one if the observations is associated with an intercept. All observations are so this is a column of pure 1's.
In the rows of Sequence TR put a 1 when the observation comes from a subject in sequence TR otherwise a 0. And so forth for Sequence RT.

We can write the model matrix (shown right in reddish color) like:
[image]


Note the bold constants just above: They correspond 1:1 to how they appear in X.

Pass or fail!
ElMaestro

Complete thread:

UA Flag
Activity
 Admin contact
23,655 posts in 4,993 threads, 1,571 registered users;
134 visitors (0 registered, 134 guests [including 19 identified bots]).
Forum time: 17:00 CEST (Europe/Vienna)

Competence, like truth, beauty and contact lenses,
is in the eye of the beholder.    Laurence J. Peter

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5