The sample mean is a random variable
You poll 1000 voters and 52% say they back candidate A. Ask a different 1000 people and you might get 50.7% or 53.4%. The 52% you report is one draw from a distribution, and that distribution is called the sampling distribution of the estimate.
The setup: a population has mean and variance . You draw independently from it. The sample mean is . Since is a function of random variables, it is a random variable too, with its own mean and variance:
The first fact says is unbiased: averaged over many repeated samples, it lands on . The second says how tightly it clusters. The variance step uses independence to drop every covariance term. Remember that, because independence is the assumption that most often fails in real data. The LLN & Central Limit Theorem lesson adds the shape: for large , is close to normal.
For a poll, each is 1 if the voter says yes and 0 otherwise, a Bernoulli() variable with . With that is . The sample proportion is just for these 0/1 variables, so everything above applies to it directly.