I am reffering to the formula given at 2:18 in following video
Can someone explain how he arrived from this:
The first formula is the average of values of $x_i$. The second formula should be the "average of averages", right? If $N$ is the sample size, how can second formula be true?