# Probability/Local Manual of Style
## Purpose of this book

The difficulty level of this book should be similar to that of first university-level probability course. In particular, measure theory and related advanced topic should not be included in this book. Instead, they should be included in the Probability Theory wikibook (for measure-theoretic probability), or Measure Theory wikibook (for measure theory itself).
Applications of probability can be included briefly, but are not the main focus of this wikibook.

## Some notations and abbreviations
### Notations

In some occasions, these notations may have different meanings compared with those stated in the following. The words explaining the meaning of the following notations in the actual content take precedence.
* CAPITAL letters (possibly with subscripts): sets or random variables;
* small letters (possibly with subscripts): variables or elements in sets;
* $A\cup B$: the union of $A$ and $B$;
* $A\cap B$: the intersection of $A$ and $B$;
* $A\setminus B$: the relative complement of $B$ in $A$
* $A\subseteq B$: $A$ is a subset of $B$;
* $A\subsetneq B$: $A$ is a proper subset of $B$;
* $S^{c}$: the (absolute) complement of $S$;
* $U$: a universal set;
* $|S|$: the cardinality of $S$;
* ${\mathcal {P}}(S)$: the power set of $S$;
* ${\binom {n}{r}}$: the binomial coefficient indexed by $n$ and $r$;
* $\Omega$: a sample space;
* ${\mathcal {F}}$: an event space;
* $\mathbb {P}$: the probability (function);
* $A\perp \!\!\!\perp B$: $A$ and $B$ are independent;
* $F$: a cumulative distribution function;
* $f$: a probability mass or probability density function;
* $\operatorname {supp} (X)$: the support of $X$;
* $\operatorname {Binom} (n,p)$: the binomial distribution with $n$ independent Bernoulli trials with success probability $p$;
* $\operatorname {Ber} (p)$: the Bernoulli distribution with one Bernoulli trial with success probability $p$;
* $\operatorname {Pois} (\lambda )$: the Poisson distribution with rate parameter $\lambda$;
* $\operatorname {Geo} (p)$: the geometric distribution with success probability $p$;
* $\operatorname {NB} (k,p)$: the negative binomial distribution (number of failures before $k$th successes) with success probability $p$;
* $\operatorname {HypGeo} (N,K,n)$: the hypergeometric distribution with population size $N$ containing $K$ objects of type 1, $N-K$ objects of another type, and $n$ objects drawn;
* $\operatorname {FD} (\mathbf {x} ,\mathbf {p} )$: the finite discrete distribution with vector $\mathbf {x}$ and probability vector $\mathbf {p}$;
* $\operatorname {D} {\mathcal {U}}\{x_{1},\dotsc ,x_{n}\}$: the discrete uniform distribution;
* ${\mathcal {U}}[a,b]$: the uniform distribution over the interval $[a,b]$;
* $\operatorname {Exp} (\lambda )$: the exponential distribution with rate parameter $\lambda$;
* $\operatorname {Gamma} (\alpha ,\lambda )$: the gamma distribution with shape parameter $\alpha$ and rate parameter $\lambda$;
* $\operatorname {Beta} (\alpha ,\beta )$: the beta distribution with shape parameters $\alpha$ and $\beta$;
* $\operatorname {Cauchy} (\theta )$: the Cauchy distribution with location parameter $\theta$ (with scale parameter 1);
* ${\mathcal {N}}(\mu ,\sigma ^{2})$: the normal distribution with mean $\mu$ and variance $\sigma ^{2}$;
* $\chi _{\nu }^{2}$: the chi-squared distribution with $\nu$ degrees of freedom;
* $t_{\nu }$: the Student's $t$ distribution with $\nu$ degrees of freedom;
* $F_{\nu _{1},\nu _{2}}$: the $F$-distribution with $\nu _{1}$ and $\nu _{2}$ degrees of freedom;
* $\operatorname {Multinom} (n,\mathbf {p} )$: the multinomial distribution with $n$ trials and probability vector $\mathbf {p}$.
* ${\mathcal {N}}_{k}({\boldsymbol {\mu }},{\boldsymbol {\Sigma }})$: the $k$-dimensional multivariate normal distribution with mean vector ${\boldsymbol {\mu }}$ and covariance matrix ${\boldsymbol {\Sigma }}$;
* $\mathbb {E} [X]$ (or $\mu _{X}$): the mean of $X$;
* $\operatorname {Var} (X)$ (or $\sigma _{X}^{2}$): the variance of $X$;
* $\sigma _{X}$: the standard deviation of $X$;
* $\operatorname {Cov} (X,Y)$: the covariance of $X$ and $Y$;
* $\rho (X,Y)$ (or $\rho _{XY}$) : the correlation coefficient of $X$ and $Y$;
* Bold CAPITAL letters (e.g. $\mathbf {X}$, and possibly with subscript): random vectors;
* Bold small letters (e.g. $\mathbf {x}$, and possibly with subscript): vectors;
* $\mathbf {x} ^{T}$: the transpose of $\mathbf {x}$;
* $\mathbf {x} \cdot \mathbf {y}$: the dot product of $\mathbf {x}$ and $\mathbf {y}$.

### Abbreviations

* no.: number;
* r.v.: random variable;
* cdf: cumulative distribution function;
* pmf: probability mass function;
* pdf: probability density function;
* s.d.: standard deviation;
* df: degrees of freedom;
   * It is usually denoted by $\nu$ (stands for 'nu', possibly with subscript).
* i.i.d: independent and identically distributed;
* mgf: moment generating function;
* CLT: Central Limit Theorem.

## Conventions

* Use title casing for subpage (called chapter) titles, and use sentence casing for section titles.
* Use LaTeX (instead of HTML) for all math-related variables, formulas, notations etc., to ensure consistency in appearance.
   * Use <math></math> for inline math;
   * Use <math display=block></math> for display math (i.e. formulas on its own line);
* Use quizzes (if possible) for exercises.
* Try to use mnemonic notations (if possible). E.g., $S$ for a set, $t$ for time, etc.

## Templates

* Use {{nav}} as navigation template. Put two {{nav}}'s for each subpage, one at top, one at bottom, and enclose each of them by <noinclude></noinclude>, so that they do not appear at the print version.
* Use {{colored em}} for emphasis.
* Use {{colored definition}}, {{colored proposition}}, {{colored theorem}}, {{colored remark}}, {{colored proof}}, {{colored example}}, {{colored exercise}}, {{colored corollary}} and {{colored lemma}} for writing definitions, propositions, etc. ('type declarations' for paragraphs).
* Put {{BookCat}} at the bottom of each subpage.
* ↑ usually the first few letters in alphabetical order , e.g. $A,B$ and $C$, or $S$ (mnemonic for set)
* ↑ usually the last few letters in alphabetical order), e.g. $X,Y$ and $Z$
* ↑ It is not $\exp(\lambda )$.
* ↑ For numbers, they can be just typed out.
* ↑ This makes the symbol bigger than that using <math display=inline></math>, and thus is clearer.
* ↑ However, conventional notations should take precedenece. E.g., we should use $\mu$, instead of $m$, for mean.