# Thread:

1. ## coin flip

Two players, Jim and Tom, each are going to flip 3 fair coins. What is the probability that they will get the same number of heads?

I am reviewing for an exam and cannot figure out how to get to this answer. The key says 5/16

2. $\frac{1}<br /> {{64}} + \frac{9}<br /> {{64}} + \frac{9}<br /> {{64}} + \frac{1}<br /> {{64}} = \frac{5}<br /> {{16}}$

3. P(both 3 heads) = $(\frac{1}{2})^3 \times (\frac{1}{2})^3$

P(both 2 heads) = $3(\frac{1}{2})^3 \times 3(\frac{1}{2})^3$

I used 3 because you can have HHT, HTH or THH

P(both 1 head) = $3(\frac{1}{2})^3 \times 3(\frac{1}{2})^3$

Same thing here, TTH, THT, HTT

P(both 0 head) = $(\frac{1}{2})^3 \times (\frac{1}{2})^3$

Then add all of them to give 5/16

4. Let $A$ be the event that they both flip the same number of heads.

Condition on the number of heads Jim flips.

$P(A) = P(A|0)P(0) + P(A|1)P(1) + P(A|2)P(2) + P(A|3)P(3)$

$= \binom{3}{0} (1/2)^{0} (1/2)^{3}*\binom{3}{0} (1/2)^{0} (1/2)^{3} + \binom{3}{1} (1/2)^{1} (1/2)^{2}*\binom{3}{1} (1/2)^{1} (1/2)^{2}$ $+ \binom{3}{2} (1/2)^{2} (1/2)^{1}*\binom{3}{2} (1/2)^{2} (1/2)^{1} + \binom{3}{3} (1/2)^{3} (1/2)^{0}*\binom{3}{3} (1/2)^{3} (1/2)^{0}$

$= \frac{1}{8}*\frac{1}{8} + \frac{3}{8}*\frac{3}{8} + \frac{3}{8}*\frac{3}{8} + \frac{1}{8}*\frac{1}{8} = \frac{5}{16}$
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 10, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9380388259887695, "perplexity_flag": "middle"}