Quiz Space

Linear Statistical Models · Quiz 2 · 23 Nov 2025 · September 2025 term

Question 1: Cheat Sheet: For a linear model: \underset{\sim}{y} = X\u…

Question 1

+30 marksOne correct option

Cheat Sheet:

  1. For a linear model:

y∼=Xβ∼+ϵ∼\underset{\sim}{y} = X\underset{\sim}{\beta} + \underset{\sim}{\epsilon}

where, ϵi\epsilon_i's are uncorrelated with mean 0 and variance σ2\sigma^2.

  • Residual sum of square; RSS =∣∣y∼−Xβ^∼∣∣2= ||\underset{\sim}{y} - X\underset{\sim}{\hat{\beta}}||^2.
  • σ2^=RSSn−2\hat{\sigma^2} = \dfrac{RSS}{n-2}.
  • Total sum of square; TSS =∣∣y∼−y‾∼∣∣2= ||\underset{\sim}{y} - \underset{\sim}{\overline{y}}||^2.
  • Coefficient of Determination; R2=1−RSSTSSR^2 = 1 - \dfrac{RSS}{TSS}.
  1. In hypothesis testing, if p-value is less than the significance level α\alpha, i.e. (p-value <α< \alpha), then there is evidence to reject the null hypothesis.
  1. Consider a simple linear model (Y∼,Xβ∼,σ2I)(\underset{\sim}{Y}, X\underset{\sim}{\beta}, \sigma^2 I) given by

yi=β0+β1xi+ϵi;    1≤i≤n.y_i = \beta_0 + \beta_1 x_i + \epsilon_i; \;\; 1 \leq i \leq n.

where, ϵi∼i.i.d.N(0,σ2)\epsilon_i \overset{\text{i.i.d.}}{\sim} N(0, \sigma^2).

The least square estimates of β0\beta_0 and β1\beta_1 are given as

β1^=∑i=1n(xi−x‾)yi∑i=1n(xi−x‾)2andβ0^=y‾−β1^x‾,respectively.\hat{\beta_1} = \frac{\sum_{i=1}^{n}(x_i - \overline{x})y_i}{\sum_{i=1}^{n}(x_i - \overline{x})^2} \quad \text{and} \quad \hat{\beta_0} = \overline{y} - \hat{\beta_1}\overline{x}, \quad \text{respectively.}

Prove that β1^\hat{\beta_1} and β0^\hat{\beta_0} are unbiased estimates of β1\beta_1 and β0\beta_0 respectively. [5 Marks]

  1. Consider a linear model as

yi=β0+ϵi;1≤i≤ny_i = \beta_0 + \epsilon_i \quad ; \quad 1 \leq i \leq n

where, ϵi∼i.i.d.N(0,σ2)\epsilon_i \overset{\text{i.i.d.}}{\sim} N(0, \sigma^2).

Let β^01=k(2y1)+y24+ky3\hat{\beta}_{01} = k(2y_1) + \dfrac{y_2}{4} + ky_3 and β^02=y1+2y2+2y35\hat{\beta}_{02} = \dfrac{y_1 + 2y_2 + 2y_3}{5} be two linear estimators of β0\beta_0, where kk is a constant.

(i) Find the value of kk such that β^01\hat{\beta}_{01} is an unbiased estimator of β0\beta_0. [3 Marks]

(ii) Which among the two estimators, β^01\hat{\beta}_{01} and β^02\hat{\beta}_{02}, would you choose to use? Justify. [5 Marks]

  1. A university professor wants to understand how students' performance in a Data Science course (measured by a quiz marks ‘yy’) depend on their study habits. The Professor collects the data which contains the three variables : “Hours of self study per week”, “Hours spent watching recorded lectures” and “Quiz marks”. The target variable is “Quiz marks (out of 10)”, while the remaining two variables are predictors. Each variable has 5 observations.

Consider the following R code and output.

r
x1 = c(1,2,3,4,5)
x2 = c(1,3,2,4,5)
y = c(2,4,5,4,5)
model_1 = lm(y~x1)
summary(model_1)
model_2 = lm(y~x2)
summary(model_2)
model_3 = lm(y~x1+x2)
summary(model_3)
## Output-1
Call:
r
lm(formula = y ~ x1)
Residuals:
1 2 3 4 5
-0.8 0.6 1.0 -0.6 -0.2
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 2.2000 0.9381 2.345 0.101
x1 0.6000 0.2828 2.121 0.124
Residual standard error: 0.8944 on 3 degrees of freedom
Multiple R-squared: 0.6, Adjusted R-squared: 0.4667
F-statistic: 4.5 on 1 and 3 DF, p-value: 0.124
## Output-2
Call:
lm(formula = y ~ x2)
Residuals:
1 2 3 4 5
-1.000e+00 -4.996e-16 1.500e+00 -5.000e-01 0.000e+00
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 2.5000 1.1328 2.207 0.114
x2 0.5000 0.3416 1.464 0.239
Residual standard error: 1.08 on 3 degrees of freedom
Multiple R-squared: 0.4167, Adjusted R-squared: 0.2222
F-statistic: 2.143 on 1 and 3 DF, p-value: 0.2394
## Output 3
Call:
lm(formula = y ~ x1 + x2)
Residuals:
1 2 3 4 5
-0.8421 0.7895 0.7895 -0.5789 -0.1579
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 2.2632 1.1526 1.963 0.189
x1 0.7895 0.7807 1.011 0.418
x2 -0.2105 0.7807 -0.270 0.813
Residual standard error: 1.076 on 2 degrees of freedom
Multiple R-squared: 0.614, Adjusted R-squared: 0.2281
F-statistic: 1.591 on 2 and 2 DF, p-value: 0.386

Based on the given information, answer the following subquestions.

(i) Write the fitted linear regression model for all the different models. [3 Marks]

(ii) Write null and alternative hypotheses for the first model and check if we can reject the null hypothesis at 5% significance level, i.e., α=0.05\alpha = 0.05. Also, what can you conclude about the relationship between the variables Hours of self study per week and Quiz marks. [3 Marks]

(iii) Interpret R2R^2 for the first two models and explain which model will perform better. [2 Marks]

  1. Consider a linear model as

yi=β1xi+ϵi;1≤i≤ny_i = \beta_1 x_i + \epsilon_i \quad ; \quad 1 \leq i \leq n

where, ϵi∼i.i.d.N(0,σ2)\epsilon_i \overset{\text{i.i.d.}}{\sim} N(0, \sigma^2).

(i). Find the value of β1\beta_1 for which RSS (Residual Sum of Squares) will be minimum. Provide all the steps. [3 Marks]

(ii). Find the value of Var(β1^)Var(\hat{\beta_1}). [2 Marks ]

(iii). Suppose ϵi∼i.i.d.N(μ,σ2)\epsilon_i \overset{\text{i.i.d.}}{\sim} N(\mu, \sigma^2) for the model yi=β1xi+ϵi    ;    1≤i≤ny_i = \beta_1 x_i + \epsilon_i \;\; ; \;\; 1 \leq i \leq n. Find bias(β1^)(\hat{\beta_1}) [2 Marks]

  1. Define Linear Zero Estimators. [2 Marks]
  1. A

    I have written answers on the answer sheets

  2. B

    Not applicable

Show answer

Correct answer

  • A

    I have written answers on the answer sheets

Question 1 of 1 in the IIT Madras BS Linear Statistical Models (Linear Statistical Models) Quiz 2 paper sat on 23 Nov 2025, in the September 2025 term (IIT M IMPROVEMENT AN EXAM QIA2 23 Nov 2025). It carries 30 marks.

More questions from this paper