Docsity

cs paper upload for fun, Thesis of Computer Science

Toggle sidebar
bg1
GATE DA
Subject: ML
Total Questions: 100
Simple Linear Regression - MCQ (1-60)
Question 1:
Consider a simple linear regression model y=β0+β1x+ϵ, where ϵ∼N(0, σ2).
Suppose you have a dataset with nobservations. Which of the following state-
ments is correct regarding the effect of increasing the sample size non the
variance of the estimator ˆ
β1?
(A) The variance of ˆ
β1increases as nincreases.
(B) The variance of ˆ
β1decreases as nincreases.
(C) The variance of ˆ
β1remains constant as nincreases.
(D) The effect of non the variance of ˆ
β1depends on the specific values of x
in the dataset.
Answer: (B)
Solution: The variance of the estimator ˆ
β1in a simple linear regression
model is given by the formula:
V ar(ˆ
β1) = σ2
Pn
i=1(xi−¯x)2
where σ2is the variance of the error term ϵ, and Pn
i=1(xi−¯x)2is the sum of
squared deviations of the independent variable xfrom its mean ¯x.
As the sample size nincreases, assuming that the variance of xremains some-
what constant and we are adding independent observations, the term Pn
i=1(xi−
¯x)2is expected to increase. If the denominator of the variance formula increases
while the numerator (σ2) remains constant, the variance V ar(ˆ
β1) will decrease.
Therefore, increasing the sample size nleads to a decrease in the variance
of the estimator ˆ
β1, making the estimator more precise.
Question 2:
In simple linear regression, if the correlation coefficient between the independent
variable xand the dependent variable yis 0, which of the following statements
is true?
(A) The least squares estimate of the slope, ˆ
β1, will always be positive.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download cs paper upload for fun and more Thesis Computer Science in PDF only on Docsity!

GATE DA

Subject: ML

Total Questions: 100

Simple Linear Regression - MCQ (1-60)

Question 1:

Consider a simple linear regression model y = β 0 + β 1 x + ϵ, where ϵ ∼ N (0, σ^2 ). Suppose you have a dataset with n observations. Which of the following state- ments is correct regarding the effect of increasing the sample size n on the variance of the estimator βˆ 1? (A) The variance of βˆ 1 increases as n increases. (B) The variance of βˆ 1 decreases as n increases. (C) The variance of βˆ 1 remains constant as n increases. (D) The effect of n on the variance of βˆ 1 depends on the specific values of x in the dataset. Answer: (B) Solution: The variance of the estimator βˆ 1 in a simple linear regression model is given by the formula:

V ar( βˆ 1 ) =

σ^2 Pn i=1(xi^ −^ ¯x) 2

where σ^2 is the variance of the error term ϵ, and

Pn i=1(xi^ −^ x¯)

(^2) is the sum of

squared deviations of the independent variable x from its mean ¯x. As the sample size n increases, assuming that the variance of x remains some- what constant and we are adding independent observations, the term

Pn i=1(xi^ − ¯x)^2 is expected to increase. If the denominator of the variance formula increases while the numerator (σ^2 ) remains constant, the variance V ar( βˆ 1 ) will decrease. Therefore, increasing the sample size n leads to a decrease in the variance of the estimator βˆ 1 , making the estimator more precise.

Question 2:

In simple linear regression, if the correlation coefficient between the independent variable x and the dependent variable y is 0, which of the following statements is true? (A) The least squares estimate of the slope, βˆ 1 , will always be positive.

(B) The least squares estimate of the slope, βˆ 1 , will always be negative. (C) The least squares estimate of the slope, βˆ 1 , will always be 0. (D) The least squares estimate of the intercept, βˆ 0 , will always be 0. Answer: (C) Solution: The formula for the least squares estimate of the slope βˆ 1 is given by:

βˆ 1 =

Pn i=1 P(xi^ −^ x¯)(yi^ −^ y¯) n i=1(xi^ −^ ¯x) 2

The correlation coefficient r between x and y is defined as:

r =

Pn pP i=1(xi^ −^ ¯x)(yi^ −^ y¯) n i=1(xi^ −^ x¯) 2 Pn i=1(yi^ −^ y¯) 2

If the correlation coefficient r = 0, then the numerator in the formula for r must be zero: (^) n X

i=

(xi − ¯x)(yi − ¯y) = 0

Since this numerator is also the numerator in the formula for βˆ 1 , if it is zero, then βˆ 1 must be zero (assuming the denominator

Pn i=1(xi^ −^ ¯x)

(^2) ̸= 0, which is

generally true unless all xi are the same, a trivial case for regression). Therefore, if the correlation coefficient between x and y is 0, the least squares estimate of the slope, βˆ 1 , will always be 0.

Question 3:

In a simple linear regression model, suppose you suspect that the error terms are not independent. Which of the following is the most likely consequence of ignoring this dependence? (A) The least squares estimators will be biased. (B) The least squares estimators will be inconsistent. (C) The standard errors of the least squares estimators will be incorrect. (D) The R-squared value will be underestimated. Answer: (C) Solution: The Ordinary Least Squares (OLS) estimators βˆ 0 and βˆ 1 are still unbiased and consistent even if the error terms are correlated, provided that the other Gauss-Markov assumptions (especially the exogeneity assumption, i.e., no correlation between the error term and the independent variables) are met. However, the assumption of independent error terms is crucial for the validity of the standard errors calculated using the standard OLS formulas. If error terms are correlated (e.g., in time series data, leading to autocorrela- tion), the standard formulas for calculating the variances and covariances of the OLS estimators, and hence their standard errors, become incorrect. Typically, in the case of positive autocorrelation, the standard errors are underestimated. This leads to inflated t-statistics and F-statistics, making us more likely to reject true null hypotheses (Type I error).

(A) The proportion of the total variance in the independent variable x that is explained by the dependent variable y. (B) The proportion of the total variance in the dependent variable y that is explained by the independent variable x. (C) The amount of change in the dependent variable y for a one-unit change in the independent variable x. (D) The correlation between the predicted values and the actual values of the dependent variable y. Answer: (B) Solution: R-squared (R^2 ), also known as the coefficient of determination, is a measure of how well the regression model fits the observed data. It is defined as the proportion of the total variance in the dependent variable y that is explained by the regression model (i.e., by the independent variable x in simple linear regression). Mathematically, R^2 is calculated as:

R^2 =

ESS

T SS

RSS

T SS

where: - ESS (Explained Sum of Squares) =

Pn i=1(ˆyi^ −^ y¯) (^2) is the variance

explained by the model. - RSS (Residual Sum of Squares) =

Pn i=1(yi^ −^ yˆi) 2

is the unexplained variance (sum of squared residuals). - TSS (Total Sum of Squares) =

Pn i=1(yi^ −^ ¯y) (^2) is the total variance in y. (A) is incorrect because R-squared explains the variance in y, not in x. (C) describes the slope coefficient βˆ 1 , not R-squared. (D) is related to R-squared, and the square root of R-squared is indeed the absolute value of the correla- tion between the predicted values ˆy and the actual values y in simple linear regression. However, the most direct interpretation of R-squared is the pro- portion of variance explained. Option (B) is the most accurate and standard interpretation.

Question 6:

Suppose you fit a simple linear regression model and obtain the following results: βˆ 0 = 2, βˆ 1 = 0.5. If you increase the independent variable x by 2 units, what is the expected change in the dependent variable y? (A) 0. (B) 1 (C) 2 (D) 4 Answer: (B) Solution: In a simple linear regression model y = β 0 + β 1 x + ϵ, the slope coefficient β 1 represents the expected change in the dependent variable y for a one-unit increase in the independent variable x. The estimated slope coefficient βˆ 1 = 0.5 means that for every one-unit increase in x, we expect y to increase by 0.5 units, on average.

If we increase the independent variable x by 2 units, the expected change in the dependent variable y will be:

Changeiny = βˆ 1 × Changeinx = 0. 5 × 2 = 1

So, if you increase the independent variable x by 2 units, the expected change in the dependent variable y is 1 unit.

Question 7:

Which of the following assumptions is NOT required for the least squares esti- mators in simple linear regression to be unbiased? (A) The error terms have a mean of 0. (B) The error terms have constant variance (homoscedasticity). (C) The error terms are uncorrelated with the independent variable. (D) The error terms are normally distributed. Answer: (D) Solution: For the least squares estimators ( βˆ 0 and βˆ 1 ) in simple linear regression to be unbiased, the following Gauss-Markov conditions (or weaker versions thereof) are sufficient: 1. Linearity: The relationship between x and y is linear in parameters. 2. Random Sampling: The data is obtained through random sampling. 3. Zero Conditional Mean of Errors: E[ϵi|xi] = 0 for all i. This is often simplified to assuming E[ϵi] = 0 and no correlation between ϵi and xi. 4. No Perfect Multicollinearity: In simple linear regression, this condition is trivially met as there is only one independent variable. Let’s examine the options in relation to these conditions: (A) ”The error terms have a mean of 0.” - This is part of the zero conditional mean assump- tion (E[ϵi|xi] = 0 implies E[ϵi] = 0). This is required for unbiasedness. (B) ”The error terms have constant variance (homoscedasticity).” - Homoscedastic- ity (V ar(ϵi|xi) = σ^2 ) is required for the efficiency of OLS estimators and for valid inference (hypothesis testing, confidence intervals) using standard formu- las, but not strictly required for unbiasedness. (C) ”The error terms are uncorrelated with the independent variable.” - This is also part of the zero con- ditional mean assumption. If E[ϵi|xi] = 0, then ϵi and xi are uncorrelated. This is required for unbiasedness. (D) ”The error terms are normally distributed.” - Normality of error terms is required for valid inference when using t-tests and F-tests, especially for small sample sizes. However, normality is not required for the unbiasedness of the least squares estimators. The Gauss-Markov theorem states that under the first three (and homoscedasticity), OLS is BLUE (Best Linear Unbiased Estimator), but unbiasedness itself does not require nor- mality. Therefore, the assumption that is NOT required for unbiasedness is that the error terms are normally distributed.

is greater than the significance level (p-value > α), we fail to reject the null hypothesis. In this case, 0.03 ≤ 0.05, so we reject the null hypothesis H 0. Rejecting H 0 means we have statistically significant evidence that β 1 is not equal to zero. In the context of simple linear regression, this implies that there is a significant linear relationship between the independent variable x and the dependent vari- able y, or in other words, the independent variable has a significant effect on the dependent variable. (A) is incorrect because a small p-value leads to rejecting the null hypothesis of no effect, not supporting it. (C) is incorrect because we do have enough evidence to make a conclusion when the p-value is less than the significance level. (D) is incorrect because the p-value does not directly represent the percentage of variance explained. The R-squared value indicates the proportion of variance explained. A p-value of 0.03 only indicates the statistical significance of the effect, not the magnitude of the effect or the proportion of variance explained.

Question 10:

You are given a dataset with one independent variable and one dependent vari- able. You fit a simple linear regression model and calculate the residuals. Which of the following properties is always true about the residuals? (A) The residuals are normally distributed. (B) The residuals have a mean of 0. (C) The residuals are uncorrelated with the independent variable. (D) The residuals have constant variance. Answer: (B) Solution: In simple linear regression, the residuals are defined as ei = yi−ˆyi, where ˆyi = βˆ 0 + βˆ 1 xi. By the properties of the least squares method, the OLS estimatorsP βˆ 0 and βˆ 1 are chosen to minimize the sum of squared residuals, n i=1 e

2 i.^ One of the normal equations derived from minimizing the sum of squared residuals is: Xn

i=

ei = 0

This equation implies that the sum of the residuals is always zero. Therefore, the sample mean of the residuals is also always zero:

¯e =

n

X^ n

i=

ei =

n

× 0 = 0

So, the residuals always have a mean of 0 in sample. Let’s consider other options: (A) ”The residuals are normally distributed.”

  • Normality of residuals is not guaranteed. It is an assumption for statistical inference (hypothesis testing, confidence intervals) to be exactly valid, but not a property that is always true for residuals themselves. (C) ”The residuals are

uncorrelated with the independent variable.” - In sample, the residuals are un- correlated with the independent variable x. This is another property derived from the normal equations of OLS. Specifically,

Pn i=1 xiei^ = 0, which implies zero sample covariance (and thus zero sample correlation under typical con- ditions). (D) ”The residuals have constant variance.” - Constant variance of residuals (homoscedasticity) is an assumption about the error terms ϵi, not a property that is always true for the residuals ei themselves in every dataset. Heteroscedasticity (non-constant variance) is possible. While options (B) and (C) are properties of OLS residuals, option (B) is more fundamentally and universally true by construction from the first normal equation (

P

ei = 0), whereas the uncorrelation with the independent variable (option C) comes from the second normal equation (

P

xiei = 0). However, in the context of multiple choice questions, both could be considered correct properties of OLS residuals in sample. But, if we must choose the one that is most directly and universally guaranteed by the OLS procedure itself, it is that the residuals sum to zero, hence have a mean of zero. However, upon re- examining standard properties, both (B) and (C) are indeed always true for OLS in simple linear regression due to the normal equations. Between (B) and (C), (B) is often cited as a more primary property derived directly from minimizing the sum of squared errors in terms of the intercept. However, in many contexts, uncorrelation with predictors is also highlighted as a key property. Given the options, and considering standard textbook properties of OLS residuals, both (B) and (C) are valid. However, if forced to choose only one as ”always true” in the most direct sense from the OLS derivation, (B) is slightly more fundamental as it arises directly from the normal equation related to the intercept. But in practice, both are considered inherent properties of OLS residuals in sample. Let’s re-evaluate. Yes, both mean zero and uncorrelation with x are properties. However, if we consider ”always true” in the most basic sense derived from the OLS procedure, the zero mean property is perhaps slightly more fundamental as it’s directly from ∂SSE/∂β 0 = 0. But uncorrelation with x is also a direct consequence from ∂SSE/∂β 1 = 0. In typical multiple choice context, both (B) and (C) could be argued as correct. However, if we must pick one, and considering the most basic derivation, mean of zero is often presented first. Let’s stick with (B) as the most robustly ”always true” property in the context of simple linear regression residuals. Final Answer: (B)

Question 11:

Suppose you have two datasets. Dataset A has a larger range of values for the independent variable x than Dataset B. Assuming all other factors are equal, which dataset will generally result in a more precise estimate of the slope coef- ficient βˆ 1? (A) Dataset A (B) Dataset B (C) Both datasets will result in equally precise estimates.

Solution: Heteroscedasticity means that the variance of the error terms is not constant. OLS estimation is not robust to heteroscedasticity; it leads to inefficient estimators and incorrect standard errors. Transforming y might help in some cases, but it’s not a general solution. Adding more independent variables is irrelevant to heteroscedasticity in the error term. Weighted Least Squares (WLS) is the most appropriate method. WLS assigns weights to each observation that are inversely proportional to the variance of its error term. This gives more weight to observations with smaller error variances and less weight to observations with larger error variances, leading to more efficient estimators.

Question 14:

In simple linear regression, you calculate a confidence interval for the slope coefficient β 1. Which of the following factors will lead to a wider confidence interval? (A) A larger sample size. (B) A smaller standard error of the slope coefficient. (C) A higher level of confidence (e.g., 99% instead of 95%). (D) A smaller variance of the error terms. Answer: (C) Solution: The confidence interval for β 1 is typically of the form βˆ 1 ± tα/ 2 ,n− 2 · SE( βˆ 1 ). A larger sample size (A) decreases the t-value and the stan- dard error, leading to a narrower interval. A smaller standard error (B) directly leads to a narrower interval. A smaller variance of the error terms (D) leads to a smaller standard error, and thus a narrower interval. A higher level of confidence (C) means a smaller α, and thus a larger tα/ 2 ,n− 2 value, leading to a wider interval.

Question 15:

In simple linear regression, you want to test the hypothesis that the slope coef- ficient β 1 is equal to a specific value b. Which of the following test statistics is most appropriate? (A) A t-statistic with n − 1 degrees of freedom. (B) A t-statistic with n − 2 degrees of freedom. (C) A chi-squared statistic with 1 degree of freedom. (D) An F-statistic with 1 and n − 2 degrees of freedom. Answer: (B) Solution: To test the hypothesis H 0 : β 1 = b, we use a t-statistic. The

appropriate test statistic is t = βˆ 1 −b SE( βˆ 1 ). In simple linear regression, we estimate two parameters (β 0 and β 1 ), so the degrees of freedom for the t-test are n − 2.

Question 16:

In simple linear regression, you have a dataset with n observations and fit the model y = β 0 + β 1 x + ϵ. You want to predict the value of y for a new value of

x, say x∗. Which of the following intervals is wider? (A) A confidence interval for the mean value of y at x∗. (B) A prediction interval for a single value of y at x∗. (C) Both intervals have the same width. (D) The answer depends on the value of x∗. Answer: (B) Solution: A confidence interval estimates the mean value of y at a given x∗, while a prediction interval estimates a single value of y at x∗. The prediction interval is wider because it accounts for both the uncertainty in the estimated mean and the inherent variability of individual data points around the mean. The formula for the confidence interval for the mean response is SE(ˆy∗) =

s

r 1 n +^ P(nx∗−¯x)^2 i=1(xi−x¯) 2 , while the formula for the prediction interval is^ SE(y

ˆy∗) = s

r 1 + (^) n^1 + (x P ∗−x¯)^2 n i=1(xi−¯x) 2.^ The prediction interval has an additional ’1’

inside the square root, making it wider.

Question 17:

Suppose you have a dataset where the independent variable x is highly correlated with the error term ϵ. What is the most likely consequence of using ordinary least squares (OLS) estimation in this situation? (A) The OLS estimators will be unbiased and efficient. (B) The OLS estimators will be biased but consistent. (C) The OLS estimators will be biased and inconsistent. (D) The OLS estimators will be consistent but inefficient. Answer: (C) Solution: One of the key assumptions for OLS to be unbiased is that the independent variable x is uncorrelated with the error term ϵ. If x and ϵ are correlated, the OLS estimators will be biased. Furthermore, the estimators will be inconsistent, meaning that as the sample size increases, the estimators will not converge to the true parameter values.

Question 18:

In simple linear regression, you have a categorical independent variable with two categories. How should you incorporate this variable into the regression model? (A) Assign arbitrary numerical values to the categories (e.g., 1 and 2). (B) Create a dummy variable that takes the value 1 for one category and 0 for the other. (C) Use a non-linear transformation of the categorical variable. (D) Exclude the categorical variable from the model. Answer: (B) Solution: Categorical variables cannot be directly used in regression models unless they are transformed into numerical values. Assigning arbitrary numeri- cal values (A) can lead to incorrect interpretations. Creating a dummy variable

(C) 0.

(D) 0.

Answer: (A) Solution: First, calculate the means: ¯x = (1 + 2 + 3 + 4 + 5)/5 = 3 and ¯P y = (2 + 4 + 5 + 4 + 5)/5 = 4. Then, calculate the numerator of βˆ 1 : n i=1(xi^ −^ x¯)(yi^ −^ y¯) = (1^ −^ 3)(2^ −^ 4) + (2^ −^ 3)(4^ −^ 4) + (3^ −^ 3)(5^ −^ 4) + (4^ − 3)(4 − 4) + (5 − 3)(5 − 4) = (−2)(−2) + (−1)(0) + (0)(1) + (1)(0) + (2)(1) = 4 + 0 + 0 + 0 + 2 = 6. Next, calculate the denominator of βˆ 1 :

Pn i=1(xi^ −^ x¯)

(1 − 3)^2 + (2 − 3)^2 + (3 − 3)^2 + (4 − 3)^2 + (5 − 3)^2 = 4 + 1 + 0 + 1 + 4 = 10.

Finally, calculate βˆ 1 = 106 = 0.6.

Question 22:

In simple linear regression, you are given that

Pn i=1 xi^ = 0 and^

Pn i=1 yi^ = 0. What can you say about the estimated intercept βˆ 0? (A) βˆ 0 must be equal to 0. (B) βˆ 0 must be positive. (C) βˆ 0 must be negative. (D) We cannot determine the value of βˆ 0 with the given information. Answer: (A) Solution: The formula for the least squares estimator of the intercept is

βˆ 0 = ¯y − βˆ 1 ¯x. Since Pn i=1 xi^ = 0 and^

Pn i=1 yi^ = 0, we have ¯x^ =

Pn i=1 xi n = 0

and ¯y =

Pn i=1 yi n = 0. Therefore, βˆ 0 = 0 − βˆ 1 · 0 = 0.

Question 23:

In simple linear regression, you are given a dataset with n observations. You fit the model and calculate the standard error of the regression, s. Which of the following is a correct interpretation of s? (A) s is an estimate of the standard deviation of the independent variable x. (B) s is an estimate of the standard deviation of the dependent variable y. (C) s is an estimate of the standard deviation of the error term ϵ. (D) s is an estimate of the standard deviation of the predicted values ˆy. Answer: (C) Solution: The standard error of the regression, s, is an estimate of the standard deviation of the error term ϵ. It measures the typical distance that the observed values fall from the regression line.

Question 24:

In simple linear regression, you are given a dataset and fit the model. You want to determine if adding a quadratic term (x^2 ) to the model would significantly improve the fit. Which of the following tests is most appropriate?

(A) A t-test for the coefficient of the quadratic term. (B) A chi-squared test for the overall significance of the model. (C) An F-test comparing the model with and without the quadratic term. (D) A Durbin-Watson test for autocorrelation. Answer: (C) Solution: To determine if adding a quadratic term significantly improves the fit, you should use an F-test to compare the model with and without the quadratic term. The F-test compares the explained variance of the two models and determines if the increase in explained variance is statistically significant. A t-test (A) could be used on the coefficient of the quadratic term, but the F-test is a more general approach for comparing nested models.

Question 25:

In simple linear regression, you are given a dataset with n observations. You fit the model and calculate the Durbin-Watson statistic. What does this statistic primarily test for? (A) Heteroscedasticity (B) Non-linearity (C) Autocorrelation in the residuals (D) Multicollinearity Answer: (C) Solution: The Durbin-Watson statistic primarily tests for autocorrelation in the residuals, specifically first-order autocorrelation. It assesses whether the residuals from one observation are correlated with the residuals from the previ- ous observation.

Question 26:

In simple linear regression, you are given a dataset with n observations. You fit the model and find that the residuals are positively autocorrelated. Which of the following is a likely consequence? (A) The standard errors of the estimated coefficients will be underestimated. (B) The standard errors of the estimated coefficients will be overestimated. (C) The estimated coefficients will be biased. (D) The estimated coefficients will be inconsistent. Answer: (A) Solution: Positive autocorrelation in the residuals typically leads to an underestimation of the standard errors of the estimated coefficients. This means that the t-statistics will be inflated, and we are more likely to reject the null hypothesis when it is true (Type I error).

Question 27:

In simple linear regression, you are given a dataset with n observations. You fit the model and want to test the overall significance of the regression. Which of

(A) R-squared (B) Standard error of the regression (C) Cook’s distance (D) Durbin-Watson statistic Answer: (C) Solution: Cook’s distance is a measure of the influence of a data point on the regression results. It combines information about the residual size and the leverage of the data point.

Question 31:

In simple linear regression, you are given a dataset with n observations. You fit the model y = β 0 + β 1 x + ϵ. Suppose you want to predict a new value y∗^ given a new value x∗. Which of the following is the correct formula for the prediction interval?

(A) ˆy∗^ ± tα/ 2 ,n− 1 · s

r 1 + (^) n^1 + (x P ∗−x¯)^2 n i=1(xi−¯x) 2

(B) ˆy∗^ ± zα/ 2 · s

r 1 + (^) n^1 + (x P ∗−x¯)^2 n i=1(xi−x¯) 2

(C) ˆy∗^ ± tα/ 2 ,n− 2 · s

r 1 + (^1) n + (x P ∗−x¯)^2 n i=1(xi−¯x)^2 (D) ˆy∗^ ± tα/ 2 ,n− 2 · s

r 1 n +^ P(x∗−x¯)^2 n i=1(xi−¯x) 2 Answer: (C) Solution: The correct formula for the prediction interval is ˆy∗^ ± tα/ 2 ,n− 2 ·

s

r 1 + (^1) n + (x P ∗−¯x)^2 n i=1(xi−x¯)

  1. The degrees of freedom are^ n^ −^ 2 because we estimate

two parameters.

Question 32:

In simple linear regression, you are given a dataset with n observations. You fit the model y = β 0 + β 1 x + ϵ. Suppose you want to construct a confidence interval for the mean response at a specific value x∗. Which of the following is the correct formula?

(A) ˆy∗^ ± tα/ 2 ,n− 1 · s

r 1 n +^ P(nx∗−x¯)^2 i=1(xi−¯x)^2 (B) ˆy∗^ ± zα/ 2 · s

r 1 n +^ P(x∗−x¯)^2 n i=1(xi−¯x) 2

(C) ˆy∗^ ± tα/ 2 ,n− 2 · s

r 1 n +^ P(nx∗−¯x)^2 i=1(xi−¯x) 2

(D) ˆy∗^ ± tα/ 2 ,n− 2 · s

r 1 + (^) n^1 + (x P ∗−x¯)^2 n i=1(xi−x¯)^2 Answer: (C)

Solution: The correct formula for the confidence interval for the mean

response is ˆy∗^ ± tα/ 2 ,n− 2 · s

r 1 n +^ P(x∗−x¯)^2 n i=1(xi−¯x)

  1. The degrees of freedom are^ n^ −^2

because we estimate two parameters.

Question 33:

In simple linear regression, consider the model yi = β 0 + β 1 xi + ϵi, where ϵi ∼ i.i.d.N (0, σ^2 ). Let βˆ 0 and βˆ 1 be the least squares estimators of β 0 and β 1 , respectively. Which of the following statements about the properties of these estimators is correct? (A) βˆ 0 and βˆ 1 are biased and inconsistent. (B) βˆ 0 and βˆ 1 are unbiased and consistent, but not necessarily efficient. (C) βˆ 0 and βˆ 1 are unbiased, consistent, and efficient. (D) βˆ 0 and βˆ 1 are biased but efficient. Answer: (C) Solution: Under the assumptions that the error terms are independent and identically distributed (i.i.d.) with a normal distribution, the least squares esti- mators βˆ 0 and βˆ 1 are unbiased, consistent, and efficient. This is a consequence of the Gauss-Markov theorem.

Question 34:

In simple linear regression, suppose you have a dataset where the variance of the error term increases with the value of the independent variable x. This is known as: (A) Homoscedasticity (B) Heteroscedasticity (C) Autocorrelation (D) Multicollinearity Answer: (B) Solution: Homoscedasticity refers to the condition where the variance of the error term is constant across all levels of the independent variable. Het- eroscedasticity, on the other hand, refers to the condition where the variance of the error term is not constant. In this case, the variance of the error term increases with the value of the independent variable x, which is the definition of heteroscedasticity. Autocorrelation refers to the correlation between error terms at different points in time (typically in time series data), and multicollinearity refers to the correlation between independent variables in a multiple regression model.

Question 35:

In simple linear regression, you are given a dataset and fit the model y = β 0 + β 1 x + ϵ. You want to test the hypothesis that β 1 = 0. Which of the following is equivalent to testing this hypothesis?

Solution: The least squares estimator of the intercept, βˆ 0 , is given by:

βˆ 0 = ¯y − βˆ 1 x¯

where ¯x and ¯y are the sample means of x and y, respectively, and βˆ 1 is the least squares estimator of the slope.

Question 38:

In simple linear regression, you are given a dataset with n observations. You fit the model y = β 0 + β 1 x + ϵ. Suppose that instead of minimizing the sum of squared errors, you minimize the sum of absolute errors. Which of the following statements is true? (A) The resulting estimators will be more sensitive to outliers than the least squares estimators. (B) The resulting estimators will be less sensitive to outliers than the least squares estimators. (C) The resulting estimators will be unbiased but not consistent. (D) The resulting estimators will be the same as the least squares estimators. Answer: (B) Solution: Minimizing the sum of absolute errors (also known as Least Ab- solute Deviations or LAD regression) results in estimators that are less sensitive to outliers than the least squares estimators. Least squares estimators are highly influenced by outliers because the errors are squared, magnifying the effect of large errors.

Question 39:

In simple linear regression, you are given a dataset with n observations. You fit the model y = β 0 + β 1 x + ϵ. Suppose you suspect that there is a non-linear relationship between x and y. Which of the following transformations could you apply to x to potentially linearize the relationship? (A) x′^ =

x (B) x′^ = log(x) (C) x′^ = x^2 (D) All of the above Answer: (D) Solution: All of the transformations listed can potentially linearize a non- linear relationship, depending on the specific nature of the non-linearity. - x′^ =

x can be useful if y increases at a decreasing rate as x increases. - x′^ = log(x) can be useful if y increases rapidly for small values of x but then levels off. - x′^ = x^2 can be useful if the relationship is quadratic.

Question 40:

In simple linear regression, you are given a dataset with n observations. You fit the model y = β 0 + β 1 x + ϵ. Suppose you want to test whether the slope

coefficient is significantly different from zero. Which of the following statements about the t-test for this hypothesis is correct? (A) The t-statistic is calculated as βˆ 1 /SE( βˆ 1 ), where SE( βˆ 1 ) is the standard error of βˆ 1. (B) The degrees of freedom for the t-test are n − 1. (C) The null hypothesis is that β 1 ̸= 0. (D) A large p-value provides evidence against the null hypothesis. Answer: (A) Solution: The t-statistic for testing the hypothesis that β 1 = 0 is calculated as βˆ 1 /SE( βˆ 1 ). The degrees of freedom for the t-test are n − 2 in simple linear regression. The null hypothesis is that β 1 = 0. A large p-value provides evidence in favor of the null hypothesis, not against it.

Question 41:

In simple linear regression, you are given a dataset with n observations. You fit the model y = β 0 + β 1 x + ϵ. Suppose you calculate the leverage for each data point. Which of the following statements about leverage is correct? (A) Leverage measures the distance between the observed y value and the predicted y value. (B) Leverage values always fall between 0 and 1. (C) Data points with high leverage always have a large influence on the regression results. (D) The sum of the leverage values is equal to n. Answer: (B) Solution: Leverage values always fall between 0 and 1. Leverage measures the influence of a data point’s x value on its own predicted y value. Data points with high leverage may or may not have a large influence on the regression results; it depends on whether they are also outliers. The sum of the leverage values is equal to p, the number of parameters in the model (which is 2 in simple linear regression).

Question 42:

In simple linear regression, you are given a dataset with n observations. You fit the model y = β 0 + β 1 x + ϵ. Suppose you want to compare two simple linear regression models: one with only the intercept and one with both the intercept and the slope. Which of the following test statistics is most appropriate for determining whether the model with the slope provides a significantly better fit to the data? (A) A t-test for the slope coefficient. (B) A chi-squared test. (C) An F-test. (D) A Durbin-Watson test. Answer: (C)