I have read the other posts about standard error and the proof is neat and I am able to follow, however, since I am new to statistics, there's some gap in logic and concept in between the proof.
Here is the link that I closely follow on general method for deriving the standard error
Below is my attempt to reconstruct the proof, but I get very confused over the definition of random variable. In particular, given a population which consist of all the height of the people in California which follows a certain distribution with variance $\sigma^2$, then we can define a random variable $X$ such that $X$ takes on all the heights of the people of California. Denote each observation in $X$ to be $X_i, 1 \leq i \leq n$, is it true that each $X_i$ is also a random variable following the same variance? You will see why I am confused with the proof given below by me.
Since we are proving the derivation of standard error of the mean. Let the sample mean be a random variable called $\bar{X}$, we aim to find the variance of this $\bar{X}$. For any $\bar{X}$, it is merely equals to $\frac{1}{n}\sum_{i=1}^{n}X_i$ where $n$ is the size of the sample and $X_i, 1 \leq i \leq n$ is a single observation from the population. Here we can say that each $X_i$ is a random variable as well which is independent and following a population variance of $\sigma^2$. Since $$\bar{X} = \frac{1}{n}\sum_{i=1}^nX_i$$ it hence follows that
$ \begin{aligned} \text{Var}(\bar{X}) &= \text{Var}\left(\frac{1}{n}\sum_{i=1}^nX_i\right) \\ & =\left(\frac{1}{n}\right)^2\sum_{i=1}^{n}\text{Var}(X_i)\\ & = \left(\frac{1}{n}\right)^2(n\sigma^2)\\ &= \frac{\sigma^2}{n}\\ \end{aligned} $