How I understand it:
Sum of squares is:
$$\newcommand{\ybar}{\bar y} (y_i - \ybar)^2$$
Variance is:
$$\frac{(y_i - \ybar)^2}{n}$$
When variance is from a sample
$$\frac{(y_i - \ybar)^2}{n -1}$$
Standard deviation is square root of the variance
$$\sqrt{\frac{(y_i - \ybar)^2}{n}}$$
Sample standard deviation is square root of the sample variance
$$\sqrt{\frac{(y_i - \ybar)^2}{n -1}}$$
Is this correct?
Now standard error is where I start to get a bit confused
$SE = \frac{s}{\sqrt{n}}$ where $s$ is the sample standard deviation which is $\sqrt{\frac{(y_i - \ybar)^2}{n -1}}$
So why is standard error the standard deviation divided by square root $n$?
Is $s$ as I have defined it?
My next question is for multiple regressions it talks about finding the variance (beta-hat). I don't even know what that is talking about as there are multiple parameters I am guessing that it is using beta-hat as a substitute for all parameters in the model?
I don't understand the following:
- It says that the estimate is the "variance of the unknown errors"
- multiplied by the identity matrix
It says that it is equal to $\frac{e'e}{n-p} = \frac{SE}{n-p}$
So I assume that this is some sort of derivation of the variance formula for multiple regression parameters.
Is the $p$ a replacement of the "1" in the other sample formula? What is $Se$ in the above case?
What is "variance of the unknown errors"?
When I check the SSE for my model by using the following R commands:
SSE <-sum(resid(model1)^2)
n <-length (resid(model1))
p <- length(coef(model1))
SSE/(n-p)
So this is saying that it is the sum of square error divided by $n-p$ , which is closest to $s^2$ or the variance but the formula is slightly different, so what exactly is going on here?