MC1: Recall that the coefficient estimate \(\hat{\beta}\) for the linear regression of \(Y\) onto \(X\) without an intercept (\(Y=\beta X\))is given by
\[\hat\beta=\left ( \sum_{i=1}^{n}x_i y_i \right )/\left ( \sum_{j=1}^{n}x_{j}^2 \right )\]Under what circumstance is the coefficient estimate for the regression of \(X\) onto \(Y\) the same as the coefficient estimate for the regression of \(Y\) onto \(X\)?
MC2: Using the knowledge of the question MC1, which of these statements is true based on the code given below.
set.seed(1)
x <- 1:100
y <- 2 * x + rnorm(100, sd = 0.1)
fit.Y <- lm(y ~ x + 0)
fit.X <- lm(x ~ y + 0)
x <- 1:100
y <- 100:1
fit.Y <- lm(y ~ x + 0)
fit.X <- lm(x ~ y + 0)