- 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.
- Let
.
- Show that r(A) = 2.
- Find two distinct conditional inverses for A.
- 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.)
- 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
- Write down the linear model in matrix form.
- Write down the normal equations.
- Find a conditional inverse for XTX.
- Find a solution for the normal equations.
- 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).
- Use the csv function to read the data. Then convert the type component into a factor.
- Construct X and y matrices for this linear model.
- Using the algorithm given in the lecture slides, find a conditional inverse for XTX.
- Use ginv to find another conditional inverse for XTX.
- Verify that X(XTX)cXT is the same for your two conditional inverses.
- Find two solutions for the normal equations.
- Express one of your solutions in terms of the other.
- Write down a form for all solutions to the normal equations.
- Show that ATA = 0 A = 0.
Hence show that AB = AC ATAB = ATAC.
Reviews
There are no reviews yet.