Starting from:

$30

MAST30025: Linear Statistical Models: Lab 8 Solved

1.    Consider a dataset where each sample has a response and two factors, which have 2 and 3 possiblelevels respectively. We take 2 samples from each possible combination of factor levels. We model this with a less than full rank model with one parameter for the overall mean, and one parameter for each level of each factor which adjusts the overall mean additively. Write down the linear model in both equation and matrix form.

2.    Let

  .

(a)    Show that r(A) = 2.

(b)    Find two distinct conditional inverses for A.

3.    Show that A = A(ATA)cATA. You may use the result that if ATA = 0, then A = 0. (Hint: Consider the matrix A − A(ATA)cATA.)

4.    It is known that toxic material was dumped into a river that flows into a large salt-water commercialfishing area. We are interested in the amount of toxic material (in parts per million) found in oysters harvested at three different locations in this area. A study is conducted and the following data obtained:

         Site 1      Site 2      Site 3

 

            15           19           22

            26           15           26

(a)    Write down the linear model in matrix form.

(b)    Write down the normal equations.

(c)     Find a conditional inverse for XTX.

(d)    Find a solution for the normal equations.

5.    In a manufacturing plant, filters are used to remove pollutants. We are interested in comparingthe lifespan of 5 different types of filters. Six filters of each type are tested, and the time to failure in hours is given in the dataset (on the website) filters (in csv format).

(a)    Use the read.csv function to read the data. Then convert the type component into a factor.

(b)    Construct X and y matrices for this linear model.

(c)     Using the algorithm given in the lecture slides, find a conditional inverse for XTX.

(d)    Use ginv to find another conditional inverse for XTX.

(e)    Verify that X(XTX)cXT is the same for your two conditional inverses.

(f)      Find two solutions for the normal equations.

(g)    Express one of your solutions in terms of the other.

(h)    Write down a form for all solutions to the normal equations.

6.    Show that ATA = 0 ⇒ A = 0.

Hence show that AB = AC ⇔ ATAB = ATAC.

1

More products