I recently came accross the definition of a sequence of real numbers being uniformly distributed modulo $1$. The definition is:
For every choice of $a,b$ with $0 \le a < b < 1$, we have:
$\frac{1}{n}\cdot \#\left\{j \in \{0,\ldots,n-1\} | \{x_j\} \in [a,b]\right\}$ converges to $b - a$ for $n\to \infty$.
{$x_j$} denotes the fractional part of $x_j$ and $\#$ is the number of elements of the set.
Now, it is stated that we can replace $[a,b]$ with $[a, b)$ and get the same answer. I'm a bit stuck on how to actually prove this, am I missing something obvious?
Thanks in advance.
Let $x_j \sim \mathcal{U}\left([0,1]\right)$ be uniformly distributed on $[0,1]$ and independent, then $$P( x_j \in [a,b]) = P(x_j \in [a,b)) = b-a$$ where $P(\cdot)$ denotes the probability
Now let $$Y = \#\{ j \in \{1,\ldots, n-1\} | x_j \in A\}$$ be the number of $x_j$ till $n-1$ which are in the set $A$.
Then $Y$ can be written as: $$Y = \sum_{k=1}^{n-1} 1_{\{x_j \in A\}}$$
Now you already have for $A = [a,b]$ that $$\frac{1}{n} Y = \frac{1}{n}\sum_{k=1}^{n-1} 1_{\{x_j \in A\}} \to (b-a)$$
and want to know if it also holds for $A = [a,b)$.
But this is pretty obvious by considering that $$1_{\{x_j \in [a,b]\}} = 1_{\{x_j \in [a,b)\}} + 1_{\{x_j = b\}}$$
But $$1_{\{x_j = b\}} = 0$$ $P$-almost surely because the $x_j$ are uniformly distributed.
And so we get: $$\#\{ j \in \{1,\ldots, n-1\} | x_j \in [a,b]\} = \#\{ j \in \{1,\ldots, n-1\} | x_j \in [a,b)\} \quad P-\text{almost surely}$$