Let $X_1, X_2, \ldots, X_n$ be a random sample from a population with $E(X_i) = \mu$ for all $i \in \{1,\ldots, n \}$.
Define
$ Y_i = \begin{cases} 1 & \mbox{ if } X_i < \mu \\ 0 & \mbox{ if } X_i > \mu \\ \end{cases} $
1) Determine the distribution of $Y = \sum_{i=1}^n Y_i$ (name and parameters)
Is there anyone who can give me a bit of guidance here. I think it's a binomial, but whatever $p = $ is unclear to me.
Hint:
The $Y_i$ are iid and Bernoulli distributed. The sum of $n$ such rv's is binomially distributed.