- Reading: Peter Cameron's Notes on Probability 1.1–1.4
- Definitions
- Probability space, sample space, probability measure, event, outcome

- examples of modeling experiments as sample spaces
- one die, sum of two dice, height of people

- basic properties of probability spaces
- probability of complement, probabilities ≤ 1

If \(A\) and \(B\) are sets, then

**\(A \cap B\)**(read "\(A\) intersect \(B\)") is the set of all elements that are both in \(A\) and in \(B\).**\(A \cup B\)**(read "\(A\) union \(B\)") is the set of all elements in either \(A\) or \(B\).**\(A \setminus B\)**(read "\(A\) minus \(B\)") is the set of elements in \(A\) that are not in \(B\).We say that \(A\) is a

**subset**of \(B\) (written \(A \subseteq B\)) if every element of \(A\) is also in \(B\). Note that \(\emptyset \subseteq A\) for any \(A\) (because everything in the empty set is also in \(A\)) and \(A \subseteq A\) (since every element of \(A\) is also in \(A\)).If \(A\) is a set, the

**power set**of \(A\) (written \(2^A\)) is the set of all subsets of \(A\). For example, \(2^{\{a,b\}} = \{\emptyset, \{a\}, \{b\}, \{a,b\}\}\).

A **probability space** is a set \(S\) (called the **sample space**) paired with a function \(Pr : 2^S → \mathbb{R}\), satisfying:

- for all \(E \subseteq S\), \(Pr(E) \geq 0\).
- \(Pr(S) = 1\).
- If \(E_1\) and \(E_2\) are disjoint, then \(Pr(E_1 \cup E_2) = Pr(E_1) + Pr(E_2)\).

\(Pr\) is called the **probability function** or **probability measure**.

The *elements* of \(S\) are called **outcomes**; the *subsets* of \(S\) are called **events**. Thus the probability measure assigns a (non-negative) real number to every event.

**Important:** The probability of \(E\) is **not** \(|E|/|S|\). This is true for *some* probability spaces, but not all. Assuming that \(Pr(E) = |E|/|S|\) will lead to incorrect answers for most problems.

To model the throw of a single six-sided die, we could choose the sample space \(S = \{1, 2, \dots, 6\}\). If we wanted to assume that all outcomes were equally likely, we could define \(Pr(E) = |E|/6\), but this is only *one* possible definition; we could certainly model a die with different likelihoods for different sides, which would give a different function.

There are many ways to model a throw of two dice. On possible sample space is

\[S_1 = \{1, 2, 3, \dots, 12\}\]

Another possible sample space is \(S_2 = N \times N\) where \(N = \{1,2,\dots,6\}\).

There are a few things that determine a good choice:

there should be enough outcomes to describe the experiments we are interested. For example, the first sample space wouldn't allow us to ask "what is the probability that both dice are even?")

it's nice to model the problem in a way that makes the probability function easy to write down. With \(S_1\), writing down the probabilities is non-trivial, whereas it is easier to write down the probability function for \(S_2\) if both dice are fair.

Another example: suppose we wanted to perform an experiment by selecting a student from the room uniformly at random and sampling their height. Possible sample spaces include:

- \(\mathbb{R}\)
- some subset of \(\mathbb{R}\), such as the positive reals, or the set of numbers having somebody in the room with that height
- the set of people in the room.

Again, these are all perfectly reasonable ways to model the experiment (they will of course have different probability functions). However, some of them make it easier to write down the probability function.

Everything else that we know about probability is derived from the definition. Here are some examples:

**Notation:** if there is a sample space that is clear from context, I will write \(\bar{E}\) (read "\(E\) complement") for \(S \setminus E\).

Claims about probability all assume that \(S\) and \(Pr\) form a probability space; I will not explicitly write this down.

**Claim:** \(Pr(E) + Pr(\bar{E}) = 1\) (alternatively, \(Pr(\bar{E}) = 1 - Pr(E)\)).

**Proof:** By above, \(E\) and \(\bar{E}\) are disjoint, so \[\begin{aligned}
Pr(E) + Pr(\bar{E})
&= Pr(E \cup \bar{E}) && \text{by rule 3} \\
&= Pr(S) && \text{since $E \cup \bar{E} = S$} \\
&= 1 && \text{by rule 2} \\
\end{aligned}\]

**Claim:** For all \(E\), \(Pr(E) \leq 1\).

**Proof:** For the sake of contradiction, suppose there were some \(E\) with \(Pr(E) > 1\). By rule 2, we know \(Pr(\bar{E}) \geq 0\). Adding these inequalities together, we see that \(Pr(E) + Pr(\bar{E}) > 1 + 0 = 1\). But by the previous claim, we know that \(Pr(E) + Pr(\bar{E}) = 1\); this is a contradiction.

Occasionally I assert properties of sets. For example, above we used the fact that if \(E \subseteq S\), then \(E \cup (S \setminus E) = S\).

On your homework, you may assert these kinds of properties without proof as long as:

- They are clearly stated.
- They are true
- They do not trivialize the problem

For example, if asked to prove that \(A \cap (B \cup C) = (A \cap B) \cup (A \cap C)\), it is not enough to say "this is obvious", but it is fine to say that this is obvious in the context of another proof.

To show you how such a proof would go, I gave the following example:

**Claim:** If \(E \subseteq S\) then \(E \cup (S \setminus E) = S\).

**Proof:** We must show that if \(x\) is in the left hand side, then it is in the right hand side, and vice-versa; this is what it means for two sets to be equal.

First, choose an arbitrary \(x \in E \cup (S \setminus E)\). By definition of \(\cup\), either \(x \in E\) or \(x \in S \setminus E\). In the former case, since \(E \subseteq S\), we see that \(x \in S\), while in the latter case, \(x \in S\) because \(S \setminus E\) is the set of elements of \(S\) that don't appear in \(E\). In either case, \(x \in S\), completing the proof in this direction.

For the other direction, assume \(x \in S\). Then either \(x \in E\) or \(x \notin E\). In the former case, \(x \in E \cup (S \setminus E)\) by definition of \(\cup\). In the latter case, by definition of \(\setminus\), we see that \(x \in S \setminus E\), so that \(x \in E \cup (S \setminus E)\), again by definition of \(\cup\). In either case, \(x\) is in \(E \cup (S \setminus E)\), completing the proof in this direction.

Here is another example:

**Claim:** \(E \cap (S \setminus E) = \emptyset\).

**Proof:** by contradiction. Suppose \(E \cap (S \setminus E) \neq \emptyset\). Then there exists some \(x \in E \cap (S \setminus E)\). By definition of \(\cap\), we see \(x \in E\) and \(x \in S \setminus E\). By definition of \(\setminus\), we see that \(x \notin E\), but this contradicts the fact that \(x \in E\).