The K-COS MethodReading edition

Exponential tilting and spectral packets

Reading tools
Reading libraryFind statementsInspect Lean
Switch work

Saved reading

Read side by side

Start reading

Resources & source

Original TeX with line links · Download TeX

The wording and mathematics follow the retained manuscript. This reading format does not add a proof review or extend Lean coverage.

Skip contents and start reading

6 Exponential tilting and spectral packets

The operator stage ends at a spectrum. The probability stage begins with a threshold and an accuracy requirement. Exponential tilting places the query in a better-conditioned region of the transformed law. Centered packets compress repeated transform evaluations on the grid that the query uses, without replacing the distribution by a moment-matched surrogate. Storage blocks partition a factor before eigendecomposition. Spectral packets group the coefficients after a spectrum is available. They act on different objects. The packet expansion approximates the transform on a specified complex grid and supplies a remainder bound on that grid.

The written packet bounds concern exact arithmetic. A directed packet implementation would also have to enclose its centers, moments, and transform evaluations. The positive interval backend in Chapter 9 instead evaluates the supplied spectrum directly. The two routes share the inversion analysis, but their arithmetic guarantees must not be conflated.

6.1 Quadratic-form transform and saddlepoint tilt

Let

\[ Q=\sum_{j=1}^{r}\lambda_j Z_j^2, \qquad \lambda_j>0,\quad r\ge1. \]
(6.1)

The variables \(Z_j\) are independent standard normal variables. The moment generating function exists for

\[ \Re s < \frac{1}{2\lambda_{\max}}, \qquad \lambda_{\max}=\max_j\lambda_j, \]

and its cumulant generating function is

\[ \kappa(s)=\log {\operatorname{\mathbb E}} e^{sQ} =-\frac12\sum_{j=1}^{r}\log(1-2s\lambda_j). \]
(6.2)

For complex \(s\), \(\kappa\) denotes the analytic logarithm normalized by \(\kappa(0)=0\). Each factor \(1-2s\lambda_j\) has positive real part on this domain, so its logarithm in the sum is principal. The sum need not equal the principal logarithm of the product, whose argument can wrap by \(2\pi\). For real \(\theta<1/(2\lambda_{\max})\),

\[ \kappa^{(m)}(\theta) =2^{m-1}(m-1)!\sum_{j=1}^{r} \frac{\lambda_j^m}{(1-2\theta\lambda_j)^m}, \qquad m\ge1. \]
(6.3)

At \(\theta=0\), this recovers the standard cumulant identity

\[ \operatorname{cum}_m(Q)=2^{m-1}(m-1)!\sum_j\lambda_j^m. \]

Theorem 6.1: Unique upper-tail saddlepoint

If \(q>{\operatorname{\mathbb E}} Q=\sum_j\lambda_j\), there exists a unique

\[ \theta_*=\theta(q)\in\left(0,\frac{1}{2\lambda_{\max}}\right) \]

satisfying

\[ \kappa'(\theta_*)=q. \]
(6.4)

Proof

By (6.3),

\[ \kappa'(\theta)=\sum_j\frac{\lambda_j}{1-2\theta\lambda_j} \]

is continuous and strictly increasing on the stated interval. It equals \({\operatorname{\mathbb E}} Q\) at \(\theta=0\) and diverges as \(\theta\uparrow1/(2\lambda_{\max})\). The intermediate value theorem and strict monotonicity give existence and uniqueness.

Define the exponentially tilted law by

\[ f_{\theta}(x)=e^{\theta x-\kappa(\theta)}f(x). \]
(6.5)

Its characteristic function is

\[ \phi_{\theta}(t) =\exp\{\kappa(\theta+{\mathrm{i}} t)-\kappa(\theta)\}, \]
(6.6)

and \({\operatorname{\mathbb E}}_{\theta}Q=\kappa'(\theta)\). Therefore the choice (6.4) moves the query \(q\) to the mean of the tilted law.

For any \(\theta>0\) in the transform domain,

\[ {\mathbb P}(Q\ge q) =e^{\kappa(\theta)-\theta q} {\operatorname{\mathbb E}}_{\theta}\!\left[e^{-\theta(Q-q)}\mathbf 1_{\{Q\ge q\}}\right]. \]
(6.7)

This classical exponential-tilting identity lets K-COS evaluate the upper tail without subtracting a cumulative distribution function (CDF) value close to one.

6.2 Centered spectral packets

Let a nonempty packet \(P\subset\{1,\ldots,r\}\) contain \(n_P\ge1\) eigenvalues. Define its center

\[ \mu_P=\frac{1}{n_P}\sum_{j\in P}\lambda_j, \qquad \delta_j=\lambda_j-\mu_P, \]

and centered moments

\[ M_{P,m}=\sum_{j\in P}\delta_j^m, \qquad m\ge0. \]
(6.8)

Thus \(M_{P,0}=n_P\) and \(M_{P,1}=0\).

Theorem 6.2: Centered packet expansion

Fix \(s\in{\mathbb C}\) with \(\Re s<1/(2\lambda_{\max})\), use the principal logarithm, and define

\[ \alpha_P(s)=\frac{2s}{1-2s\mu_P}, \qquad \rho_P(s)=|\alpha_P(s)|\max_{j\in P}|\delta_j|. \]
(6.9)

For a nonnegative integer expansion order \(p\), if \(\rho_P(s)<1\), then the packet contribution to (6.2) is

\[\begin{aligned} \kappa_P(s) &=-\frac{n_P}{2}\log(1-2s\mu_P) +\frac12\sum_{m=1}^{p} \frac{\alpha_P(s)^m}{m}M_{P,m} +R_{P,p}(s), \end{aligned}\]
(6.10)

where

\[ |R_{P,p}(s)| \le \frac{n_P}{2} \frac{\rho_P(s)^{p+1}}{(p+1)(1-\rho_P(s))}. \]
(6.11)

Proof

For \(j\in P\),

\[ 1-2s\lambda_j =(1-2s\mu_P)(1-\alpha_P(s)\delta_j). \]

The transform-domain condition gives positive real part for each \(1-2s\lambda_j\) and for \(1-2s\mu_P\). The disk condition gives positive real part for \(1-\alpha_P\delta_j\). The two factor arguments therefore sum inside \((-\pi,\pi)\), so their principal logarithms add without a branch ambiguity. Hence

\[ -\frac12\log(1-2s\lambda_j) =-\frac12\log(1-2s\mu_P) -\frac12\log(1-\alpha_P\delta_j). \]

When \(|\alpha_P\delta_j|<1\),

\[ -\log(1-z)=\sum_{m\ge1}\frac{z^m}{m}. \]

Summing over \(j\in P\) gives (6.10). The remainder satisfies

\[ \left|\sum_{m\ge p+1}\frac{z^m}{m}\right| \le \sum_{m\ge p+1}\frac{|z|^m}{p+1} =\frac{|z|^{p+1}}{(p+1)(1-|z|)}. \]

Using \(|z|\le\rho_P(s)\) and summing \(n_P\) terms yields (6.11).

Remark 6.3: What is compressed

A packet of \(n_P\) eigenvalues is replaced by its center and \(p\) centered moments. Large spectral spikes may be retained exactly. If the representation contains \(s\) exact eigenvalues and \(R\) packets of order \(p\), evaluation of the CGF on \(N\) frequencies costs \(O(N(s+R(p+1)))\) arithmetic operations after compilation, instead of \(O(Nr)\) direct eigenvalue-transform evaluations.

Remark 6.4: Query dependence

The relevant packet condition is not merely geometric closeness of eigenvalues. It is the complex-grid quantity \(\rho_P(\theta_*+{\mathrm{i}} u_k)\). Thus a partition suitable for one tail query or one COS grid need not be suitable for another.

6.3 The running example under an exponential tilt

For spectrum \((1,1,2,2)\), the cumulant generator is \(\kappa(s)=-\log(1-2s)-\log(1-4s)\) on \(\Re s<1/4\). At \(q=40\), the saddlepoint equation reduces to \(160\theta^2-112\theta+17=0\), with

\[ \frac{2}{1-2\theta}+\frac{4}{1-4\theta}=40, \qquad \theta_* = \frac{14-\sqrt{26}}{40}\approx0.2225245122. \]

The other root lies outside the transform domain. The tilted mean is \(40\), while the likelihood-ratio identity restores the original tail probability.

The running example before and after exponential tilting. The original mean is 6, while the reweighted mean is the query q=40. Shading identifies the tail under the tilted law. Both curves are point evaluations of explicit densities, not numerical enclosures.
Figure 6.1. The running example before and after exponential tilting. The original mean is \(6\), while the reweighted mean is the query \(q=40\). Shading identifies the tail under the tilted law. Both curves are point evaluations of explicit densities, not numerical enclosures.

View full-size figure (new tab)

The two copies of \(1\) form one exact packet, and the two copies of \(2\) form another. All centered deviations vanish, so the packet remainder is zero on every admissible grid. The numerical enclosure still has support, Fourier-mode, and arithmetic errors.

6.4 A packet with a nonzero remainder

To see the approximation itself, take a separate declared packet

\[ \{1.96,1.98,2.02,2.04\},\qquad \mu=2, \]

and evaluate its contribution at \(s=0.1+0.4\,\mathrm i\). The deviations are \(-0.04,-0.02,0.02,0.04\). In particular,

\[ M_1=M_3=0,\quad M_2=0.004,\quad M_4=0.00000544. \]

The factor \(\alpha=2s/(1-4s)\) gives \(\rho=0.04|\alpha|<1\), so Theorem 6.2 applies. Retaining successive even moment orders gives the values below. Both columns are rounded point evaluations. The theorem, not these rounded comparisons, is the reason the remainder is bounded.

OrderPoint-evaluated errorAnalytic bound
0\(2.3289\times10^{-4}\)\(3.9366\times10^{-2}\)
2\(3.6881\times10^{-8}\)\(4.8893\times10^{-6}\)
4\(8.7572\times10^{-12}\)\(1.0931\times10^{-9}\)
6\(2.419\times10^{-15}\)\(2.9091\times10^{-13}\)
8\(7.1896\times10^{-19}\)\(8.4306\times10^{-17}\)
10\(2.2307\times10^{-22}\)\(2.5701\times10^{-20}\)
Pointwise transform error and its geometric remainder for the declared packet (1.96,1.98,2.02,2.04) at s=0.1+0.4i. Increasing the retained moment order contracts both quantities. The shaded gap separates the observed discrepancy from the analytic bound.
Figure 6.2. Pointwise transform error and its geometric remainder for the declared packet \((1.96,1.98,2.02,2.04)\) at \(s=0.1+0.4i\). Increasing the retained moment order contracts both quantities. The shaded gap separates the observed discrepancy from the analytic bound.

View full-size figure (new tab)

Source and conversion record

Source SHA-256: 03201a5d6654f8b10c809d924589f36529959dbae6f68c6e992b5dd8a6350be3

Unsupported prose commands stop the build. The mathematical expression sequence is checked against the source, with manuscript macros expanded for display.

Conversion records

Notation in The K-COS Method

Look up a symbol without leaving this chapter. Select text before opening help to search for it.

Search this work’s notation.

    Symbols can have different meanings in different passages. Read each result in its own context.

    Open the full notation index