\((\Omega, \mathcal{F}, P)\):
\[P(A \mid B) = \frac{P(A \cap B)}{P(B)}, \quad P(B) > 0\]
\[P(A \mid B) = P(B \mid A) \cdot \frac{P(A)}{P(B)}\]
Here \(P(A)>0\) and \(P(B)>0\). For a finite or countable partition \((A_i)\) with \(P(A_i)>0\), \[P(A_j\mid B)=\frac{P(B\mid A_j)P(A_j)}{\sum_iP(B\mid A_i)P(A_i)},\qquad P(B)>0.\]
\(A, B\) are independent if \(P(A \cap B) = P(A)P(B)\). Pairwise independence is weaker than mutual independence, which requires the product rule for every finite subfamily.
\(X: \Omega \to \mathbb{R}\) is measurable. Distribution function: \[F_X(x) = P(X \leq x)\]
For an integrable random variable, \(\mathbb{E}|X|<\infty\), \[\mathbb{E}[X] = \int_\Omega X \, dP = \int_{\mathbb{R}} x \, dF_X(x)\]
For discrete \(X\): \(\mathbb{E}[X] = \sum_i x_i P(X = x_i)\). If the law is absolutely continuous with density \(f_X\), \(\mathbb{E}[X]=\int_{\mathbb{R}}xf_X(x)\,dx\). A continuous distribution function need not have a density. For \(X\geq0\), expectation is also defined with possible value \(+\infty\).
For \(X\in L^2(P)\), \[\mathrm{Var}(X) = \mathbb{E}[(X - \mathbb{E}[X])^2] = \mathbb{E}[X^2] - \mathbb{E}[X]^2\]
If \(X_1,X_2,\ldots\) are independent and identically distributed with \(\mathbb{E}|X_1|<\infty\) and \(\mu=\mathbb{E}X_1\), then the strong law gives \(\bar{X}_n\to\mu\) almost surely, hence also in probability: \[\bar{X}_n = \frac{1}{n}\sum_{i=1}^n X_i \xrightarrow{P} \mu \quad (n \to \infty)\]
If additionally \(0<\sigma^2=\operatorname{Var}(X_1)<\infty\), then \[\frac{\bar{X}_n - \mu}{\sigma/\sqrt{n}} \xrightarrow{d} \mathcal{N}(0,1)\]
For Bernoulli variables with success probability \(0<p<1\), \(\mu=p\) and \(\sigma^2=p(1-p)\), so the sample proportion has asymptotic standard error \(\sqrt{p(1-p)/n}\). The finite-variance CLT above does not apply to Cauchy variables.