Show that for any events A and B, the probability that exactly one of them occur is Pr(A) + Pr(B) − 2 Pr(A ∩ B).
Solution: The probability that exactly one event occurs is $$ Pr ((A \cap B^c) \cup (A^c ∩ B)) = Pr(A ∩ B^c) + Pr(A^c ∩ B) \\ = (Pr(A) − Pr(A ∩ B)) + (Pr(B)− Pr(A ∩ B))\\ = Pr(A) + Pr(B) − 2 Pr(A ∩ B).$$
I am going through this question and I don't understand how $$P(A \cap B^c) = (Pr(A) − Pr(A ∩ B))$$ and $$P(A^c \cap B) = (Pr(B) − Pr(A ∩ B))$$
If someone could explain this to me, I would be very happy.
Note: I understand why this works with a venn diagram, but I can't derive its formula...
Even without measure theory:
If $A$ has occurred, the also, either $B$ has occurred or or $B$ has not occurred. The probablility that $A$ has occurred and $B$ has not occurred is by definition $P(A\cap B^c)$ and similarly the probablility that $A$ has occurred and $B$ has
is $P(A\cap B)$.
So $$ P(A) = P(A\cap B)+P(A\cap B^c) \\ P(A\cap B^c) = P(A) - P(A\cap B) $$