# Probability and Statistics — the "hardest to understand" subject with the most real-world applications

Probability isn't "guessing". Behind every statistic is a way of thinking — and understanding it helps you make better decisions, both in math and in life.

**What is probability — really?**  
Probability is a **measure of how certain** an event is to occur. Its value ranges from 0 (never happens) to 1 (definitely happens).

P(A)=\frac{\text{number of favorable outcomes}}{\text{total number of possible outcomes}}

**Example:** Tossing a fair coin, the probability of getting heads is:

P(heads)=\frac{1}{2}=0.5

* * *

## Three core rules

### 1. Addition rule — mutually exclusive events
If two events AAA and BBB cannot happen at the same time:

P(A∪B)=P(A)+P(B)

**Example:** Rolling a die, the probability of getting 1 or 6:

P(1 or 6)=\frac{1}{6}+\frac{1}{6}=\frac{1}{3}

### 2. Multiplication rule — independent events
If AAA and BBB do not affect each other:

P(A∩B)=P(A)×P(B)

**Example:** Tossing a coin twice, the probability of getting heads both times:

P=\frac{1}{2}×\frac{1}{2}=\frac{1}{4}

### 3. Complementary probability
P(A‾)=1−P(A)

**Application:** Instead of calculating the probability of a complex event directly, calculate the probability it does **not** happen and subtract from 1 — usually much simpler.

* * *

## Permutations, arrangements, and combinations

Before calculating probability, you need to count possible outcomes correctly.

| Type | Formula | Use when |
| --- | --- | --- |
| Permutation of nnn elements | Pn=n! | Arranging all, order matters |
| Arrangement of kkk from nnn | A_n^k=\frac{n!}{(n−k)!} | Selecting kkk, order matters |
| Combination of kkk from nnn | C_n^k=\frac{n!}{k!(n−k)!} | Selecting kkk, order doesn't matter |

**Quick example:** Selecting 3 students from a class of 30 for the student council (roles are interchangeable):

C_{30}^{3}=\frac{30!}{3! \cdot 27!}=4060 \text{ ways}

* * *

## Descriptive statistics — summarizing data
When working with a dataset, the three most important values are:

- **Mean** \bar{x}: sum divided by count — sensitive to extreme values
- **Median**: the middle value when sorted — more robust to outliers
- **Variance / Standard deviation**: measures how spread out the data is

σ^2 = \frac{1}{n}\sum_{i=1}^{n}(x_i - \bar{x})^2

**In practice:** When the news reports "average income", they usually use the arithmetic mean — which can be pulled up by a wealthy minority. The median reflects reality more accurately.

* * *

## Common probability thinking mistakes

### The Gambler's Fallacy
"I've flipped tails 5 times in a row — heads must be due next time!"

**Wrong.** Each flip is independent. Past results don't affect future ones when events are independent.

### Confusing conditional probability
P(A|B) — the probability of AAA occurring **given that** BBB has occurred — is completely different from P(A).

* * *

## Practice with MathPal
Probability and combinatorics are the areas where one logical misstep leads to a completely wrong answer. When you hit a tough problem:

1. Upload it to **MathPal** to see each step analyzed
2. Pay attention to whether the problem calls for a **combination or arrangement** — this is the key distinction
3. Re-solve it yourself without looking at the answer
