Given two independent, standard-normally distributed random variables $x,y\sim \mathcal{N}(0,1).$ I would like to do an univariate linear regression without intercept $Y = X \cdot \beta + \epsilon.$ R gives me as estimate $\beta = 0$
n <- 10000
x <- rnorm(n)
y <- rnorm(n)
plot(x,y)
fit <- lm(y ~ 0 + x)
summary(fit)
but I feel the problem is not well-defined and any $\beta \in \mathbb{R}$ appears to minimize the expected least square error if you consider a rotation of the coordinate system. Any thoughts on why $\hat{y} = 0$ minimizes the least squares criterion and not $\hat{y} = \hat{\beta} \cdot x, \hat{\beta} \in \mathbb{R}$?