I have a question about a random variable $S_n=X_1+X_2+...+X_n$ in the probability theory.
Assume that $X_k$ is a random variable on $\Omega$ for each $k$ and that each $X_k$ has the same distributions.
In probability theory, we study a random variable $S_n=X_1+X_2+...+X_n$. Since this sum is just a addition of a functions, $S_n$ must have the domain $\Omega$.
My question is the following: suppose we toss a coin $n$ times and let $X_k$ : $\Omega = \{H, T\} \to \mathbb{R}$ be random variables with $X_k(H)=1, X_k(T)=0$. Then $S_n=X_1+X_2+...+X_n=1+1+...+1=n$ and $S_n(T)=X_1(T)+X_2(T)+...+X_n(T)=0+0+...+0=0$. It does not mean anything that is useful! I know that $\frac{S_n}{n}$ must mean the average number of 'heads' in $n$ tosses of a coin. So I think the domain of $S_n$ should be the collection of n-tuples $\omega=(\omega_1, \omega_2, ..., \omega_n) \in \Omega$, where $ω_k$ is either $H$ or $T$ and $S_n(\omega)=X_1(\omega_1)+X_2(\omega_2)+...+X_n(\omega_n)$.
Can someone give me the right explanation about a domain of $S_n$?