Skip to main content

Appendix A — Mathematical reference

Use these tables to recall the formula after you understand its derivation. They are not a replacement for checking assumptions. Throughout, logarithms are natural, continuous-model parameters are expressed using variance rather than standard deviation unless clearly indicated, and gamma and exponential laws use rates, not scales.

A.1 Probability and expectation

Object Formula and conditions
Complement \(P(A^c)=1-P(A)\)
Union \(P(A\cup B)=P(A)+P(B)-P(A\cap B)\)
Conditional probability \(P(A\mid B)=P(A\cap B)/P(B)\) if \(P(B)>0\)
Total probability \(P(A)=\sum_jP(A\mid B_j)P(B_j)\) for a partition with positive weights
Bayes’ rule \(P(B_j\mid A)=P(A\mid B_j)P(B_j)/\sum_kP(A\mid B_k)P(B_k)\)
Expectation \(E[g(X)]=\sum_xg(x)p(x)\) or \(\int g(x)f(x)\,dx\)
Variance \(\operatorname{Var}(X)=E[X^2]-E[X]^2\)
Covariance \(\operatorname{Cov}(X,Y)=E[XY]-E[X]E[Y]\)
Total expectation \(E[X]=E[E[X\mid Y]]\)
Total variance \(\operatorname{Var}(X)=E[\operatorname{Var}(X\mid Y)]+\operatorname{Var}(E[X\mid Y])\)
Affine Gaussian model If \(X\sim N_d(\mu,\Sigma)\), then \(AX+b\) is Gaussian with mean \(A\mu+b\) and covariance \(A\Sigma A^\top\) (possibly singular)

Linearity of expectation does not require independence. For independent variables, covariances vanish; the converse is false in general.

A.2 Discrete distributions

Law and support PMF Mean Variance
Bernoulli\((p)\), \(x=0,1\) \(p^x(1-p)^{1-x}\) \(p\) \(p(1-p)\)
Binomial\((n,p)\), \(x=0,\ldots,n\) \(\binom nxp^x(1-p)^{n-x}\) \(np\) \(np(1-p)\)
Geometric\((p)\), \(x=1,2,\ldots\) \((1-p)^{x-1}p\) \(1/p\) \((1-p)/p^2\)
Poisson\((\lambda)\), \(x=0,1,\ldots\) \(e^{-\lambda}\lambda^x/x!\) \(\lambda\) \(\lambda\)
Hypergeometric\((N,K,n)\) \(\binom Kx\binom{N-K}{n-x}/\binom Nn\) \(nK/N\) \(np(1-p)(N-n)/(N-1)\)

For the hypergeometric variance, \(p=K/N\) and \(N>1\); its support is \(\max(0,n-(N-K))\le x\le\min(n,K)\). The geometric convention counts the trial of the first success, not just failures before success.

A.3 Continuous distributions

Law and support Density on support Mean Variance
Uniform\((a,b)\), \(a<x<b\) \(1/(b-a)\) \((a+b)/2\) \((b-a)^2/12\)
Exponential\((\lambda)\), \(x>0\) \(\lambda e^{-\lambda x}\) \(1/\lambda\) \(1/\lambda^2\)
Gamma\((a,\lambda)\), \(x>0\) \(\lambda^ax^{a-1}e^{-\lambda x}/\Gamma(a)\) \(a/\lambda\) \(a/\lambda^2\)
Beta\((a,b)\), \(0<x<1\) \(x^{a-1}(1-x)^{b-1}/B(a,b)\) \(a/(a+b)\) \(ab/[(a+b)^2(a+b+1)]\)
Normal\((\mu,v)\), \(x\in\mathbb R\) \((2\pi v)^{-1/2}e^{-(x-\mu)^2/(2v)}\) \(\mu\) \(v\)
Chi-square\((\nu)\), \(x>0\) Gamma\((\nu/2,1/2)\) density \(\nu\) \(2\nu\)

Outside each listed support the density is zero. The gamma and beta functions are

\[ \Gamma(a)=\int_0^\infty x^{a-1}e^{-x}\,dx,\quad B(a,b)=\frac{\Gamma(a)\Gamma(b)}{\Gamma(a+b)}. \]

Useful relationships: the normal CDF is \(\Phi(z)\) in standard coordinates; exponential is gamma with shape one; a sum of independent exponentials having a common rate is gamma; and a sum of \(\nu\) independent squared standard normals is chi-square with \(\nu\) degrees of freedom.

A.4 Moment generators and transformations

Distribution MGF
Bernoulli\((p)\) \(1-p+pe^t\)
Binomial\((n,p)\) \((1-p+pe^t)^n\)
Poisson\((\lambda)\) \(\exp(\lambda(e^t-1))\)
Exponential\((\lambda)\) \(\lambda/(\lambda-t)\), \(t<\lambda\)
Gamma\((a,\lambda)\) \((\lambda/(\lambda-t))^a\), \(t<\lambda\)
Normal\((\mu,v)\) \(\exp(\mu t+vt^2/2)\)

When the MGF is finite near zero, \(E[X^k]=M_X^{(k)}(0)\). For independent sums, multiply MGFs on the common domain. The characteristic function \(E[e^{itX}]\) always exists.

For a differentiable strictly monotone transformation \(Y=g(X)\) with inverse \(h\), use \(f_Y(y)=f_X(h(y))|h'(y)|\). If there are several regular inverse branches, add their contributions. For a one-to-one multivariate transformation, use the absolute determinant of the inverse Jacobian. Always derive the new support before integrating.

For iid samples of size \(n\):

\[ F_{\max}(x)=F(x)^n,\qquad F_{\min}(x)=1-(1-F(x))^n. \]

A.5 Limits and standard errors

Result Conditions and conclusion
Markov \(Y\ge0\): \(P(Y\ge a)\le E[Y]/a\) for \(a>0\)
Chebyshev finite variance: \(P(|X-\mu|\ge a)\le\sigma^2/a^2\)
WLLN iid finite variance: \(\bar X_n\xrightarrow P\mu\)
SLLN iid \(E|X|<\infty\): \(\bar X_n\to\mu\) almost surely
CLT iid finite positive variance: \(\sqrt n(\bar X_n-\mu)/\sigma\xrightarrow d N(0,1)\)
Delta method If \(\sqrt n(T_n-\theta)\xrightarrow d N(0,v)\) and \(g\) differentiable, transformed limit variance is \(g'(\theta)^2v\)

For iid observations, \(\operatorname{SE}(\bar X)=\sigma/\sqrt n\), estimated by \(S/\sqrt n\). For dependent observations the covariance terms do not vanish in general.

A.6 Estimation and inference

Procedure Formula and main assumptions
MSE \(\operatorname{Var}(\widehat\theta)+\operatorname{Bias}(\widehat\theta)^2\)
Log likelihood \(\ell(\theta)=\sum_i\log f_\theta(x_i)\) for independent observations
Regular MLE asymptotic SE \(1/\sqrt{nI(\widehat\theta)}\)
Normal mean, known \(\sigma\) \(\bar x\pm z_{1-\alpha/2}\sigma/\sqrt n\), exact normal-model interval
Normal mean, unknown \(\sigma\) \(\bar x\pm t_{n-1,1-\alpha/2}s/\sqrt n\), exact for iid normal data
Normal variance \([(n-1)s^2/q_{1-\alpha/2},(n-1)s^2/q_{\alpha/2}]\), chi-square quantiles with \(n-1\) df
Upper-tail z-test \(z=\sqrt n(\bar x-\mu_0)/\sigma\), \(p=1-\Phi(z)\)
Two-sided t-test \(t=\sqrt n(\bar x-\mu_0)/s\), \(p=2P(t_{n-1}\ge|t|)\)
Bonferroni Test each of \(m\) hypotheses at \(\alpha/m\) for familywise error at most \(\alpha\)

Check exact versus approximate reference distributions. A confidence level is repeated-sampling coverage, while a p-value is a null-tail probability. Neither is a posterior probability of a fixed parameter or hypothesis.

A.7 Bayesian and Markov models

Model Update or calculation
Bernoulli likelihood, Beta\((a,b)\) prior posterior Beta\((a+s,b+n-s)\)
Poisson likelihood, Gamma\((a,b)\) prior posterior Gamma\((a+\sum x_i,b+n)\) for unit exposures
Normal mean, normal prior, known variance \(v_n^{-1}=v_0^{-1}+n/\sigma^2\), \(m_n=v_n(m_0/v_0+n\bar x/\sigma^2)\)
Predictive distribution integrate \(f(x_{\rm new}\mid\theta,x)\) against the posterior
Finite Markov chain \(v_t=v_0P^t\) and \(\pi P=\pi\)
Detailed balance \(\pi_iP_{ij}=\pi_jP_{ji}\) implies stationarity
Expected hitting time \((I-Q)h=\mathbf1\) on non-target states if expected absorption time is finite

A final check. Ask whether the result is a probability, a density, an expectation, a random estimator, an observed estimate, or a conditional distribution. The same-looking number can represent different objects.