Complete mathematical reference
What you will learn
- Look up any equation of the appendix by name, with the page that derives it.
- Find the critical values, identities and derivative rules that recur through the book.
- Use the combined review checklist for a derivation or a hand check.
Prerequisites: the appendix overview.
The objective function and its approximations
| Name | Formula | Page |
|---|---|---|
| Subject objective | \(J_i(\eta)=\sum_j\bigl[\log V_{ij}+(y_{ij}-Y_{ij})^2/V_{ij}\bigr]+\eta^{\mathsf T}\Omega^{-1}\eta\) | A.6 |
| Marginal objective | \(\mathrm{OFV}_i=\log\lvert\Omega\rvert+p\log2\pi-2\log\int e^{-J_i/2}d\eta\) | A.6 |
| Residual variance | \(V_{ij}=h_{ij}^{\mathsf T}\Sigma h_{ij}\), \(h=\partial Y/\partial\varepsilon\) | A.7 |
| Linearised objective (FO, FOCE, FOCE-I) | \(\log\lvert C_i\rvert+r_i^{\mathsf T}C_i^{-1}r_i\), \(C_i=G_i\Omega G_i^{\mathsf T}+R_i\), \(r_i=y_i-Y_i(\eta^\star)+G_i\eta^\star\) | A.8 |
| Laplace objective | \(J_i(\hat\eta_i)+\log\lvert\Omega\rvert+\log\lvert\tfrac12H_i\rvert\) | A.8 |
| Importance-sampling objective | \(\log\lvert\Omega\rvert+p\log2\pi-2\log\frac1M\sum_me^{-J_i(\eta_m)/2}/q(\eta_m)\) | A.11 |
| Effective sample size | \((\sum w)^2/\sum w^2\) | A.11 |
Identities
| Name | Statement | Page |
|---|---|---|
| Woodbury | \((R+G\Omega G^{\mathsf T})^{-1}=R^{-1}-R^{-1}G(\Omega^{-1}+G^{\mathsf T}R^{-1}G)^{-1}G^{\mathsf T}R^{-1}\) | A.2 |
| Matrix determinant lemma | \(\lvert R+G\Omega G^{\mathsf T}\rvert=\lvert R\rvert\lvert\Omega\rvert\lvert\Omega^{-1}+G^{\mathsf T}R^{-1}G\rvert\) | A.2 |
| Trace of a quadratic form | \(x^{\mathsf T}Ax=\operatorname{tr}(Axx^{\mathsf T})\) | A.2 |
| Log-determinant derivative | \(\partial\log\lvert A\rvert=\operatorname{tr}(A^{-1}\partial A)\) | A.3 |
| Inverse derivative | \(\partial A^{-1}=-A^{-1}(\partial A)A^{-1}\) | A.3 |
| Cholesky | \(S=LL^{\mathsf T}\), \(\log\lvert S\rvert=2\sum\log L_{kk}\), draw \(x=Lz\) | A.4 |
| Log-normal | median \(e^m\), mean \(e^{m+s^2/2}\), CV \(=\sqrt{e^{s^2}-1}\) | A.5 |
| Condition number | \(\kappa=\lambda_{\max}/\lambda_{\min}\); \(2\times2\) correlation: \((1+r)/(1-r)\) | A.4 |
Algorithms
| Name | Statement | Page |
|---|---|---|
| Bounded-parameter transform | \(x=\operatorname{logit}\bigl((\theta-l)/(u-l)\bigr)\); lower only: \(\log(\theta-l)\) | A.9 |
| BFGS update | \(B_{k+1}=(I-\rho sq^{\mathsf T})B_k(I-\rho qs^{\mathsf T})+\rho ss^{\mathsf T}\), \(\rho=1/q^{\mathsf T}s\) | A.9 |
| Dual-number arithmetic | \((a+b\epsilon)(c+d\epsilon)=ac+(ad+bc)\epsilon\) | A.9 |
| Prior-kernel acceptance | \(\min\{1,e^{-(J^y(\eta')-J^y(\eta))/2}\}\) | A.10 |
| SAEM statistics | \(S\leftarrow S+\gamma_k(\bar x-S)\), \(\gamma=1\) then \(1/k'\) | A.10 |
| OMEGA update | \(\Omega=S_2-cS_1^{\mathsf T}-S_1c^{\mathsf T}+cc^{\mathsf T}\) | A.10 |
| Proposal | multivariate \(t_4\) at \(\hat\eta_i\) with scale \((\tfrac12H_i)^{-1}\), antithetic | A.11 |
| SplitMix64 | \(x\leftarrow x+\texttt{0x9E3779B97F4A7C15}\) then two multiply–xor-shift rounds | A.14 |
| Box–Muller | \(z=\sqrt{-2\log u_1}\cos(2\pi u_2)\) | A.14 |
| Radical inverse | \(R_b(n)=\sum d_jb^{-(j+1)}\) | A.14 |
Inference
| Name | Statement | Page |
|---|---|---|
| Curvature and score | \(R=\tfrac12\nabla^2\mathrm{OFV}\), \(S=\sum\tfrac14\nabla\mathrm{OFV}_i\nabla\mathrm{OFV}_i^{\mathsf T}\) | A.12 |
| Covariance estimators | \(R^{-1}\), \(S^{-1}\), \(R^{-1}SR^{-1}\) (sandwich, default) | A.12 |
| Delta method | \(\operatorname{Var}(g)\approx\nabla g^{\mathsf T}\widehat{\operatorname{Cov}}\nabla g\) | A.12 |
| Wald, LR, score | \((\hat\beta-\beta_0)^2/\operatorname{Var}\); \(\Delta\mathrm{OFV}\); \(U^{\mathsf T}\mathcal I^{-1}U\) | A.12 |
| AIC, BIC variants, BICc | \(\mathrm{OFV}+2k\); \(+k\ln N_{\text{obs}}\); \(+k\ln N\); \(+k_R\ln N+(k-k_R)\ln N_{\text{obs}}\) | A.13 |
| Akaike-type weights | \(e^{-\Delta_m/2}/\sum e^{-\Delta/2}\) | A.13 |
| Wilson interval | \(\dfrac{\hat p+z^2/2n\pm z\sqrt{\hat p(1-\hat p)/n+z^2/4n^2}}{1+z^2/n}\) | A.5 |
Design, NCA and response
| Name | Statement | Page |
|---|---|---|
| Population information | \(F_{pq}=\partial\mu^{\mathsf T}_pV^{-1}\partial\mu_q+\tfrac12\operatorname{tr}(V^{-1}\partial_pVV^{-1}\partial_qV)\) | A.16 |
| Wald power | \(P(\chi'^2_1(\lambda)>\chi^2_{1,1-\alpha})\), \(\lambda=\beta^2/[F^{-1}]_{hh}\) | A.16 |
| Required sample size | \(N\lambda^\ast/\lambda\) | A.16 |
| SSE sample size | linear interpolation at the target power | A.16 |
| Linear and log trapezoid | \(\frac{C_1+C_2}2\Delta t\); \(\frac{(C_1-C_2)\Delta t}{\ln(C_1/C_2)}\) | A.15 |
| Terminal slope | weighted regression of \(\ln C\) on \(t\), \(\lambda_z=-b\), \(t_{1/2}=\ln2/\lambda_z\) | A.15 |
| \(\mathrm{AUC}_\infty\), CL/F, \(V_z\)/F | \(\mathrm{AUC}_{\text{last}}+C_{\text{last}}/\lambda_z\); \(D/\mathrm{AUC}_\infty\); \(D/(\lambda_z\mathrm{AUC}_\infty)\) | A.15 |
| Binary, Poisson, NB2, ordinal | log-likelihood terms | A.17 |
| Kaplan–Meier, Greenwood | \(\prod(1-d/n)\); \(\sum d/(n(n-d))\) | A.17 |
| Breslow partial likelihood | \(\sum[\eta_i-\ln\sum_{T_j\ge T_i}e^{\eta_j}]\) | A.17 |
Critical values
| 1 df | 2 df | 3 df | 4 df | 5 df | |
|---|---|---|---|---|---|
| \(\chi^2\) at 95 % | 3.841 | 5.991 | 7.815 | 9.488 | 11.070 |
| \(\chi^2\) at 99 % | 6.635 | 9.210 | 11.345 | 13.277 | 15.086 |
| \(z_{0.975}\) | \(z_{0.95}\) | \(t_{0.975}\), df 5 / 10 / 30 / 100 |
|---|---|---|
| 1.959964 | 1.644854 | 2.571 / 2.228 / 2.042 / 1.984 |
The appendix subject, in one table
| Quantity | Value | Page |
|---|---|---|
| model | 100 mg IV, \(V=20\), \(\mathrm{CL}=4\), \(\omega^2=0.09\), proportional \(\sigma^2=0.04\) | A.6 |
| data | 4.6, 2.9, 1.0 mg/L at 1, 4, 12 h | A.6 |
| conditional mode (FOCE-I) | \(-0.33425\) | A.9 |
| curvature \(H\) at the mode | 251.0 | A.9 |
| exact \(\mathrm{OFV}_i\) | \(-0.8150\) | A.6 |
| FO / FOCE / FOCE-I / Laplace | \(-1.283\) / \(-1.602\) / \(-1.087\) / \(-0.758\) | A.8 |
| importance sampling, \(M=3000\) | \(-0.8151\) | A.11 |
Combined review checklist
Before using a formula
- Is it the one the program uses (a rule of mathematics, or what the program computes)?
- Are its conditions met: positive definiteness, regularity, independence, a model that is not misspecified?
- Is it on the right scale: variance or SD, natural or transformed, \(-2\ell\) or \(\ell\)?
Before trusting a number
- Has it been checked by an identity, a limit, a finite difference, an independent calculation or a simulation?
- If it comes from simulation, is its Monte Carlo error known and small enough for the decision?
- If it is an approximation, is the size of the approximation error known for a case like this one?
Navigation
See the appendix overview, the first page and Appendix B.