uiz Space

January 2025 term · Linear Statistical Models · BSMA3012

Linear Statistical Models Quiz 2: 16 March 2025 (January 2025 term)

The IIT Madras BS Linear Statistical Models (Linear Statistical Models) Quiz 2 paper sat on 16 Mar 2025, in the January 2025 term: 2 questions for 35 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
2
Marks
35
Duration
120 min
MCQ
2

Updated

Official paper: IIT M IMPROVEMENT AN EXAM QIM2 16 Mar 2025 · No negative marking.

Question 1

+29 marksOne correct option
  1. Suppose (Y∼,Xβ∼,σ2In×n)(\underset{\sim}{Y}, X\underset{\sim}{\beta}, \sigma^2 I_{n \times n}) is a linear model and pTβ∼p^T\underset{\sim}{\beta} is a linear estimable function, where p∈Rmp \in \mathbb{R}^m. If there exists a l∈Rnl \in \mathbb{R}^n, such that lTY∼l^T\underset{\sim}{Y} is a linear zero estimator, then which of the following holds? Select all that apply. [2 Marks]

(a) l∈C(X)⊥l \in C(X)^\perp

(b) p∈columnspace(X)p \in \text{columnspace}(X)

(c) l∈Null(XT)l \in \text{Null}(X^T)

(d) l∈Null(X)l \in \text{Null}(X)

(e) p∈columnspace(XTX)p \in \text{columnspace}(X^T X)

  1. Show that p∼Tβ∼\underset{\sim}{p}^T\underset{\sim}{\beta} is estimable, (where, p∼Tβ∼=p1β1+p2β2+…+pmβm  ∀  p∈Rm\underset{\sim}{p}^T\underset{\sim}{\beta} = p_1\beta_1 + p_2\beta_2 + \ldots + p_m\beta_m \;\forall\; p \in \mathbb{R}^m) under the linear model (Y∼,Xβ∼,σ2I)(\underset{\sim}{Y}, X\underset{\sim}{\beta}, \sigma^2 I) if and only if pp is orthogonal to the Null space of XX. [4 Marks]

  2. 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∼N(0,σ2)\epsilon_i \sim N(0, \sigma^2).The ii-th fitted values that result from performing this model is

yi^=xiβ^,\hat{y_i} = x_i\hat{\beta},

where

β^=∑inxiyi∑inxi2\hat{\beta} = \frac{\sum_i^n x_i y_i}{\sum_i^n x_i^2}

If yi^=∑j=1najyj\hat{y_i} = \displaystyle\sum_{j=1}^{n} a_j y_j, then find aja_j? [3 marks]

  1. Consider the following data points:
xix_iyiy_i
12
23
35
44
56

We fit a linear regression model

yi=β0+β1xi+ϵi,i:1→5,y_i = \beta_0 + \beta_1 x_i + \epsilon_i, \qquad i : 1 \to 5,

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

(a) Find the least square estimates of β0\beta_0 and β1\beta_1. [4 marks]

(b) Calculate the value of RSS (Residual Sum of Squares) [3 Marks]

  1. Study the code and answer the following sub-questions:
r
X = runif(10000,min = 0, max = 20)
u = rnorm(10000, mean = 0, sd = 20)
y = -2 + 6*X + u
df1 = data.frame(X=X, Y=y)
l1 = lm(Y~X, data = df1)
l1
df2 = df[sample(nrow(df1),100),]
l2 = lm(Y~X, data = df2)
l2
## Output-1
Call:
lm(formula = Y ~ X, data = df1)
Coefficients:
(Intercept) X
-1.771 5.981
## Output-2
Call:
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]

  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∼N(0,σ2)\epsilon_i \sim N(0, \sigma^2).

Find the value of β1\beta_1 for which RSS (Residual Sum of Squares) will be minimum. Write all the steps properly. [4 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 2

+6 marksOne correct option
  1. A real estate analyst is studying the relationship between the size of a house (xx, in square feet) and its selling price ( yy, in thousands of dollars). The analyst collects data from nn houses in a city and wants to determine if there is a statistically significant relationship between the size of the house and its selling price.

The relationship between the variables is modeled as:

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

where:

  • yiy_i : Selling price of the ithi^{th} house (in thousands of dollars).
  • xix_i : Size of the ithi^{th} house (in square feet).
  • β0\beta_0 : The intercept, representing the average selling price of a house with size x=0x = 0.
  • β1\beta_1 : The slope, representing the change in selling price for every additional square foot of house size.
  • ϵi\epsilon_i: Random error terms, assumed to follow a normal distribution ϵi∼N(0,σ2)\epsilon_i \sim N(0, \sigma^2).

The following output has been obtained for a particular dataset :

text
Call:
lm(formula = y ~ x, data = house_data)
Residuals:
Min 1Q Median 3Q Max
-6.458 -4.247 -2.036 2.631 12.253
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 26.857367 7.262252 3.698 0.00606 **
x 0.183111 0.002945 62.172 4.98e-12 ***
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1
Residual standard error: 6.654 on 8 degrees of freedom
Multiple R-squared: 0.9979, Adjusted R-squared: 0.9977
F-statistic: 3865 on 1 and 8 DF, p-value: 4.98e-12

(a) Define the null and alternative hypotheses. [1 Mark]

(b) What are the estimates of β0\beta_0 and β1\beta_1. Interpret the meaning with respect to the given model. [2 Marks]

(c) Write the fitted linear regression model. [1 Mark]

(d) Based on the output obtained, justify if we can reject the null hypothesis. Also, what can you conclude about the relationship between xx (Size of house) and yy (Selling price)? [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