additionsprincipen
Additionsprincipen, or the addition principle, is a basic rule in combinatorics and discrete mathematics that counts the size of a union of mutually exclusive options. If a task can be performed in a ways for option A and in b ways for option B, and the options cannot occur simultaneously, then there are a+b total ways to perform the task.
Formal statement: Let A and B be finite sets representing distinct outcome sets with A and B
Relation to other counting rules: The addition principle complements the multiplication principle. The multiplication principle handles
Examples: If a vending machine offers 3 types of coffee and 2 types of tea, there are
Probability variant: If events A and B are disjoint, P(A ∪ B) = P(A) + P(B). If they are
Limitations: The principle requires the options to be disjoint. When overlap exists, one must subtract the intersection