Consider a student in a random sample of size m.
Independently of other students, the student has probability p
of being a statistics major. Then, the probability of k
students in the sample being statistics majors is (mk)pk(1−p)m−k.
Thus, Y∼Binom(m,p).