Linear Statistical Models, End Term
If , then define (do not solve for) the least square estimate of . [2 Marks]
1. Consider the Linear Model: $$y_i = \beta_0 + \beta_1 x_i + \epsilon_i \quad ; \quad 1 \leq i \leq 1000$$ If $\epsilon_i \sim N(0, \sigma^2)$, then define (do not solve for) the least square estimate of $\beta = \begin{bmatrix} \beta_0 \\ \beta_1 \end{bmatrix}$. [2 Marks] 2. Let $(\underline{y}, X\underline{\beta}, \sigma^2 I_{n\times n})$ be a linear model. Suppose $\underline{p}^T\underline{\beta}$ is estimable. Then derive an expression for the variance of BLUE of $\underline{p}^T\underline{\beta}$ [4 Marks] 3.Consider the data set *scores* on a class of 98 students in IIT-M. For each of 98 students, the composite score obtained in the class and the average number of hours studied per week is recorded. The following regression output was obtained using the *scores* data set Call: lm(formula = score ~ hours) Residuals: Min 1Q Median 3Q Max -39.680 -14.675 0.215 14.088 54.785 Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 7.8805 4.6247 1.704 0.0916 . hours 7.1852 0.6134 11.713 <2e-16 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error: 20.08 on 96 degrees of freedom Multiple R-squared: 0.5883, Adjusted R-squared: 0.584 F-statistic: 137.2 on 1 and 96 DF, p-value: < 2.2e-16 For the following questions, please explain clearly which parts of the output are the basis for your answers. Include the units of variables wherever possible. Use the tabulated values in the cheat sheet. (a) What is the predictor variable? What is the response variable? [2 Marks] (b) Write the equation for the estimated conditional mean function, using the appropriate numerical values in the output. [2 Marks] (c) Based on the estimated coefficients, can you give an estimate of $E[Y|X = 0]$? If yes, what is it (and show your work); if not, explain why not (missing information, inappropriate assumptions, etc.). [3 Marks] (d) Give a 95% confidence interval for $\beta_1$, assuming all the model assumptions hold. [2 Marks] (e) What is $\hat{\sigma}^2$, the in-sample mean-squared error? [3 Marks] (f) From $n$, the standard error of $\hat{\beta}_1$ and $\hat{\sigma}^2$, can you find the sample variance in population across cities? If so, what is it? If not, explain. [5 Marks] (g) Which part (or parts) of the output (if any) tests the assumption that the relationship between the predictor variable and the response variable is linear? [5 Marks] 4. Four factories producing soft-drinks are randomly chosen to check if the amount of caffeine in 1L bottles varies throughout the factories. For this the amount of caffeine (in a hundred mg) in three 1L bottles of soft-drinks of each of the selected factories is recorded in the following table: | Brand | Obs. 1 | Obs. 2 | Obs. 3 | |---|---|---|---| | $A$ | 5 | 4 | 4 | | $B$ | 4 | 4 | 6 | | $C$ | 5 | 5 | 5 | | $D$ | 7 | 6 | 4 | Based on the given information, answer the following questions: (a) Suppose we assume the linear model: $$y_{ij} = \mu + \alpha_i + \epsilon_{ij} \;\; ; i = 1, 2, 3, 4 \;\text{ and }\; j = 1, 2, 3$$ where, $\alpha_i \sim N(0, \sigma^2_\mu)$ and $\epsilon \sim N(0, \sigma^2)$ Identify whether the given model is the fixed effect model or the random effect model. Give reason. [2 Marks] (b) Compute the treatment means for each of the given treatment, i.e. $\overline{Y}_{i.}$ and the overall mean of the given observations, i.e.$\overline{Y}_{..}$. [2 Marks] (c) Find the sum of squares due to treatment, i.e., $SS_{treatment}$ and sum of squares due to error, i.e. $SS_{error}$. [4 Marks] (d) Compute mean sum of squares due to treatment and error, i.e. $MS_{treatment}$ and $MS_{error}$. [2 Marks] (e) Find the estimate value of $\sigma^2_\mu$. [2 Marks] (f) Draw the ANOVA table for the above given model. [3 Marks] (g) An analyst wish to test if there is a variability in amount of caffeine across all the 4 factories. Write down the null and alternative hypothesis to be tested for it. [2 Marks] (h) Perform hypothesis testing for the above defined hypothesis and conclude your results. [4 Marks] (i) The analyst also wishes to test if the grand mean caffeine content in 1L soft-drinks bottles is 5 (in a hundred mg) or not. Perform hypothesis test for the same. [5 Marks]