I don't understand my lecture notes. It states that standarded residuals is by definition $$R_i=\dfrac{y_i-\hat{y}_i}{\sqrt{\dfrac{1}{n-2}\sum_{i=1}^n (y_i-\hat{y}_i)^2 }}$$ I understand that I can compute $\hat{y}$ by the ordinary least-squares method. But as we have $i$ used as a subscript of $R$ and as an index of summation, I don't understand whether it defines real numbers $R_1,\ldots,R_n$ or what. I'm familiar with notation $f_n=\sum_{i=1}^n$ but $f_i=\sum_{i=1}^n$ is new for me.
So, can anyone explain how I should understand the definition? If I just plug $i=2$ to the equation I can see that $R_2$ looks like a reasonable notation but what is $\sum_{2=1}^n$?