# Nakafa Framework: LLM

URL: /en/subject/high-school/10/mathematics/probability/addition-rule
Source: https://raw.githubusercontent.com/nakafaai/nakafa.com/refs/heads/main/packages/contents/subject/high-school/10/mathematics/probability/addition-rule/en.mdx

Output docs content for large language models.

---

export const metadata = {
  title: "Addition Rule",
  description: "Learn probability addition rule for OR events. Master mutually exclusive vs non-mutually exclusive events with clear examples, formulas, and step-by-step solutions.",
  authors: [{ name: "Nabil Akbarazzima Fatih" }],
  date: "04/21/2025",
  subject: "Probability",
};

## What is the Addition Rule of Probability?

Imagine asking your classmates, "How did you get to school today?". Then you want to know, what's the probability if we randomly pick one student, that they came by **bike OR motorcycle**?

Well, the word **"OR"** is super important in the world of probability. The Addition Rule is how we calculate the combined probability of two (or more) events using the word "OR". It means we want to know the probability that event A happens, _or_ event B happens, _or_ even both happen (if that's possible).

There are two important situations when we talk about "OR":

1.  The events cannot happen at the same time (These are called **Mutually Exclusive** events).
2.  The events can happen at the same time (These are called **Not Mutually Exclusive** events).

Let's break them down!

## Mutually Exclusive Events

Mutually Exclusive events (or the fancy names _Disjoint_ events) mean two events that **cannot possibly happen at the same time** in a single trial.

If event A happens, then event B definitely doesn't happen, and vice versa.

**Simple Examples:**

1.  You flip a coin. The result is either "Heads" or "Tails". It's impossible to get both "Heads" and "Tails" at the same time on one coin, right?
2.  Zain rode a motorcycle to school today **OR** Zain rode a bike to school today. (Usually, a person uses only one mode of transport at a time, right? So these are mutually exclusive).
3.  Rolling two dice: The event "the sum is 7" **OR** the event "getting doubles (same number on both dice)".
    - Sum is 7: <InlineMath math="(1,6), (2,5), (3,4), (4,3), (5,2), (6,1)" />
    - Doubles: <InlineMath math="(1,1), (2,2), (3,3), (4,4), (5,5), (6,6)" />
    - Look! There are no pairs that are the same in both groups. So, these two events are mutually exclusive!

### Formula for Mutually Exclusive Events

If events A and B are mutually exclusive, calculating the probability of "A OR B" is super easy – just add their individual probabilities:

<BlockMath math="P(A \text{ or } B) = P(A) + P(B)" />

**Calculation Example:**

Using the two-dice roll from before:

- Probability of sum being 7 (<InlineMath math="P(S=7)" />) = There are 6 pairs out of 36 total = <InlineMath math="6/36" />
- Probability of getting doubles (<InlineMath math="P(\text{Doubles})" />) = There are 6 pairs out of 36 total = <InlineMath math="6/36" />

So, the probability of getting a sum of 7 OR doubles is:

<BlockMath math="P(S=7 \text{ or Doubles}) = P(S=7) + P(\text{Doubles}) = \frac{6}{36} + \frac{6}{36} = \frac{12}{36} = \frac{1}{3}" />

## Not Mutually Exclusive Events

Not Mutually Exclusive events mean two events that **CAN happen at the same time** in a single trial. There's a possibility that both events occur together.

**Simple Examples:**

1.  Drawing one card from a standard deck. The event "getting an Ace" **OR** the event "getting a Heart (<InlineMath math="\heartsuit" />)". Can these happen together? Sure! The Ace of Hearts (<InlineMath math="A\heartsuit" />).
2.  Rolling two dice: The event "the sum is 8" **OR** the event "getting doubles".
    - Sum is 8: <InlineMath math="(2,6), (3,5), (4,4), (5,3), (6,2)" />
    - Doubles: <InlineMath math="(1,1), (2,2), (3,3), (4,4), (5,5), (6,6)" />
    - Hey, look! There's an overlap, right? The pair <InlineMath math="(4,4)" />. Because there's an overlap, these two events are **not mutually exclusive**.

**Can we just add them up?**

If we just add <InlineMath math="P(A) + P(B)" /> for non-mutually exclusive events, we'll count something twice! That something is the part where A and B happen together (their intersection).

Like in the sum 8 OR doubles example:

- <InlineMath math="P(S=8)" /> = There are 5 pairs = <InlineMath math="5/36" />
- <InlineMath math="P(\text{Doubles})" /> = There are 6 pairs = <InlineMath math="6/36" />

If we just add them: <InlineMath math="5/36 + 6/36 = 11/36" />. The pair <InlineMath math="(4,4)" /> was counted in the "Sum is 8" group AND counted again in the "Doubles" group. **So it was counted twice**!

### Formula for Non-Mutually Exclusive Events

For events A and B that are not mutually exclusive, the way to calculate the probability of "A OR B" is:

<BlockMath math="P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B)" />

The <InlineMath math="P(A \text{ and } B)" /> part is the probability that events A and B happen **at the same time** (the intersection). We subtract this so we don't count it twice.

**Calculation Example:**

Let's continue the sum 8 OR doubles example:

- <InlineMath math="P(S=8) = 5/36" />
- <InlineMath math="P(\text{Doubles}) = 6/36" />
- The probability of the event "sum is 8 AND doubles" (<InlineMath math="P(S=8 \text{ and Doubles})" />) is just one outcome: the pair (4,4). So its probability is <InlineMath math="1/36" />.

Therefore, the probability of getting a sum of 8 OR doubles is:

<div className="flex flex-col gap-4">
  <BlockMath math="P(S=8 \text{ or Doubles}) = P(S=8) + P(\text{Doubles}) - P(S=8 \text{ and Doubles})" />
  <BlockMath math="= \frac{5}{36} + \frac{6}{36} - \frac{1}{36} = \frac{10}{36} = \frac{5}{18}" />
</div>

**Important Note About the Word "OR"!**

In mathematics, "A or B" means it could be A only, B only, or BOTH A and B (if possible). This is different from everyday "or" which sometimes means "pick one or the other". Remember, "or" in math is **inclusive**!

## When to Use Which Formula?

1.  **First, check:** Can events A and B happen at the same time?
2.  **If they CANNOT happen together:** Use the simple formula <InlineMath math="P(A \text{ or } B) = P(A) + P(B)" />.
3.  **If they CAN happen together:** Use the full formula <InlineMath math="P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B)" />.
