# Lec 2

### Math 431 - Introduction to Probability

#### September 8, 2023

Last time.

Probability Space. A probability space is a triple $$(\Omega, \mathcal{F}, P)$$.

* $$\Omega$$ is the sample space.(set of all possible outcomes)
* $$\mathcal{F}$$ set of events. (Subset of $$\Omega$$). ($$\emptyset, \Omega \in \mathcal{F}$$)
* $$P$$ is a probability measure. $$P: \mathcal{F} \rightarrow \[0,1]$$

$$A\_1, \dots, A\_n$$ disjoint -> $$P(A\_1 \cup \dots \cup A\_n) = P(A\_1) + \dots + P(A\_n)$$

$$P(\bigcup\_iA\_i) = \sum\_iP(A\_i)$$

#### Uniformly chose element froma finite set.

$$\Omega$$ is a finite set.

Each outcome is equally likely.

$$\Omega = {\omega\_1, \dots, \omega\_n}$$

$$P({\omega\_i}) = P({\omega\_2}) = \dots = P({\omega\_n}) = \frac{1}{n}$$

$$\sum\_iP({\omega\_i}) = P(\bigcup\_i^n{\omega\_i} =1$$

$$A\subset \Omega$$. $$P(A) = P({a\_1, \dots, a\_n}) = \sum\_i=1^nP({\omega\_i}) = \frac{|A|}{|\Omega|}$$.

Worksheet.

1- Possible outcomes: $${(a,b,c), 1 \leq a \leq 6, b , c \in {H,T}}$$

2- b. $${(a,b), 1\leq a, b \leq 6}$$

d. $$\Omega = {(a,b), 1\leq a \leq b \leq 6}$$ - different. (1,1) is 1/36 and (1,2) is 1/18 (because (2,1) (1,2) is same.)

### Sampling

We have a finite set $$X$$. Non empty set.

We take a sample of size $k$ from the set unfiromly at random.

Can take without replacement or with replacement.

Can also consider with order or without order.

With order: $$(a\_1, a\_2, \dots, a\_k)$$.- ordered sequence. without order: pick 3 dice and get a set with 3 dice (without order information). - $${{a\_1, a\_2, \dots, a\_k}}$$

**Sample from X with replacement k times.**

$$\Omega = {(a\_1, a\_2, \dots, a\_k), a\_i \in X} = X^k$$

$$|\Omega| = n^k$$ , $$n = |X|$$

**Sample from X without replacement k times with order**

$$1 \leq k \leq n$$

$$\Omega = {(a\_1, a\_2, \dots, a\_k), a\_i \in X, a\_i \neq a\_j \text{ if } i \neq j}$$

$$|\Omega| = \frac{n!}{(n-k)!}$$

**without replacement and without order**

size = $$k$$

$$\Omega = {{a\_1, a\_2, \dots, a\_k}, a\_i \in X, a\_i \neq a\_j \text{ if } i \neq j}$$

$$|\Omega| = \binom{n}{k} = \frac{n!}{k!(n-k)!}$$


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tianyi0216.gitbook.io/blog/course_notes/431-notes/lec-2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
