Logo

AskSia

Plus

Q2. The response time in milliseconds was determined for three different types o...
Jun 28, 2024
Q2. The response time in milliseconds was determined for three different types of circuits that could be used in an automatic valve shutoff mechanism. The results are shown in the following table. Circuits Type Response Time 1 9 12 10 2 20 21 23 3 6 5 8 Consider the linear model yij = µ + τi + ϵij , for i = 1, 2, 3 and j = 1, 2, 3 where where µ is the overall mean, τi is the circuit type content effects and ϵij ∼ N(0, σ2 ) is the random error. (a) Write model above in the form y = Xβ +ϵ. Do not impose any restriction on the parameters. This assignment consists of 4 questions on 4 printed pages 3 MEME16203Linear Models (b) Obtain one of the generalized inverse of XTX, G. (c) Use the generalized inverse you obtained in part(b) to compute a solution to the normal equations, βˆ =      µˆ τˆ1 τˆ2 τˆ3      . (d) Using your solution βˆ to the normal equation from part (c), estimates τ1 − 2τ2 + τ3. (e) Is your estimate in part(d) the unique BLUE? Explain. (25 marks)
Solution by Steps
step 1
Define the linear model in matrix form. The model given is yij=μ+τi+ϵijy_{ij} = \mu + \tau_i + \epsilon_{ij}, where i=1,2,3i = 1, 2, 3 and j=1,2,3j = 1, 2, 3. We can write this in the form y=Xβ+ϵy = X\beta + \epsilon
step 2
Construct the design matrix XX. For three circuit types and three observations each, the design matrix XX is: X=(1amp;1amp;0amp;01amp;1amp;0amp;01amp;1amp;0amp;01amp;0amp;1amp;01amp;0amp;1amp;01amp;0amp;1amp;01amp;0amp;0amp;11amp;0amp;0amp;11amp;0amp;0amp;1) X = \begin{pmatrix} 1 & 1 & 0 & 0 \\ 1 & 1 & 0 & 0 \\ 1 & 1 & 0 & 0 \\ 1 & 0 & 1 & 0 \\ 1 & 0 & 1 & 0 \\ 1 & 0 & 1 & 0 \\ 1 & 0 & 0 & 1 \\ 1 & 0 & 0 & 1 \\ 1 & 0 & 0 & 1 \\ \end{pmatrix}
step 3
Define the parameter vector β\beta and the response vector yy. The parameter vector β\beta is: β=(μτ1τ2τ3) \beta = \begin{pmatrix} \mu \\ \tau_1 \\ \tau_2 \\ \tau_3 \\ \end{pmatrix} The response vector yy is: y=(91210202123658) y = \begin{pmatrix} 9 \\ 12 \\ 10 \\ 20 \\ 21 \\ 23 \\ 6 \\ 5 \\ 8 \\ \end{pmatrix}
step 4
Write the model in the form y=Xβ+ϵy = X\beta + \epsilon. Combining the design matrix XX, parameter vector β\beta, and response vector yy, we get: y=Xβ+ϵ y = X\beta + \epsilon
Answer
The linear model in matrix form is y=Xβ+ϵy = X\beta + \epsilon.
Key Concept
Linear Model in Matrix Form
Explanation
The linear model yij=μ+τi+ϵijy_{ij} = \mu + \tau_i + \epsilon_{ij} can be written in matrix form as y=Xβ+ϵy = X\beta + \epsilon, where XX is the design matrix, β\beta is the parameter vector, and yy is the response vector.
Solution by Steps
step 1
Compute XTXX^T X. The transpose of XX is: XT=(1amp;1amp;1amp;1amp;1amp;1amp;1amp;1amp;11amp;1amp;1amp;0amp;0amp;0amp;0amp;0amp;00amp;0amp;0amp;1amp;1amp;1amp;0amp;0amp;00amp;0amp;0amp;0amp;0amp;0amp;1amp;1amp;1) X^T = \begin{pmatrix} 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 \\ 1 & 1 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 1 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 & 0 & 1 & 1 & 1 \\ \end{pmatrix} Multiplying XTX^T by XX: XTX=(9amp;3amp;3amp;33amp;3amp;0amp;03amp;0amp;3amp;03amp;0amp;0amp;3) X^T X = \begin{pmatrix} 9 & 3 & 3 & 3 \\ 3 & 3 & 0 & 0 \\ 3 & 0 & 3 & 0 \\ 3 & 0 & 0 & 3 \\ \end{pmatrix}
step 2
Find a generalized inverse GG of XTXX^T X. One possible generalized inverse is: G=(19amp;0amp;0amp;00amp;13amp;0amp;00amp;0amp;13amp;00amp;0amp;0amp;13) G = \begin{pmatrix} \frac{1}{9} & 0 & 0 & 0 \\ 0 & \frac{1}{3} & 0 & 0 \\ 0 & 0 & \frac{1}{3} & 0 \\ 0 & 0 & 0 & \frac{1}{3} \\ \end{pmatrix}
Answer
One generalized inverse of XTXX^T X is: G=(19amp;0amp;0amp;00amp;13amp;0amp;00amp;0amp;13amp;00amp;0amp;0amp;13) G = \begin{pmatrix} \frac{1}{9} & 0 & 0 & 0 \\ 0 & \frac{1}{3} & 0 & 0 \\ 0 & 0 & \frac{1}{3} & 0 \\ 0 & 0 & 0 & \frac{1}{3} \\ \end{pmatrix}
Key Concept
Generalized Inverse
Explanation
A generalized inverse of a matrix AA is a matrix GG such that AGA=AAGA = A. It is used when AA is not invertible.
Solution by Steps
step 1
Compute β^=G(XTy)\hat{\beta} = G (X^T y). First, calculate XTyX^T y: XTy=(114316419) X^T y = \begin{pmatrix} 114 \\ 31 \\ 64 \\ 19 \\ \end{pmatrix} Then, multiply by GG: β^=G(XTy)=(19amp;0amp;0amp;00amp;13amp;0amp;00amp;0amp;13amp;00amp;0amp;0amp;13)(114316419)=(12.6710.3321.336.33) \hat{\beta} = G (X^T y) = \begin{pmatrix} \frac{1}{9} & 0 & 0 & 0 \\ 0 & \frac{1}{3} & 0 & 0 \\ 0 & 0 & \frac{1}{3} & 0 \\ 0 & 0 & 0 & \frac{1}{3} \\ \end{pmatrix} \begin{pmatrix} 114 \\ 31 \\ 64 \\ 19 \\ \end{pmatrix} = \begin{pmatrix} 12.67 \\ 10.33 \\ 21.33 \\ 6.33 \\ \end{pmatrix}
Answer
The solution to the normal equations is: β^=(12.6710.3321.336.33) \hat{\beta} = \begin{pmatrix} 12.67 \\ 10.33 \\ 21.33 \\ 6.33 \\ \end{pmatrix}
Key Concept
Normal Equations Solution
Explanation
The solution to the normal equations β^=(XTX)1XTy\hat{\beta} = (X^T X)^{-1} X^T y can be computed using a generalized inverse when XTXX^T X is not invertible.
Solution by Steps
step 1
Use the solution β^\hat{\beta} to estimate τ12τ2+τ3\tau_1 - 2\tau_2 + \tau_3. From the solution β^\hat{\beta}, we have: τ^1=10.33,τ^2=21.33,τ^3=6.33 \hat{\tau}_1 = 10.33, \quad \hat{\tau}_2 = 21.33, \quad \hat{\tau}_3 = 6.33
step 2
Calculate τ^12τ^2+τ^3\hat{\tau}_1 - 2\hat{\tau}_2 + \hat{\tau}_3: τ^12τ^2+τ^3=10.332(21.33)+6.33=10.3342.66+6.33=26 \hat{\tau}_1 - 2\hat{\tau}_2 + \hat{\tau}_3 = 10.33 - 2(21.33) + 6.33 = 10.33 - 42.66 + 6.33 = -26
Answer
The estimate of τ12τ2+τ3\tau_1 - 2\tau_2 + \tau_3 is 26-26.
Key Concept
Linear Combination of Parameters
Explanation
The estimate of a linear combination of parameters can be obtained by substituting the estimated values of the parameters into the linear combination.
Solution by Steps
step 1
Determine if the estimate is the unique BLUE. The Best Linear Unbiased Estimator (BLUE) is unique if the design matrix XX has full column rank
step 2
Check the rank of XX. The design matrix XX has 4 columns and 9 rows. The rank of XX is 4, which is the number of columns
step 3
Conclude that the estimate is the unique BLUE. Since XX has full column rank, the estimate is the unique BLUE
Answer
The estimate is the unique BLUE because the design matrix XX has full column rank.
Key Concept
Unique BLUE
Explanation
The Best Linear Unbiased Estimator (BLUE) is unique if the design matrix has full column rank, ensuring that the normal equations have a unique solution.
© 2023 AskSia.AI all rights reserved