I am trying to practice calculating the probabilities of various events regarding a coin toss:
We throw a regular coin $50$ times and define the following events:
a - four heads in a row in the $4$ first tosses
b - four heads in a row in the last $4$ tosses
c - obtaining $20$ total heads out of the $50$ tosses
I am trying to calculate: $p(a \cup b)$ and $p(a^C \cap b \cap c)$.
So the basic probabilities are as following:
$$p(a)=p(b)=\frac{4!}{4!}\left(\frac{1}{2}\right)^4$$
$$p(c)=\frac{50!}{20!30!}\left(\frac{1}{2}\right)^{20}\left(\frac{1}{2}\right)^{30}$$
For $p(a \cup b)$: Since they are disjoint, we can omit the $p(a \cap b)$, and we get that $p(a \cup b) = p(a) + p(b)$.
For $p(a^C \cap b \cap c)$: $p((1-p(a) \times p(c) \times p(b))$.
Is this correct? Would really appreciate your input or corrections.
You're right with your probabilities.
$P(a\cap b)=(\frac{1}{2})^{8}=\frac{1}{256}$
This means by $$P(a\cup b)=P(a)+P(b)-P(a\cap b);$$ $$P(a\cup b)=\frac{31}{256}\approx0.121$$
$$P(a' \cap b \cap c)$$ This means your results must meet the following criteria:
A: The first four must contain 1 or more tails.
B: 16 of Tosses 5-46 inclusive (42 in all) must be heads
C: All four of 47-50 must be heads.
$$P(A)=\frac{15}{16}$$ $$P(B)=\binom{42}{16}\bigg(\frac{1}{2}\bigg)^{42}$$ $$P(C)=\frac{1}{16}$$ Overall probability is all three events together $$\rightarrow \frac{15}{2^{50}}\binom{42}{16}\approx0.00222$$