10

Suppose we have events $A$ and $B$. We want to write the probability that exactly one of the events $A,B$ occurs in terms of $P(A),P(B)$ and $P(A \cap B)$ only

My thought: Since I want only one occurring, $A$ or $B$, we must find $P(A \cup B)$ which equals $P(A) + P(B) - P(A \cap B)$.. However, on my answer sheet it says the answer is $P(A) + P(B) - 2P(A \cap B )$. Am I missing something?

  • Imagine the sample space. Suppose you flip two coins, $A$ is "at least one head" and $B$ is "at least one tail". – Ethan Bolker Apr 03 '18 at 00:21
  • @Jimmy: Just use **asterisks** for bold text, you don't need to abuse TeX math formatting for this. –  Apr 03 '18 at 11:41

3 Answers3

26

$P(A\cup B)$ includes those outcomes where both events $A$ and $B$ occur. We want to exclude this case, because if they both occur it is not exactly one occurring. This undesirable case is exactly $P(A\cap B)$, so we need to subtract it, as $$P(A\cup B)-P(A\cap B)$$

vadim123
  • 82,796
  • @Henry Yes, that's what Vadim means: $P(A\cup B)$ includes those outcomes where both events $A$ and $B$ occur (as well as those events where only one of $A$ or $B$ occurs). He just didn't mention the part in parentheses, since the OP already seemed to be aware of it. – LarsH Apr 03 '18 at 16:17
  • @LarsH - I had missed includes – Henry Apr 03 '18 at 17:45
8

As vadim123 mentions, $A\cup B$ includes the outcome where $A$ and $B$ happens so we must subtract these off. We have

$$\begin{align*} P(A\cap B^C)+P(A^C \cap B) &=P(A\cup B)-P(A\cap B)\\\\ &=\left(P(A)+P(B)-P(A \cap B)\right)-P(A\cap B)\\\\ &=P(A)+P(B)-2P(A \cap B) \end{align*}$$

Remy
  • 8,128
  • Is $\cdot^C$ really the conventional way of writing the complement of an event? That's a horrible convention, in particular when the events are named $A$, $B$ etc.. (Though by no means uniquely horrible; I'm looking at you, $B = QTZ^T$...) Why not write it $P(A\cap\not B)$ or $P(A\cap\neg B)$? – leftaroundabout Apr 03 '18 at 11:15
  • 3
    Well $\lnot B$ is sometimes used, but a distinct set operation is much preferred rather than overloading the logical operation. So various conventions use: $B^\mathrm c, B', \overline B, B^\complement$, and such to indicate complementation. @leftaroundabout – Graham Kemp Apr 03 '18 at 11:51
  • @Henry Your comment is correct and doesn't contradict anything in this answer. – Mark S. Apr 03 '18 at 17:36
  • @MarkS. - I had missed includes – Henry Apr 03 '18 at 17:45
  • @leftaroundabout For the complement I never found a widespread notation that I liked. For that specific case, though, I'd use $P(A \setminus B) + P(B \setminus A)$, which is standard. (However, the "intersection&complement" variant notation can be more readable in some contexts, I think.) – chi Apr 03 '18 at 18:42
  • @chi I personally used ${}\setminus A$ for a complement in my scribbles: the universal set is implied before the setminus, just as $0$ is implied before the minus in $-x$. – Joker_vD Apr 03 '18 at 19:12
4

What you are looking for is $$P(A\cup B)-P(A\cap B)=$$

$$ P(A)+P(B)-P(A\cap B)-P(A\cap B)=$$

$$P(A)+P(B)-2P(A\cap B)$$