Doing some practice problems from "Introduction to Probability" (Blitstein)
There are two coins, one with probability p1 of Heads and the other with probability p2 of Heads. One of the coins is randomly chosen (with equal probabilities for the two coins). It is then flipped n>=2 times. Let X be the number of times it lands Heads.
(a) Find the PMF of X.
C1 = Event that coin 1 is used (P(Heads) = p1)
C2 = Event that coin 2 is used (P(Heads) = p1)
P(X=x) = P(X=x|C1)*P(C1)+P(X=x|C2)*P(C2)
Question: Is the notation fine? You can write P(X=x|C1)? They're both events, so I'd think so?
$ = {{n}\choose{x}}p_1^x(1-p_1)^{x-n}\frac{1}{2} + {{n}\choose{x}}p_2^x(1-p_2)^{x-n}\frac{1}{2} $
Question: is the work correct?
(b) What is the distribution of X if p1 = p2?
You can add the two terms if the probabilities are the same:
$ = {{n}\choose{x}}p_1^x(1-p_1)^{x-n} $
Question: is the logic correct?
(c) Give an intuitive explanation of why X is not Binomial for p1 != p2 (its distribution is called a mixture of two Binomials). You can assume that n is large for your explanation, so that the frequentist interpretation of probability can be applied.
I am unsure about this one.
If part A is correct, I can rewrite as
$ = {n \choose x}(p_1^x(1-p_1)^(x-n)\frac{1}{2} + p_2^x(1-p_2)^(x-n)\frac{1}{2}) $
which only has 1 binomial term... so either part A is incorrect or I am not completely understanding binomial definition.