Consider a sample of data S obtained by flipping a coin x, where 0 denotes the coin turned up heads, and 1 denotes that it turned up tails. S = {1, 1, 0, 1, 0} What is the sample mean for this data ? Will it be just $$(\sum_{i=1}^n x_i)/n \;where\; x \in S $$
What is the sample variance ? Will it be just $$(\sum_{i=1}^n x_i - mean)^2/n \;where\; x \in S $$
I am not sure about that. Please help Thanks