So I'm asked to derive this formula and this is my attempt so far:
$P(A\cup B \cup C \cup D)=P((A\cup B)\cup (C\cup D))$
$=P(A\cup B) + P(C\cup D) - P\big((A\cup B) \cap (C\cup D)\big)$
$P(A\cup B) = P(A) + P(B) - P(AB)$
$P(C\cup D) = P(C) + P(D) - P(CD)$
$P\big((A\cup B) \cap (C\cup D)\big)$
$=P\big((AC\cup AD) \cup (BC \cup BD)\big)$
$=P(AC \cup AD) + P(BC \cup CD) - P\big(( AC \cup AD) \cap (BC \cup CD) \big)$
$P(AC \cup AD) = P(AC)+P(AD)-P(ACD)$
$P(BC\cup BD) = P(BC)+ P(BD) - P(BCD)$
$P\big(( AC \cup AD) \cap (BC \cup BD) \big)=$???
This is the part I am stuck on. Can someone please help me? and are my steps correct so far?
Let’s build the PIE scenario for this case with 4 I guess.
Start with a blank slate for which we want to find the union of all 4 circles.
and we will want to add each part once, which gives(i drew this one out of order oops)
$$+P(D)$$
$$+P(A)$$
$$+P(B)$$
$$+P(C)$$

So far, we have $$P(A)+P(B)+P(C)+P(D)$$ Blue is counted once, green twice, orange 3 times, and pink 4 times.
Now let’s subtract off the greens which give
$$-P(A\cap B)$$
$$-P(A\cap C)$$
$$-P(A\cap D)$$
$$-P(B\cap C)$$
$$-P(B\cap D)$$
$$-P(C\cap D)$$

$$P(A)+P(B)+P(C)+P(D)$$ $$-P(A\cap B)-P(A\cap C)-P(A\cap D)-P(B\cap C)-P(B\cap D)-P(C\cap D)$$
Light red is an extra subtracted region, solid red is subtracted twice. To fix this, we’ll add back a the triple intersection regions which give us
$$+P(A\cap B\cap C)$$
$$+P(A\cap B\cap D)$$
$$+P(A\cap C\cap D)$$
$$+P(B\cap C\cap D)$$

$$P(A)+P(B)+P(C)+P(D)$$ $$-P(A\cap B)-P(A\cap C)-P(A\cap D)-P(B\cap C)-P(B\cap D)-P(C\cap D)$$ $$+P(A\cap B\cap C)+P(A\cap B\cap D)+P(A\cap C\cap D)+P(B\cap C\cap D)$$
Lastly we subtract the over-added region to get
$$-P(A\cap B\cap C\cap D)$$
Which is what is desired. Hence, $$P(A\cup B\cup C\cup D)=$$ $$P(A)+P(B)+P(C)+P(D)$$ $$-P(A\cap B)-P(A\cap C)-P(A\cap D)-P(B\cap C)-P(B\cap D)-P(C\cap D)$$ $$+P(A\cap B\cap C)+P(A\cap B\cap D)+P(A\cap C\cap D)+P(B\cap C\cap D)$$ $$-P(A\cap B\cap C\cap D)$$
Edit: Sammy Black pointed out that
However as far as I can tell the general gist of the derivation is still the same, so it should be fine