Notation

Each entry maps a symbol of Theory to the argument, attribute or function that holds it in the code. sample stands for telescopic.sample(), sampler for a telescopic.CoupledSampler, result for a telescopic.Result, and estimate for the telescopic.Estimate that result.estimate(h) returns. The section headings follow those of Theory.

Coupled chains

\(\pi\)

The target. log_prob computes \(\log\pi\) up to a constant, and grad its gradient \(\nabla\log\pi\), or log_prob_and_grad both in one call, all arguments of sample and sampler.

\(\pi_0\)

The initial distribution: the argument init, and result.initial.

\(P\), \(\bar P\)

The kernel and its coupling: the argument kernel, sampler.kernel and result.kernel. A kernel applies \(P\) in step() and \(\bar P\) in coupled_step(); the argument coupling of RandomWalk, Gibbs and MetropolisHastings chooses among their couplings.

\(\pi_t\)

The law of \(X_t\). No attribute holds it; result.tv_bound(t) bounds its distance to \(\pi\) (below).

\(d\)

The dimension: result.ndim and sampler.ndim.

\(L\)

The lag: the argument lag, and result.lag.

\(k\), \(m\)

The first and the last averaged times: the arguments k and m, and result.k and result.m.

\(X_t\), \(Y_{t-L}\)

The two chains of a pair. A result does not store them; the atoms of its signed measure are their states at the times that the estimator uses, and result.chains() returns \(X_t\) at the averaged times \(t \in S\), shaped (n_kept, len(S), d). telescopic.engine.run() with keep_paths=True returns the whole paths.

\(\tau\)

The meeting time: result.meeting_times, one per pair, inf for a censored pair. The meeting times of the lag-1 pilot pairs are sampler.pilot and result.pilot.

The telescoping sum and the time-averaged estimator

\(h\)

The test function, the argument h of estimate(), which maps points of shape (n, d) to values of shape (n,) or (n, p).

\(\Delta_t\), \(H_k\)

Not stored: each difference enters a replicate’s signed measure as two atoms, \(X_t\) with weight \(c_t\) and \(Y_{t-L}\) with weight \(-c_t\).

\(H^{(L)}_{k:m}\), \(H_S\)

One replicate’s estimate: estimate.replicates[r], which result.measure.per_replicate(h) also returns. \(\bar H\), their mean, is estimate.value.

\(\mathrm{MCMC}_{k:m}\)

The average of \(h\) over the averaged states of \(X\), which result.chains() returns, without the bias correction; with thin above 1, over the times of \(S\).

\(\mathrm{BC}_{k:m}\)

The bias correction: \(H_S\) minus the average of \(h\) over result.chains().

\(v_t\), \(c_t\)

The weight and the coefficient of \(\Delta_t\): correction_coefficients() returns \(c_t\), which is \(v_t/(m-k+1)\) when thin is 1.

\(s\), \(S\)

The argument thin, and result.thin; averaging_times() returns \(S\).

Signed measures

\(\hat\pi_r\)

The signed measures of the kept replicates that met: result.measure, a telescopic.SignedMeasure whose atoms, of shape (N, d), weights and replicate hold every atom, its weight and the position of its replicate. \(\hat\pi_r(h)\) for every \(r\) is result.measure.per_replicate(h).

Cost

\(C\)

The cost of each replicate, in kernel applications: result.costs.

Guarantees and estimates from many replicates

\(R\)

The number of replicates: the argument n_replicates of sample, the number requested; CoupledSampler.run(n) adds n replicates to those so far; and result.n_replicates, the number whose pairs met.

\(\alpha\)

One minus the confidence level: the argument level of result.estimate is \(1 - \alpha\), 0.95 by default. estimate.interval holds the interval \(\bar H \pm t_{R-1,\,1-\alpha/2}\,\hat\sigma/\sqrt R\). Not the \(\alpha\) of the tail index.

\(a_r\), \(\bar a\), \(\sqrt{\mathrm{diag}(S_a)/R}\)

estimate.replicates[r], estimate.value and estimate.standard_error.

\(\widehat{\mathrm{Cov}}_\pi(h)\), \(\widehat{\mathrm{Var}}\)

result.cov() and result.var() for \(h(x) = x\); result.std() returns \(\sqrt{\max(0, \widehat{\mathrm{Var}})}\).

\(\beta\)-quantile

result.quantile(q) with q \(= \beta\).

Keeping a subset

\(K\)

The argument keep, and result.keep; result.n_kept counts the kept replicates that met.

\(c_r\), \(f_r\), \(S_r\)

Each replicate’s center and moments: center and moments of telescopic.engine.Replicates, whose first \(d\) columns are \(f_r\) and the others the entries of \(S_r\).

Choosing k, m and L

\(R_0\)

The number of pairs in sampler.pilot, which holds every pilot pair run so far; the automatic settings complete it to their count, and sampler.meeting_times() adds more.

\(\beta\), \(\hat q_\beta\)

The argument quantile of telescopic.tuning.choose_k(), and the quantile that it takes of \(\tau - 1\).

Distance to stationarity

\(d_{TV}(\pi_t, \pi)\)

Its bound: result.tv_bound(t), or telescopic.diagnostics.tv_bound() from meeting times, each with its standard error; its value at \(k\) is result.diagnostics()["tv_bound_at_k"].

\(d_{W_1}(\pi_t, \pi)\)

Its bound: result.w1_bound(t), with its standard error.

Kernel parameters

These symbols appear in the kernels guide and in the docstrings of the kernels, not in Theory.

\(\Sigma\)

The argument cov of a kernel: the shape of the proposal, whose covariance is \(\lambda^2\Sigma\) for RandomWalk and \(\epsilon^2\Sigma\) for MALA, or the inverse mass matrix of HMC.

\(\lambda\)

The argument scale of RandomWalk.

\(\epsilon\)

The argument step_size of MALA and HMC.

\(j\)

The argument jitter of HMC, which varies the step from one trajectory to the next.

\(\gamma\), \(\sigma\)

The arguments meeting_weight and meeting_scale of HMC: the probability of its meeting step and the scale of that step.