Question 1
- Suppose is a linear model and is a linear estimable function, where . If there exists a , such that is a linear zero estimator, then which of the following holds? Select all that apply. [2 Marks]
(a)
(b)
(c)
(d)
(e)
-
Show that is estimable, (where, ) under the linear model if and only if is orthogonal to the Null space of . [4 Marks]
-
Consider a linear model as
where, .The -th fitted values that result from performing this model is
where
If , then find ? [3 marks]
- Consider the following data points:
| 1 | 2 |
| 2 | 3 |
| 3 | 5 |
| 4 | 4 |
| 5 | 6 |
We fit a linear regression model
where .
(a) Find the least square estimates of and . [4 marks]
(b) Calculate the value of RSS (Residual Sum of Squares) [3 Marks]
- Study the code and answer the following sub-questions:
X = runif(10000,min = 0, max = 20)u = rnorm(10000, mean = 0, sd = 20)y = -2 + 6*X + udf1 = data.frame(X=X, Y=y)l1 = lm(Y~X, data = df1)l1df2 = df[sample(nrow(df1),100),]l2 = lm(Y~X, data = df2)l2
## Output-1Call:lm(formula = Y ~ X, data = df1)
Coefficients:(Intercept) X -1.771 5.981
## Output-2Call:lm(formula = Y ~ X, data = df2)
Coefficients:(Intercept) X 3.278 5.515(a) Explain the functionality of each line of the code. [4 Marks]
(b) Interpret the “Output-1” and “Output-2”. [2 Marks]
(c) Write the fitted linear regression model for both datasets, “df1” and “df2.” Do you observe any differences in the outputs? Provide your comments on the possible reason. [3 Marks]
- Consider a linear model as
where, .
Find the value of for which RSS (Residual Sum of Squares) will be minimum. Write all the steps properly. [4 Marks]
I have written answers on the answer sheets
Not applicable
