<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Nisch's homepage</title><link>https://nischmainali.github.io/</link><description>Nischal's address on the web</description><language>en-US</language><lastBuildDate>Fri, 14 Aug 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://nischmainali.github.io/index.xml" rel="self" type="application/rss+xml"/><item><title>A solvable model of feature learning in a nonlinear network</title><link>https://nischmainali.github.io/blog/nonlinear-direction-learning/</link><guid isPermaLink="true">https://nischmainali.github.io/blog/nonlinear-direction-learning/</guid><pubDate>Fri, 14 Aug 2026 00:00:00 +0000</pubDate><description>A statistical mechanics account of how a Bayesian network changes its hidden weight distribution to learn one useful direction.</description><content:encoded><![CDATA[<p><span class="article-dropcap"><span class="article-dropcap-ornament" data-letter="M" aria-hidden="true"></span><span class="article-dropcap-letter">M</span></span>any theoretical accounts attribute much of the success of deep neural networks to feature learning, in which training changes the features represented by a network&rsquo;s hidden layers. A theory of deep learning needs to explain which features a nonlinear network learns and how its weights represent them. We do not yet have a general theory that answers these questions.</p>
<p>We study this question as part of <a href="https://www.lesswrong.com/posts/nbSJhbLERTZFeNxY7/introducing-piramid-physics-informed-research-for-ambitious" class="article-link article-link--external" data-article-link="external" rel="external">PIRAMID&rsquo;s Advancements in Learning Theory team</a>, which uses statistical physics to build foundations for mechanistic interpretability and AI safety. Our <a href="https://www.lesswrong.com/posts/T2REsZneix3bmAKtL/piramid-progress-and-plans" class="article-link article-link--external" data-article-link="external" rel="external">progress and plans</a> describe a theory agenda centred on hidden weight distributions and covariances that can record learned structure. The <a href="https://www.lesswrong.com/posts/rduzFkTKx5pGKWKcL/mean-field-sequence-an-introduction" class="article-link article-link--external" data-article-link="external" rel="external">mean field sequence</a> introduces this viewpoint by treating each neuron as one member of a population whose distribution must be self consistent. The model below gives a solvable example in which we can derive the hidden weight distribution and its covariance.</p>
<p>Theorists have made progress by simplifying the task or the network. Rubin and collaborators give one of the clearest solvable examples in an equilibrium Bayesian model. They study a nonlinear network with two trainable layers in a teacher and student setting. They use statistical mechanics to derive the posterior over its weights. In that posterior, a hidden layer that starts isotropic acquires populations of weights aligned with one useful direction.</p>
<p>In this model, explicit feature learning is a change in the weight posterior. At the transition, the posterior over one scalar overlap develops new wells at finite overlap, and the hidden weight covariance gains a rank one term along the teacher direction. Rubin and collaborators connect the representation change to a first order transition in generalization and to grokking. The network can transfer from an easy linear target component to a harder cubic component.</p>
<p>We explain the feature learning result and work through its derivation. We begin with a cavity reduction, which isolates one neuron against the residual left by the others. The neuron&rsquo;s <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>D</mi></mrow><annotation encoding="application/x-tex">D</annotation></semantics></math></span></span> dimensional posterior depends on one scalar overlap. We close the calculation with a self consistency equation that connects the learned weight distribution to the network&rsquo;s prediction residual. We use the cavity calculation here because it exposes the population description in a simple model. We want to carry the representation and self consistency equations beyond the cavity construction.</p>
<p>Noa Rubin, Inbar Seroussi, and Zohar Ringel use the model to study grokking as a first order feature learning transition <span class="article-citation" data-citation>(<a id="cite-rubin2024-1" href="#ref-rubin2024" role="doc-biblioref" data-citation-key="rubin2024">Rubin, Seroussi &amp; Ringel, 2024</a>)</span>. A later paper by Rubin and collaborators extends the same mechanism across several network scaling regimes <span class="article-citation" data-citation>(<a id="cite-rubin2025-2" href="#ref-rubin2025" role="doc-biblioref" data-citation-key="rubin2025">Rubin et al., 2025</a>)</span>. We follow the overlap transition from the first paper and use the adaptive kernel relation developed across both papers.</p>
<h2 id="one-direction"><a class="section-anchor" href="#one-direction" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>The target depends on one direction
</h2>
<p>Let the input be isotropic Gaussian,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="bold">x</mi><mo>∼</mo><mi mathvariant="normal">𝒩</mi><mo stretchy="false">(</mo><mn mathvariant="bold">0</mn><mo separator="true">,</mo><msub><mi mathvariant="bold">I</mi><mi>D</mi></msub><mo stretchy="false">)</mo><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">
\mathbf x\sim\mathcal N(\mathbf 0,\mathbf I_D),
</annotation></semantics></math></span></div>
</div><p>and let <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">e</mi><mo>∈</mo><msup><mi mathvariant="normal">ℝ</mi><mi>D</mi></msup></mrow><annotation encoding="application/x-tex">\mathbf e\in\RR^D</annotation></semantics></math></span></span> be an unknown unit vector. The teacher depends only on the scalar projection</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>z</mi><mo>=</mo><msup><mi mathvariant="bold">e</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold">x</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
z=\mathbf e^{\mathsf T}\mathbf x.
</annotation></semantics></math></span></div>
</div><p>Its output combines the first and third probabilists&rsquo; Hermite polynomials,</p>
<div class="math-equation" id="equation-teacher" data-equation="teacher" data-equation-number="1.1">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>y</mi><mo stretchy="false">(</mo><mi mathvariant="bold">x</mi><mo stretchy="false">)</mo><mo>=</mo><msub><mi>H</mi><mn>1</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo>+</mo><mi>ϵ</mi><msub><mi>H</mi><mn>3</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo>=</mo><mi>z</mi><mo>+</mo><mi>ϵ</mi><mo stretchy="false">(</mo><msup><mi>z</mi><mn>3</mn></msup><mo>−</mo><mn>3</mn><mi>z</mi><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">y(\mathbf x)=H_1(z)+\epsilon H_3(z)
=z+\epsilon(z^3-3z).</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-teacher" aria-label="Equation 1.1">
    <span class="equation-number-value" aria-hidden="true">(1.1)</span>
  </a>
</div>

<p>The two modes are orthogonal under the standard Gaussian measure, and both use the same <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">\mathbf e</annotation></semantics></math></span></span>. The coefficient <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ϵ</mi></mrow><annotation encoding="application/x-tex">\epsilon</annotation></semantics></math></span></span> may be small.</p>
<p>The student is a network with two layers and an odd nonlinearity,</p>
<div class="math-equation" id="equation-student" data-equation="student" data-equation-number="1.2">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi mathvariant="bold">x</mi><mo stretchy="false">)</mo><mo>=</mo><munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>N</mi></munderover><msub><mi>a</mi><mi>i</mi></msub><mtext> </mtext><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><msubsup><mi mathvariant="bold">w</mi><mi>i</mi><mi mathvariant="normal">𝖳</mi></msubsup><mi mathvariant="bold">x</mi><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">f(\mathbf x)=\sum_{i=1}^{N}a_i\,\operatorname{erf}(\mathbf w_i^{\mathsf T}\mathbf x).</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-student" aria-label="Equation 1.2">
    <span class="equation-number-value" aria-hidden="true">(1.2)</span>
  </a>
</div>

<p>Each hidden weight <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi mathvariant="bold">w</mi><mi>i</mi></msub></mrow><annotation encoding="application/x-tex">\mathbf w_i</annotation></semantics></math></span></span> can rotate. We measure its alignment with the teacher by the overlap</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>ρ</mi><mi>i</mi></msub><mo>=</mo><msubsup><mi mathvariant="bold">w</mi><mi>i</mi><mi mathvariant="normal">𝖳</mi></msubsup><mi mathvariant="bold">e</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\rho_i=\mathbf w_i^{\mathsf T}\mathbf e.
</annotation></semantics></math></span></div>
</div><p><a class="plate-ref" href="#plate-shared-direction" data-plate-ref="shared-direction" aria-label="Plate 1.1"><span class="plate-ref-kind">Plate</span> <span class="plate-ref-number">1.1</span></a> shows the task and the scalar order parameter.</p>
<figure class="scientific-plate scientific-plate--direction" id="plate-shared-direction" data-scientific-plate="direction" data-plate-number="1.1">
  <header class="scientific-plate-header">
    <span class="scientific-plate-number">Plate 1.1</span>
    <span class="scientific-plate-title">One direction carries both target modes</span>
  </header>
  <div class="scientific-plate-body"><div class="scientific-plate-panels scientific-plate-panels--three scientific-plate-panels--direction">
  <section class="scientific-plate-panel" aria-labelledby="shared-direction-projection-label">
    <p class="scientific-plate-panel-title" id="shared-direction-projection-label">one informative projection</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 220 176" role="img" aria-labelledby="shared-direction-projection-title shared-direction-projection-desc">
        <title id="shared-direction-projection-title">Gaussian inputs projected onto one teacher direction</title>
        <desc id="shared-direction-projection-desc">A cloud of input points surrounds the origin. A single diagonal axis marked e crosses the cloud, and faint perpendicular segments show several projections onto it.</desc>
        <path class="scientific-plate-axis" d="M25 148L193 28"></path>
        <path class="scientific-plate-axis scientific-plate-axis--quiet" d="M42 35L182 151"></path>
        <g class="scientific-plate-projections" aria-hidden="true">
          <path d="M51 76L78 96M84 45L105 62M123 126L142 99M158 78L143 66M87 132L112 114"></path>
        </g>
        <g class="scientific-plate-points" aria-hidden="true">
          <circle cx="51" cy="76" r="2.7"></circle><circle cx="84" cy="45" r="2.7"></circle>
          <circle cx="123" cy="126" r="2.7"></circle><circle cx="158" cy="78" r="2.7"></circle>
          <circle cx="87" cy="132" r="2.7"></circle><circle cx="145" cy="43" r="2.7"></circle>
          <circle cx="63" cy="113" r="2.7"></circle><circle cx="171" cy="117" r="2.7"></circle>
          <circle cx="110" cy="81" r="2.7"></circle><circle cx="116" cy="39" r="2.7"></circle>
          <circle cx="45" cy="48" r="2.7"></circle><circle cx="177" cy="55" r="2.7"></circle>
        </g>
        <path class="scientific-plate-event" d="M180 37L193 28L188 43"></path>
      </svg><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--right scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:91%;--plate-math-y:13%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">\mathbf e</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--ink scientific-plate-math--left scientific-plate-math--formula scientific-plate-math--anchor math-inline" style="--plate-math-x:8%;--plate-math-y:13%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>z</mi><mo>=</mo><msup><mi mathvariant="bold">e</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold">x</mi></mrow><annotation encoding="application/x-tex">z=\mathbf e^{\mathsf T}\mathbf x</annotation></semantics></math></span></span></div>
  </section>

  <section class="scientific-plate-panel" aria-labelledby="shared-direction-teacher-label">
    <p class="scientific-plate-panel-title" id="shared-direction-teacher-label">two orthogonal target modes</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 220 176" role="img" aria-labelledby="shared-direction-teacher-title shared-direction-teacher-desc">
        <title id="shared-direction-teacher-title">Linear and cubic Hermite modes of the teacher</title>
        <desc id="shared-direction-teacher-desc">A straight green line represents the first Hermite mode. A wine cubic curve represents the third Hermite mode. Both depend on the same scalar coordinate z.</desc>
        <g class="scientific-plate-grid" aria-hidden="true">
          <path d="M28 40V144M69 40V144M110 40V144M151 40V144M192 40V144"></path>
          <path d="M28 57H192M28 92H192M28 127H192"></path>
        </g>
        <path class="scientific-plate-axis" d="M28 92H192M110 35V149"></path>
        <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" d="M34 135L186 49"></path>
        <path class="scientific-plate-line scientific-plate-line--event" d="M34 45C55 99 73 127 92 112C100 105 105 96 110 92C115 88 120 79 128 72C147 57 165 85 186 139"></path>
      </svg><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:67%;--plate-math-y:20%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>H</mi><mn>1</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo>=</mo><mi>z</mi></mrow><annotation encoding="application/x-tex">H_1(z)=z</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:9%;--plate-math-y:18%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>H</mi><mn>3</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo>=</mo><msup><mi>z</mi><mn>3</mn></msup><mo>−</mo><mn>3</mn><mi>z</mi></mrow><annotation encoding="application/x-tex">H_3(z)=z^3-3z</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:92%;--plate-math-y:88%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>z</mi></mrow><annotation encoding="application/x-tex">z</annotation></semantics></math></span></span></div>
  </section>

  <section class="scientific-plate-panel" aria-labelledby="shared-direction-overlap-label">
    <p class="scientific-plate-panel-title" id="shared-direction-overlap-label">a neuron can rotate toward it</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 220 176" role="img" aria-labelledby="shared-direction-overlap-title shared-direction-overlap-desc">
        <title id="shared-direction-overlap-title">Hidden weights described by their overlap with the teacher</title>
        <desc id="shared-direction-overlap-desc">Quiet radial directions surround an origin. A highlighted hidden weight approaches the teacher axis. Their scalar alignment is rho.</desc>
        <circle class="scientific-plate-orbit" cx="110" cy="94" r="62"></circle>
        <g class="scientific-plate-weight-rays" aria-hidden="true">
          <path d="M110 94L55 71M110 94L73 45M110 94L118 35M110 94L157 51M110 94L172 89M110 94L155 135M110 94L100 153M110 94L60 129"></path>
        </g>
        <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" d="M67 138L165 44"></path>
        <path class="scientific-plate-line scientific-plate-line--event scientific-plate-line--strong" d="M110 94L154 57"></path>
        <path class="scientific-plate-angle" d="M132 94A22 22 0 0 0 126 78"></path>
        <circle class="scientific-plate-event-dot" cx="110" cy="94" r="3.2"></circle>
      </svg><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:78%;--plate-math-y:21%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">\mathbf e</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:73%;--plate-math-y:35%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">w</mi></mrow><annotation encoding="application/x-tex">\mathbf w</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--ink scientific-plate-math--center scientific-plate-math--formula scientific-plate-math--anchor math-inline" style="--plate-math-x:50%;--plate-math-y:91%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><msup><mi mathvariant="bold">w</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">\rho=\mathbf w^{\mathsf T}\mathbf e</annotation></semantics></math></span></span></div>
  </section>
</div>
</div>
  <figcaption class="scientific-plate-caption">The teacher uses one scalar projection. The linear and cubic Hermite modes share that coordinate. Feature learning appears when the hidden weight distribution acquires finite overlap with the teacher direction.</figcaption>
</figure>

<p>The linear part contains enough information to estimate the teacher direction. Consider</p>
<div class="math-equation" id="equation-linear-estimator" data-equation="linear-estimator" data-equation-number="1.3">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mover accent="true"><mi mathvariant="bold">e</mi><mo stretchy="true">^</mo></mover><mo>=</mo><mfrac><mn>1</mn><mi>P</mi></mfrac><munderover><mo>∑</mo><mrow><mi>μ</mi><mo>=</mo><mn>1</mn></mrow><mi>P</mi></munderover><msup><mi>y</mi><mi>μ</mi></msup><msup><mi mathvariant="bold">x</mi><mi>μ</mi></msup><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\widehat{\mathbf e}
=\frac1P\sum_{\mu=1}^{P}y^\mu\mathbf x^\mu.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-linear-estimator" aria-label="Equation 1.3">
    <span class="equation-number-value" aria-hidden="true">(1.3)</span>
  </a>
</div>

<p>Gaussian orthogonality gives</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi>y</mi><mi mathvariant="bold">x</mi><mo stretchy="false">]</mo><mo>=</mo><mi mathvariant="bold">e</mi><mtext> </mtext><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi>z</mi><msub><mi>H</mi><mn>1</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo>+</mo><mi>ϵ</mi><mi mathvariant="bold">e</mi><mtext> </mtext><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi>z</mi><msub><mi>H</mi><mn>3</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo>=</mo><mi mathvariant="bold">e</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\EE[y\mathbf x]
=\mathbf e\,\EE[zH_1(z)]
+\epsilon\mathbf e\,\EE[zH_3(z)]
=\mathbf e.
</annotation></semantics></math></span></div>
</div><p>The squared estimation error is <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mi mathvariant="normal">/</mi><mi>P</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">O(D/P)</annotation></semantics></math></span></span>, so <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P=O(D)</annotation></semantics></math></span></span> examples identify <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">\mathbf e</annotation></semantics></math></span></span> to order one accuracy.<input class="sidenote-toggle" type="checkbox" id="sidenote-8" aria-controls="sidenote-8-note" aria-label="Toggle sidenote">
<label class="sidenote-ref" for="sidenote-8" data-sidenote-reference><span class="sidenote-ref-number" aria-hidden="true"></span></label>
<span class="sidenote" id="sidenote-8-note" role="note" aria-label="Sidenote" data-sidenote-note><span class="sidenote-number" aria-hidden="true"></span>The linear term supplies the direction. Without it, this derivation does not give the network a route to the cubic target. Another mechanism could still learn the target.</span></p>
<p>After <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">O(D)</annotation></semantics></math></span></span> samples, the data contain the direction. We need to explain when training puts that direction into the hidden weight distribution and how the new distribution changes prediction.</p>
<h2 id="bayesian-proxy"><a class="section-anchor" href="#bayesian-proxy" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>A Bayesian model exposes the hidden representation
</h2>
<p>The tractable model treats training as Bayesian inference. Put independent priors on the hidden and readout weights,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi mathvariant="bold">w</mi><mi>i</mi></msub><mo>∼</mo><mi mathvariant="normal">𝒩</mi><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mn mathvariant="bold">0</mn><mo separator="true">,</mo><mfrac><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup><mi>D</mi></mfrac><msub><mi mathvariant="bold">I</mi><mi>D</mi></msub><mo fence="true">)</mo></mrow><mo separator="true">,</mo><mspace width="2em"/><msub><mi>a</mi><mi>i</mi></msub><mo>∼</mo><mi mathvariant="normal">𝒩</mi><mo stretchy="false">(</mo><mn>0</mn><mo separator="true">,</mo><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><mo stretchy="false">)</mo><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">
\mathbf w_i\sim\mathcal N\!\left(\mathbf 0,\frac{\sigma_w^2}{D}\mathbf I_D\right),
\qquad
a_i\sim\mathcal N(0,s_a^2),
</annotation></semantics></math></span></div>
</div><p>and use a Gaussian likelihood with variance <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>T</mi></mrow><annotation encoding="application/x-tex">T</annotation></semantics></math></span></span> on a training set of size <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi></mrow><annotation encoding="application/x-tex">P</annotation></semantics></math></span></span>,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>p</mi><mo stretchy="false">(</mo><mi mathvariant="normal">𝒟</mi><mo>∣</mo><mo stretchy="false">{</mo><msub><mi>a</mi><mi>i</mi></msub><mo separator="true">,</mo><msub><mi mathvariant="bold">w</mi><mi>i</mi></msub><mo stretchy="false">}</mo><mo stretchy="false">)</mo><mo>∝</mo><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mo>−</mo><mfrac><mn>1</mn><mrow><mn>2</mn><mi>T</mi></mrow></mfrac><munderover><mo>∑</mo><mrow><mi>μ</mi><mo>=</mo><mn>1</mn></mrow><mi>P</mi></munderover><mo fence="true" stretchy="true" minsize="1.2em" maxsize="1.2em">(</mo><msup><mi>y</mi><mi>μ</mi></msup><mo>−</mo><mi>f</mi><mo stretchy="false">(</mo><msup><mi mathvariant="bold">x</mi><mi>μ</mi></msup><mo stretchy="false">)</mo><msup><mo fence="true" stretchy="true" minsize="1.2em" maxsize="1.2em">)</mo><mn>2</mn></msup><mo fence="true">]</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
p(\mathcal D\mid\{a_i,\mathbf w_i\})
\propto
\exp\!\left[-\frac1{2T}\sum_{\mu=1}^{P}
\bigl(y^\mu-f(\mathbf x^\mu)\bigr)^2\right].
</annotation></semantics></math></span></div>
</div><p>Standard scaling takes <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mn>1</mn><mi mathvariant="normal">/</mi><mi>N</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">s_a^2=O(1/N)</annotation></semantics></math></span></span>. The posterior balances a prior cost in <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>D</mi></mrow><annotation encoding="application/x-tex">D</annotation></semantics></math></span></span> dimensions against the fit reward from <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi></mrow><annotation encoding="application/x-tex">P</annotation></semantics></math></span></span> examples.</p>
<p>The hidden weight distribution provides a direct measure of feature learning. Feature learning appears when that distribution changes from isotropic to aligned with a direction selected by the target.<input class="sidenote-toggle" type="checkbox" id="sidenote-9" aria-controls="sidenote-9-note" aria-label="Toggle sidenote">
<label class="sidenote-ref" for="sidenote-9" data-sidenote-reference><span class="sidenote-ref-number" aria-hidden="true"></span></label>
<span class="sidenote" id="sidenote-9-note" role="note" aria-label="Sidenote" data-sidenote-note><span class="sidenote-number" aria-hidden="true"></span>Equilibrated Langevin training samples this posterior. Gradient descent can follow another path and can take a different time to reach equilibrium, so its dynamics need a separate argument.</span></p>
<h2 id="one-neuron-posterior"><a class="section-anchor" href="#one-neuron-posterior" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Score one neuron against the residual
</h2>
<p>Remove one neuron from the network and call the residual left by the other <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi><mo>−</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">N-1</annotation></semantics></math></span></span> neurons</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>r</mi><mi>μ</mi></msub><mo>=</mo><msup><mi>y</mi><mi>μ</mi></msup><mo>−</mo><msub><mi>f</mi><mo lspace="0em" rspace="0em">−</mo></msub><mo stretchy="false">(</mo><msup><mi mathvariant="bold">x</mi><mi>μ</mi></msup><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
r_\mu=y^\mu-f_{-}(\mathbf x^\mu).
</annotation></semantics></math></span></div>
</div><p>For a candidate hidden weight <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">w</mi></mrow><annotation encoding="application/x-tex">\mathbf w</annotation></semantics></math></span></span>, define its feature vector on the training set by</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>ϕ</mi><mi>μ</mi></msub><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mo>=</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><msup><mi mathvariant="bold">w</mi><mi mathvariant="normal">𝖳</mi></msup><msup><mi mathvariant="bold">x</mi><mi>μ</mi></msup><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\phi_\mu(\mathbf w)=\operatorname{erf}(\mathbf w^{\mathsf T}\mathbf x^\mu).
</annotation></semantics></math></span></div>
</div><p>The selected neuron contributes <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>a</mi><mi mathvariant="bold-italic">ϕ</mi></mrow><annotation encoding="application/x-tex">a\boldsymbol\phi</annotation></semantics></math></span></span>. Conditional on <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">w</mi></mrow><annotation encoding="application/x-tex">\mathbf w</annotation></semantics></math></span></span>, its readout coefficient is Gaussian, so we can integrate it exactly. Introduce</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>S</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mo>=</mo><msup><mi mathvariant="bold-italic">ϕ</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold">r</mi><mo separator="true">,</mo><mspace width="2em"/><mi>Q</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mo>=</mo><msup><mi mathvariant="bold-italic">ϕ</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold-italic">ϕ</mi><mo separator="true">,</mo><mspace width="2em"/><mi>L</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mo>=</mo><mn>1</mn><mo>+</mo><mfrac><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><mi>T</mi></mfrac><mi>Q</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
S(\mathbf w)=\boldsymbol\phi^{\mathsf T}\mathbf r,
\qquad
Q(\mathbf w)=\boldsymbol\phi^{\mathsf T}\boldsymbol\phi,
\qquad
L(\mathbf w)=1+\frac{s_a^2}{T}Q(\mathbf w).
</annotation></semantics></math></span></div>
</div><p>Completing the square in <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>a</mi></mrow><annotation encoding="application/x-tex">a</annotation></semantics></math></span></span> gives</p>
<div class="math-equation math-equation--wide" id="equation-one-neuron-posterior" data-equation="one-neuron-posterior" data-equation-number="3.1">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>p</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo>∣</mo><mi mathvariant="bold">r</mi><mo separator="true">,</mo><mi>X</mi><mo stretchy="false">)</mo><mo>∝</mo><msub><mi>p</mi><mn>0</mn></msub><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mtext> </mtext><mi>L</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><msup><mo stretchy="false">)</mo><mrow><mo>−</mo><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mfrac><mrow><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><mi>S</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup></mrow><mrow><mn>2</mn><msup><mi>T</mi><mn>2</mn></msup><mi>L</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo></mrow></mfrac><mo fence="true">]</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">p(\mathbf w\mid\mathbf r,X)
\propto
p_0(\mathbf w)\,L(\mathbf w)^{-1/2}
\exp\!\left[
\frac{s_a^2S(\mathbf w)^2}{2T^2L(\mathbf w)}
\right].</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-one-neuron-posterior" aria-label="Equation 3.1">
    <span class="equation-number-value" aria-hidden="true">(3.1)</span>
  </a>
</div>

<p>Equation <a class="equation-ref" href="#equation-one-neuron-posterior" data-equation-ref="one-neuron-posterior" aria-label="Equation 3.1"><span class="equation-ref-value" aria-hidden="true">(3.1)</span></a> is exact for a fixed cavity residual. The prior keeps <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">w</mi></mrow><annotation encoding="application/x-tex">\mathbf w</annotation></semantics></math></span></span> small and isotropic. The factor <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>L</mi><mrow><mo>−</mo><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup></mrow><annotation encoding="application/x-tex">L^{-1/2}</annotation></semantics></math></span></span> accounts for the cost of fitting a readout coefficient, and the exponential rewards a feature that correlates with the residual.<input class="sidenote-toggle" type="checkbox" id="sidenote-12" aria-controls="sidenote-12-note" aria-label="Toggle sidenote">
<label class="sidenote-ref" for="sidenote-12" data-sidenote-reference><span class="sidenote-ref-number" aria-hidden="true"></span></label>
<span class="sidenote" id="sidenote-12-note" role="note" aria-label="Sidenote" data-sidenote-note><span class="sidenote-number" aria-hidden="true"></span>The cavity step holds the residual fixed while it scores one neuron. The final self consistency step returns the neuron to the network and requires the residual and adaptive kernel to agree.</span></p>
<details class="article-calculation" id="calculation-readout-integral">
  <summary class="article-calculation__summary">
    <span class="article-calculation__fold" aria-hidden="true"></span>
    <span class="article-calculation__label">Calculation</span>
    <span class="article-calculation__title">Complete the square in the readout weight</span>
    <span class="article-calculation__state" aria-hidden="true"></span>
  </summary>
  <div class="article-calculation__body"><p>Expand the squared residual,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mrow><mo fence="true">∥</mo><mi mathvariant="bold">r</mi><mo>−</mo><mi>a</mi><mi mathvariant="bold-italic">ϕ</mi><mo fence="true">∥</mo></mrow><mn>2</mn></msup><mo>=</mo><msup><mrow><mo fence="true">∥</mo><mi mathvariant="bold">r</mi><mo fence="true">∥</mo></mrow><mn>2</mn></msup><mo>−</mo><mn>2</mn><mi>a</mi><mi>S</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mo>+</mo><msup><mi>a</mi><mn>2</mn></msup><mi>Q</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\norm{\mathbf r-a\boldsymbol\phi}^2
=\norm{\mathbf r}^2-2aS(\mathbf w)+a^2Q(\mathbf w).
</annotation></semantics></math></span></div>
</div><p>The terms that depend on <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>a</mi></mrow><annotation encoding="application/x-tex">a</annotation></semantics></math></span></span> have the form</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mo>−</mo><mfrac><mrow><mi>A</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo></mrow><mn>2</mn></mfrac><msup><mi>a</mi><mn>2</mn></msup><mo>+</mo><mi>B</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mi>a</mi><mo separator="true">,</mo><mspace width="2em"/><mi>A</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mn>1</mn><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup></mfrac><mo>+</mo><mfrac><mrow><mi>Q</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo></mrow><mi>T</mi></mfrac><mo separator="true">,</mo><mspace width="2em"/><mi>B</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mrow><mi>S</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo></mrow><mi>T</mi></mfrac><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
-\frac{A(\mathbf w)}2a^2+B(\mathbf w)a,
\qquad
A(\mathbf w)=\frac1{s_a^2}+\frac{Q(\mathbf w)}T,
\qquad
B(\mathbf w)=\frac{S(\mathbf w)}T.
</annotation></semantics></math></span></div>
</div><p>The Gaussian identity</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msubsup><mo>∫</mo><mrow><mo>−</mo><mi mathvariant="normal">∞</mi></mrow><mi mathvariant="normal">∞</mi></msubsup><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mo>−</mo><mfrac><mi>A</mi><mn>2</mn></mfrac><msup><mi>a</mi><mn>2</mn></msup><mo>+</mo><mi>B</mi><mi>a</mi><mo fence="true">)</mo></mrow><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>a</mi><mo>=</mo><msqrt><mfrac><mrow><mn>2</mn><mi>π</mi></mrow><mi>A</mi></mfrac></msqrt><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mfrac><msup><mi>B</mi><mn>2</mn></msup><mrow><mn>2</mn><mi>A</mi></mrow></mfrac><mo fence="true">)</mo></mrow></mrow><annotation encoding="application/x-tex">
\int_{-\infty}^{\infty}
\exp\!\left(-\frac A2a^2+Ba\right)\dd a
=\sqrt{\frac{2\pi}{A}}\exp\!\left(\frac{B^2}{2A}\right)
</annotation></semantics></math></span></div>
</div><p>then gives Equation <a class="equation-ref" href="#equation-one-neuron-posterior" data-equation-ref="one-neuron-posterior" aria-label="Equation 3.1"><span class="equation-ref-value" aria-hidden="true">(3.1)</span></a> after removing factors that do not depend on <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">w</mi></mrow><annotation encoding="application/x-tex">\mathbf w</annotation></semantics></math></span></span>.</p>
</div>
</details>

<p>The fit reward depends on <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>S</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">S^2</annotation></semantics></math></span></span>, so the signs <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">w</mi></mrow><annotation encoding="application/x-tex">\mathbf w</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>−</mo><mi mathvariant="bold">w</mi></mrow><annotation encoding="application/x-tex">-\mathbf w</annotation></semantics></math></span></span> remain equivalent. The mean weight can stay at zero while an even moment such as <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msup><mi>ρ</mi><mn>2</mn></msup><mo stretchy="false">]</mo></mrow><annotation encoding="application/x-tex">\EE[\rho^2]</annotation></semantics></math></span></span> records direction learning.</p>
<h2 id="overlap-reduction"><a class="section-anchor" href="#overlap-reduction" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Reduce the hidden weight posterior to one overlap
</h2>
<p>Before the transition, the residual lies mainly in the same two Hermite modes as the teacher. Write its population form as</p>
<div class="math-equation" id="equation-residual-modes" data-equation="residual-modes" data-equation-number="4.1">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>r</mi><mo stretchy="false">(</mo><mi mathvariant="bold">x</mi><mo stretchy="false">)</mo><mo>=</mo><mi>b</mi><msub><mi>H</mi><mn>1</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo>+</mo><mi>c</mi><msub><mi>H</mi><mn>3</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">r(\mathbf x)=bH_1(z)+cH_3(z).</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-residual-modes" aria-label="Equation 4.1">
    <span class="equation-number-value" aria-hidden="true">(4.1)</span>
  </a>
</div>

<p>For one hidden weight, let</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>g</mi><mo>=</mo><msup><mi mathvariant="bold">w</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold">x</mi><mo separator="true">,</mo><mspace width="2em"/><mi>q</mi><mo>=</mo><msup><mrow><mo fence="true">∥</mo><mi mathvariant="bold">w</mi><mo fence="true">∥</mo></mrow><mn>2</mn></msup><mo separator="true">,</mo><mspace width="2em"/><mi>ρ</mi><mo>=</mo><msup><mi mathvariant="bold">w</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold">e</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
g=\mathbf w^{\mathsf T}\mathbf x,
\qquad
q=\norm{\mathbf w}^2,
\qquad
\rho=\mathbf w^{\mathsf T}\mathbf e.
</annotation></semantics></math></span></div>
</div><p>The pair <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">(</mo><mi>g</mi><mo separator="true">,</mo><mi>z</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">(g,z)</annotation></semantics></math></span></span> is jointly Gaussian, with covariance <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi></mrow><annotation encoding="application/x-tex">\rho</annotation></semantics></math></span></span>. For a smooth function <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>F</mi></mrow><annotation encoding="application/x-tex">F</annotation></semantics></math></span></span>, the higher order Stein identity gives</p>
<div class="math-equation" id="equation-stein-hermite" data-equation="stein-hermite" data-equation-number="4.2">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi>F</mi><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo><msub><mi>H</mi><mi>k</mi></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo>=</mo><msup><mi>ρ</mi><mi>k</mi></msup><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msup><mi>F</mi><mrow><mo stretchy="false">(</mo><mi>k</mi><mo stretchy="false">)</mo></mrow></msup><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\EE[F(g)H_k(z)]
=\rho^k\EE[F^{(k)}(g)].</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-stein-hermite" aria-label="Equation 4.2">
    <span class="equation-number-value" aria-hidden="true">(4.2)</span>
  </a>
</div>

<p>The identity turns the <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>k</mi></mrow><annotation encoding="application/x-tex">k</annotation></semantics></math></span></span>th teacher mode into the <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>k</mi></mrow><annotation encoding="application/x-tex">k</annotation></semantics></math></span></span>th power of the overlap.<input class="sidenote-toggle" type="checkbox" id="sidenote-16" aria-controls="sidenote-16-note" aria-label="Toggle sidenote">
<label class="sidenote-ref" for="sidenote-16" data-sidenote-reference><span class="sidenote-ref-number" aria-hidden="true"></span></label>
<span class="sidenote" id="sidenote-16-note" role="note" aria-label="Sidenote" data-sidenote-note><span class="sidenote-number" aria-hidden="true"></span>Gaussian inputs give the clean <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>ρ</mi><mi>k</mi></msup></mrow><annotation encoding="application/x-tex">\rho^k</annotation></semantics></math></span></span> factor. With non Gaussian inputs, higher moments can mix the teacher modes, so the calculation needs a different moment expansion.</span></p>
<details class="article-calculation" id="calculation-hermite-identity">
  <summary class="article-calculation__summary">
    <span class="article-calculation__fold" aria-hidden="true"></span>
    <span class="article-calculation__label">Calculation</span>
    <span class="article-calculation__title">Derive the Gaussian Hermite identity</span>
    <span class="article-calculation__state" aria-hidden="true"></span>
  </summary>
  <div class="article-calculation__body"><p>Write the correlated Gaussian variables as</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>g</mi><mo>=</mo><mi>ρ</mi><mi>z</mi><mo>+</mo><msqrt><mrow><mi>q</mi><mo>−</mo><msup><mi>ρ</mi><mn>2</mn></msup></mrow></msqrt><mtext> </mtext><mi>ξ</mi><mo separator="true">,</mo><mspace width="2em"/><mi>ξ</mi><mo>∼</mo><mi mathvariant="normal">𝒩</mi><mo stretchy="false">(</mo><mn>0</mn><mo separator="true">,</mo><mn>1</mn><mo stretchy="false">)</mo><mo separator="true">,</mo><mspace width="2em"/><mi>ξ</mi><mtext> independent of </mtext><mi>z</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
g=\rho z+\sqrt{q-\rho^2}\,\xi,
\qquad
\xi\sim\mathcal N(0,1),
\qquad
\xi\ \text{independent of }z.
</annotation></semantics></math></span></div>
</div><p>For fixed <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ξ</mi></mrow><annotation encoding="application/x-tex">\xi</annotation></semantics></math></span></span>, set <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>h</mi><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo>=</mo><mi>F</mi><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">h(z)=F(g)</annotation></semantics></math></span></span>. The one variable Stein identity gives</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msub><mi>H</mi><mi>k</mi></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mi>h</mi><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo>=</mo><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msup><mi>h</mi><mrow><mo stretchy="false">(</mo><mi>k</mi><mo stretchy="false">)</mo></mrow></msup><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\EE[H_k(z)h(z)]=\EE[h^{(k)}(z)].
</annotation></semantics></math></span></div>
</div><p>Each derivative with respect to <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>z</mi></mrow><annotation encoding="application/x-tex">z</annotation></semantics></math></span></span> contributes one factor of <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi></mrow><annotation encoding="application/x-tex">\rho</annotation></semantics></math></span></span>, so</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>h</mi><mrow><mo stretchy="false">(</mo><mi>k</mi><mo stretchy="false">)</mo></mrow></msup><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo>=</mo><msup><mi>ρ</mi><mi>k</mi></msup><msup><mi>F</mi><mrow><mo stretchy="false">(</mo><mi>k</mi><mo stretchy="false">)</mo></mrow></msup><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
h^{(k)}(z)=\rho^kF^{(k)}(g).
</annotation></semantics></math></span></div>
</div><p>Averaging over <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ξ</mi></mrow><annotation encoding="application/x-tex">\xi</annotation></semantics></math></span></span> gives Equation <a class="equation-ref" href="#equation-stein-hermite" data-equation-ref="stein-hermite" aria-label="Equation 4.2"><span class="equation-ref-value" aria-hidden="true">(4.2)</span></a>. For <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>F</mi><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo><mo>=</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">F(g)=\operatorname{erf}(g)</annotation></semantics></math></span></span>, the first and third derivative averages are</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msup><mi>F</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo>=</mo><mfrac><mn>2</mn><msqrt><mi>π</mi></msqrt></mfrac><mfrac><mn>1</mn><msqrt><mrow><mn>1</mn><mo>+</mo><mn>2</mn><mi>q</mi></mrow></msqrt></mfrac><mo separator="true">,</mo><mspace width="2em"/><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msup><mi>F</mi><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msup><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo>=</mo><mo>−</mo><mfrac><mn>4</mn><msqrt><mi>π</mi></msqrt></mfrac><mfrac><mn>1</mn><mrow><mo stretchy="false">(</mo><mn>1</mn><mo>+</mo><mn>2</mn><mi>q</mi><msup><mo stretchy="false">)</mo><mrow><mn>3</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup></mrow></mfrac><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\EE[F&#x27;(g)]
=\frac{2}{\sqrt\pi}\frac1{\sqrt{1+2q}},
\qquad
\EE[F&#x27;&#x27;&#x27;(g)]
=-\frac{4}{\sqrt\pi}\frac1{(1+2q)^{3/2}}.
</annotation></semantics></math></span></div>
</div></div>
</details>

<p>Setting <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>F</mi><mo>=</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo></mrow><annotation encoding="application/x-tex">F=\operatorname{erf}</annotation></semantics></math></span></span> yields the two correlations needed here,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo><msub><mi>H</mi><mn>1</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mfrac><mrow><mn>2</mn><mi>ρ</mi></mrow><msqrt><mrow><mi>π</mi><mo stretchy="false">(</mo><mn>1</mn><mo>+</mo><mn>2</mn><mi>q</mi><mo stretchy="false">)</mo></mrow></msqrt></mfrac><mo separator="true">,</mo></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo><msub><mi>H</mi><mn>3</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mo>−</mo><mfrac><mrow><mn>4</mn><msup><mi>ρ</mi><mn>3</mn></msup></mrow><mrow><msqrt><mi>π</mi></msqrt><mo stretchy="false">(</mo><mn>1</mn><mo>+</mo><mn>2</mn><mi>q</mi><msup><mo stretchy="false">)</mo><mrow><mn>3</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup></mrow></mfrac><mi mathvariant="normal">.</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">
\begin{aligned}
\EE[\operatorname{erf}(g)H_1(z)]
&amp;=\frac{2\rho}{\sqrt{\pi(1+2q)}},\\
\EE[\operatorname{erf}(g)H_3(z)]
&amp;=-\frac{4\rho^3}{\sqrt\pi(1+2q)^{3/2}}.
\end{aligned}
</annotation></semantics></math></span></div>
</div><p>The resulting correlation between the feature and residual is</p>
<div class="math-equation math-equation--wide" id="equation-overlap-correlation" data-equation="overlap-correlation" data-equation-number="4.3">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>m</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo separator="true">,</mo><mi>q</mi><mo stretchy="false">)</mo><mo>=</mo><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi>r</mi><mo stretchy="false">(</mo><mi mathvariant="bold">x</mi><mo stretchy="false">)</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo>=</mo><mfrac><mn>2</mn><msqrt><mi>π</mi></msqrt></mfrac><mfrac><mi>ρ</mi><msqrt><mrow><mn>1</mn><mo>+</mo><mn>2</mn><mi>q</mi></mrow></msqrt></mfrac><mrow><mo fence="true">(</mo><mi>b</mi><mo>−</mo><mfrac><mrow><mn>2</mn><mi>c</mi><msup><mi>ρ</mi><mn>2</mn></msup></mrow><mrow><mn>1</mn><mo>+</mo><mn>2</mn><mi>q</mi></mrow></mfrac><mo fence="true">)</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">m(\rho,q)
=\EE[r(\mathbf x)\operatorname{erf}(g)]
=\frac{2}{\sqrt\pi}
\frac{\rho}{\sqrt{1+2q}}
\left(
b-\frac{2c\rho^2}{1+2q}
\right).</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-overlap-correlation" aria-label="Equation 4.3">
    <span class="equation-number-value" aria-hidden="true">(4.3)</span>
  </a>
</div>

<p>The feature variance is</p>
<div class="math-equation" id="equation-erf-variance" data-equation="erf-variance" data-equation-number="4.4">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>v</mi><mo stretchy="false">(</mo><mi>q</mi><mo stretchy="false">)</mo><mo>=</mo><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><mi>g</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup><mo stretchy="false">]</mo><mo>=</mo><mfrac><mn>2</mn><mi>π</mi></mfrac><mi>arcsin</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mfrac><mrow><mn>2</mn><mi>q</mi></mrow><mrow><mn>1</mn><mo>+</mo><mn>2</mn><mi>q</mi></mrow></mfrac><mo fence="true">)</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">v(q)=\EE[\operatorname{erf}(g)^2]
=\frac{2}{\pi}\arcsin\!\left(\frac{2q}{1+2q}\right).</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-erf-variance" aria-label="Equation 4.4">
    <span class="equation-number-value" aria-hidden="true">(4.4)</span>
  </a>
</div>

<p>For large <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi></mrow><annotation encoding="application/x-tex">P</annotation></semantics></math></span></span>, the empirical quantities concentrate as <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>S</mi><mo>≃</mo><mi>P</mi><mi>m</mi></mrow><annotation encoding="application/x-tex">S\simeq Pm</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>Q</mi><mo>≃</mo><mi>P</mi><mi>v</mi></mrow><annotation encoding="application/x-tex">Q\simeq Pv</annotation></semantics></math></span></span>.</p>
<details class="article-calculation" id="calculation-sample-concentration">
  <summary class="article-calculation__summary">
    <span class="article-calculation__fold" aria-hidden="true"></span>
    <span class="article-calculation__label">Calculation</span>
    <span class="article-calculation__title">Check the sample sum approximation</span>
    <span class="article-calculation__state" aria-hidden="true"></span>
  </summary>
  <div class="article-calculation__body"><p>For fixed <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">w</mi></mrow><annotation encoding="application/x-tex">\mathbf w</annotation></semantics></math></span></span> and residual function <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>r</mi></mrow><annotation encoding="application/x-tex">r</annotation></semantics></math></span></span>, both <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>S</mi><mi mathvariant="normal">/</mi><mi>P</mi></mrow><annotation encoding="application/x-tex">S/P</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>Q</mi><mi mathvariant="normal">/</mi><mi>P</mi></mrow><annotation encoding="application/x-tex">Q/P</annotation></semantics></math></span></span> average <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi></mrow><annotation encoding="application/x-tex">P</annotation></semantics></math></span></span> independent terms. Their variances are</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">Var</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mfrac><mrow><mi>S</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo></mrow><mi>P</mi></mfrac><mo fence="true">]</mo></mrow><mo>=</mo><mfrac><mn>1</mn><mi>P</mi></mfrac><mi mathvariant="normal">Var</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mi>r</mi><mo stretchy="false">(</mo><mi mathvariant="bold">x</mi><mo stretchy="false">)</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><msup><mi mathvariant="bold">w</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold">x</mi><mo stretchy="false">)</mo><mo fence="true">]</mo></mrow><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">
\Var\!\left[\frac{S(\mathbf w)}P\right]
=\frac1P\Var\!\left[r(\mathbf x)\operatorname{erf}(\mathbf w^{\mathsf T}\mathbf x)\right],
</annotation></semantics></math></span></div>
</div><p>and</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">Var</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mfrac><mrow><mi>Q</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo></mrow><mi>P</mi></mfrac><mo fence="true">]</mo></mrow><mo>=</mo><mfrac><mn>1</mn><mi>P</mi></mfrac><mi mathvariant="normal">Var</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><msup><mi mathvariant="bold">w</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold">x</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup><mo fence="true">]</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\Var\!\left[\frac{Q(\mathbf w)}P\right]
=\frac1P\Var\!\left[\operatorname{erf}(\mathbf w^{\mathsf T}\mathbf x)^2\right].
</annotation></semantics></math></span></div>
</div><p>Both averages fluctuate on the scale <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>P</mi><mrow><mo>−</mo><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup></mrow><annotation encoding="application/x-tex">P^{-1/2}</annotation></semantics></math></span></span>. Under <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><mo>∼</mo><msup><mi>N</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup></mrow><annotation encoding="application/x-tex">s_a^2\sim N^{-1}</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi><mo>∼</mo><mi>N</mi><mo>∼</mo><mi>D</mi></mrow><annotation encoding="application/x-tex">P\sim N\sim D</annotation></semantics></math></span></span>, the leading log posterior is <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">O(D)</annotation></semantics></math></span></span> while the first correction for fixed <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">w</mi></mrow><annotation encoding="application/x-tex">\mathbf w</annotation></semantics></math></span></span> is <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mo stretchy="false">(</mo><msqrt><mi>D</mi></msqrt><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">O(\sqrt D)</annotation></semantics></math></span></span>.</p>
</div>
</details>

<p>The components of <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">w</mi></mrow><annotation encoding="application/x-tex">\mathbf w</annotation></semantics></math></span></span> orthogonal to <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">\mathbf e</annotation></semantics></math></span></span> also concentrate, so</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>q</mi><mo>≃</mo><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup><mo>+</mo><msup><mi>ρ</mi><mn>2</mn></msup><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
q\simeq\sigma_w^2+\rho^2.
</annotation></semantics></math></span></div>
</div><details class="article-calculation" id="calculation-norm-concentration">
  <summary class="article-calculation__summary">
    <span class="article-calculation__fold" aria-hidden="true"></span>
    <span class="article-calculation__label">Calculation</span>
    <span class="article-calculation__title">Check the orthogonal norm concentration</span>
    <span class="article-calculation__state" aria-hidden="true"></span>
  </summary>
  <div class="article-calculation__body"><p>Decompose the weight as</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="bold">w</mi><mo>=</mo><mi>ρ</mi><mi mathvariant="bold">e</mi><mo>+</mo><msub><mi mathvariant="bold">w</mi><mo>⊥</mo></msub><mo separator="true">,</mo><mspace width="2em"/><msup><mi mathvariant="bold">e</mi><mi mathvariant="normal">𝖳</mi></msup><msub><mi mathvariant="bold">w</mi><mo>⊥</mo></msub><mo>=</mo><mn>0.</mn></mrow><annotation encoding="application/x-tex">
\mathbf w=\rho\mathbf e+\mathbf w_\perp,
\qquad
\mathbf e^{\mathsf T}\mathbf w_\perp=0.
</annotation></semantics></math></span></div>
</div><p>Under the Gaussian prior, the <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>D</mi><mo>−</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">D-1</annotation></semantics></math></span></span> orthogonal coordinates have variance <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup><mi mathvariant="normal">/</mi><mi>D</mi></mrow><annotation encoding="application/x-tex">\sigma_w^2/D</annotation></semantics></math></span></span>. Therefore</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mrow><mo fence="true">∥</mo><msub><mi mathvariant="bold">w</mi><mo>⊥</mo></msub><mo fence="true">∥</mo></mrow><mn>2</mn></msup><mo>∼</mo><mfrac><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup><mi>D</mi></mfrac><msubsup><mi>χ</mi><mrow><mi>D</mi><mo>−</mo><mn>1</mn></mrow><mn>2</mn></msubsup><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\norm{\mathbf w_\perp}^2
\sim\frac{\sigma_w^2}{D}\chi^2_{D-1}.
</annotation></semantics></math></span></div>
</div><p>Its mean approaches <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup></mrow><annotation encoding="application/x-tex">\sigma_w^2</annotation></semantics></math></span></span>, and its relative fluctuations have size <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>D</mi><mrow><mo>−</mo><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup></mrow><annotation encoding="application/x-tex">D^{-1/2}</annotation></semantics></math></span></span>.</p>
</div>
</details>

<p>After these approximations, Equation <a class="equation-ref" href="#equation-one-neuron-posterior" data-equation-ref="one-neuron-posterior" aria-label="Equation 3.1"><span class="equation-ref-value" aria-hidden="true">(3.1)</span></a> gives the scalar distribution</p>
<div class="math-equation" id="equation-overlap-posterior" data-equation="overlap-posterior" data-equation-number="4.5">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>p</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo>∣</mo><mi>b</mi><mo separator="true">,</mo><mi>c</mi><mo stretchy="false">)</mo><mo>∝</mo><msup><mi>e</mi><mrow><mo>−</mo><mi>U</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo separator="true">;</mo><mi>b</mi><mo separator="true">,</mo><mi>c</mi><mo stretchy="false">)</mo></mrow></msup><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">p(\rho\mid b,c)\propto e^{-U(\rho;b,c)},</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-overlap-posterior" aria-label="Equation 4.5">
    <span class="equation-number-value" aria-hidden="true">(4.5)</span>
  </a>
</div>

<p>with</p>
<div class="math-equation math-equation--wide" id="equation-overlap-potential" data-equation="overlap-potential" data-equation-number="4.6">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>U</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo separator="true">;</mo><mi>b</mi><mo separator="true">,</mo><mi>c</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mrow><mi>D</mi><msup><mi>ρ</mi><mn>2</mn></msup></mrow><mrow><mn>2</mn><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup></mrow></mfrac><mo>+</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><mi>log</mi><mo>⁡</mo><mi>L</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo stretchy="false">)</mo><mo>−</mo><mfrac><mrow><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><msup><mi>P</mi><mn>2</mn></msup><mi>m</mi><mo stretchy="false">(</mo><mi>ρ</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup></mrow><mrow><mn>2</mn><msup><mi>T</mi><mn>2</mn></msup><mi>L</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo stretchy="false">)</mo></mrow></mfrac><mo separator="true">,</mo><mspace width="2em"/><mi>L</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo stretchy="false">)</mo><mo>=</mo><mn>1</mn><mo>+</mo><mfrac><mrow><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><mi>P</mi></mrow><mi>T</mi></mfrac><mi>v</mi><mo stretchy="false">(</mo><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup><mo>+</mo><msup><mi>ρ</mi><mn>2</mn></msup><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">U(\rho;b,c)
=\frac{D\rho^2}{2\sigma_w^2}
+\frac12\log L(\rho)
-\frac{s_a^2P^2m(\rho)^2}{2T^2L(\rho)},
\qquad
L(\rho)=1+\frac{s_a^2P}{T}v(\sigma_w^2+\rho^2).</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-overlap-potential" aria-label="Equation 4.6">
    <span class="equation-number-value" aria-hidden="true">(4.6)</span>
  </a>
</div>

<p>The first term is the prior cost of selecting one direction in <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>D</mi></mrow><annotation encoding="application/x-tex">D</annotation></semantics></math></span></span> dimensions. The last term rewards a feature that fits the residual. Since <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>m</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">m(\rho)</annotation></semantics></math></span></span> begins at first order in <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi></mrow><annotation encoding="application/x-tex">\rho</annotation></semantics></math></span></span>, enough data can make weights with finite overlap competitive.</p>
<section class="math-statement math-statement--proposition" id="statement-alignment-scale" data-statement="alignment-scale" data-statement-kind="proposition" data-statement-numbered="true" data-statement-number="4.1">
  <p class="statement-heading">
    <a class="statement-permalink" href="#statement-alignment-scale" aria-label="Link to proposition 4.1">
      <span class="statement-kind">Proposition</span> <span class="statement-number" aria-hidden="true">4.1</span> <span class="statement-title">(Alignment scale)</span><span aria-hidden="true">.</span>
    </a>
  </p>
  <div class="statement-body"><p>Let <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mn>1</mn><mi mathvariant="normal">/</mi><mi>N</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">s_a^2=O(1/N)</annotation></semantics></math></span></span> and suppose <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>b</mi></mrow><annotation encoding="application/x-tex">b</annotation></semantics></math></span></span>, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>T</mi></mrow><annotation encoding="application/x-tex">T</annotation></semantics></math></span></span>, and the prior scales remain order one. Near <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><mn>0</mn></mrow><annotation encoding="application/x-tex">\rho=0</annotation></semantics></math></span></span>, the fit reward competes with the directional prior cost when</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mfrac><msup><mi>P</mi><mn>2</mn></msup><mi>N</mi></mfrac><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\frac{P^2}{N}=O(D).
</annotation></semantics></math></span></div>
</div><p>Hence <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>P</mi><mrow><mi mathvariant="normal">a</mi><mi mathvariant="normal">l</mi><mi mathvariant="normal">i</mi><mi mathvariant="normal">g</mi><mi mathvariant="normal">n</mi></mrow></msub><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msqrt><mrow><mi>N</mi><mi>D</mi></mrow></msqrt><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P_{\mathrm{align}}=O(\sqrt{ND})</annotation></semantics></math></span></span>. In the proportional regime <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">N=O(D)</annotation></semantics></math></span></span>, the posterior can acquire finite overlap at <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P=O(D)</annotation></semantics></math></span></span>.</p>
</div>
</section>

<details class="article-calculation" id="calculation-small-overlap">
  <summary class="article-calculation__summary">
    <span class="article-calculation__fold" aria-hidden="true"></span>
    <span class="article-calculation__label">Calculation</span>
    <span class="article-calculation__title">Expand the action near zero overlap</span>
    <span class="article-calculation__state" aria-hidden="true"></span>
  </summary>
  <div class="article-calculation__body"><p>Write</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>m</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo stretchy="false">)</mo><mo>=</mo><mi>α</mi><mi>ρ</mi><mo>+</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>ρ</mi><mn>3</mn></msup><mo stretchy="false">)</mo><mo separator="true">,</mo><mspace width="2em"/><mi>L</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo stretchy="false">)</mo><mo>=</mo><msub><mi>L</mi><mn>0</mn></msub><mo>+</mo><mi mathvariant="normal">ℓ</mi><msup><mi>ρ</mi><mn>2</mn></msup><mo>+</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>ρ</mi><mn>4</mn></msup><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
m(\rho)=\alpha\rho+O(\rho^3),
\qquad
L(\rho)=L_0+\ell\rho^2+O(\rho^4).
</annotation></semantics></math></span></div>
</div><p>Then</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>m</mi><mo stretchy="false">(</mo><mi>ρ</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup><mo>=</mo><msup><mi>α</mi><mn>2</mn></msup><msup><mi>ρ</mi><mn>2</mn></msup><mo>+</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>ρ</mi><mn>4</mn></msup><mo stretchy="false">)</mo><mo separator="true">,</mo><mspace width="2em"/><mi>log</mi><mo>⁡</mo><mi>L</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo stretchy="false">)</mo><mo>=</mo><mi>log</mi><mo>⁡</mo><msub><mi>L</mi><mn>0</mn></msub><mo>+</mo><mfrac><mi mathvariant="normal">ℓ</mi><msub><mi>L</mi><mn>0</mn></msub></mfrac><msup><mi>ρ</mi><mn>2</mn></msup><mo>+</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>ρ</mi><mn>4</mn></msup><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
m(\rho)^2=\alpha^2\rho^2+O(\rho^4),
\qquad
\log L(\rho)=\log L_0+\frac{\ell}{L_0}\rho^2+O(\rho^4).
</annotation></semantics></math></span></div>
</div><p>Substitution into the scalar potential gives</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mi>U</mi><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msup><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mo>=</mo><mfrac><mi>D</mi><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup></mfrac><mo>+</mo><mfrac><mi mathvariant="normal">ℓ</mi><msub><mi>L</mi><mn>0</mn></msub></mfrac><mo>−</mo><mfrac><mrow><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><msup><mi>P</mi><mn>2</mn></msup><msup><mi>α</mi><mn>2</mn></msup></mrow><mrow><msup><mi>T</mi><mn>2</mn></msup><msub><mi>L</mi><mn>0</mn></msub></mrow></mfrac><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
U&#x27;&#x27;(0)
=\frac{D}{\sigma_w^2}
+\frac{\ell}{L_0}
-\frac{s_a^2P^2\alpha^2}{T^2L_0}.
</annotation></semantics></math></span></div>
</div><p>The centered state loses local stability when this curvature changes sign. With <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>N</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">s_a^2=O(N^{-1})</annotation></semantics></math></span></span>, the prior and fit terms balance at <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msqrt><mrow><mi>N</mi><mi>D</mi></mrow></msqrt><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P=O(\sqrt{ND})</annotation></semantics></math></span></span>.</p>
</div>
</details>

<p>The curvature test locates a spinodal boundary. The first order transition studied by Rubin, Seroussi, and Ringel is a global statement. Wells at finite overlap can reach the same depth as the centered well before the center loses local stability <span class="article-citation" data-citation>(<a id="cite-rubin2024-27" href="#ref-rubin2024" role="doc-biblioref" data-citation-key="rubin2024">Rubin, Seroussi &amp; Ringel, 2024</a>)</span>.<input class="sidenote-toggle" type="checkbox" id="sidenote-28" aria-controls="sidenote-28-note" aria-label="Toggle sidenote">
<label class="sidenote-ref" for="sidenote-28" data-sidenote-reference><span class="sidenote-ref-number" aria-hidden="true"></span></label>
<span class="sidenote" id="sidenote-28-note" role="note" aria-label="Sidenote" data-sidenote-note><span class="sidenote-number" aria-hidden="true"></span>New minima at finite overlap first appear, then reach the same depth as the centered minimum, and later make the center unstable. The middle event is the first order transition.</span></p>
<p>The 2024 paper combines the sample count and the remaining scales into an effective interaction,</p>
<div class="math-equation math-equation--wide" id="equation-effective-action-slice" data-equation="effective-action-slice" data-equation-number="4.7">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>u</mi><mo>=</mo><mfrac><mrow><msup><mi>P</mi><mn>2</mn></msup><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup></mrow><mrow><msup><mi>T</mi><mn>2</mn></msup><mi>D</mi><mi>N</mi></mrow></mfrac><mo separator="true">,</mo><mspace width="2em"/><mfrac><mrow><msub><mover accent="true"><mi>U</mi><mo stretchy="true">~</mo></mover><mi>u</mi></msub><mo stretchy="false">(</mo><mi>ρ</mi><mo stretchy="false">)</mo></mrow><mi>D</mi></mfrac><mo>=</mo><mfrac><msup><mi>ρ</mi><mn>2</mn></msup><mrow><mn>2</mn><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup></mrow></mfrac><mo>−</mo><mfrac><mrow><mn>2</mn><mi>u</mi></mrow><mi>π</mi></mfrac><mfrac><msup><mi>ρ</mi><mn>2</mn></msup><mrow><mn>1</mn><mo>+</mo><mn>2</mn><mo stretchy="false">(</mo><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup><mo>+</mo><msup><mi>ρ</mi><mn>2</mn></msup><mo stretchy="false">)</mo></mrow></mfrac><msup><mrow><mo fence="true">(</mo><mi>b</mi><mo>−</mo><mfrac><mrow><mn>2</mn><mi>c</mi><msup><mi>ρ</mi><mn>2</mn></msup></mrow><mrow><mn>1</mn><mo>+</mo><mn>2</mn><mo stretchy="false">(</mo><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup><mo>+</mo><msup><mi>ρ</mi><mn>2</mn></msup><mo stretchy="false">)</mo></mrow></mfrac><mo fence="true">)</mo></mrow><mn>2</mn></msup><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">u=\frac{P^2s_a^2}{T^2DN},
\qquad
\frac{\widetilde U_u(\rho)}{D}
=\frac{\rho^2}{2\sigma_w^2}
-\frac{2u}{\pi}
\frac{\rho^2}{1+2(\sigma_w^2+\rho^2)}
\left(
b-\frac{2c\rho^2}{1+2(\sigma_w^2+\rho^2)}
\right)^2.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-effective-action-slice" aria-label="Equation 4.7">
    <span class="equation-number-value" aria-hidden="true">(4.7)</span>
  </a>
</div>

<p>Move the control in <a class="plate-ref" href="#plate-overlap-phase-portrait" data-plate-ref="overlap-phase-portrait" aria-label="Plate 4.1"><span class="plate-ref-kind">Plate</span> <span class="plate-ref-number">4.1</span></a> to follow the conditional action as <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>u</mi></mrow><annotation encoding="application/x-tex">u</annotation></semantics></math></span></span> increases. The adjacent hidden population uses the same overlap coordinate and shows how posterior mass moves between the wells.</p>
<figure class="scientific-plate scientific-plate--overlap" id="plate-overlap-phase-portrait" data-scientific-plate="overlap" data-plate-number="4.1">
  <header class="scientific-plate-header">
    <span class="scientific-plate-number">Plate 4.1</span>
    <span class="scientific-plate-title">Aligned neuron populations appear as new posterior wells</span>
  </header>
  <div class="scientific-plate-body"><div class="scientific-plate-live-reading" data-overlap-status aria-live="polite">
  <span>Effective load </span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>u</mi></mrow><annotation encoding="application/x-tex">u</annotation></semantics></math></span></span><span aria-hidden="true"> = </span><span data-overlap-status-load>29.45</span>
  <span aria-hidden="true">. </span><span data-overlap-status-state>Equal-depth coexistence.</span>
  <span> Population phase </span><span data-overlap-status-phase>GMFL-I.</span>
  <span> Population second moment R equals </span><span data-overlap-status-moment>0.15</span><span>.</span>
</div>
<div class="scientific-plate-overlap-assembly">
  <div class="scientific-plate-plot scientific-plate-plot--overlap">
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 640 270" role="img" aria-labelledby="overlap-phase-portrait-overlap-title overlap-phase-portrait-overlap-desc" focusable="false">
        <title id="overlap-phase-portrait-overlap-title">The overlap action as effective load changes</title>
        <desc id="overlap-phase-portrait-overlap-desc">A line plot of the normalized overlap action. Move the effective-load control to see symmetric side wells appear, dominate, and destabilize the centred state.</desc>
        <g class="scientific-plate-grid scientific-plate-grid--overlap" aria-hidden="true">
          <path d="M52 28H608M52 77H608M52 126H608M52 175H608M52 224H608"></path>
          <path d="M124.07 28V224M330 28V224M535.93 28V224"></path>
        </g>
        <path class="scientific-plate-condition scientific-plate-condition--overlap" d="M330 28V224" aria-hidden="true"></path>
        <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" data-overlap-curve d="M52.00 37.43L65.90 81.79L79.80 119.31L93.70 150.24L107.60 174.93L121.50 193.80L135.40 207.40L149.30 216.41L163.20 221.58L177.10 223.75L191.00 223.83L204.90 222.68L218.80 221.10L232.70 219.74L246.60 219.02L260.50 219.12L274.40 219.96L288.30 221.26L302.20 222.61L316.10 223.63L330.00 224.00L343.90 223.63L357.80 222.61L371.70 221.26L385.60 219.96L399.50 219.12L413.40 219.02L427.30 219.74L441.20 221.10L455.10 222.68L469.00 223.83L482.90 223.75L496.80 221.58L510.70 216.41L524.60 207.40L538.50 193.80L552.40 174.93L566.30 150.24L580.20 119.31L594.10 81.79L608.00 37.43"></path>
        <g class="scientific-plate-overlap-minima" data-overlap-minima aria-hidden="true">
          <circle class="scientific-plate-minimum" cx="184.39" cy="224" r="4"></circle>
          <circle class="scientific-plate-minimum" cx="330" cy="224" r="4"></circle>
          <circle class="scientific-plate-minimum" cx="475.61" cy="224" r="4"></circle>
        </g>
        <path class="scientific-plate-axis" d="M52 224H608M52 28V224" aria-hidden="true"></path>
      </svg>
      <span class="scientific-plate-overlap-state" data-overlap-state>equal-depth coexistence</span><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:8.2%;--plate-math-y:5.7%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>U</mi><mi>u</mi></msub><mo stretchy="false">(</mo><mi>ρ</mi><mo stretchy="false">)</mo><mo>−</mo><mi>min</mi><mo>⁡</mo><msub><mi>U</mi><mi>u</mi></msub></mrow><annotation encoding="application/x-tex">U_u(\rho)-\min U_u</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:19.4%;--plate-math-y:88.3%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>−</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">-1</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:51.55%;--plate-math-y:88.3%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0</mn></mrow><annotation encoding="application/x-tex">0</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:83.75%;--plate-math-y:88.3%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn></mrow><annotation encoding="application/x-tex">1</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--right scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:95%;--plate-math-y:88.3%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi></mrow><annotation encoding="application/x-tex">\rho</annotation></semantics></math></span></span></div>
  </div>

  <aside class="scientific-plate-overlap-population" aria-label="Hidden-unit population by overlap">
    <div class="scientific-plate-overlap-population-header">
      <span data-overlap-population-phase>GMFL-I</span>
      <span class="scientific-plate-overlap-moment"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>R</mi></mrow><annotation encoding="application/x-tex">R</annotation></semantics></math></span></span><span aria-hidden="true"> = </span><output data-overlap-population-moment>0.15</output>
      </span>
    </div>
    <div class="scientific-plate-graphic scientific-plate-overlap-population-graphic">
      <svg viewBox="0 0 230 174" role="img" aria-labelledby="overlap-phase-portrait-population-title overlap-phase-portrait-population-desc" focusable="false">
        <title id="overlap-phase-portrait-population-title">A schematic hidden-unit population on the overlap axis</title>
        <desc id="overlap-phase-portrait-population-desc">Twenty sign-symmetric neuron pairs move between the centred overlap state and the two teacher-aligned states as effective load increases. Vertical position only separates the units.</desc>
        <path class="scientific-plate-condition scientific-plate-condition--population" d="M115 16V150" aria-hidden="true"></path>
        <path class="scientific-plate-population-minima" data-overlap-population-minima d="M61.05 146V154M115 146V154M168.95 146V154" aria-hidden="true"></path>
        <g class="scientific-plate-population-points" aria-hidden="true">
          <circle data-overlap-unit cx="66.75" cy="121.30" r="2.7"></circle>
          <circle data-overlap-unit cx="163.25" cy="30.01" r="2.7"></circle>
          <circle data-overlap-unit cx="62.53" cy="95.54" r="2.7"></circle>
          <circle data-overlap-unit cx="167.47" cy="94.28" r="2.7"></circle>
          <circle data-overlap-unit cx="58.32" cy="98.28" r="2.7"></circle>
          <circle data-overlap-unit cx="171.68" cy="65.18" r="2.7"></circle>
          <circle data-overlap-unit cx="66.15" cy="87.17" r="2.7"></circle>
          <circle data-overlap-unit cx="163.85" cy="94.21" r="2.7"></circle>
          <circle data-overlap-unit cx="61.93" cy="26.69" r="2.7"></circle>
          <circle data-overlap-unit cx="168.07" cy="121.77" r="2.7"></circle>
          <circle data-overlap-unit cx="76.62" cy="50.87" r="2.7"></circle>
          <circle data-overlap-unit cx="153.38" cy="106.67" r="2.7"></circle>
          <circle data-overlap-unit cx="99.42" cy="87.19" r="2.7"></circle>
          <circle data-overlap-unit cx="130.58" cy="83.87" r="2.7"></circle>
          <circle data-overlap-unit cx="112.17" cy="107.33" r="2.7"></circle>
          <circle data-overlap-unit cx="117.83" cy="62.85" r="2.7"></circle>
          <circle data-overlap-unit cx="101.24" cy="76.30" r="2.7"></circle>
          <circle data-overlap-unit cx="128.76" cy="85.60" r="2.7"></circle>
          <circle data-overlap-unit cx="101.24" cy="90.52" r="2.7"></circle>
          <circle data-overlap-unit cx="128.76" cy="119.30" r="2.7"></circle>
          <circle data-overlap-unit cx="112.17" cy="65.22" r="2.7"></circle>
          <circle data-overlap-unit cx="117.83" cy="94.70" r="2.7"></circle>
          <circle data-overlap-unit cx="99.42" cy="44.52" r="2.7"></circle>
          <circle data-overlap-unit cx="130.58" cy="44.53" r="2.7"></circle>
          <circle data-overlap-unit cx="103.06" cy="131.21" r="2.7"></circle>
          <circle data-overlap-unit cx="126.94" cy="35.88" r="2.7"></circle>
          <circle data-overlap-unit cx="110.35" cy="43.07" r="2.7"></circle>
          <circle data-overlap-unit cx="119.65" cy="118.91" r="2.7"></circle>
          <circle data-overlap-unit cx="97.59" cy="96.54" r="2.7"></circle>
          <circle data-overlap-unit cx="132.41" cy="71.17" r="2.7"></circle>
          <circle data-overlap-unit cx="104.88" cy="53.34" r="2.7"></circle>
          <circle data-overlap-unit cx="125.12" cy="44.06" r="2.7"></circle>
          <circle data-overlap-unit cx="108.52" cy="124.93" r="2.7"></circle>
          <circle data-overlap-unit cx="121.48" cy="112.55" r="2.7"></circle>
          <circle data-overlap-unit cx="95.77" cy="23.79" r="2.7"></circle>
          <circle data-overlap-unit cx="134.23" cy="24.66" r="2.7"></circle>
          <circle data-overlap-unit cx="106.70" cy="89.36" r="2.7"></circle>
          <circle data-overlap-unit cx="123.30" cy="65.06" r="2.7"></circle>
          <circle data-overlap-unit cx="106.70" cy="62.59" r="2.7"></circle>
          <circle data-overlap-unit cx="123.30" cy="119.84" r="2.7"></circle>
        </g>
        <path class="scientific-plate-axis" d="M12 150H218" aria-hidden="true"></path>
      </svg><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:16.8%;--plate-math-y:93%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>−</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">-1</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:50%;--plate-math-y:93%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0</mn></mrow><annotation encoding="application/x-tex">0</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:83.2%;--plate-math-y:93%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn></mrow><annotation encoding="application/x-tex">1</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:96%;--plate-math-y:93%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ρ</mi><mi>i</mi></msub></mrow><annotation encoding="application/x-tex">\rho_i</annotation></semantics></math></span></span></div>
  </aside>
</div>

<p class="scientific-plate-control-hint" id="overlap-phase-portrait-load-hint">Drag, or use the arrow keys for fine steps.</p>
</div>
  <figcaption class="scientific-plate-caption">Move the effective interaction <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>u</mi></mrow><annotation encoding="application/x-tex">u</annotation></semantics></math></span></span> through an analytic slice of the 2024 mean field action. The curve fixes <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup><mo>=</mo><mn>0.5</mn></mrow><annotation encoding="application/x-tex">\sigma_w^2=0.5</annotation></semantics></math></span></span>, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>b</mi><mo>=</mo><mn>0.30</mn></mrow><annotation encoding="application/x-tex">b=0.30</annotation></semantics></math></span></span>, and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>c</mi><mo>=</mo><mo>−</mo><mn>0.30</mn></mrow><annotation encoding="application/x-tex">c=-0.30</annotation></semantics></math></span></span>. The population of forty units follows the same minima. Units stay near zero in GFL, divide between the centre and side wells in GMFL-I, and occupy the side wells in GMFL-II. Vertical position separates the dots. The displayed <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>R</mi></mrow><annotation encoding="application/x-tex">R</annotation></semantics></math></span></span> is the second moment of the dots. The dots and their mixture weights are illustrative. The full theory solves <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>b</mi></mrow><annotation encoding="application/x-tex">b</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>c</mi></mrow><annotation encoding="application/x-tex">c</annotation></semantics></math></span></span> through self consistency.</figcaption>
</figure>

<h2 id="rank-one-update"><a class="section-anchor" href="#rank-one-update" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>The hidden covariance records the learned direction
</h2>
<p>Let</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>R</mi><mo>=</mo><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msup><mi>ρ</mi><mn>2</mn></msup><mo stretchy="false">]</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
R=\EE[\rho^2].
</annotation></semantics></math></span></div>
</div><p>Before alignment, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>R</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">R=O(D^{-1})</annotation></semantics></math></span></span>. Once the posterior assigns finite mass near <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><mo>±</mo><msub><mi>ρ</mi><mo>∗</mo></msub></mrow><annotation encoding="application/x-tex">\rho=\pm\rho_*</annotation></semantics></math></span></span>, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>R</mi></mrow><annotation encoding="application/x-tex">R</annotation></semantics></math></span></span> becomes <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">O(1)</annotation></semantics></math></span></span>. Symmetry still gives <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi>ρ</mi><mo stretchy="false">]</mo><mo>=</mo><mn>0</mn></mrow><annotation encoding="application/x-tex">\EE[\rho]=0</annotation></semantics></math></span></span>.</p>
<p>Decompose a hidden weight into parts parallel and orthogonal to the teacher,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="bold">w</mi><mo>=</mo><mi>ρ</mi><mi mathvariant="bold">e</mi><mo>+</mo><mi mathvariant="bold-italic">ξ</mi><mo separator="true">,</mo><mspace width="2em"/><msup><mi mathvariant="bold">e</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold-italic">ξ</mi><mo>=</mo><mn>0.</mn></mrow><annotation encoding="application/x-tex">
\mathbf w=\rho\mathbf e+\boldsymbol\xi,
\qquad
\mathbf e^{\mathsf T}\boldsymbol\xi=0.
</annotation></semantics></math></span></div>
</div><p>The orthogonal directions remain equivalent. To leading order at large <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>D</mi></mrow><annotation encoding="application/x-tex">D</annotation></semantics></math></span></span>,</p>
<div class="math-equation math-equation--wide" id="equation-rank-one-covariance" data-equation="rank-one-covariance" data-equation-number="5.1">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi mathvariant="bold">w</mi><msup><mi mathvariant="bold">w</mi><mi mathvariant="normal">𝖳</mi></msup><mo stretchy="false">]</mo><mo>=</mo><mfrac><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup><mrow><mi>D</mi><mo>−</mo><mn>1</mn></mrow></mfrac><mo fence="true" stretchy="true" minsize="1.2em" maxsize="1.2em">(</mo><mi mathvariant="bold">I</mi><mo>−</mo><mi mathvariant="bold">e</mi><msup><mi mathvariant="bold">e</mi><mi mathvariant="normal">𝖳</mi></msup><mo fence="true" stretchy="true" minsize="1.2em" maxsize="1.2em">)</mo><mo>+</mo><mi>R</mi><mtext> </mtext><mi mathvariant="bold">e</mi><msup><mi mathvariant="bold">e</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\EE[\mathbf w\mathbf w^{\mathsf T}]
=\frac{\sigma_w^2}{D-1}
\bigl(\mathbf I-\mathbf e\mathbf e^{\mathsf T}\bigr)
+R\,\mathbf e\mathbf e^{\mathsf T}.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-rank-one-covariance" aria-label="Equation 5.1">
    <span class="equation-number-value" aria-hidden="true">(5.1)</span>
  </a>
</div>

<p>The covariance receives a rank one correction along <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">\mathbf e</annotation></semantics></math></span></span>. <a class="plate-ref" href="#plate-weight-covariance" data-plate-ref="weight-covariance" aria-label="Plate 5.1"><span class="plate-ref-kind">Plate</span> <span class="plate-ref-number">5.1</span></a> shows why the second moment is the right measure. A symmetric pair of aligned populations can have zero mean while its covariance records the learned direction.</p>
<figure class="scientific-plate scientific-plate--rank-one" id="plate-weight-covariance" data-scientific-plate="rank-one" data-plate-number="5.1">
  <header class="scientific-plate-header">
    <span class="scientific-plate-number">Plate 5.1</span>
    <span class="scientific-plate-title">The covariance records direction learning</span>
  </header>
  <div class="scientific-plate-body"><div class="scientific-plate-panels scientific-plate-panels--two scientific-plate-panels--covariance">
  <section class="scientific-plate-panel" aria-labelledby="weight-covariance-isotropic-label">
    <p class="scientific-plate-panel-title" id="weight-covariance-isotropic-label">before direction learning</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 330 214" role="img" aria-labelledby="weight-covariance-isotropic-title weight-covariance-isotropic-desc">
        <title id="weight-covariance-isotropic-title">An isotropic hidden-weight distribution</title>
        <desc id="weight-covariance-isotropic-desc">Hidden weights form an approximately circular cloud around zero in a plane containing the teacher direction.</desc>
        <path class="scientific-plate-axis scientific-plate-axis--quiet" d="M39 107H291M165 24V190"></path>
        <circle class="scientific-plate-covariance-outline" cx="165" cy="107" r="66"></circle>
        <g class="scientific-plate-points scientific-plate-points--quiet" aria-hidden="true">
          <circle cx="121" cy="73" r="2.8"></circle><circle cx="145" cy="54" r="2.8"></circle>
          <circle cx="183" cy="55" r="2.8"></circle><circle cx="209" cy="73" r="2.8"></circle>
          <circle cx="225" cy="107" r="2.8"></circle><circle cx="205" cy="139" r="2.8"></circle>
          <circle cx="176" cy="158" r="2.8"></circle><circle cx="142" cy="151" r="2.8"></circle>
          <circle cx="111" cy="128" r="2.8"></circle><circle cx="105" cy="96" r="2.8"></circle>
          <circle cx="155" cy="82" r="2.8"></circle><circle cx="190" cy="101" r="2.8"></circle>
          <circle cx="165" cy="125" r="2.8"></circle><circle cx="137" cy="111" r="2.8"></circle>
        </g>
        <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" d="M64 107H274"></path>
        <path class="scientific-plate-event" d="M260 101L274 107L260 113"></path>
      </svg><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:85%;--plate-math-y:49%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">\mathbf e</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--ink scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:50%;--plate-math-y:91%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>R</mi><mo>=</mo><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msup><mi>ρ</mi><mn>2</mn></msup><mo stretchy="false">]</mo><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">R=\EE[\rho^2]=O(D^{-1})</annotation></semantics></math></span></span></div>
  </section>

  <section class="scientific-plate-panel" aria-labelledby="weight-covariance-anisotropic-label">
    <p class="scientific-plate-panel-title" id="weight-covariance-anisotropic-label">after direction learning</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 330 214" role="img" aria-labelledby="weight-covariance-anisotropic-title weight-covariance-anisotropic-desc">
        <title id="weight-covariance-anisotropic-title">A hidden-weight distribution elongated along the teacher</title>
        <desc id="weight-covariance-anisotropic-desc">The cloud is symmetric about zero but elongated along the teacher axis, showing a rank-one covariance increase without a nonzero mean weight.</desc>
        <path class="scientific-plate-axis scientific-plate-axis--quiet" d="M39 107H291M165 24V190"></path>
        <ellipse class="scientific-plate-covariance-outline scientific-plate-covariance-outline--learned" cx="165" cy="107" rx="112" ry="45"></ellipse>
        <g class="scientific-plate-points scientific-plate-points--learned" aria-hidden="true">
          <circle cx="72" cy="99" r="2.8"></circle><circle cx="90" cy="120" r="2.8"></circle>
          <circle cx="111" cy="82" r="2.8"></circle><circle cx="129" cy="109" r="2.8"></circle>
          <circle cx="145" cy="72" r="2.8"></circle><circle cx="156" cy="124" r="2.8"></circle>
          <circle cx="174" cy="91" r="2.8"></circle><circle cx="190" cy="131" r="2.8"></circle>
          <circle cx="209" cy="81" r="2.8"></circle><circle cx="225" cy="111" r="2.8"></circle>
          <circle cx="250" cy="94" r="2.8"></circle><circle cx="267" cy="117" r="2.8"></circle>
          <circle cx="115" cy="131" r="2.8"></circle><circle cx="220" cy="134" r="2.8"></circle>
        </g>
        <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" d="M45 107H285"></path>
        <path class="scientific-plate-event" d="M271 101L285 107L271 113"></path>
      </svg><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:88%;--plate-math-y:49%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">\mathbf e</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:50%;--plate-math-y:91%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>R</mi><mo>=</mo><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msup><mi>ρ</mi><mn>2</mn></msup><mo stretchy="false">]</mo><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">R=\EE[\rho^2]=O(1)</annotation></semantics></math></span></span></div>
  </section>
</div><div class="scientific-plate-math scientific-plate-math--ink scientific-plate-math--left scientific-plate-math--formula scientific-plate-math--strip math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi mathvariant="bold">w</mi><msup><mi mathvariant="bold">w</mi><mi mathvariant="normal">𝖳</mi></msup><mo stretchy="false">]</mo><mo>=</mo><mfrac><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup><mrow><mi>D</mi><mo>−</mo><mn>1</mn></mrow></mfrac><mi mathvariant="bold">I</mi><mo>+</mo><mrow><mo fence="true">(</mo><mi>R</mi><mo>−</mo><mfrac><msubsup><mi>σ</mi><mi>w</mi><mn>2</mn></msubsup><mrow><mi>D</mi><mo>−</mo><mn>1</mn></mrow></mfrac><mo fence="true">)</mo></mrow><mi mathvariant="bold">e</mi><msup><mi mathvariant="bold">e</mi><mi mathvariant="normal">𝖳</mi></msup></mrow><annotation encoding="application/x-tex">\EE[\mathbf w\mathbf w^{\mathsf T}]=\frac{\sigma_w^2}{D-1}\mathbf I+\left(R-\frac{\sigma_w^2}{D-1}\right)\mathbf e\mathbf e^{\mathsf T}</annotation></semantics></math></span></div></div>
  <figcaption class="scientific-plate-caption">The weight mean can remain zero because the two signs are equivalent. The second moment acquires an eigenvalue of order one along the teacher direction. Multiplying the original isotropic kernel by one scalar cannot represent this directional change.</figcaption>
</figure>

<p>The rank one term is a direct measure of explicit feature learning. A scalar rescaling changes every direction by the same factor, while the adaptive covariance changes the target direction. Rubin and collaborators retain this directional information across several network scaling regimes, including regimes where a scalar rescaling predicts some mean outputs well <span class="article-citation" data-citation>(<a id="cite-rubin2025-35" href="#ref-rubin2025" role="doc-biblioref" data-citation-key="rubin2025">Rubin et al., 2025</a>)</span>.</p>
<h2 id="self-consistency"><a class="section-anchor" href="#self-consistency" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Self consistency closes the feature learning loop
</h2>
<p>The one neuron posterior starts from coefficients <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">(</mo><mi>b</mi><mo separator="true">,</mo><mi>c</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">(b,c)</annotation></semantics></math></span></span> in the residual. The whole network determines those coefficients through its current prediction.</p>
<p>For a candidate residual, the overlap posterior defines an adaptive kernel,</p>
<div class="math-equation math-equation--wide" id="equation-adaptive-kernel" data-equation="adaptive-kernel" data-equation-number="6.1">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>K</mi><mrow><mi>μ</mi><mi>ν</mi></mrow></msub><mo stretchy="false">(</mo><mi>b</mi><mo separator="true">,</mo><mi>c</mi><mo stretchy="false">)</mo><mo>=</mo><mi>N</mi><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><mtext> </mtext><msub><mi mathvariant="normal">𝔼</mi><mrow><mi>p</mi><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo>∣</mo><mi>b</mi><mo separator="true">,</mo><mi>c</mi><mo stretchy="false">)</mo></mrow></msub><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><msup><mi mathvariant="bold">w</mi><mi mathvariant="normal">𝖳</mi></msup><msup><mi mathvariant="bold">x</mi><mi>μ</mi></msup><mo stretchy="false">)</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><msup><mi mathvariant="bold">w</mi><mi mathvariant="normal">𝖳</mi></msup><msup><mi mathvariant="bold">x</mi><mi>ν</mi></msup><mo stretchy="false">)</mo><mo fence="true">]</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">K_{\mu\nu}(b,c)
=Ns_a^2\,
\EE_{p(\mathbf w\mid b,c)}\!\left[
\operatorname{erf}(\mathbf w^{\mathsf T}\mathbf x^\mu)
\operatorname{erf}(\mathbf w^{\mathsf T}\mathbf x^\nu)
\right].</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-adaptive-kernel" aria-label="Equation 6.1">
    <span class="equation-number-value" aria-hidden="true">(6.1)</span>
  </a>
</div>

<p>For that kernel, the posterior mean residual on the training set is</p>
<div class="math-equation" id="equation-posterior-residual" data-equation="posterior-residual" data-equation-number="6.2">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mover accent="true"><mi mathvariant="bold">r</mi><mo stretchy="true">‾</mo></mover><mo>=</mo><mi>T</mi><mo fence="true" stretchy="true" minsize="1.2em" maxsize="1.2em">(</mo><mi mathvariant="bold">K</mi><mo stretchy="false">(</mo><mi>b</mi><mo separator="true">,</mo><mi>c</mi><mo stretchy="false">)</mo><mo>+</mo><mi>T</mi><mi mathvariant="bold">I</mi><msup><mo fence="true" stretchy="true" minsize="1.2em" maxsize="1.2em">)</mo><mrow><mo>−</mo><mn>1</mn></mrow></msup><mi mathvariant="bold">y</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\overline{\mathbf r}
=T\bigl(\mathbf K(b,c)+T\mathbf I\bigr)^{-1}\mathbf y.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-posterior-residual" aria-label="Equation 6.2">
    <span class="equation-number-value" aria-hidden="true">(6.2)</span>
  </a>
</div>

<p>Projecting <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mover accent="true"><mi mathvariant="bold">r</mi><mo stretchy="true">‾</mo></mover></mrow><annotation encoding="application/x-tex">\overline{\mathbf r}</annotation></semantics></math></span></span> onto <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>H</mi><mn>1</mn></msub></mrow><annotation encoding="application/x-tex">H_1</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>H</mi><mn>3</mn></msub></mrow><annotation encoding="application/x-tex">H_3</annotation></semantics></math></span></span> gives new coefficients <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">(</mo><mi>b</mi><mo separator="true">,</mo><mi>c</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">(b,c)</annotation></semantics></math></span></span>. A solution is a fixed point of this map. <a class="plate-ref" href="#plate-adaptive-loop" data-plate-ref="adaptive-loop" aria-label="Plate 6.1"><span class="plate-ref-kind">Plate</span> <span class="plate-ref-number">6.1</span></a> shows the full loop.</p>
<figure class="scientific-plate scientific-plate--self-consistency" id="plate-adaptive-loop" data-scientific-plate="self-consistency" data-plate-number="6.1">
  <header class="scientific-plate-header">
    <span class="scientific-plate-number">Plate 6.1</span>
    <span class="scientific-plate-title">The learned features and residual must agree</span>
  </header>
  <div class="scientific-plate-body"><div class="scientific-plate-plot scientific-plate-plot--self-consistency">
  <div class="scientific-plate-graphic">
    <svg viewBox="0 0 720 310" role="img" aria-labelledby="adaptive-loop-loop-title adaptive-loop-loop-desc">
      <title id="adaptive-loop-loop-title">The adaptive-kernel self-consistency loop</title>
      <desc id="adaptive-loop-loop-desc">Four states form a clockwise loop. Residual coefficients determine an overlap posterior, the posterior determines an adaptive kernel, the kernel determines a predictor, and the predictor returns new residual coefficients.</desc>
      <path class="scientific-plate-loop" d="M360 52C510 52 608 95 608 155C608 224 499 258 360 258C221 258 112 224 112 155C112 95 210 52 360 52"></path>
      <g class="scientific-plate-loop-nodes" aria-hidden="true">
        <circle cx="360" cy="52" r="10"></circle>
        <circle cx="608" cy="155" r="10"></circle>
        <circle cx="360" cy="258" r="10"></circle>
        <circle cx="112" cy="155" r="10"></circle>
      </g>
      <g class="scientific-plate-arrowheads" aria-hidden="true">
        <path d="M500 67L513 71L503 80"></path>
        <path d="M589 218L583 231L574 220"></path>
        <path d="M220 244L207 240L217 231"></path>
        <path d="M131 92L137 79L146 90"></path>
      </g>
      <path class="scientific-plate-condition" d="M360 42V24M598 155H512M360 268V288M122 155H208"></path>
    </svg><span class="scientific-plate-math scientific-plate-math--ink scientific-plate-math--center scientific-plate-math--formula scientific-plate-math--anchor math-inline" style="--plate-math-x:50%;--plate-math-y:5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>r</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mi>b</mi><msub><mi>H</mi><mn>1</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo>+</mo><mi>c</mi><msub><mi>H</mi><mn>3</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">r(x)=bH_1(z)+cH_3(z)</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--center scientific-plate-math--formula scientific-plate-math--anchor math-inline" style="--plate-math-x:69%;--plate-math-y:50%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>p</mi><mo stretchy="false">(</mo><mi>ρ</mi><mo>∣</mo><mi>b</mi><mo separator="true">,</mo><mi>c</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">p(\rho\mid b,c)</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--center scientific-plate-math--formula scientific-plate-math--anchor math-inline" style="--plate-math-x:50%;--plate-math-y:94%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>K</mi><mrow><mi>b</mi><mo separator="true">,</mo><mi>c</mi></mrow></msub></mrow><annotation encoding="application/x-tex">K_{b,c}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--blue scientific-plate-math--center scientific-plate-math--formula scientific-plate-math--anchor math-inline" style="--plate-math-x:31%;--plate-math-y:50%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mover accent="true"><mi>r</mi><mo>ˉ</mo></mover><mo>=</mo><mi>T</mi><mo stretchy="false">(</mo><msub><mi>K</mi><mrow><mi>b</mi><mo separator="true">,</mo><mi>c</mi></mrow></msub><mo>+</mo><mi>T</mi><mi mathvariant="bold">I</mi><msup><mo stretchy="false">)</mo><mrow><mo>−</mo><mn>1</mn></mrow></msup><mi>y</mi></mrow><annotation encoding="application/x-tex">\bar r=T(K_{b,c}+T\mathbf I)^{-1}y</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:70.5%;--plate-math-y:26%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>fit one neuron</mtext></mrow><annotation encoding="application/x-tex">\text{fit one neuron}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:70.5%;--plate-math-y:74%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>average features</mtext></mrow><annotation encoding="application/x-tex">\text{average features}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:29.5%;--plate-math-y:74%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>kernel prediction</mtext></mrow><annotation encoding="application/x-tex">\text{kernel prediction}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:29.5%;--plate-math-y:26%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>project residual</mtext></mrow><annotation encoding="application/x-tex">\text{project residual}</annotation></semantics></math></span></span></div>
</div>
</div>
  <figcaption class="scientific-plate-caption">The residual sets the posterior over hidden directions. The posterior sets the adaptive kernel, and the kernel changes the residual. A self consistent solution satisfies all parts of the loop together.</figcaption>
</figure>

<p>The calculation for one neuron becomes a network theory only after solving this loop. The residual specifies what remains to be learned. The hidden weight distribution changes the kernel, and the new kernel produces a new residual. We want to carry the requirement that representation and prediction error agree beyond this model.</p>
<h2 id="sample-complexity"><a class="section-anchor" href="#sample-complexity" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>A sample complexity corollary
</h2>
<p>The learned direction changes the kernel power assigned to the cubic teacher mode. Before alignment, a random hidden direction has <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\rho=O(D^{-1/2})</annotation></semantics></math></span></span>, so the cubic kernel power is <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>3</mn></mrow></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">O(D^{-3})</annotation></semantics></math></span></span>. After alignment, a finite part of the posterior has <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\rho=O(1)</annotation></semantics></math></span></span>, so the same channel has order one strength.</p>
<details class="article-calculation" id="calculation-cubic-sample-scale">
  <summary class="article-calculation__summary">
    <span class="article-calculation__fold" aria-hidden="true"></span>
    <span class="article-calculation__label">Calculation</span>
    <span class="article-calculation__title">Derive the cubic sample scale</span>
    <span class="article-calculation__state" aria-hidden="true"></span>
  </summary>
  <div class="article-calculation__body"><p>The third Hermite coefficient of one erf feature is</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>h</mi><mn>3</mn></msub><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mo>=</mo><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi mathvariant="normal">erf</mi><mo>⁡</mo><mo stretchy="false">(</mo><msup><mi mathvariant="bold">w</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold">x</mi><mo stretchy="false">)</mo><msub><mi>H</mi><mn>3</mn></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo>=</mo><mo>−</mo><mfrac><mrow><mn>4</mn><msup><mi>ρ</mi><mn>3</mn></msup></mrow><mrow><msqrt><mi>π</mi></msqrt><mo stretchy="false">(</mo><mn>1</mn><mo>+</mo><mn>2</mn><mi>q</mi><msup><mo stretchy="false">)</mo><mrow><mn>3</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup></mrow></mfrac><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
h_3(\mathbf w)
=\EE[\operatorname{erf}(\mathbf w^{\mathsf T}\mathbf x)H_3(z)]
=-\frac{4\rho^3}{\sqrt\pi(1+2q)^{3/2}}.
</annotation></semantics></math></span></div>
</div><p>At initialization, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\rho=O(D^{-1/2})</annotation></semantics></math></span></span>, which gives</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>h</mi><mn>3</mn></msub><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>3</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mo stretchy="false">)</mo><mo separator="true">,</mo><mspace width="2em"/><msub><mi>h</mi><mn>3</mn></msub><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>3</mn></mrow></msup><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
h_3(\mathbf w)=O(D^{-3/2}),
\qquad
h_3(\mathbf w)^2=O(D^{-3}).
</annotation></semantics></math></span></div>
</div><p>The squared coefficient controls the kernel power. With <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi><msubsup><mi>s</mi><mi>a</mi><mn>2</mn></msubsup><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">Ns_a^2=O(1)</annotation></semantics></math></span></span>, averaging over width leaves the <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>D</mi><mrow><mo>−</mo><mn>3</mn></mrow></msup></mrow><annotation encoding="application/x-tex">D^{-3}</annotation></semantics></math></span></span> scale unchanged. A fixed kernel needs <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mn>3</mn></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P=O(D^3)</annotation></semantics></math></span></span> examples before the cubic mode has order one signal relative to noise. Once the posterior has finite overlap, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>h</mi><mn>3</mn></msub><mo stretchy="false">(</mo><mi mathvariant="bold">w</mi><mo stretchy="false">)</mo><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">h_3(\mathbf w)=O(1)</annotation></semantics></math></span></span>.</p>
</div>
</details>

<p>The linear target mode reveals <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">\mathbf e</annotation></semantics></math></span></span> at <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P=O(D)</annotation></semantics></math></span></span>. The adaptive network can reuse the learned direction for the cubic function of the same coordinate, while a fixed kernel still needs <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mn>3</mn></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P=O(D^3)</annotation></semantics></math></span></span>.<input class="sidenote-toggle" type="checkbox" id="sidenote-41" aria-controls="sidenote-41-note" aria-label="Toggle sidenote">
<label class="sidenote-ref" for="sidenote-41" data-sidenote-reference><span class="sidenote-ref-number" aria-hidden="true"></span></label>
<span class="sidenote" id="sidenote-41-note" role="note" aria-label="Sidenote" data-sidenote-note><span class="sidenote-number" aria-hidden="true"></span>The exponent three comes from squaring <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>h</mi><mn>3</mn></msub><mo>∝</mo><msup><mi>ρ</mi><mn>3</mn></msup></mrow><annotation encoding="application/x-tex">h_3\propto\rho^3</annotation></semantics></math></span></span> when a random overlap has size <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\rho=O(D^{-1/2})</annotation></semantics></math></span></span>. It does not come from counting every cubic monomial in <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>D</mi></mrow><annotation encoding="application/x-tex">D</annotation></semantics></math></span></span> variables.</span></p>
<p><a class="plate-ref" href="#plate-cubic-sample-gap" data-plate-ref="cubic-sample-gap" aria-label="Plate 7.1"><span class="plate-ref-kind">Plate</span> <span class="plate-ref-number">7.1</span></a> compares the two sample scales.</p>
<figure class="scientific-plate scientific-plate--sample-complexity" id="plate-cubic-sample-gap" data-scientific-plate="sample-complexity" data-plate-number="7.1">
  <header class="scientific-plate-header">
    <span class="scientific-plate-number">Plate 7.1</span>
    <span class="scientific-plate-title">A learned direction changes the cubic sample scale</span>
  </header>
  <div class="scientific-plate-body"><div class="scientific-plate-plot scientific-plate-plot--sample-complexity">
  <div class="scientific-plate-graphic">
    <svg viewBox="0 0 720 286" role="img" aria-labelledby="cubic-sample-gap-sample-title cubic-sample-gap-sample-desc">
      <title id="cubic-sample-gap-sample-title">Two routes to the cubic teacher mode</title>
      <desc id="cubic-sample-gap-sample-desc">The upper route keeps random hidden directions. Their overlap is of order one over square root D, so cubic kernel power is of order D to the minus three and sample complexity is D cubed. The lower route uses the linear teacher component to learn the direction with D samples, after which cubic power is order one.</desc>
      <path class="scientific-plate-lane" d="M62 114H657"></path>
      <path class="scientific-plate-lane scientific-plate-lane--learned" d="M62 246H657"></path>
      <g class="scientific-plate-stage-marks" aria-hidden="true">
        <circle cx="85" cy="114" r="5"></circle><circle cx="270" cy="114" r="5"></circle><circle cx="458" cy="114" r="5"></circle><circle cx="640" cy="114" r="5"></circle>
        <circle cx="85" cy="246" r="5"></circle><circle cx="270" cy="246" r="5"></circle><circle cx="458" cy="246" r="5"></circle><circle cx="640" cy="246" r="5"></circle>
      </g>
      <g class="scientific-plate-arrowheads" aria-hidden="true">
        <path d="M251 108L265 114L251 120M439 108L453 114L439 120M621 108L635 114L621 120"></path>
        <path d="M251 240L265 246L251 252M439 240L453 246L439 252M621 240L635 246L621 252"></path>
      </g>
      <text class="scientific-plate-label scientific-plate-label--muted" x="62" y="43">fixed features</text>
      <text class="scientific-plate-label scientific-plate-label--green" x="62" y="162">adaptive features</text>
    </svg><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:11.8%;--plate-math-y:28.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">w</mi><mo>∼</mo><msub><mi>p</mi><mn>0</mn></msub></mrow><annotation encoding="application/x-tex">\mathbf w\sim p_0</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:37.5%;--plate-math-y:28.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\rho=O(D^{-1/2})</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:63.6%;--plate-math-y:28.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>h</mi><mn>3</mn><mn>2</mn></msubsup><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>3</mn></mrow></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">h_3^2=O(D^{-3})</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--center scientific-plate-math--formula scientific-plate-math--anchor math-inline" style="--plate-math-x:88.8%;--plate-math-y:28.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>P</mi><mrow><mi mathvariant="normal">f</mi><mi mathvariant="normal">i</mi><mi mathvariant="normal">x</mi><mi mathvariant="normal">e</mi><mi mathvariant="normal">d</mi></mrow></msub><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mn>3</mn></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P_{\mathrm{fixed}}=O(D^3)</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:11.8%;--plate-math-y:74.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>H</mi><mn>1</mn></msub><mtext> estimates </mtext><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">H_1\ \text{estimates }\mathbf e</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:37.5%;--plate-math-y:74.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>P</mi><mrow><mi mathvariant="normal">a</mi><mi mathvariant="normal">l</mi><mi mathvariant="normal">i</mi><mi mathvariant="normal">g</mi><mi mathvariant="normal">n</mi></mrow></msub><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P_{\mathrm{align}}=O(D)</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:63.6%;--plate-math-y:74.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo><mo separator="true">,</mo><mspace width="1em"/><msubsup><mi>h</mi><mn>3</mn><mn>2</mn></msubsup><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\rho=O(1),\quad h_3^2=O(1)</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--center scientific-plate-math--formula scientific-plate-math--anchor math-inline" style="--plate-math-x:88.8%;--plate-math-y:74.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>P</mi><mrow><mi mathvariant="normal">a</mi><mi mathvariant="normal">d</mi><mi mathvariant="normal">a</mi><mi mathvariant="normal">p</mi><mi mathvariant="normal">t</mi><mi mathvariant="normal">i</mi><mi mathvariant="normal">v</mi><mi mathvariant="normal">e</mi></mrow></msub><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P_{\mathrm{adaptive}}=O(D)</annotation></semantics></math></span></span></div>
</div>
<div class="scientific-plate-sample-mobile">
  <section class="scientific-plate-sample-route" aria-labelledby="cubic-sample-gap-fixed-route">
    <p class="scientific-plate-panel-title" id="cubic-sample-gap-fixed-route">fixed features</p>
    <ol class="scientific-plate-sample-steps">
      <li><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">w</mi><mo>∼</mo><msub><mi>p</mi><mn>0</mn></msub></mrow><annotation encoding="application/x-tex">\mathbf w\sim p_0</annotation></semantics></math></span></span></li>
      <li><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>1</mn><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\rho=O(D^{-1/2})</annotation></semantics></math></span></span></li>
      <li><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>h</mi><mn>3</mn><mn>2</mn></msubsup><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mrow><mo>−</mo><mn>3</mn></mrow></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">h_3^2=O(D^{-3})</annotation></semantics></math></span></span></li>
      <li><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>P</mi><mrow><mi mathvariant="normal">f</mi><mi mathvariant="normal">i</mi><mi mathvariant="normal">x</mi><mi mathvariant="normal">e</mi><mi mathvariant="normal">d</mi></mrow></msub><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mn>3</mn></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P_{\mathrm{fixed}}=O(D^3)</annotation></semantics></math></span></span></li>
    </ol>
  </section>
  <section class="scientific-plate-sample-route scientific-plate-sample-route--learned" aria-labelledby="cubic-sample-gap-adaptive-route">
    <p class="scientific-plate-panel-title" id="cubic-sample-gap-adaptive-route">adaptive features</p>
    <ol class="scientific-plate-sample-steps">
      <li><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>H</mi><mn>1</mn></msub><mtext> estimates </mtext><mi mathvariant="bold">e</mi></mrow><annotation encoding="application/x-tex">H_1\ \text{estimates }\mathbf e</annotation></semantics></math></span></span></li>
      <li><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>P</mi><mrow><mi mathvariant="normal">a</mi><mi mathvariant="normal">l</mi><mi mathvariant="normal">i</mi><mi mathvariant="normal">g</mi><mi mathvariant="normal">n</mi></mrow></msub><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P_{\mathrm{align}}=O(D)</annotation></semantics></math></span></span></li>
      <li><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo><mo separator="true">,</mo><mspace width="1em"/><msubsup><mi>h</mi><mn>3</mn><mn>2</mn></msubsup><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\rho=O(1),\quad h_3^2=O(1)</annotation></semantics></math></span></span></li>
      <li><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>P</mi><mrow><mi mathvariant="normal">a</mi><mi mathvariant="normal">d</mi><mi mathvariant="normal">a</mi><mi mathvariant="normal">p</mi><mi mathvariant="normal">t</mi><mi mathvariant="normal">i</mi><mi mathvariant="normal">v</mi><mi mathvariant="normal">e</mi></mrow></msub><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P_{\mathrm{adaptive}}=O(D)</annotation></semantics></math></span></span></li>
    </ol>
  </section>
</div>
</div>
  <figcaption class="scientific-plate-caption">For fixed features, cubic kernel power falls as the inverse cube of dimension, so the required sample count grows as the cube of dimension. The adaptive network uses the linear mode to identify the teacher direction with a sample count proportional to dimension. Finite overlap then gives the cubic mode order one strength along the same direction.</figcaption>
</figure>

<p>The later adaptive theory predicts learning of the nonlinear component at <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>P</mi><mo>=</mo><mi>O</mi><mo stretchy="false">(</mo><mi>D</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">P=O(D)</annotation></semantics></math></span></span>, while the NNGP and scalar rescaling descriptions retain the <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>O</mi><mo stretchy="false">(</mo><msup><mi>D</mi><mn>3</mn></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">O(D^3)</annotation></semantics></math></span></span> requirement <span class="article-citation" data-citation>(<a id="cite-rubin2025-44" href="#ref-rubin2025" role="doc-biblioref" data-citation-key="rubin2025">Rubin et al., 2025</a>)</span>. The earlier grokking paper observes the same change after the feature learning transition <span class="article-citation" data-citation>(<a id="cite-rubin2024-45" href="#ref-rubin2024" role="doc-biblioref" data-citation-key="rubin2024">Rubin, Seroussi &amp; Ringel, 2024</a>)</span>.</p>
<h2 id="current-work"><a class="section-anchor" href="#current-work" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>What we are working on
</h2>
<p>The calculation above tells us when a hidden layer learns a useful direction, but it leaves open how the layer distributes what it has learned. If <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ρ</mi><mi>i</mi></msub></mrow><annotation encoding="application/x-tex">\rho_i</annotation></semantics></math></span></span> is neuron <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>i</mi></mrow><annotation encoding="application/x-tex">i</annotation></semantics></math></span></span>&rsquo;s overlap with the teacher direction, then its contribution to a degree-<span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>k</mi></mrow><annotation encoding="application/x-tex">k</annotation></semantics></math></span></span> feature is proportional to <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>a</mi><mi>i</mi></msub><msubsup><mi>ρ</mi><mi>i</mi><mi>k</mi></msubsup></mrow><annotation encoding="application/x-tex">a_i\rho_i^k</annotation></semantics></math></span></span>. The same total feature can come from a few strongly aligned neurons or from many neurons whose individual contributions are small. A small aligned population stores the feature in specialists. A broad population stores the feature across many units.</p>
<p>Both populations can compute the same function while having different hidden covariance and unit selectivity. They can also respond differently when neurons are removed. A theory that predicts only the output cannot distinguish them. We want a theory that begins with the posterior over weights and predicts how many neurons participate and how strongly each contributes.</p>
<p>Our current work asks what controls the division between distributed and specialized representations. We study simple models in which training can store the same function in different ways, and we use the posterior over weights to track how many neurons participate. A theory of representation is necessary for interpretability because a faithful account must describe the function a model computes and how its neurons represent that function.</p>
<h2 id="references"><a class="section-anchor" href="#references" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>References
</h2>
<section class="article-references" role="doc-bibliography" aria-labelledby="references">
  <ol class="article-reference-list"><li id="ref-rubin2024" role="doc-biblioentry" data-citation-entry="rubin2024">
      <span class="article-reference-authors">Noa Rubin, Inbar Seroussi, and Zohar Ringel</span>
      (<time datetime="2024">2024</time>).
      <span class="article-reference-title">Grokking as a First Order Phase Transition in Two Layer Networks</span>.
      <cite class="article-reference-publication">International Conference on Learning Representations</cite>.
      <a class="article-reference-identifier" href="https://openreview.net/forum?id=3ROGsTX3IR" rel="external">OpenReview:3ROGsTX3IR</a>.
      <span class="article-reference-backlinks" aria-label="Citation backlinks"><a href="#cite-rubin2024-1" role="doc-backlink" aria-label="Back to citation 1 of 3 for Rubin, Seroussi &amp; Ringel, 2024">↩1</a> <a href="#cite-rubin2024-27" role="doc-backlink" aria-label="Back to citation 2 of 3 for Rubin, Seroussi &amp; Ringel, 2024">↩2</a> <a href="#cite-rubin2024-45" role="doc-backlink" aria-label="Back to citation 3 of 3 for Rubin, Seroussi &amp; Ringel, 2024">↩3</a></span>
    </li><li id="ref-rubin2025" role="doc-biblioentry" data-citation-entry="rubin2025">
      <span class="article-reference-authors">Noa Rubin, Kirsten Fischer, Javed Lindner, Inbar Seroussi, Zohar Ringel, Michael Krämer, and Moritz Helias</span>
      (<time datetime="2025">2025</time>).
      <span class="article-reference-title">From Kernels to Features: A Multi-Scale Adaptive Theory of Feature Learning</span>.
      <cite class="article-reference-publication">Proceedings of the 42nd International Conference on Machine Learning, PMLR 267, 52225-52257</cite>.
      <a class="article-reference-identifier" href="https://proceedings.mlr.press/v267/rubin25a.html" rel="external">PMLR:v267/rubin25a</a>.
      <span class="article-reference-backlinks" aria-label="Citation backlinks"><a href="#cite-rubin2025-2" role="doc-backlink" aria-label="Back to citation 1 of 3 for Rubin et al., 2025">↩1</a> <a href="#cite-rubin2025-35" role="doc-backlink" aria-label="Back to citation 2 of 3 for Rubin et al., 2025">↩2</a> <a href="#cite-rubin2025-44" role="doc-backlink" aria-label="Back to citation 3 of 3 for Rubin et al., 2025">↩3</a></span>
    </li></ol>
</section>

]]></content:encoded></item><item><title>Mathematical properties of Gaussian process neural code</title><link>https://nischmainali.github.io/blog/gp-code-notes/</link><guid isPermaLink="true">https://nischmainali.github.io/blog/gp-code-notes/</guid><pubDate>Thu, 06 Aug 2026 00:00:00 +0000</pubDate><description>A mathematical field note on Gaussian process neural codes, excursion geometry, spectral structure, and coding error.</description><content:encoded><![CDATA[<p><span class="article-dropcap"><span class="article-dropcap-ornament" data-letter="T" aria-hidden="true"></span><span class="article-dropcap-letter">T</span></span>hese notes develop the mathematical properties of Gaussian processes that matter when they are used as models of neural representation. The motivating example is a population code for space. A smooth random field supplies the subthreshold response of each neuron, and a cellular threshold turns its excursions into place fields. This point of view explains much of the field structure seen across species and environments <span class="article-citation" data-citation>(<a id="cite-mainali2024-1" href="#ref-mainali2024" role="doc-biblioref" data-citation-key="mainali2024">Mainali, da Silveira &amp; Burak, 2024</a>)</span>. It also gives a tractable way to ask what such a code can represent and how accurately it can be read.</p>
<p>The note began as a chalk talk at Janelia on 18 November 2024. We begin with Gaussian variables and processes, pass through the geometry of threshold excursions, and finish with a simple calculation of local and global decoding error.</p>
<h2 id="background"><a class="section-anchor" href="#background" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Background
</h2>
<p>Probability enters theoretical neuroscience in several distinct ways. It can represent noise in neural recordings, pose a learning problem with stochastic data or plasticity, model random synaptic weights, or provide an analytical route into large statistical systems. Here randomness serves a different purpose. It models a neural representation itself as a random code over a continuous external variable such as position.</p>
<h3 id="gaussian-variables"><a class="section-anchor" href="#gaussian-variables" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Gaussian variables
</h3>
<section class="math-statement math-statement--definition" id="statement-gaussian-variable" data-statement="gaussian-variable" data-statement-kind="definition" data-statement-numbered="true" data-statement-number="1.1">
  <p class="statement-heading">
    <a class="statement-permalink" href="#statement-gaussian-variable" aria-label="Link to definition 1.1">
      <span class="statement-kind">Definition</span> <span class="statement-number" aria-hidden="true">1.1</span> <span class="statement-title">(Gaussian variables)</span><span aria-hidden="true">.</span>
    </a>
  </p>
  <div class="statement-body"><p>A real random variable <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ξ</mi></mrow><annotation encoding="application/x-tex">\xi</annotation></semantics></math></span></span> is Gaussian when, for some <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>m</mi><mo>∈</mo><mi mathvariant="normal">ℝ</mi></mrow><annotation encoding="application/x-tex">m\in\RR</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>σ</mi><mo>&gt;</mo><mn>0</mn></mrow><annotation encoding="application/x-tex">\sigma&gt;0</annotation></semantics></math></span></span>, it has density</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>ϕ</mi><mi>ξ</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mn>1</mn><msqrt><mrow><mn>2</mn><mi>π</mi><msup><mi>σ</mi><mn>2</mn></msup></mrow></msqrt></mfrac><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mo>−</mo><mfrac><mrow><mo stretchy="false">(</mo><mi>x</mi><mo>−</mo><mi>m</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup></mrow><mrow><mn>2</mn><msup><mi>σ</mi><mn>2</mn></msup></mrow></mfrac><mo fence="true">]</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\phi_\xi(x)
= \frac{1}{\sqrt{2\pi\sigma^2}}
  \exp\!\left[-\frac{(x-m)^2}{2\sigma^2}\right].
</annotation></semantics></math></span></div>
</div><p>A vector <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold-italic">ξ</mi><mo>=</mo><mo stretchy="false">(</mo><msub><mi>ξ</mi><mn>1</mn></msub><mo separator="true">,</mo><mo>…</mo><mo separator="true">,</mo><msub><mi>ξ</mi><mi>p</mi></msub><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\boldsymbol\xi=(\xi_1,\ldots,\xi_p)</annotation></semantics></math></span></span> is jointly Gaussian when every linear combination <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi mathvariant="bold">a</mi><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold-italic">ξ</mi></mrow><annotation encoding="application/x-tex">\mathbf a^{\mathsf T}\boldsymbol\xi</annotation></semantics></math></span></span> is Gaussian. Its mean is <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">m</mi><mo>=</mo><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi mathvariant="bold-italic">ξ</mi><mo stretchy="false">]</mo></mrow><annotation encoding="application/x-tex">\mathbf m=\EE[\boldsymbol\xi]</annotation></semantics></math></span></span> and its covariance matrix is</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="bold">Σ</mi><mo>=</mo><mi mathvariant="normal">𝔼</mi><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mo stretchy="false">(</mo><mi mathvariant="bold-italic">ξ</mi><mo>−</mo><mi mathvariant="bold">m</mi><mo stretchy="false">)</mo><mo stretchy="false">(</mo><mi mathvariant="bold-italic">ξ</mi><mo>−</mo><mi mathvariant="bold">m</mi><msup><mo stretchy="false">)</mo><mi mathvariant="normal">𝖳</mi></msup><mo fence="true">]</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\boldsymbol\Sigma
= \EE\!\left[(\boldsymbol\xi-\mathbf m)(\boldsymbol\xi-\mathbf m)^{\mathsf T}\right].
</annotation></semantics></math></span></div>
</div><p>If <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>det</mi><mo>⁡</mo><mi mathvariant="bold">Σ</mi><mo>&gt;</mo><mn>0</mn></mrow><annotation encoding="application/x-tex">\det\boldsymbol\Sigma&gt;0</annotation></semantics></math></span></span>, its density is</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>ϕ</mi><mi mathvariant="bold-italic">ξ</mi></msub><mo stretchy="false">(</mo><mi mathvariant="bold">x</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mrow><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mo>−</mo><mstyle displaystyle="false" scriptlevel="0"><mfrac><mn>1</mn><mn>2</mn></mfrac></mstyle><mo stretchy="false">(</mo><mi mathvariant="bold">x</mi><mo>−</mo><mi mathvariant="bold">m</mi><msup><mo stretchy="false">)</mo><mi mathvariant="normal">𝖳</mi></msup><msup><mi mathvariant="bold">Σ</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup><mo stretchy="false">(</mo><mi mathvariant="bold">x</mi><mo>−</mo><mi mathvariant="bold">m</mi><mo stretchy="false">)</mo><mo fence="true">]</mo></mrow></mrow><mrow><mo stretchy="false">(</mo><mn>2</mn><mi>π</mi><msup><mo stretchy="false">)</mo><mrow><mi>p</mi><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><msqrt><mrow><mi>det</mi><mo>⁡</mo><mi mathvariant="bold">Σ</mi></mrow></msqrt></mrow></mfrac><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\phi_{\boldsymbol\xi}(\mathbf x)
= \frac{\exp\!\left[-\tfrac12(\mathbf x-\mathbf m)^{\mathsf T}
    \boldsymbol\Sigma^{-1}(\mathbf x-\mathbf m)\right]}
  {(2\pi)^{p/2}\sqrt{\det\boldsymbol\Sigma}}.
</annotation></semantics></math></span></div>
</div></div>
</section>

<h4 id="conditional-gaussian"><a class="section-anchor" href="#conditional-gaussian" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Conditional Gaussian
</h4>
<p>The most useful closure property of a multivariate Gaussian is that conditioning one subset of variables on another still gives a Gaussian. Let <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold-italic">ξ</mi></mrow><annotation encoding="application/x-tex">\boldsymbol\xi</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold-italic">η</mi></mrow><annotation encoding="application/x-tex">\boldsymbol\eta</annotation></semantics></math></span></span> be jointly Gaussian, with means <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi mathvariant="bold">m</mi><mi>ξ</mi></msub></mrow><annotation encoding="application/x-tex">\mathbf m_\xi</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi mathvariant="bold">m</mi><mi>η</mi></msub></mrow><annotation encoding="application/x-tex">\mathbf m_\eta</annotation></semantics></math></span></span>, and covariance</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="bold">Σ</mi><mo>=</mo><mrow><mo fence="true">(</mo><mtable rowspacing="0.16em" columnalign="center center" columnspacing="1em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><msub><mi mathvariant="bold">Σ</mi><mrow><mi>ξ</mi><mi>ξ</mi></mrow></msub></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><msub><mi mathvariant="bold">Σ</mi><mrow><mi>ξ</mi><mi>η</mi></mrow></msub></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><msub><mi mathvariant="bold">Σ</mi><mrow><mi>η</mi><mi>ξ</mi></mrow></msub></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><msub><mi mathvariant="bold">Σ</mi><mrow><mi>η</mi><mi>η</mi></mrow></msub></mstyle></mtd></mtr></mtable><mo fence="true">)</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\boldsymbol\Sigma=
\begin{pmatrix}
\boldsymbol\Sigma_{\xi\xi} &amp; \boldsymbol\Sigma_{\xi\eta}\\
\boldsymbol\Sigma_{\eta\xi} &amp; \boldsymbol\Sigma_{\eta\eta}
\end{pmatrix}.
</annotation></semantics></math></span></div>
</div><section class="math-statement math-statement--theorem" id="statement-gaussian-conditioning" data-statement="gaussian-conditioning" data-statement-kind="theorem" data-statement-numbered="true" data-statement-number="1.2">
  <p class="statement-heading">
    <a class="statement-permalink" href="#statement-gaussian-conditioning" aria-label="Link to theorem 1.2">
      <span class="statement-kind">Theorem</span> <span class="statement-number" aria-hidden="true">1.2</span> <span class="statement-title">(Gaussian conditioning)</span><span aria-hidden="true">.</span>
    </a>
  </p>
  <div class="statement-body"><p>Given <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold-italic">η</mi><mo>=</mo><mi mathvariant="bold">y</mi></mrow><annotation encoding="application/x-tex">\boldsymbol\eta=\mathbf y</annotation></semantics></math></span></span>, the conditional distribution of <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold-italic">ξ</mi></mrow><annotation encoding="application/x-tex">\boldsymbol\xi</annotation></semantics></math></span></span> is Gaussian. Its mean is</p>
<div class="math-equation math-equation--wide" id="equation-conditional-mean" data-equation="conditional-mean" data-equation-number="1.1">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mover accent="true"><mi mathvariant="bold-italic">ξ</mi><mo stretchy="true">^</mo></mover><mo stretchy="false">(</mo><mi mathvariant="bold">y</mi><mo stretchy="false">)</mo><mo>=</mo><msub><mi mathvariant="bold">m</mi><mi>ξ</mi></msub><msub><mi mathvariant="bold">Σ</mi><mrow><mi>ξ</mi><mi>η</mi></mrow></msub><msubsup><mi mathvariant="bold">Σ</mi><mrow><mi>η</mi><mi>η</mi></mrow><mrow><mo>−</mo><mn>1</mn></mrow></msubsup><mo stretchy="false">(</mo><mi mathvariant="bold">y</mi><mo>−</mo><msub><mi mathvariant="bold">m</mi><mi>η</mi></msub><mo stretchy="false">)</mo><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">\widehat{\boldsymbol\xi}(\mathbf y)
= \mathbf m_\xi
 \boldsymbol\Sigma_{\xi\eta}\boldsymbol\Sigma_{\eta\eta}^{-1}
  (\mathbf y-\mathbf m_\eta),</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-conditional-mean" aria-label="Equation 1.1">
    <span class="equation-number-value" aria-hidden="true">(1.1)</span>
  </a>
</div>
<p>and its covariance is</p>
<div class="math-equation math-equation--wide" id="equation-conditional-covariance" data-equation="conditional-covariance" data-equation-number="1.2">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi mathvariant="bold">Σ</mi><mrow><mi>ξ</mi><mi>ξ</mi><mo>∣</mo><mi>η</mi></mrow></msub><mo>=</mo><msub><mi mathvariant="bold">Σ</mi><mrow><mi>ξ</mi><mi>ξ</mi></mrow></msub><mo>−</mo><msub><mi mathvariant="bold">Σ</mi><mrow><mi>ξ</mi><mi>η</mi></mrow></msub><msubsup><mi mathvariant="bold">Σ</mi><mrow><mi>η</mi><mi>η</mi></mrow><mrow><mo>−</mo><mn>1</mn></mrow></msubsup><msub><mi mathvariant="bold">Σ</mi><mrow><mi>η</mi><mi>ξ</mi></mrow></msub><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\boldsymbol\Sigma_{\xi\xi\mid\eta}
= \boldsymbol\Sigma_{\xi\xi}
- \boldsymbol\Sigma_{\xi\eta}\boldsymbol\Sigma_{\eta\eta}^{-1}
  \boldsymbol\Sigma_{\eta\xi}.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-conditional-covariance" aria-label="Equation 1.2">
    <span class="equation-number-value" aria-hidden="true">(1.2)</span>
  </a>
</div>
<p>The covariance does not depend on the observed value <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="bold">y</mi></mrow><annotation encoding="application/x-tex">\mathbf y</annotation></semantics></math></span></span>.</p>
</div>
</section>

<h3 id="gaussian-processes"><a class="section-anchor" href="#gaussian-processes" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Gaussian processes
</h3>
<section class="math-statement math-statement--definition" id="statement-gaussian-process" data-statement="gaussian-process" data-statement-kind="definition" data-statement-numbered="true" data-statement-number="1.3">
  <p class="statement-heading">
    <a class="statement-permalink" href="#statement-gaussian-process" aria-label="Link to definition 1.3">
      <span class="statement-kind">Definition</span> <span class="statement-number" aria-hidden="true">1.3</span> <span class="statement-title">(Gaussian process)</span><span aria-hidden="true">.</span>
    </a>
  </p>
  <div class="statement-body"><p>A stochastic process <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">{</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>:</mo><mi>x</mi><mo>∈</mo><mi mathvariant="normal">ℝ</mi><mo stretchy="false">}</mo></mrow><annotation encoding="application/x-tex">\{f(x):x\in\RR\}</annotation></semantics></math></span></span> is a Gaussian process if every finite linear combination</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>S</mi><mo>=</mo><munder><mo>∑</mo><mi>k</mi></munder><msub><mi>a</mi><mi>k</mi></msub><mi>f</mi><mo stretchy="false">(</mo><msub><mi>x</mi><mi>k</mi></msub><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">
S=\sum_k a_k f(x_k)
</annotation></semantics></math></span></div>
</div><p>is Gaussian. Equivalently, for every finite set <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>x</mi><mn>1</mn></msub><mo separator="true">,</mo><mo>…</mo><mo separator="true">,</mo><msub><mi>x</mi><mi>k</mi></msub></mrow><annotation encoding="application/x-tex">x_1,\ldots,x_k</annotation></semantics></math></span></span>, the vector <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">(</mo><mi>f</mi><mo stretchy="false">(</mo><msub><mi>x</mi><mn>1</mn></msub><mo stretchy="false">)</mo><mo separator="true">,</mo><mo>…</mo><mo separator="true">,</mo><mi>f</mi><mo stretchy="false">(</mo><msub><mi>x</mi><mi>k</mi></msub><mo stretchy="false">)</mo><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">(f(x_1),\ldots,f(x_k))</annotation></semantics></math></span></span> is multivariate Gaussian.</p>
</div>
</section>

<p>Moving from a Gaussian variable to a Gaussian vector replaces one value with a finite indexed collection. A Gaussian process continues that move to a continuously indexed random function. It is completely determined by its mean and covariance functions,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>m</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo separator="true">,</mo><mspace width="2em"/><mi>r</mi><mo stretchy="false">(</mo><mi>x</mi><mo separator="true">,</mo><mi>y</mi><mo stretchy="false">)</mo><mo>=</mo><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mo stretchy="false">(</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>−</mo><mi>m</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo stretchy="false">)</mo><mo stretchy="false">(</mo><mi>f</mi><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo>−</mo><mi>m</mi><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
m(x)=\EE[f(x)],
\qquad
r(x,y)=\EE[(f(x)-m(x))(f(y)-m(y))].
</annotation></semantics></math></span></div>
</div><p>For a stationary process with constant mean, the covariance depends only on the separation <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="normal">Δ</mi><mi>x</mi><mo>=</mo><mi>y</mi><mo>−</mo><mi>x</mi></mrow><annotation encoding="application/x-tex">\Delta x=y-x</annotation></semantics></math></span></span>, so we write <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>r</mi><mo stretchy="false">(</mo><mi>x</mi><mo separator="true">,</mo><mi>y</mi><mo stretchy="false">)</mo><mo>=</mo><mi>r</mi><mo stretchy="false">(</mo><mi mathvariant="normal">Δ</mi><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">r(x,y)=r(\Delta x)</annotation></semantics></math></span></span>. In particular, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>r</mi><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mo>=</mo><msub><mi>r</mi><mn>0</mn></msub></mrow><annotation encoding="application/x-tex">r(0)=r_0</annotation></semantics></math></span></span> is the pointwise variance.</p>
<h3 id="origins-of-a-random-code"><a class="section-anchor" href="#origins-of-a-random-code" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Origins of a random code
</h3>
<p>Consider <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi></mrow><annotation encoding="application/x-tex">N</annotation></semantics></math></span></span> spatially selective neurons presynaptic to a CA1 place cell. Let <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>u</mi><mi>i</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">u_i(x)</annotation></semantics></math></span></span> be the bounded response of input neuron <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>i</mi></mrow><annotation encoding="application/x-tex">i</annotation></semantics></math></span></span> over an environment <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>x</mi><mo>∈</mo><mo stretchy="false">[</mo><mn>0</mn><mo separator="true">,</mo><mi>L</mi><mo stretchy="false">]</mo></mrow><annotation encoding="application/x-tex">x\in[0,L]</annotation></semantics></math></span></span>. For clarity, suppose all inputs share one tuning shape up to translation,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>u</mi><mi>i</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><msub><mi>u</mi><mn>0</mn></msub><mo stretchy="false">(</mo><mi>x</mi><mo>−</mo><msub><mi>x</mi><mi>i</mi></msub><mo stretchy="false">)</mo><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">
u_i(x)=u_0(x-x_i),
</annotation></semantics></math></span></div>
</div><p>with preferred positions <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>x</mi><mi>i</mi></msub></mrow><annotation encoding="application/x-tex">x_i</annotation></semantics></math></span></span> that tile the environment densely and uniformly. The subthreshold input to the CA1 cell is a random weighted sum,</p>
<div class="math-equation" id="equation-random-code" data-equation="random-code" data-equation-number="1.3">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>N</mi></munderover><msub><mi>W</mi><mi>i</mi></msub><msub><mi>u</mi><mi>i</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">f(x)=\sum_{i=1}^{N}W_i u_i(x),</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-random-code" aria-label="Equation 1.3">
    <span class="equation-number-value" aria-hidden="true">(1.3)</span>
  </a>
</div>

<p>where the independent weights <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>W</mi><mi>i</mi></msub></mrow><annotation encoding="application/x-tex">W_i</annotation></semantics></math></span></span> have zero mean and finite variance. For any finite set of locations <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">{</mo><msub><mi>x</mi><mi>k</mi></msub><mo stretchy="false">}</mo></mrow><annotation encoding="application/x-tex">\{x_k\}</annotation></semantics></math></span></span>, the multidimensional central limit theorem gives a jointly Gaussian vector <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">(</mo><mi>f</mi><mo stretchy="false">(</mo><msub><mi>x</mi><mn>1</mn></msub><mo stretchy="false">)</mo><mo separator="true">,</mo><mo>…</mo><mo separator="true">,</mo><mi>f</mi><mo stretchy="false">(</mo><msub><mi>x</mi><mi>k</mi></msub><mo stretchy="false">)</mo><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">(f(x_1),\ldots,f(x_k))</annotation></semantics></math></span></span> as <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi></mrow><annotation encoding="application/x-tex">N</annotation></semantics></math></span></span> grows <span class="article-citation" data-citation>(<a id="cite-vaart1998-6" href="#ref-vaart1998" role="doc-biblioref" data-citation-key="vaart1998">van der Vaart, 1998</a>; <a id="cite-lehmann1998-6" href="#ref-lehmann1998" role="doc-biblioref" data-citation-key="lehmann1998">Lehmann &amp; Casella, 1998</a>)</span>. The limiting random function is therefore a Gaussian process.<input class="sidenote-toggle" type="checkbox" id="sidenote-7" aria-controls="sidenote-7-note" aria-label="Toggle sidenote">
<label class="sidenote-ref" for="sidenote-7" data-sidenote-reference><span class="sidenote-ref-number" aria-hidden="true"></span></label>
<span class="sidenote" id="sidenote-7-note" role="note" aria-label="Sidenote" data-sidenote-note><span class="sidenote-number" aria-hidden="true"></span>The central limit theorem supplies the Gaussian finite-dimensional distributions. The tuning curves and uniform tiling assumptions supply smoothness and stationarity.</span></p>
<p>Uniform tiling also makes the covariance translation invariant. With input density <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi><mo>=</mo><mi>N</mi><mi mathvariant="normal">/</mi><mi>L</mi></mrow><annotation encoding="application/x-tex">\rho=N/L</annotation></semantics></math></span></span>,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mi>f</mi><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><munderover><mo>∑</mo><mrow><mi>i</mi><mo separator="true">,</mo><mi>j</mi><mo>=</mo><mn>1</mn></mrow><mi>N</mi></munderover><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msub><mi>W</mi><mi>i</mi></msub><msub><mi>W</mi><mi>j</mi></msub><mo stretchy="false">]</mo><msub><mi>u</mi><mi>i</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><msub><mi>u</mi><mi>j</mi></msub><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mi mathvariant="normal">Var</mi><mo>⁡</mo><mo stretchy="false">(</mo><mi>W</mi><mo stretchy="false">)</mo><munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>N</mi></munderover><msub><mi>u</mi><mi>i</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><msub><mi>u</mi><mi>i</mi></msub><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>≈</mo><mi mathvariant="normal">Var</mi><mo>⁡</mo><mo stretchy="false">(</mo><mi>W</mi><mo stretchy="false">)</mo><mi>ρ</mi><mo>∫</mo><msub><mi>u</mi><mn>0</mn></msub><mo stretchy="false">(</mo><mi>s</mi><mo stretchy="false">)</mo><msub><mi>u</mi><mn>0</mn></msub><mo stretchy="false">(</mo><mi>s</mi><mo>+</mo><mi mathvariant="normal">Δ</mi><mi>x</mi><mo stretchy="false">)</mo><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>s</mi><mi mathvariant="normal">.</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">
\begin{aligned}
\EE[f(x)f(y)]
&amp;=\sum_{i,j=1}^{N}\EE[W_iW_j]u_i(x)u_j(y)\\
&amp;=\Var(W)\sum_{i=1}^{N}u_i(x)u_i(y)\\
&amp;\approx \Var(W)\rho\int u_0(s)u_0(s+\Delta x)\,\dd s.
\end{aligned}
</annotation></semantics></math></span></div>
</div><p>Choosing <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="normal">Var</mi><mo>⁡</mo><mo stretchy="false">(</mo><mi>W</mi><mo stretchy="false">)</mo><mo>=</mo><mi>L</mi><mi mathvariant="normal">/</mi><mi>N</mi></mrow><annotation encoding="application/x-tex">\Var(W)=L/N</annotation></semantics></math></span></span> leaves a covariance <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>r</mi><mo stretchy="false">(</mo><mi mathvariant="normal">Δ</mi><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">r(\Delta x)</annotation></semantics></math></span></span> that does not grow with population size.</p>
<p>Compare the random weighted sum with the cellular threshold that selects its connected excursions in <a class="plate-ref" href="#plate-random-field-construction" data-plate-ref="random-field-construction" aria-label="Plate 1.1"><span class="plate-ref-kind">Plate</span> <span class="plate-ref-number">1.1</span></a>.</p>
<figure class="scientific-plate scientific-plate--construction" id="plate-random-field-construction" data-scientific-plate="construction" data-plate-number="1.1">
  <header class="scientific-plate-header">
    <span class="scientific-plate-number">Plate 1.1</span>
    <span class="scientific-plate-title">Random input sum and thresholding</span>
  </header>
  <div class="scientific-plate-body"><div class="scientific-plate-panels scientific-plate-panels--three">
  <section class="scientific-plate-panel" aria-labelledby="random-field-construction-inputs-label">
    <p class="scientific-plate-panel-title" id="random-field-construction-inputs-label">translated inputs</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 220 166" role="img" aria-labelledby="random-field-construction-inputs-title random-field-construction-inputs-desc">
        <title id="random-field-construction-inputs-title">Translated presynaptic tuning curves</title>
        <desc id="random-field-construction-inputs-desc">Five compact tuning curves, denoted u sub i of x, tile position. Independent signed weights W sub i accompany them.</desc>
        <path class="scientific-plate-axis" d="M18 138H207"></path>
        <g class="scientific-plate-grid scientific-plate-grid--ticks" aria-hidden="true">
          <path d="M49 134V142M89 134V142M129 134V142M169 134V142"></path>
        </g>
        <g class="scientific-plate-inputs" fill="none">
          <path class="scientific-plate-line scientific-plate-line--quiet" d="M18 136C29 136 32 112 43 92C51 77 57 77 65 92C76 112 79 136 91 136"></path>
          <path class="scientific-plate-line scientific-plate-line--secondary" d="M37 136C49 136 54 104 65 75C74 51 82 51 91 75C102 104 107 136 119 136"></path>
          <path class="scientific-plate-line scientific-plate-line--primary" d="M70 136C82 136 87 96 99 64C108 39 117 39 126 64C138 96 143 136 155 136"></path>
          <path class="scientific-plate-line scientific-plate-line--secondary" d="M105 136C117 136 122 106 133 80C142 59 150 59 159 80C170 106 175 136 187 136"></path>
          <path class="scientific-plate-line scientific-plate-line--quiet" d="M137 136C149 136 153 115 164 96C173 80 180 80 188 96C199 115 202 136 210 136"></path>
        </g>
      </svg><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:8.6%;--plate-math-y:11.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>u</mi><mi>i</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">u_i(x)</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:68.6%;--plate-math-y:14.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>W</mi><mi>i</mi></msub></mrow><annotation encoding="application/x-tex">W_i</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:94.1%;--plate-math-y:92.8%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>position </mtext><mi>x</mi></mrow><annotation encoding="application/x-tex">\text{position }x</annotation></semantics></math></span></span></div>
  </section>

  <section class="scientific-plate-panel" aria-labelledby="random-field-construction-sum-label">
    <p class="scientific-plate-panel-title" id="random-field-construction-sum-label">weighted sum</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 220 166" role="img" aria-labelledby="random-field-construction-sum-title random-field-construction-sum-desc">
        <title id="random-field-construction-sum-title">Weighted tuning curves sum to a Gaussian field</title>
        <desc id="random-field-construction-sum-desc">A smooth irregular field f of x fluctuates around zero after the weighted input curves are added.</desc>
        <path class="scientific-plate-axis" d="M18 84H207"></path>
        <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" d="M18 96C32 70 43 58 57 76C70 94 78 123 95 114C111 105 116 51 134 47C151 42 159 91 175 95C189 99 197 69 207 58"></path>
        <line class="scientific-plate-event scientific-plate-event--quiet" x1="95" y1="114" x2="95" y2="132"></line>
        <text class="scientific-plate-label scientific-plate-label--green" x="140" y="39">random field</text>
      </svg><span class="scientific-plate-math scientific-plate-math--ink scientific-plate-math--left scientific-plate-math--formula scientific-plate-math--anchor math-inline" style="--plate-math-x:9.1%;--plate-math-y:11.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><msub><mo>∑</mo><mi>i</mi></msub><msub><mi>W</mi><mi>i</mi></msub><msub><mi>u</mi><mi>i</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">f(x)=\sum_i W_i u_i(x)</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:94.1%;--plate-math-y:92.8%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>position </mtext><mi>x</mi></mrow><annotation encoding="application/x-tex">\text{position }x</annotation></semantics></math></span></span></div>
  </section>

  <section class="scientific-plate-panel" aria-labelledby="random-field-construction-threshold-label">
    <p class="scientific-plate-panel-title" id="random-field-construction-threshold-label">cellular threshold</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 220 166" role="img" aria-labelledby="random-field-construction-threshold-title random-field-construction-threshold-desc">
        <title id="random-field-construction-threshold-title">Thresholding retains connected place fields</title>
        <desc id="random-field-construction-threshold-desc">The same smooth field is compared with the threshold theta times the square root of r sub zero. Three intervals above it remain as place fields.</desc>
        <path class="scientific-plate-axis" d="M18 138H207"></path>
        <path class="scientific-plate-band" d="M31 112C38 90 46 72 57 76C65 80 70 96 74 112ZM114 112C118 82 123 51 134 47C146 43 153 81 160 112ZM183 112C193 96 200 69 207 58V112Z"></path>
        <path class="scientific-plate-line scientific-plate-line--quiet" d="M18 128C32 102 43 90 57 108C70 126 78 155 95 146C111 137 116 83 134 79C151 74 159 123 175 127C189 131 197 101 207 90"></path>
        <line class="scientific-plate-condition" x1="18" y1="112" x2="207" y2="112"></line>
        <g class="scientific-plate-crossing-marks" aria-hidden="true">
          <circle cx="31" cy="112" r="3"></circle><circle cx="74" cy="112" r="3"></circle>
          <circle cx="114" cy="112" r="3"></circle><circle cx="160" cy="112" r="3"></circle>
          <circle cx="183" cy="112" r="3"></circle>
        </g>
        <text class="scientific-plate-label scientific-plate-label--wine" x="109" y="26" text-anchor="middle">connected excursions</text>
      </svg><span class="scientific-plate-math scientific-plate-math--blue scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:9.1%;--plate-math-y:60.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>θ</mi><msqrt><msub><mi>r</mi><mn>0</mn></msub></msqrt></mrow><annotation encoding="application/x-tex">\theta\sqrt{r_0}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:94.1%;--plate-math-y:92.8%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>position </mtext><mi>x</mi></mrow><annotation encoding="application/x-tex">\text{position }x</annotation></semantics></math></span></span></div>
  </section>
</div>
</div>
  <figcaption class="scientific-plate-caption">We sum translated input fields with independent weights to obtain a smooth random field. A cellular threshold keeps its connected excursions.</figcaption>
</figure>

<section class="math-statement math-statement--example" id="statement-gaussian-input-fields" data-statement="gaussian-input-fields" data-statement-kind="example" data-statement-numbered="false">
  <p class="statement-heading">
    <a class="statement-permalink" href="#statement-gaussian-input-fields" aria-label="Link to example">
      <span class="statement-kind">Example</span> <span class="statement-title">(Gaussian input fields)</span><span aria-hidden="true">.</span>
    </a>
  </p>
  <div class="statement-body"><p>Suppose each input has a Gaussian tuning curve,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>u</mi><mi>i</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mi>R</mi><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mo>−</mo><mfrac><mrow><mo stretchy="false">(</mo><mi>x</mi><mo>−</mo><msub><mi>c</mi><mi>i</mi></msub><msup><mo stretchy="false">)</mo><mn>2</mn></msup></mrow><mrow><mn>2</mn><msup><mi>σ</mi><mn>2</mn></msup></mrow></mfrac><mo fence="true">]</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
u_i(x)=R\exp\!\left[-\frac{(x-c_i)^2}{2\sigma^2}\right].
</annotation></semantics></math></span></div>
</div><p>Then the covariance is the autocorrelation of that curve. Away from finite-boundary effects,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mi>r</mi><mo stretchy="false">(</mo><mi mathvariant="normal">Δ</mi><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>≈</mo><msup><mi>R</mi><mn>2</mn></msup><mo>∫</mo><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mo>−</mo><mfrac><mrow><mo stretchy="false">(</mo><mi>x</mi><mo>−</mo><mi>c</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup><mo>+</mo><mo stretchy="false">(</mo><mi>y</mi><mo>−</mo><mi>c</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup></mrow><mrow><mn>2</mn><msup><mi>σ</mi><mn>2</mn></msup></mrow></mfrac><mo fence="true">]</mo></mrow><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>c</mi></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><msup><mi>R</mi><mn>2</mn></msup><msqrt><mrow><mi>π</mi><msup><mi>σ</mi><mn>2</mn></msup></mrow></msqrt><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mo>−</mo><mfrac><mrow><mi mathvariant="normal">Δ</mi><msup><mi>x</mi><mn>2</mn></msup></mrow><mrow><mn>4</mn><msup><mi>σ</mi><mn>2</mn></msup></mrow></mfrac><mo fence="true">]</mo></mrow><mi mathvariant="normal">.</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">
\begin{aligned}
r(\Delta x)
&amp;\approx R^2\int
\exp\!\left[-\frac{(x-c)^2+(y-c)^2}{2\sigma^2}\right]\dd c\\
&amp;=R^2\sqrt{\pi\sigma^2}
\exp\!\left[-\frac{\Delta x^2}{4\sigma^2}\right].
\end{aligned}
</annotation></semantics></math></span></div>
</div><p>The covariance width is therefore <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msqrt><mn>2</mn></msqrt></mrow><annotation encoding="application/x-tex">\sqrt{2}</annotation></semantics></math></span></span> times the standard deviation of an individual field, or twice its variance parameter.</p>
</div>
</section>

<p>In this model, position <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>x</mi></mrow><annotation encoding="application/x-tex">x</annotation></semantics></math></span></span> is supplied by the environment. The process <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">f(x)</annotation></semantics></math></span></span> represents subthreshold CA1 activity produced by many synaptic inputs. Cellular thresholding, together with any incident inhibition, reveals firing fields wherever <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">f(x)</annotation></semantics></math></span></span> rises above a level of order its standard deviation.</p>
<h2 id="excursion-structure"><a class="section-anchor" href="#excursion-structure" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Excursion structure
</h2>
<p>The neural response can be idealized by a rectified threshold,</p>
<div class="math-equation" id="equation-threshold-response" data-equation="threshold-response" data-equation-number="2.1">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>h</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mi>max</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mn>0</mn><mo separator="true">,</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>−</mo><mi>θ</mi><msqrt><msub><mi>r</mi><mn>0</mn></msub></msqrt><mo fence="true">)</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">h(x)=\max\!\left(0,f(x)-\theta\sqrt{r_0}\right).</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-threshold-response" aria-label="Equation 2.1">
    <span class="equation-number-value" aria-hidden="true">(2.1)</span>
  </a>
</div>

<p>Its nonzero regions are the excursion sets of <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi></mrow><annotation encoding="application/x-tex">f</annotation></semantics></math></span></span> above <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>θ</mi><msqrt><msub><mi>r</mi><mn>0</mn></msub></msqrt></mrow><annotation encoding="application/x-tex">\theta\sqrt{r_0}</annotation></semantics></math></span></span>. Their number, length, separation, height, and boundary slopes expose much of the geometry of the code before any further output nonlinearity is chosen. Use the fixed path in <a class="plate-ref" href="#plate-gp-threshold-field" data-plate-ref="gp-threshold-field" aria-label="Plate 2.1"><span class="plate-ref-kind">Plate</span> <span class="plate-ref-number">2.1</span></a> to see how the threshold changes the crossings and connected excursions.</p>
<figure class="scientific-plate scientific-plate--field" id="plate-gp-threshold-field" data-scientific-plate="field" data-plate-number="2.1">
  <header class="scientific-plate-header">
    <span class="scientific-plate-number">Plate 2.1</span>
    <span class="scientific-plate-title">Threshold crossings</span>
  </header>
  <div class="scientific-plate-body"><div class="scientific-plate-live-reading" data-field-status aria-live="polite"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>u</mi></mrow><annotation encoding="application/x-tex">u</annotation></semantics></math></span></span><span aria-hidden="true"> = </span><span data-field-status-value>0.00</span>
  <span aria-hidden="true"> / </span><span data-field-status-count>5 crossings</span>
</div>
<div class="scientific-plate-plot scientific-plate-plot--field">
  <div class="scientific-plate-graphic">
    <svg viewBox="0 0 720 300" role="img" aria-labelledby="gp-threshold-field-field-title gp-threshold-field-field-desc" focusable="false">
      <title id="gp-threshold-field-field-title">Threshold crossings of a smooth Gaussian field</title>
      <desc id="gp-threshold-field-field-desc">A smooth sample path f of x crosses a movable level u. Crossing points and the parts of the path above that level are marked directly.</desc>
      <defs>
        <clipPath id="gp-threshold-field-excursion-clip">
          <rect data-field-clip x="48" y="44" width="624" height="116"></rect>
        </clipPath>
      </defs>
      <g class="scientific-plate-grid" aria-hidden="true">
        <path d="M48 44V246M152 44V246M256 44V246M360 44V246M464 44V246M568 44V246M672 44V246"></path>
        <path d="M48 44H672M48 94H672M48 145H672M48 195H672M48 246H672"></path>
      </g>
      <path class="scientific-plate-band" d="M48 177C92 160 118 94 163 101C207 108 232 182 281 167C326 152 354 74 403 82C449 91 480 151 526 139C574 127 611 64 672 55L672 112C615 124 579 181 528 190C478 198 447 141 402 135C357 129 327 205 281 220C232 236 205 166 161 159C118 152 89 214 48 231Z"></path>
      <path class="scientific-plate-line scientific-plate-line--primary" data-field-curve d="M48 204C89 191 119 126 163 132C207 138 233 208 281 194C326 180 355 102 403 111C449 121 479 174 526 162C574 150 608 92 672 78"></path>
      <path class="scientific-plate-line scientific-plate-line--event scientific-plate-line--strong" data-field-excursion clip-path="url(#gp-threshold-field-excursion-clip)" d="M48 204C89 191 119 126 163 132C207 138 233 208 281 194C326 180 355 102 403 111C449 121 479 174 526 162C574 150 608 92 672 78"></path>
      <line class="scientific-plate-condition" data-field-threshold-line x1="48" y1="160" x2="672" y2="160" aria-hidden="true"></line>
      <g class="scientific-plate-crossing-marks" data-field-crossings aria-hidden="true">
        <circle cx="105.30" cy="160" r="4.25"></circle>
        <circle cx="209.24" cy="160" r="4.25"></circle>
        <circle cx="325.99" cy="160" r="4.25"></circle>
        <circle cx="492.00" cy="160" r="4.25"></circle>
        <circle cx="532.70" cy="160" r="4.25"></circle>
      </g>
      <path class="scientific-plate-axis" d="M48 246H672M48 44V246" aria-hidden="true"></path>
    </svg>
    <span class="scientific-plate-math scientific-plate-math--blue scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" data-field-threshold-label style="--plate-math-x:7.8%;--plate-math-y:49.3%"><span class="scientific-plate-math scientific-plate-math--blue scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>u</mi></mrow><annotation encoding="application/x-tex">u</annotation></semantics></math></span></span><span aria-hidden="true"> = </span><span data-field-threshold-value>0.00</span>
    </span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:8.5%;--plate-math-y:15%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">f(x)</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--right scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:88.5%;--plate-math-y:21.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>above </mtext><mi>u</mi></mrow><annotation encoding="application/x-tex">\text{above }u</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:93.3%;--plate-math-y:89.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>position </mtext><mi>x</mi></mrow><annotation encoding="application/x-tex">\text{position }x</annotation></semantics></math></span></span></div>
</div>

</div>
  <figcaption class="scientific-plate-caption">Move the threshold to compare crossing count with the number and width of connected excursions. The sample path stays fixed.</figcaption>
</figure>

<h3 id="kac-rice-formula"><a class="section-anchor" href="#kac-rice-formula" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>The Kac-Rice formula
</h3>
<p>Kac and Rice gave a way to count level crossings of a smooth function, and then of a stochastic process, without locating each root directly <span class="article-citation" data-citation>(<a id="cite-rice1944-14" href="#ref-rice1944" role="doc-biblioref" data-citation-key="rice1944">Rice, 1944</a>; <a id="cite-kac1959-14" href="#ref-kac1959" role="doc-biblioref" data-citation-key="kac1959">Kac &amp; Slepian, 1959</a>)</span>.</p>
<section class="math-statement math-statement--theorem" id="statement-kac-rice" data-statement="kac-rice" data-statement-kind="theorem" data-statement-numbered="true" data-statement-number="2.1">
  <p class="statement-heading">
    <a class="statement-permalink" href="#statement-kac-rice" aria-label="Link to theorem 2.1">
      <span class="statement-kind">Theorem</span> <span class="statement-number" aria-hidden="true">2.1</span> <span class="statement-title">(Kac-Rice counting formula)</span><span aria-hidden="true">.</span>
    </a>
  </p>
  <div class="statement-body"><p>Let <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi><mo>:</mo><mo stretchy="false">[</mo><mi>a</mi><mo separator="true">,</mo><mi>b</mi><mo stretchy="false">]</mo><mo>→</mo><mi mathvariant="normal">ℝ</mi></mrow><annotation encoding="application/x-tex">f:[a,b]\to\RR</annotation></semantics></math></span></span> be continuously differentiable and have no tangential crossings of the level <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>T</mi></mrow><annotation encoding="application/x-tex">T</annotation></semantics></math></span></span>. Define</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>η</mi><mi>ε</mi></msub><mo stretchy="false">(</mo><mi>g</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mn>1</mn><mrow><mn>2</mn><mi>ε</mi></mrow></mfrac><mn mathvariant="bold">1</mn><mo stretchy="false">{</mo><mrow><mo fence="true">∣</mo><mi>g</mi><mo fence="true">∣</mo></mrow><mo>&lt;</mo><mi>ε</mi><mo stretchy="false">}</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\eta_\varepsilon(g)=\frac{1}{2\varepsilon}
\mathbf 1\{\abs{g}&lt;\varepsilon\}.
</annotation></semantics></math></span></div>
</div><p>The number of level crossings is</p>
<div class="math-equation math-equation--wide" id="equation-kac-rice-window" data-equation="kac-rice-window" data-equation-number="2.2">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>N</mi><mi>f</mi></msub><mo stretchy="false">(</mo><mi>T</mi><mo stretchy="false">)</mo><mo>=</mo><munder><mrow><mi>lim</mi><mo>⁡</mo></mrow><mrow><mi>ε</mi><mo>→</mo><mn>0</mn></mrow></munder><msubsup><mo>∫</mo><mi>a</mi><mi>b</mi></msubsup><msub><mi>η</mi><mi>ε</mi></msub><mo stretchy="false">(</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>−</mo><mi>T</mi><mo stretchy="false">)</mo><mrow><mo fence="true">∣</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo fence="true">∣</mo></mrow><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>x</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">N_f(T)=\lim_{\varepsilon\to0}
\int_a^b \eta_\varepsilon(f(x)-T)\abs{f&#x27;(x)}\,\dd x.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-kac-rice-window" aria-label="Equation 2.2">
    <span class="equation-number-value" aria-hidden="true">(2.2)</span>
  </a>
</div>
<p>In the distributional limit,</p>
<div class="math-equation" id="equation-kac-rice-delta" data-equation="kac-rice-delta" data-equation-number="2.3">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>N</mi><mi>f</mi></msub><mo stretchy="false">(</mo><mi>T</mi><mo stretchy="false">)</mo><mo>=</mo><msubsup><mo>∫</mo><mi>a</mi><mi>b</mi></msubsup><mi>δ</mi><mo stretchy="false">(</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>−</mo><mi>T</mi><mo stretchy="false">)</mo><mrow><mo fence="true">∣</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo fence="true">∣</mo></mrow><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>x</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">N_f(T)=\int_a^b\delta(f(x)-T)\abs{f&#x27;(x)}\,\dd x.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-kac-rice-delta" aria-label="Equation 2.3">
    <span class="equation-number-value" aria-hidden="true">(2.3)</span>
  </a>
</div>
</div>
</section>

<section class="math-proof">
  <p class="proof-heading">Proof.</p>
  <div class="proof-body"><p>For sufficiently small <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ε</mi></mrow><annotation encoding="application/x-tex">\varepsilon</annotation></semantics></math></span></span>, the set <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">{</mo><mi>x</mi><mo>:</mo><mrow><mo fence="true">∣</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>−</mo><mi>T</mi><mo fence="true">∣</mo></mrow><mo>&lt;</mo><mi>ε</mi><mo stretchy="false">}</mo></mrow><annotation encoding="application/x-tex">\{x:\abs{f(x)-T}&lt;\varepsilon\}</annotation></semantics></math></span></span> separates into intervals around the crossings. Take one such interval <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">[</mo><mi>c</mi><mo separator="true">,</mo><mi>d</mi><mo stretchy="false">]</mo></mrow><annotation encoding="application/x-tex">[c,d]</annotation></semantics></math></span></span>. Since a crossing is not tangential, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup></mrow><annotation encoding="application/x-tex">f&#x27;</annotation></semantics></math></span></span> keeps its sign there, and</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mfrac><mn>1</mn><mrow><mn>2</mn><mi>ε</mi></mrow></mfrac><msubsup><mo>∫</mo><mi>c</mi><mi>d</mi></msubsup><mrow><mo fence="true">∣</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo fence="true">∣</mo></mrow><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>x</mi></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mfrac><mn>1</mn><mrow><mn>2</mn><mi>ε</mi></mrow></mfrac><mrow><mo fence="true">∣</mo><msubsup><mo>∫</mo><mi>c</mi><mi>d</mi></msubsup><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>x</mi><mo fence="true">∣</mo></mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mfrac><mrow><mo fence="true">∣</mo><mi>f</mi><mo stretchy="false">(</mo><mi>d</mi><mo stretchy="false">)</mo><mo>−</mo><mi>f</mi><mo stretchy="false">(</mo><mi>c</mi><mo stretchy="false">)</mo><mo fence="true">∣</mo></mrow><mrow><mn>2</mn><mi>ε</mi></mrow></mfrac><mo>=</mo><mn>1.</mn></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">
\begin{aligned}
\frac{1}{2\varepsilon}\int_c^d\abs{f&#x27;(x)}\,\dd x
&amp;=\frac{1}{2\varepsilon}\abs{\int_c^d f&#x27;(x)\,\dd x}\\
&amp;=\frac{\abs{f(d)-f(c)}}{2\varepsilon}=1.
\end{aligned}
</annotation></semantics></math></span></div>
</div><p>Summing these unit contributions over the disjoint intervals gives the crossing count. The delta form is the <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ε</mi><mo>→</mo><mn>0</mn></mrow><annotation encoding="application/x-tex">\varepsilon\to0</annotation></semantics></math></span></span> limit.</p>
</div>
  <span class="proof-end" aria-hidden="true">□</span>
</section>

<p>Compare shallow and steep crossings in <a class="plate-ref" href="#plate-kac-rice-counting-window" data-plate-ref="kac-rice-counting-window" aria-label="Plate 2.2"><span class="plate-ref-kind">Plate</span> <span class="plate-ref-number">2.2</span></a>. Each contributes one to the count.</p>
<figure class="scientific-plate scientific-plate--kac-rice" id="plate-kac-rice-counting-window" data-scientific-plate="kac-rice" data-plate-number="2.2">
  <header class="scientific-plate-header">
    <span class="scientific-plate-number">Plate 2.2</span>
    <span class="scientific-plate-title">Kac-Rice crossing count</span>
  </header>
  <div class="scientific-plate-body"><div class="scientific-plate-panels scientific-plate-panels--two">
  <section class="scientific-plate-panel" aria-labelledby="kac-rice-counting-window-window-label">
    <p class="scientific-plate-panel-title" id="kac-rice-counting-window-window-label">finite counting window</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 330 190" role="img" aria-labelledby="kac-rice-counting-window-window-title kac-rice-counting-window-window-desc">
        <title id="kac-rice-counting-window-window-title">A narrow band isolates threshold crossings</title>
        <desc id="kac-rice-counting-window-window-desc">A smooth curve enters and leaves the epsilon band around level T at four locations. Short wine marks identify the portions counted by the approximate delta function.</desc>
        <rect class="scientific-plate-window" x="30" y="91" width="276" height="20"></rect>
        <line class="scientific-plate-condition" x1="30" y1="101" x2="306" y2="101"></line>
        <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" d="M30 142C54 132 64 67 94 70C123 73 126 136 159 129C190 123 194 54 226 62C255 69 270 119 306 83"></path>
        <g class="scientific-plate-event-windows" aria-hidden="true">
          <path d="M61 91V111M119 91V111M171 91V111M272 91V111"></path>
        </g>
        <path class="scientific-plate-leader" d="M177 29L177 87"></path>
      </svg><span class="scientific-plate-math scientific-plate-math--blue scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:10.6%;--plate-math-y:47.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>T</mi></mrow><annotation encoding="application/x-tex">T</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:53.3%;--plate-math-y:10.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">∣</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>−</mo><mi>T</mi><mo stretchy="false">∣</mo><mo>&lt;</mo><mi>ε</mi></mrow><annotation encoding="application/x-tex">\lvert f(x)-T\rvert&lt;\varepsilon</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:92.7%;--plate-math-y:94.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>position </mtext><mi>x</mi></mrow><annotation encoding="application/x-tex">\text{position }x</annotation></semantics></math></span></span></div>
  </section>

  <section class="scientific-plate-panel" aria-labelledby="kac-rice-counting-window-limit-label">
    <p class="scientific-plate-panel-title" id="kac-rice-counting-window-limit-label">slope compensation</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 330 190" role="img" aria-labelledby="kac-rice-counting-window-limit-title kac-rice-counting-window-limit-desc">
        <title id="kac-rice-counting-window-limit-title">Shallow and steep crossings each contribute one</title>
        <desc id="kac-rice-counting-window-limit-desc">A shallow crossing occupies a wide spatial interval inside the epsilon band, while a steep crossing occupies a narrow interval. In each case the integral of eta sub epsilon times absolute slope equals one.</desc>
        <g transform="translate(20 31)">
          <rect class="scientific-plate-window" x="0" y="44" width="134" height="18"></rect>
          <path class="scientific-plate-axis" d="M0 53H134"></path>
          <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" d="M7 76L127 30"></path>
          <path class="scientific-plate-dimension" d="M48 71V66M48 68H95M95 71V66"></path>
          <circle class="scientific-plate-event-dot" cx="67" cy="53" r="3"></circle>
        </g>
        <g transform="translate(176 31)">
          <rect class="scientific-plate-window" x="0" y="44" width="134" height="18"></rect>
          <path class="scientific-plate-axis" d="M0 53H134"></path>
          <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" d="M54 89L79 17"></path>
          <path class="scientific-plate-dimension" d="M63 71V66M63 68H70M70 71V66"></path>
          <circle class="scientific-plate-event-dot" cx="67" cy="53" r="3"></circle>
        </g>
        <text class="scientific-plate-label scientific-plate-label--wine" x="165" y="178" text-anchor="middle">different slopes, equal counts</text>
      </svg><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:26.4%;--plate-math-y:21.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>shallow </mtext><mo stretchy="false">∣</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">∣</mo></mrow><annotation encoding="application/x-tex">\text{shallow }\lvert f&#x27;\rvert</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:27.9%;--plate-math-y:59.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>wide </mtext><mi mathvariant="normal">Δ</mi><mi>x</mi></mrow><annotation encoding="application/x-tex">\text{wide }\Delta x</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:73.6%;--plate-math-y:21.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>steep </mtext><mo stretchy="false">∣</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">∣</mo></mrow><annotation encoding="application/x-tex">\text{steep }\lvert f&#x27;\rvert</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:73.6%;--plate-math-y:59.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>narrow </mtext><mi mathvariant="normal">Δ</mi><mi>x</mi></mrow><annotation encoding="application/x-tex">\text{narrow }\Delta x</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--ink scientific-plate-math--center scientific-plate-math--formula scientific-plate-math--anchor math-inline" style="--plate-math-x:50%;--plate-math-y:75.3%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>∫</mo><msub><mi>η</mi><mi>ε</mi></msub><mo stretchy="false">(</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>−</mo><mi>T</mi><mo stretchy="false">)</mo><mo stretchy="false">∣</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo stretchy="false">∣</mo><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>x</mi><mo>=</mo><mn>1</mn></mrow><annotation encoding="application/x-tex">\int \eta_\varepsilon(f(x)-T)\lvert f&#x27;(x)\rvert\,\dd x=1</annotation></semantics></math></span></span></div>
  </section>
</div>
</div>
  <figcaption class="scientific-plate-caption">Each simple crossing contributes one. The slope factor compensates for the width of the counting window in position.</figcaption>
</figure>

<h4 id="expected-crossing-count"><a class="section-anchor" href="#expected-crossing-count" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Expected crossing count
</h4>
<p>We now apply the formula to a stationary, mean-zero, differentiable Gaussian process. At a fixed location, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">f(x)</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">f&#x27;(x)</annotation></semantics></math></span></span> are jointly Gaussian. Stationarity gives</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo>=</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><mfrac><mrow><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi></mrow><mrow><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>x</mi></mrow></mfrac><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup><mo stretchy="false">]</mo><mo>=</mo><mn>0</mn><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">
\EE[f(x)f&#x27;(x)]
=\frac12\frac{\dd}{\dd x}\EE[f(x)^2]=0,
</annotation></semantics></math></span></div>
</div><p>and</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup><mo stretchy="false">]</mo><mo>=</mo><msub><mrow><mfrac><msup><mi mathvariant="normal">∂</mi><mn>2</mn></msup><mrow><mi mathvariant="normal">∂</mi><mi>x</mi><mtext> </mtext><mi mathvariant="normal">∂</mi><mi>y</mi></mrow></mfrac><mi>r</mi><mo stretchy="false">(</mo><mi>y</mi><mo>−</mo><mi>x</mi><mo stretchy="false">)</mo><mo fence="true">∣</mo></mrow><mrow><mi>y</mi><mo>=</mo><mi>x</mi></mrow></msub><mo>=</mo><mo>−</mo><msup><mi>r</mi><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msup><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\EE[f&#x27;(x)^2]
=\left.\frac{\partial^2}{\partial x\,\partial y}r(y-x)\right|_{y=x}
=-r&#x27;&#x27;(0).
</annotation></semantics></math></span></div>
</div><p>Thus</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mrow><mo fence="true">(</mo><mtable rowspacing="0.16em" columnalign="center" columnspacing="1em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd></mtr></mtable><mo fence="true">)</mo></mrow><mo>∼</mo><mi mathvariant="normal">𝒩</mi><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mrow><mo fence="true">(</mo><mtable rowspacing="0.16em" columnalign="center" columnspacing="1em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mn>0</mn></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mn>0</mn></mstyle></mtd></mtr></mtable><mo fence="true">)</mo></mrow><mo separator="true">,</mo><mrow><mo fence="true">(</mo><mtable rowspacing="0.16em" columnalign="center center" columnspacing="1em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><msub><mi>r</mi><mn>0</mn></msub></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mn>0</mn></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mn>0</mn></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mo>−</mo><msubsup><mi>r</mi><mn>0</mn><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msubsup></mrow></mstyle></mtd></mtr></mtable><mo fence="true">)</mo></mrow><mo fence="true">)</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\begin{pmatrix}f(x)\\f&#x27;(x)\end{pmatrix}
\sim\mathcal N\!\left(
\begin{pmatrix}0\\0\end{pmatrix},
\begin{pmatrix}r_0&amp;0\\0&amp;-r&#x27;&#x27;_0\end{pmatrix}
\right).
</annotation></semantics></math></span></div>
</div><p>The zero covariance makes <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">f(x)</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">f&#x27;(x)</annotation></semantics></math></span></span> independent. Taking the expectation of <a class="equation-ref" href="#equation-kac-rice-delta" data-equation-ref="kac-rice-delta" aria-label="Equation 2.3"><span class="equation-ref-value" aria-hidden="true">(2.3)</span></a> at level <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>T</mi><mo>=</mo><mi>θ</mi><msqrt><msub><mi>r</mi><mn>0</mn></msub></msqrt></mrow><annotation encoding="application/x-tex">T=\theta\sqrt{r_0}</annotation></semantics></math></span></span> gives</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msub><mi>N</mi><mi>f</mi></msub><mo stretchy="false">(</mo><mi>θ</mi><msqrt><msub><mi>r</mi><mn>0</mn></msub></msqrt><mo stretchy="false">)</mo><mo stretchy="false">]</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mi>L</mi><mtext> </mtext><msub><mi>p</mi><mi>f</mi></msub><mo stretchy="false">(</mo><mi>θ</mi><msqrt><msub><mi>r</mi><mn>0</mn></msub></msqrt><mo stretchy="false">)</mo><mtext> </mtext><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mrow><mo fence="true">∣</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo fence="true">∣</mo></mrow><mo stretchy="false">]</mo></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mfrac><mi>L</mi><msqrt><mrow><mn>2</mn><mi>π</mi><msub><mi>r</mi><mn>0</mn></msub></mrow></msqrt></mfrac><msup><mi>e</mi><mrow><mo>−</mo><msup><mi>θ</mi><mn>2</mn></msup><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><msqrt><mrow><mo>−</mo><mfrac><mrow><mn>2</mn><msubsup><mi>r</mi><mn>0</mn><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msubsup></mrow><mi>π</mi></mfrac></mrow></msqrt></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mfrac><mi>L</mi><mi>π</mi></mfrac><msqrt><mrow><mo>−</mo><mfrac><msubsup><mi>r</mi><mn>0</mn><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msubsup><msub><mi>r</mi><mn>0</mn></msub></mfrac></mrow></msqrt><msup><mi>e</mi><mrow><mo>−</mo><msup><mi>θ</mi><mn>2</mn></msup><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mi mathvariant="normal">.</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">
\begin{aligned}
\EE[N_f(\theta\sqrt{r_0})]
&amp;=L\,p_f(\theta\sqrt{r_0})\,\EE[\abs{f&#x27;(x)}]\\
&amp;=\frac{L}{\sqrt{2\pi r_0}}e^{-\theta^2/2}
\sqrt{-\frac{2r&#x27;&#x27;_0}{\pi}}\\
&amp;=\frac{L}{\pi}\sqrt{-\frac{r&#x27;&#x27;_0}{r_0}}e^{-\theta^2/2}.
\end{aligned}
</annotation></semantics></math></span></div>
</div><p>Every bounded excursion has one upcrossing and one downcrossing. Its expected density is therefore half the crossing density,</p>
<div class="math-equation" id="equation-excursion-density" data-equation="excursion-density" data-equation-number="2.4">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>μ</mi><mo stretchy="false">(</mo><mi>θ</mi><msqrt><msub><mi>r</mi><mn>0</mn></msub></msqrt><mo stretchy="false">)</mo><mo>=</mo><mfrac><mn>1</mn><mrow><mn>2</mn><mi>π</mi></mrow></mfrac><msqrt><mrow><mo>−</mo><mfrac><msubsup><mi>r</mi><mn>0</mn><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msubsup><msub><mi>r</mi><mn>0</mn></msub></mfrac></mrow></msqrt><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mo>−</mo><mfrac><msup><mi>θ</mi><mn>2</mn></msup><mn>2</mn></mfrac><mo fence="true">)</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\mu(\theta\sqrt{r_0})
=\frac{1}{2\pi}\sqrt{-\frac{r&#x27;&#x27;_0}{r_0}}
\exp\!\left(-\frac{\theta^2}{2}\right).</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-excursion-density" aria-label="Equation 2.4">
    <span class="equation-number-value" aria-hidden="true">(2.4)</span>
  </a>
</div>

<p>Let <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="normal">Φ</mi></mrow><annotation encoding="application/x-tex">\Phi</annotation></semantics></math></span></span> be the standard normal cumulative distribution function. The expected fraction of the domain above the threshold is <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn><mo>−</mo><mi mathvariant="normal">Φ</mi><mo stretchy="false">(</mo><mi>θ</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">1-\Phi(\theta)</annotation></semantics></math></span></span>. Dividing the total occupied and unoccupied lengths by the expected number of excursions gives the approximate mean excursion length <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>s</mi></mrow><annotation encoding="application/x-tex">s</annotation></semantics></math></span></span> and mean gap <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mover accent="true"><mi>s</mi><mo>ˉ</mo></mover></mrow><annotation encoding="application/x-tex">\bar s</annotation></semantics></math></span></span>,</p>
<div class="math-equation math-equation--wide" id="equation-mean-excursion-size" data-equation="mean-excursion-size" data-equation-number="2.5">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mi>s</mi></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mn>2</mn><mi>π</mi><mtext> </mtext><mo stretchy="false">[</mo><mn>1</mn><mo>−</mo><mi mathvariant="normal">Φ</mi><mo stretchy="false">(</mo><mi>θ</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><msup><mi>e</mi><mrow><msup><mi>θ</mi><mn>2</mn></msup><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><msqrt><mrow><mo>−</mo><mfrac><msub><mi>r</mi><mn>0</mn></msub><msubsup><mi>r</mi><mn>0</mn><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msubsup></mfrac></mrow></msqrt><mo separator="true">,</mo></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mover accent="true"><mi>s</mi><mo>ˉ</mo></mover></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mn>2</mn><mi>π</mi><mtext> </mtext><mi mathvariant="normal">Φ</mi><mo stretchy="false">(</mo><mi>θ</mi><mo stretchy="false">)</mo><msup><mi>e</mi><mrow><msup><mi>θ</mi><mn>2</mn></msup><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><msqrt><mrow><mo>−</mo><mfrac><msub><mi>r</mi><mn>0</mn></msub><msubsup><mi>r</mi><mn>0</mn><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msubsup></mfrac></mrow></msqrt><mi mathvariant="normal">.</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{aligned}
s
&amp;=2\pi\,[1-\Phi(\theta)]e^{\theta^2/2}
  \sqrt{-\frac{r_0}{r&#x27;&#x27;_0}},\\
\bar s
&amp;=2\pi\,\Phi(\theta)e^{\theta^2/2}
  \sqrt{-\frac{r_0}{r&#x27;&#x27;_0}}.
\end{aligned}</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-mean-excursion-size" aria-label="Equation 2.5">
    <span class="equation-number-value" aria-hidden="true">(2.5)</span>
  </a>
</div>

<p>At high thresholds, the gaps are much longer than the excursions. Consecutive events are then separated by several correlation lengths, and the crossing process approaches a Poisson process with the mean above.</p>
<h3 id="spectral-density"><a class="section-anchor" href="#spectral-density" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Spectral density
</h3>
<section class="math-statement math-statement--theorem" id="statement-bochner" data-statement="bochner" data-statement-kind="theorem" data-statement-numbered="true" data-statement-number="2.2">
  <p class="statement-heading">
    <a class="statement-permalink" href="#statement-bochner" aria-label="Link to theorem 2.2">
      <span class="statement-kind">Theorem</span> <span class="statement-number" aria-hidden="true">2.2</span> <span class="statement-title">(Bochner's theorem)</span><span aria-hidden="true">.</span>
    </a>
  </p>
  <div class="statement-body"><p>A continuous function <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>r</mi><mo stretchy="false">(</mo><mi mathvariant="normal">Δ</mi><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">r(\Delta x)</annotation></semantics></math></span></span> is non-negative definite, and hence a valid stationary covariance, if and only if it has a spectral representation</p>
<div class="math-equation" id="equation-bochner-representation" data-equation="bochner-representation" data-equation-number="2.6">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>r</mi><mo stretchy="false">(</mo><mi mathvariant="normal">Δ</mi><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><msubsup><mo>∫</mo><mrow><mo>−</mo><mi mathvariant="normal">∞</mi></mrow><mi mathvariant="normal">∞</mi></msubsup><msup><mi>e</mi><mrow><mi>i</mi><mi>ω</mi><mi mathvariant="normal">Δ</mi><mi>x</mi></mrow></msup><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>ρ</mi><mo stretchy="false">(</mo><mi>ω</mi><mo stretchy="false">)</mo><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">r(\Delta x)=\int_{-\infty}^{\infty}
e^{i\omega\Delta x}\,\dd\rho(\omega),</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-bochner-representation" aria-label="Equation 2.6">
    <span class="equation-number-value" aria-hidden="true">(2.6)</span>
  </a>
</div>
<p>for a non-decreasing, right-continuous, bounded spectral measure <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ρ</mi></mrow><annotation encoding="application/x-tex">\rho</annotation></semantics></math></span></span>. If the <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>k</mi></mrow><annotation encoding="application/x-tex">k</annotation></semantics></math></span></span>th derivative of the process exists, then</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>r</mi><msup><mi>f</mi><mrow><mo stretchy="false">(</mo><mi>k</mi><mo stretchy="false">)</mo></mrow></msup></msub><mo stretchy="false">(</mo><mi mathvariant="normal">Δ</mi><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mo stretchy="false">(</mo><mo>−</mo><mn>1</mn><msup><mo stretchy="false">)</mo><mi>k</mi></msup><msubsup><mi>r</mi><mi>f</mi><mrow><mo stretchy="false">(</mo><mn>2</mn><mi>k</mi><mo stretchy="false">)</mo></mrow></msubsup><mo stretchy="false">(</mo><mi mathvariant="normal">Δ</mi><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><msubsup><mo>∫</mo><mrow><mo>−</mo><mi mathvariant="normal">∞</mi></mrow><mi mathvariant="normal">∞</mi></msubsup><msup><mi>ω</mi><mrow><mn>2</mn><mi>k</mi></mrow></msup><msup><mi>e</mi><mrow><mi>i</mi><mi>ω</mi><mi mathvariant="normal">Δ</mi><mi>x</mi></mrow></msup><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>ρ</mi><mo stretchy="false">(</mo><mi>ω</mi><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
r_{f^{(k)}}(\Delta x)
=(-1)^k r_f^{(2k)}(\Delta x)
=\int_{-\infty}^{\infty}\omega^{2k}e^{i\omega\Delta x}\,\dd\rho(\omega).
</annotation></semantics></math></span></div>
</div><p>When the spectrum has a density, differentiation multiplies it by <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>ω</mi><mrow><mn>2</mn><mi>k</mi></mrow></msup></mrow><annotation encoding="application/x-tex">\omega^{2k}</annotation></semantics></math></span></span>.</p>
</div>
</section>

<p>Define the even spectral moments</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>ω</mi><mrow><mn>2</mn><mi>k</mi></mrow></msub><mo>=</mo><msubsup><mo>∫</mo><mrow><mo>−</mo><mi mathvariant="normal">∞</mi></mrow><mi mathvariant="normal">∞</mi></msubsup><msup><mi>ω</mi><mrow><mn>2</mn><mi>k</mi></mrow></msup><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>ρ</mi><mo stretchy="false">(</mo><mi>ω</mi><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\omega_{2k}=\int_{-\infty}^{\infty}\omega^{2k}\,\dd\rho(\omega).
</annotation></semantics></math></span></div>
</div><p>Then <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>0</mn></msub><mo>=</mo><msub><mi>r</mi><mn>0</mn></msub></mrow><annotation encoding="application/x-tex">\omega_0=r_0</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>2</mn></msub><mo>=</mo><mo>−</mo><msubsup><mi>r</mi><mn>0</mn><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msubsup></mrow><annotation encoding="application/x-tex">\omega_2=-r&#x27;&#x27;_0</annotation></semantics></math></span></span>. The excursion density becomes</p>
<div class="math-equation math-equation--wide" id="equation-spectral-crossing-rate" data-equation="spectral-crossing-rate" data-equation-number="2.7">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>μ</mi><mo stretchy="false">(</mo><mi>θ</mi><msqrt><msub><mi>r</mi><mn>0</mn></msub></msqrt><mo stretchy="false">)</mo><mo>=</mo><mfrac><mn>1</mn><mrow><mn>2</mn><mi>π</mi></mrow></mfrac><msup><mi>e</mi><mrow><mo>−</mo><msup><mi>θ</mi><mn>2</mn></msup><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><msqrt><mfrac><msub><mi>ω</mi><mn>2</mn></msub><msub><mi>ω</mi><mn>0</mn></msub></mfrac></msqrt><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\mu(\theta\sqrt{r_0})
=\frac{1}{2\pi}e^{-\theta^2/2}
\sqrt{\frac{\omega_2}{\omega_0}}.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-spectral-crossing-rate" aria-label="Equation 2.7">
    <span class="equation-number-value" aria-hidden="true">(2.7)</span>
  </a>
</div>

<p>At the mean level, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>μ</mi><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mo>=</mo><mo stretchy="false">(</mo><mn>2</mn><mi>π</mi><msup><mo stretchy="false">)</mo><mrow><mo>−</mo><mn>1</mn></mrow></msup><msqrt><mrow><msub><mi>ω</mi><mn>2</mn></msub><mi mathvariant="normal">/</mi><msub><mi>ω</mi><mn>0</mn></msub></mrow></msqrt></mrow><annotation encoding="application/x-tex">\mu(0)=(2\pi)^{-1}\sqrt{\omega_2/\omega_0}</annotation></semantics></math></span></span>. It has units of inverse length and supplies a geometric correlation scale.</p>
<p>Repeating the argument for the derivative process gives equal densities of local maxima and minima,</p>
<div class="math-equation" id="equation-turning-point-density" data-equation="turning-point-density" data-equation-number="2.8">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>μ</mi><mo>+</mo></msub><mo>=</mo><msub><mi>μ</mi><mo>−</mo></msub><mo>=</mo><mfrac><mn>1</mn><mrow><mn>2</mn><mi>π</mi></mrow></mfrac><msqrt><mfrac><msub><mi>ω</mi><mn>4</mn></msub><msub><mi>ω</mi><mn>2</mn></msub></mfrac></msqrt><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\mu_+=\mu_-=
\frac{1}{2\pi}\sqrt{\frac{\omega_4}{\omega_2}}.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-turning-point-density" aria-label="Equation 2.8">
    <span class="equation-number-value" aria-hidden="true">(2.8)</span>
  </a>
</div>

<p>The ratio between turning points and mean-level crossings defines the scale-invariant irregularity parameter</p>
<div class="math-equation" id="equation-spectral-irregularity" data-equation="spectral-irregularity" data-equation-number="2.9">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mfrac><mn>1</mn><mi>α</mi></mfrac><mo>=</mo><msqrt><mfrac><mrow><msub><mi>ω</mi><mn>0</mn></msub><msub><mi>ω</mi><mn>4</mn></msub></mrow><msubsup><mi>ω</mi><mn>2</mn><mn>2</mn></msubsup></mfrac></msqrt><mo separator="true">,</mo><mspace width="2em"/><mn>0</mn><mo>&lt;</mo><mi>α</mi><mo>≤</mo><mn>1.</mn></mrow><annotation encoding="application/x-tex">\frac{1}{\alpha}
=\sqrt{\frac{\omega_0\omega_4}{\omega_2^2}},
\qquad 0&lt;\alpha\leq1.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-spectral-irregularity" aria-label="Equation 2.9">
    <span class="equation-number-value" aria-hidden="true">(2.9)</span>
  </a>
</div>

<p>Values near one indicate a regular process with roughly one maximum and one minimum between mean-level upcrossings. Small values indicate additional high-frequency structure.</p>
<p>Compare the normalized densities for <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>0</mn></msub></mrow><annotation encoding="application/x-tex">\omega_0</annotation></semantics></math></span></span>, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">\omega_2</annotation></semantics></math></span></span>, and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>4</mn></msub></mrow><annotation encoding="application/x-tex">\omega_4</annotation></semantics></math></span></span> in <a class="plate-ref" href="#plate-spectral-moments" data-plate-ref="spectral-moments" aria-label="Plate 2.3"><span class="plate-ref-kind">Plate</span> <span class="plate-ref-number">2.3</span></a>. Dividing each weighted spectrum by its own moment gives unit area, so the three shapes share one vertical scale even though their unnormalized moments have different units.</p>
<figure class="scientific-plate scientific-plate--spectrum" id="plate-spectral-moments" data-scientific-plate="spectrum" data-plate-number="2.3">
  <header class="scientific-plate-header">
    <span class="scientific-plate-number">Plate 2.3</span>
    <span class="scientific-plate-title">Spectral moments</span>
  </header>
  <div class="scientific-plate-body"><div class="scientific-plate-panels scientific-plate-panels--three scientific-plate-panels--spectral">
  <section class="scientific-plate-panel" aria-labelledby="spectral-moments-omega-zero-label">
    <p class="scientific-plate-panel-title" id="spectral-moments-omega-zero-label">variance,&nbsp;<span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>0</mn></msub><mo>=</mo><mo>∫</mo><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>ρ</mi></mrow><annotation encoding="application/x-tex">\omega_0=\int \dd\rho</annotation></semantics></math></span></span></p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 220 174" role="img" aria-labelledby="spectral-moments-omega-zero-title spectral-moments-omega-zero-desc">
        <title id="spectral-moments-omega-zero-title">Unweighted spectral density determines field variance</title>
        <desc id="spectral-moments-omega-zero-desc">For the smooth example, S of omega is the density d rho over d omega of the spectral measure. Its normalized area is one, while omega zero is the unnormalized moment.</desc>
        <path class="scientific-plate-axis" d="M18 126H204"></path>
        <path class="scientific-plate-area scientific-plate-area--green" d="M18 126C36 125 48 117 62 98C79 76 91 53 110 50C129 53 141 76 158 98C172 117 186 125 204 126Z"></path>
        <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" d="M18 126C36 125 48 117 62 98C79 76 91 53 110 50C129 53 141 76 158 98C172 117 186 125 204 126"></path>
      </svg><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:9.1%;--plate-math-y:10.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>S</mi><mo stretchy="false">(</mo><mi>ω</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mrow><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>ρ</mi></mrow><mrow><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>ω</mi></mrow></mfrac></mrow><annotation encoding="application/x-tex">S(\omega)=\frac{\dd\rho}{\dd\omega}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:50%;--plate-math-y:20.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mfrac><mrow><mi>S</mi><mo stretchy="false">(</mo><mi>ω</mi><mo stretchy="false">)</mo></mrow><msub><mi>ω</mi><mn>0</mn></msub></mfrac></mrow><annotation encoding="application/x-tex">\frac{S(\omega)}{\omega_0}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:92.7%;--plate-math-y:83.6%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>frequency </mtext><mi>ω</mi></mrow><annotation encoding="application/x-tex">\text{frequency }\omega</annotation></semantics></math></span></span></div>
  </section>

  <section class="scientific-plate-panel" aria-labelledby="spectral-moments-omega-two-label">
    <p class="scientific-plate-panel-title" id="spectral-moments-omega-two-label">crossings,&nbsp;<span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>2</mn></msub><mo>=</mo><mo>∫</mo><msup><mi>ω</mi><mn>2</mn></msup><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>ρ</mi></mrow><annotation encoding="application/x-tex">\omega_2=\int \omega^2\,\dd\rho</annotation></semantics></math></span></span></p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 220 174" role="img" aria-labelledby="spectral-moments-omega-two-title spectral-moments-omega-two-desc">
        <title id="spectral-moments-omega-two-title">Frequency squared weighting determines crossing density</title>
        <desc id="spectral-moments-omega-two-desc">The smooth density S of omega is weighted by omega squared and normalized by omega two, shifting contribution toward higher frequencies.</desc>
        <path class="scientific-plate-axis" d="M18 126H204"></path>
        <path class="scientific-plate-area scientific-plate-area--blue" d="M18 126C34 125 48 110 63 78C73 56 85 54 98 85C105 102 108 117 110 126C112 117 115 102 122 85C135 54 147 56 157 78C172 110 186 125 204 126Z"></path>
        <path class="scientific-plate-line scientific-plate-line--condition scientific-plate-line--strong" d="M18 126C34 125 48 110 63 78C73 56 85 54 98 85C105 102 108 117 110 126C112 117 115 102 122 85C135 54 147 56 157 78C172 110 186 125 204 126"></path>
      </svg><span class="scientific-plate-math scientific-plate-math--blue scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:50%;--plate-math-y:20.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mfrac><mrow><msup><mi>ω</mi><mn>2</mn></msup><mi>S</mi><mo stretchy="false">(</mo><mi>ω</mi><mo stretchy="false">)</mo></mrow><msub><mi>ω</mi><mn>2</mn></msub></mfrac></mrow><annotation encoding="application/x-tex">\frac{\omega^2S(\omega)}{\omega_2}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:92.7%;--plate-math-y:83.6%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>frequency </mtext><mi>ω</mi></mrow><annotation encoding="application/x-tex">\text{frequency }\omega</annotation></semantics></math></span></span></div>
  </section>

  <section class="scientific-plate-panel" aria-labelledby="spectral-moments-omega-four-label">
    <p class="scientific-plate-panel-title" id="spectral-moments-omega-four-label">extrema,&nbsp;<span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>4</mn></msub><mo>=</mo><mo>∫</mo><msup><mi>ω</mi><mn>4</mn></msup><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>ρ</mi></mrow><annotation encoding="application/x-tex">\omega_4=\int \omega^4\,\dd\rho</annotation></semantics></math></span></span></p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 220 174" role="img" aria-labelledby="spectral-moments-omega-four-title spectral-moments-omega-four-desc">
        <title id="spectral-moments-omega-four-title">Frequency to the fourth weighting determines extrema density</title>
        <desc id="spectral-moments-omega-four-desc">The smooth density S of omega is weighted by omega to the fourth power and normalized by omega four, moving contribution farther from zero.</desc>
        <path class="scientific-plate-axis" d="M18 126H204"></path>
        <path class="scientific-plate-area scientific-plate-area--wine" d="M18 126C29 121 39 91 53 60C63 38 75 43 89 88C97 111 104 124 110 126C116 124 123 111 131 88C145 43 157 38 167 60C181 91 191 121 204 126Z"></path>
        <path class="scientific-plate-line scientific-plate-line--event scientific-plate-line--strong" d="M18 126C29 121 39 91 53 60C63 38 75 43 89 88C97 111 104 124 110 126C116 124 123 111 131 88C145 43 157 38 167 60C181 91 191 121 204 126"></path>
      </svg><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:50%;--plate-math-y:16.8%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mfrac><mrow><msup><mi>ω</mi><mn>4</mn></msup><mi>S</mi><mo stretchy="false">(</mo><mi>ω</mi><mo stretchy="false">)</mo></mrow><msub><mi>ω</mi><mn>4</mn></msub></mfrac></mrow><annotation encoding="application/x-tex">\frac{\omega^4S(\omega)}{\omega_4}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:92.7%;--plate-math-y:83.6%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>frequency </mtext><mi>ω</mi></mrow><annotation encoding="application/x-tex">\text{frequency }\omega</annotation></semantics></math></span></span></div>
  </section>
</div>
</div>
  <figcaption class="scientific-plate-caption">Field variance, crossing density, and extrema density depend on successive spectral moments. All panels use the same normalized scale.</figcaption>
</figure>

<h3 id="excursion-shape"><a class="section-anchor" href="#excursion-shape" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Excursion shape
</h3>
<p>Counting fields is only the first step. To describe a typical field, we condition on the event that the process crosses the threshold from below <span class="article-citation" data-citation>(<a id="cite-kac1959-28" href="#ref-kac1959" role="doc-biblioref" data-citation-key="kac1959">Kac &amp; Slepian, 1959</a>)</span>.<input class="sidenote-toggle" type="checkbox" id="sidenote-29" aria-controls="sidenote-29-note" aria-label="Toggle sidenote">
<label class="sidenote-ref" for="sidenote-29" data-sidenote-reference><span class="sidenote-ref-number" aria-hidden="true"></span></label>
<span class="sidenote" id="sidenote-29-note" role="note" aria-label="Sidenote" data-sidenote-note><span class="sidenote-number" aria-hidden="true"></span>Palm conditioning selects the observation location from the crossings of the process. A location sampled uniformly in space follows a different distribution.</span></p>
<h4 id="slope-at-an-upcrossing"><a class="section-anchor" href="#slope-at-an-upcrossing" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Slope at an upcrossing
</h4>
<section class="math-statement math-statement--theorem" id="statement-upcrossing-slope" data-statement="upcrossing-slope" data-statement-kind="theorem" data-statement-numbered="true" data-statement-number="2.3">
  <p class="statement-heading">
    <a class="statement-permalink" href="#statement-upcrossing-slope" aria-label="Link to theorem 2.3">
      <span class="statement-kind">Theorem</span> <span class="statement-number" aria-hidden="true">2.3</span> <span class="statement-title">(Upcrossing slope)</span><span aria-hidden="true">.</span>
    </a>
  </p>
  <div class="statement-body"><p>At an upcrossing of any level <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>θ</mi><msqrt><msub><mi>r</mi><mn>0</mn></msub></msqrt></mrow><annotation encoding="application/x-tex">\theta\sqrt{r_0}</annotation></semantics></math></span></span>, the positive derivative <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>v</mi><mo>=</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">v=f&#x27;(x)</annotation></semantics></math></span></span> has Rayleigh density</p>
<div class="math-equation" id="equation-upcrossing-rayleigh" data-equation="upcrossing-rayleigh" data-equation-number="2.10">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>p</mi><mo lspace="0em" rspace="0em">↑</mo></msub><mo stretchy="false">(</mo><mi>v</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mi>v</mi><msub><mi>ω</mi><mn>2</mn></msub></mfrac><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mo>−</mo><mfrac><msup><mi>v</mi><mn>2</mn></msup><mrow><mn>2</mn><msub><mi>ω</mi><mn>2</mn></msub></mrow></mfrac><mo fence="true">)</mo></mrow><mo separator="true">,</mo><mspace width="2em"/><mi>v</mi><mo>≥</mo><mn>0</mn><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">p_{\uparrow}(v)=
\frac{v}{\omega_2}\exp\!\left(-\frac{v^2}{2\omega_2}\right),
\qquad v\geq0,</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-upcrossing-rayleigh" aria-label="Equation 2.10">
    <span class="equation-number-value" aria-hidden="true">(2.10)</span>
  </a>
</div>
<p>and this distribution is independent of the threshold.</p>
</div>
</section>

<section class="math-proof">
  <p class="proof-heading">Proof.</p>
  <div class="proof-body"><p>Restrict the Kac-Rice count to upcrossings whose slope lies between <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>0</mn></mrow><annotation encoding="application/x-tex">0</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>v</mi></mrow><annotation encoding="application/x-tex">v</annotation></semantics></math></span></span>. Since <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">f(x)</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">f&#x27;(x)</annotation></semantics></math></span></span> are independent, the factor involving the threshold cancels between the restricted and unrestricted counts:</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mi mathvariant="normal">ℙ</mi><mo stretchy="false">(</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo>&lt;</mo><mi>v</mi><mo>∣</mo><mtext>upcrossing</mtext><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mfrac><mrow><msubsup><mo>∫</mo><mn>0</mn><mi>v</mi></msubsup><mi>s</mi><mi>exp</mi><mo>⁡</mo><mo stretchy="false">[</mo><mo>−</mo><msup><mi>s</mi><mn>2</mn></msup><mi mathvariant="normal">/</mi><mo stretchy="false">(</mo><mn>2</mn><msub><mi>ω</mi><mn>2</mn></msub><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>s</mi></mrow><mrow><msubsup><mo>∫</mo><mn>0</mn><mi mathvariant="normal">∞</mi></msubsup><mi>s</mi><mi>exp</mi><mo>⁡</mo><mo stretchy="false">[</mo><mo>−</mo><msup><mi>s</mi><mn>2</mn></msup><mi mathvariant="normal">/</mi><mo stretchy="false">(</mo><mn>2</mn><msub><mi>ω</mi><mn>2</mn></msub><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mtext> </mtext><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>s</mi></mrow></mfrac></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><msubsup><mo>∫</mo><mn>0</mn><mi>v</mi></msubsup><mfrac><mi>s</mi><msub><mi>ω</mi><mn>2</mn></msub></mfrac><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mo>−</mo><mfrac><msup><mi>s</mi><mn>2</mn></msup><mrow><mn>2</mn><msub><mi>ω</mi><mn>2</mn></msub></mrow></mfrac><mo fence="true">)</mo></mrow><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>s</mi><mi mathvariant="normal">.</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">
\begin{aligned}
\PP(f&#x27;&lt;v\mid\text{upcrossing})
&amp;=\frac{\int_0^v s\exp[-s^2/(2\omega_2)]\,\dd s}
        {\int_0^\infty s\exp[-s^2/(2\omega_2)]\,\dd s}\\
&amp;=\int_0^v\frac{s}{\omega_2}
  \exp\!\left(-\frac{s^2}{2\omega_2}\right)\dd s.
\end{aligned}
</annotation></semantics></math></span></div>
</div><p>Differentiating gives <a class="equation-ref" href="#equation-upcrossing-rayleigh" data-equation-ref="upcrossing-rayleigh" aria-label="Equation 2.10"><span class="equation-ref-value" aria-hidden="true">(2.10)</span></a>.</p>
</div>
  <span class="proof-end" aria-hidden="true">□</span>
</section>

<p>Although <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup></mrow><annotation encoding="application/x-tex">f&#x27;</annotation></semantics></math></span></span> is Gaussian at a uniformly chosen point, it is not Gaussian at an upcrossing. Steep slopes create more crossings per unit length and are sampled more often. The derivative factor in the Kac-Rice formula expresses exactly this selection bias.<input class="sidenote-toggle" type="checkbox" id="sidenote-32" aria-controls="sidenote-32-note" aria-label="Toggle sidenote">
<label class="sidenote-ref" for="sidenote-32" data-sidenote-reference><span class="sidenote-ref-number" aria-hidden="true"></span></label>
<span class="sidenote" id="sidenote-32-note" role="note" aria-label="Sidenote" data-sidenote-note><span class="sidenote-number" aria-hidden="true"></span>From this point onward, <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>θ</mi></mrow><annotation encoding="application/x-tex">\theta</annotation></semantics></math></span></span> denotes the threshold itself. Replace it with <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>θ</mi><msqrt><msub><mi>r</mi><mn>0</mn></msub></msqrt></mrow><annotation encoding="application/x-tex">\theta\sqrt{r_0}</annotation></semantics></math></span></span> to restore the variance scale.</span></p>
<h4 id="the-slepian-process"><a class="section-anchor" href="#the-slepian-process" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>The Slepian process
</h4>
<section class="math-statement math-statement--definition" id="statement-slepian-model" data-statement="slepian-model" data-statement-kind="definition" data-statement-numbered="true" data-statement-number="2.4">
  <p class="statement-heading">
    <a class="statement-permalink" href="#statement-slepian-model" aria-label="Link to definition 2.4">
      <span class="statement-kind">Definition</span> <span class="statement-number" aria-hidden="true">2.4</span> <span class="statement-title">(Slepian model)</span><span aria-hidden="true">.</span>
    </a>
  </p>
  <div class="statement-body"><p>Let <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi></mrow><annotation encoding="application/x-tex">f</annotation></semantics></math></span></span> be stationary and have finitely many upcrossings in every bounded interval. A Slepian process <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo stretchy="false">{</mo><msub><mi>ξ</mi><mi>θ</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo stretchy="false">}</mo></mrow><annotation encoding="application/x-tex">\{\xi_\theta(x)\}</annotation></semantics></math></span></span> describes <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>f</mi></mrow><annotation encoding="application/x-tex">f</annotation></semantics></math></span></span> as seen from a typical upcrossing of level <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>θ</mi></mrow><annotation encoding="application/x-tex">\theta</annotation></semantics></math></span></span>. For a finite vector of locations,</p>
<div class="math-equation math-equation--wide" id="equation-slepian-conditioning" data-equation="slepian-conditioning" data-equation-number="2.11">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">ℙ</mi><mo stretchy="false">(</mo><msub><mi>ξ</mi><mi>θ</mi></msub><mo stretchy="false">(</mo><mi mathvariant="bold">x</mi><mo stretchy="false">)</mo><mo>≤</mo><mi mathvariant="bold">v</mi><mo stretchy="false">)</mo><mo>=</mo><msubsup><mo>∫</mo><mn>0</mn><mi mathvariant="normal">∞</mi></msubsup><msub><mi>p</mi><mo lspace="0em" rspace="0em">↑</mo></msub><mo stretchy="false">(</mo><mi>z</mi><mo stretchy="false">)</mo><mi mathvariant="normal">ℙ</mi><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mi>f</mi><mo stretchy="false">(</mo><mi mathvariant="bold">x</mi><mo stretchy="false">)</mo><mo>≤</mo><mi mathvariant="bold">v</mi><mo>∣</mo><mi>f</mi><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mo>=</mo><mi>θ</mi><mo separator="true">,</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mo>=</mo><mi>z</mi><mo fence="true">)</mo></mrow><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>z</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\PP(\xi_\theta(\mathbf x)\leq\mathbf v)
=\int_0^\infty p_{\uparrow}(z)
\PP\!\left(f(\mathbf x)\leq\mathbf v
\mid f(0)=\theta, f&#x27;(0)=z\right)\dd z.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-slepian-conditioning" aria-label="Equation 2.11">
    <span class="equation-number-value" aria-hidden="true">(2.11)</span>
  </a>
</div>
</div>
</section>

<p>For a Gaussian process, the conditional law inside this integral is Gaussian. Its mean and covariance therefore determine it completely. Take</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="bold-italic">ξ</mi><mo>=</mo><mo stretchy="false">(</mo><mi>f</mi><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo separator="true">,</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo stretchy="false">)</mo><mo separator="true">,</mo><mspace width="2em"/><mi mathvariant="bold-italic">η</mi><mo>=</mo><mo stretchy="false">(</mo><mi>f</mi><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mo separator="true">,</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\boldsymbol\xi=(f(y),f(x)),
\qquad
\boldsymbol\eta=(f(0),f&#x27;(0)).
</annotation></semantics></math></span></div>
</div><p>Bochner&rsquo;s representation gives the remaining cross-covariance,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mi>f</mi><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo>=</mo><mo>−</mo><msup><mi>r</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>y</mi><mo>−</mo><mi>x</mi><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\EE[f&#x27;(x)f(y)]=-r&#x27;(y-x).
</annotation></semantics></math></span></div>
</div><p>The joint covariance is therefore</p>
<div class="math-equation math-equation--wide" id="equation-slepian-joint-law" data-equation="slepian-joint-law" data-equation-number="2.12">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="bold">Σ</mi><mo>=</mo><mrow><mo fence="true">(</mo><mtable rowspacing="0.16em" columnalign="center center center center" columnspacing="1em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>r</mi><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>r</mi><mo stretchy="false">(</mo><mi>y</mi><mo>−</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>r</mi><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mo>−</mo><msup><mi>r</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>r</mi><mo stretchy="false">(</mo><mi>x</mi><mo>−</mo><mi>y</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>r</mi><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>r</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mo>−</mo><msup><mi>r</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>r</mi><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>r</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mi>r</mi><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mn>0</mn></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mo>−</mo><msup><mi>r</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mo>−</mo><msup><mi>r</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mn>0</mn></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="false"><mrow><mo>−</mo><msup><mi>r</mi><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msup><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo></mrow></mstyle></mtd></mtr></mtable><mo fence="true">)</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\boldsymbol\Sigma=
\begin{pmatrix}
r(0)&amp;r(y-x)&amp;r(y)&amp;-r&#x27;(y)\\
r(x-y)&amp;r(0)&amp;r(x)&amp;-r&#x27;(x)\\
r(y)&amp;r(x)&amp;r(0)&amp;0\\
-r&#x27;(y)&amp;-r&#x27;(x)&amp;0&amp;-r&#x27;&#x27;(0)
\end{pmatrix}.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-slepian-joint-law" aria-label="Equation 2.12">
    <span class="equation-number-value" aria-hidden="true">(2.12)</span>
  </a>
</div>

<p>With <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>0</mn></msub><mo>=</mo><msub><mi>r</mi><mn>0</mn></msub></mrow><annotation encoding="application/x-tex">\omega_0=r_0</annotation></semantics></math></span></span> and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>2</mn></msub><mo>=</mo><mo>−</mo><msup><mi>r</mi><mrow><mo mathvariant="normal">′</mo><mo mathvariant="normal">′</mo></mrow></msup><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\omega_2=-r&#x27;&#x27;(0)</annotation></semantics></math></span></span>, Gaussian conditioning gives</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi>f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>∣</mo><mi>f</mi><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mo>=</mo><mi>θ</mi><mo separator="true">,</mo><msup><mi>f</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mo>=</mo><mi>z</mi><mo stretchy="false">]</mo><mo>=</mo><mfrac><mrow><mi>θ</mi><mi>r</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><msub><mi>ω</mi><mn>0</mn></msub></mfrac><mo>−</mo><mfrac><mrow><mi>z</mi><msup><mi>r</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><msub><mi>ω</mi><mn>2</mn></msub></mfrac><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">
\EE[f(x)\mid f(0)=\theta,f&#x27;(0)=z]
=\frac{\theta r(x)}{\omega_0}
-\frac{z r&#x27;(x)}{\omega_2},
</annotation></semantics></math></span></div>
</div><p>and residual covariance</p>
<div class="math-equation math-equation--wide" id="equation-conditional-excursion-covariance" data-equation="conditional-excursion-covariance" data-equation-number="2.13">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>r</mi><mi>κ</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo separator="true">,</mo><mi>y</mi><mo stretchy="false">)</mo><mo>=</mo><mi>r</mi><mo stretchy="false">(</mo><mi>y</mi><mo>−</mo><mi>x</mi><mo stretchy="false">)</mo><mo>−</mo><mfrac><mrow><mi>r</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mi>r</mi><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo></mrow><msub><mi>ω</mi><mn>0</mn></msub></mfrac><mo>−</mo><mfrac><mrow><msup><mi>r</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><msup><mi>r</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>y</mi><mo stretchy="false">)</mo></mrow><msub><mi>ω</mi><mn>2</mn></msub></mfrac><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">r_\kappa(x,y)
=r(y-x)-\frac{r(x)r(y)}{\omega_0}
-\frac{r&#x27;(x)r&#x27;(y)}{\omega_2}.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-conditional-excursion-covariance" aria-label="Equation 2.13">
    <span class="equation-number-value" aria-hidden="true">(2.13)</span>
  </a>
</div>

<p>The last two terms are the reduction in uncertainty caused by fixing the height and slope at the crossing. They vanish far from the origin when the covariance and its derivative decay.</p>
<section class="math-statement math-statement--theorem" id="statement-slepian-decomposition" data-statement="slepian-decomposition" data-statement-kind="theorem" data-statement-numbered="true" data-statement-number="2.5">
  <p class="statement-heading">
    <a class="statement-permalink" href="#statement-slepian-decomposition" aria-label="Link to theorem 2.5">
      <span class="statement-kind">Theorem</span> <span class="statement-number" aria-hidden="true">2.5</span> <span class="statement-title">(Gaussian excursion decomposition)</span><span aria-hidden="true">.</span>
    </a>
  </p>
  <div class="statement-body"><p>After a typical upcrossing, a stationary Gaussian process has the representation</p>
<div class="math-equation" id="equation-slepian-process" data-equation="slepian-process" data-equation-number="2.14">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>ξ</mi><mi>θ</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mrow><mi>θ</mi><mi>r</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><msub><mi>ω</mi><mn>0</mn></msub></mfrac><mo>−</mo><mfrac><mrow><mi>ζ</mi><msup><mi>r</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo></mrow><msub><mi>ω</mi><mn>2</mn></msub></mfrac><mo>+</mo><mi>κ</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">\xi_\theta(x)
=\frac{\theta r(x)}{\omega_0}
-\frac{\zeta r&#x27;(x)}{\omega_2}
+\kappa(x),</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-slepian-process" aria-label="Equation 2.14">
    <span class="equation-number-value" aria-hidden="true">(2.14)</span>
  </a>
</div>
<p>where <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>ζ</mi></mrow><annotation encoding="application/x-tex">\zeta</annotation></semantics></math></span></span> has the Rayleigh density in <a class="equation-ref" href="#equation-upcrossing-rayleigh" data-equation-ref="upcrossing-rayleigh" aria-label="Equation 2.10"><span class="equation-ref-value" aria-hidden="true">(2.10)</span></a>, and <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>κ</mi></mrow><annotation encoding="application/x-tex">\kappa</annotation></semantics></math></span></span> is an independent, mean-zero, nonstationary Gaussian process with covariance <a class="equation-ref" href="#equation-conditional-excursion-covariance" data-equation-ref="conditional-excursion-covariance" aria-label="Equation 2.13"><span class="equation-ref-value" aria-hidden="true">(2.13)</span></a>.</p>
</div>
</section>

<p>Compare the conditional mean and residual process with the high-threshold parabolic limit in <a class="plate-ref" href="#plate-conditioned-excursion" data-plate-ref="conditioned-excursion" aria-label="Plate 2.4"><span class="plate-ref-kind">Plate</span> <span class="plate-ref-number">2.4</span></a>.</p>
<figure class="scientific-plate scientific-plate--excursion" id="plate-conditioned-excursion" data-scientific-plate="excursion" data-plate-number="2.4">
  <header class="scientific-plate-header">
    <span class="scientific-plate-number">Plate 2.4</span>
    <span class="scientific-plate-title">Conditioned excursion</span>
  </header>
  <div class="scientific-plate-body"><div class="scientific-plate-panels scientific-plate-panels--two">
  <section class="scientific-plate-panel" aria-labelledby="conditioned-excursion-conditioned-label">
    <p class="scientific-plate-panel-title" id="conditioned-excursion-conditioned-label">conditioned upcrossing</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 330 202" role="img" aria-labelledby="conditioned-excursion-conditioned-title conditioned-excursion-conditioned-desc">
        <title id="conditioned-excursion-conditioned-title">Slepian decomposition after an upward crossing</title>
        <desc id="conditioned-excursion-conditioned-desc">A process is fixed at threshold theta at zero with positive Rayleigh slope zeta. Direct labels identify the threshold term, slope term, and residual kappa of x.</desc>
        <path class="scientific-plate-axis" d="M24 151H308"></path>
        <line class="scientific-plate-condition" x1="24" y1="115" x2="308" y2="115"></line>
        <path class="scientific-plate-line scientific-plate-line--condition" d="M24 139C72 134 111 117 149 96C181 79 220 82 308 134"></path>
        <path class="scientific-plate-line scientific-plate-line--event" d="M24 151C85 151 126 140 164 115C200 91 236 88 308 142"></path>
        <path class="scientific-plate-line scientific-plate-line--quiet scientific-plate-line--residual" d="M24 146C49 152 70 137 95 145C121 153 139 122 164 115C189 108 205 119 229 109C253 99 277 137 308 131"></path>
        <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" d="M24 134C49 137 71 122 96 128C122 134 140 106 164 92C189 78 206 91 230 84C256 77 280 119 308 122"></path>
        <circle class="scientific-plate-event-dot" cx="164" cy="115" r="3.7"></circle>
        <text class="scientific-plate-label scientific-plate-label--green" x="235" y="69">conditioned field</text>
        <path class="scientific-plate-leader" d="M201 161L175 124"></path>
        <path class="scientific-plate-leader" d="M96 37L104 121"></path>
        <text class="scientific-plate-label" x="308" y="185" text-anchor="end">distance from crossing</text>
      </svg><span class="scientific-plate-math scientific-plate-math--blue scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:8.5%;--plate-math-y:51.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>threshold </mtext><mi>θ</mi></mrow><annotation encoding="application/x-tex">\text{threshold }\theta</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:22.7%;--plate-math-y:14.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>κ</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo separator="true">,</mo><mtext> residual</mtext></mrow><annotation encoding="application/x-tex">\kappa(x),\ \text{residual}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:59.7%;--plate-math-y:82.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>Rayleigh slope </mtext><mi>ζ</mi></mrow><annotation encoding="application/x-tex">\text{Rayleigh slope }\zeta</annotation></semantics></math></span></span></div>
  </section>

  <section class="scientific-plate-panel" aria-labelledby="conditioned-excursion-high-label">
    <p class="scientific-plate-panel-title" id="conditioned-excursion-high-label">high threshold limit</p>
    <div class="scientific-plate-graphic">
      <svg viewBox="0 0 330 202" role="img" aria-labelledby="conditioned-excursion-high-title conditioned-excursion-high-desc">
        <title id="conditioned-excursion-high-title">A high excursion approaches a parabola</title>
        <desc id="conditioned-excursion-high-desc">Above a high threshold theta, the conditioned excursion narrows to a parabolic cap. Its length scales as zeta over theta and its height as zeta squared over theta.</desc>
        <path class="scientific-plate-axis" d="M24 151H308"></path>
        <line class="scientific-plate-condition" x1="24" y1="124" x2="308" y2="124"></line>
        <path class="scientific-plate-area scientific-plate-area--wine" d="M97 124C117 69 139 43 164 43C189 43 211 69 231 124Z"></path>
        <path class="scientific-plate-line scientific-plate-line--event scientific-plate-line--strong" d="M97 124C117 69 139 43 164 43C189 43 211 69 231 124"></path>
        <path class="scientific-plate-dimension" d="M97 145V134M97 139H231M231 145V134"></path>
        <path class="scientific-plate-dimension" d="M247 124H257M252 124V43M247 43H257"></path>
        <text class="scientific-plate-label scientific-plate-label--wine" x="164" y="31" text-anchor="middle">parabolic cap</text>
        <text class="scientific-plate-label" x="261" y="88">height</text>
        <text class="scientific-plate-label" x="308" y="185" text-anchor="end">rescaled distance</text>
      </svg><span class="scientific-plate-math scientific-plate-math--blue scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:8.5%;--plate-math-y:56%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>high </mtext><mi>θ</mi></mrow><annotation encoding="application/x-tex">\text{high }\theta</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--center scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:49.7%;--plate-math-y:77.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mtext>length</mtext><mo>∝</mo><mi>ζ</mi><mi mathvariant="normal">/</mi><mi>θ</mi></mrow><annotation encoding="application/x-tex">\text{length}\propto\zeta/\theta</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:79.1%;--plate-math-y:49.5%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo>∝</mo><msup><mi>ζ</mi><mn>2</mn></msup><mi mathvariant="normal">/</mi><mi>θ</mi></mrow><annotation encoding="application/x-tex">\propto\zeta^2/\theta</annotation></semantics></math></span></span></div>
  </section>
</div>
</div>
  <figcaption class="scientific-plate-caption">Conditioning fixes the height and slope at the origin. At high threshold, the local excursion approaches a parabola.</figcaption>
</figure>

<h4 id="high-excursions"><a class="section-anchor" href="#high-excursions" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>High excursions
</h4>
<p>At high threshold, the length and excess height of an excursion are both of order <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>θ</mi><mrow><mo>−</mo><mn>1</mn></mrow></msup></mrow><annotation encoding="application/x-tex">\theta^{-1}</annotation></semantics></math></span></span>. Expand the covariance around the crossing:</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi>r</mi><mo stretchy="false">(</mo><mi>x</mi><mi mathvariant="normal">/</mi><mi>θ</mi><mo stretchy="false">)</mo><mo>=</mo><msub><mi>ω</mi><mn>0</mn></msub><mo>−</mo><mfrac><mrow><msub><mi>ω</mi><mn>2</mn></msub><msup><mi>x</mi><mn>2</mn></msup></mrow><mrow><mn>2</mn><msup><mi>θ</mi><mn>2</mn></msup></mrow></mfrac><mo stretchy="false">[</mo><mn>1</mn><mo>+</mo><mi>o</mi><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mo separator="true">,</mo><mspace width="2em"/><msup><mi>r</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msup><mo stretchy="false">(</mo><mi>x</mi><mi mathvariant="normal">/</mi><mi>θ</mi><mo stretchy="false">)</mo><mo>=</mo><mo>−</mo><mfrac><mrow><msub><mi>ω</mi><mn>2</mn></msub><mi>x</mi></mrow><mi>θ</mi></mfrac><mo stretchy="false">[</mo><mn>1</mn><mo>+</mo><mi>o</mi><mo stretchy="false">(</mo><mn>1</mn><mo stretchy="false">)</mo><mo stretchy="false">]</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
r(x/\theta)
=\omega_0-\frac{\omega_2x^2}{2\theta^2}[1+o(1)],
\qquad
r&#x27;(x/\theta)
=-\frac{\omega_2x}{\theta}[1+o(1)].
</annotation></semantics></math></span></div>
</div><p>The conditioned residual satisfies <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>κ</mi><mo stretchy="false">(</mo><mi>x</mi><mi mathvariant="normal">/</mi><mi>θ</mi><mo stretchy="false">)</mo><mo>=</mo><mi>o</mi><mo stretchy="false">(</mo><mi>x</mi><mi mathvariant="normal">/</mi><mi>θ</mi><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\kappa(x/\theta)=o(x/\theta)</annotation></semantics></math></span></span>. Substituting these terms into the Slepian process yields</p>
<div class="math-equation math-equation--wide" id="equation-high-excursion-parabola" data-equation="high-excursion-parabola" data-equation-number="2.15">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mi>θ</mi><mo stretchy="false">{</mo><msub><mi>ξ</mi><mi>θ</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mi mathvariant="normal">/</mi><mi>θ</mi><mo stretchy="false">)</mo><mo>−</mo><mi>θ</mi><mo stretchy="false">}</mo></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>≈</mo><mi>ζ</mi><mi>x</mi><mo>−</mo><mfrac><mrow><msub><mi>ω</mi><mn>2</mn></msub><msup><mi>x</mi><mn>2</mn></msup></mrow><mrow><mn>2</mn><msub><mi>ω</mi><mn>0</mn></msub></mrow></mfrac></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mo>−</mo><mfrac><msub><mi>ω</mi><mn>2</mn></msub><mrow><mn>2</mn><msub><mi>ω</mi><mn>0</mn></msub></mrow></mfrac><msup><mrow><mo fence="true">(</mo><mi>x</mi><mo>−</mo><mfrac><mrow><mi>ζ</mi><msub><mi>ω</mi><mn>0</mn></msub></mrow><msub><mi>ω</mi><mn>2</mn></msub></mfrac><mo fence="true">)</mo></mrow><mn>2</mn></msup><mo>+</mo><mfrac><mrow><msup><mi>ζ</mi><mn>2</mn></msup><msub><mi>ω</mi><mn>0</mn></msub></mrow><mrow><mn>2</mn><msub><mi>ω</mi><mn>2</mn></msub></mrow></mfrac><mi mathvariant="normal">.</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">\begin{aligned}
\theta\{\xi_\theta(x/\theta)-\theta\}
&amp;\approx \zeta x-\frac{\omega_2x^2}{2\omega_0}\\
&amp;=-\frac{\omega_2}{2\omega_0}
\left(x-\frac{\zeta\omega_0}{\omega_2}\right)^2
+\frac{\zeta^2\omega_0}{2\omega_2}.
\end{aligned}</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-high-excursion-parabola" aria-label="Equation 2.15">
    <span class="equation-number-value" aria-hidden="true">(2.15)</span>
  </a>
</div>

<p>The excursion is locally parabolic. Its excess height is approximately <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>ζ</mi><mn>2</mn></msup><msub><mi>ω</mi><mn>0</mn></msub><mi mathvariant="normal">/</mi><mo stretchy="false">(</mo><mn>2</mn><mi>θ</mi><msub><mi>ω</mi><mn>2</mn></msub><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\zeta^2\omega_0/(2\theta\omega_2)</annotation></semantics></math></span></span> and its length is approximately <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>ω</mi><mn>0</mn></msub><mi>ζ</mi><mi mathvariant="normal">/</mi><mo stretchy="false">(</mo><mi>θ</mi><msub><mi>ω</mi><mn>2</mn></msub><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">2\omega_0\zeta/(\theta\omega_2)</annotation></semantics></math></span></span>. The length inherits the Rayleigh law of the crossing slope, while the height inherits its square.</p>
<p>In an isotropic <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>D</mi></mrow><annotation encoding="application/x-tex">D</annotation></semantics></math></span></span>-dimensional process, make the simplifying approximation that the <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>D</mi></mrow><annotation encoding="application/x-tex">D</annotation></semantics></math></span></span> principal lengths share this Rayleigh scaling. If a normalized linear size <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>S</mi></mrow><annotation encoding="application/x-tex">S</annotation></semantics></math></span></span> has density</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>p</mi><mi>S</mi></msub><mo stretchy="false">(</mo><mi>s</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><mi>s</mi><msub><mi>ω</mi><mn>2</mn></msub></mfrac><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mo>−</mo><mfrac><msup><mi>s</mi><mn>2</mn></msup><mrow><mn>2</mn><msub><mi>ω</mi><mn>2</mn></msub></mrow></mfrac><mo fence="true">)</mo></mrow><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">
p_S(s)=\frac{s}{\omega_2}\exp\!\left(-\frac{s^2}{2\omega_2}\right),
</annotation></semantics></math></span></div>
</div><p>and volume is <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>V</mi><mo>=</mo><msup><mi>S</mi><mi>D</mi></msup></mrow><annotation encoding="application/x-tex">V=S^D</annotation></semantics></math></span></span>, then the change of variables <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>s</mi><mo>=</mo><msup><mi>v</mi><mrow><mn>1</mn><mi mathvariant="normal">/</mi><mi>D</mi></mrow></msup></mrow><annotation encoding="application/x-tex">s=v^{1/D}</annotation></semantics></math></span></span> gives</p>
<div class="math-equation" id="equation-excursion-volume-density" data-equation="excursion-volume-density" data-equation-number="2.16">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi>p</mi><mi>V</mi></msub><mo stretchy="false">(</mo><mi>v</mi><mo stretchy="false">)</mo><mo>=</mo><mfrac><msup><mi>v</mi><mrow><mn>2</mn><mi mathvariant="normal">/</mi><mi>D</mi><mo>−</mo><mn>1</mn></mrow></msup><mrow><mi>D</mi><msub><mi>ω</mi><mn>2</mn></msub></mrow></mfrac><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mo>−</mo><mfrac><msup><mi>v</mi><mrow><mn>2</mn><mi mathvariant="normal">/</mi><mi>D</mi></mrow></msup><mrow><mn>2</mn><msub><mi>ω</mi><mn>2</mn></msub></mrow></mfrac><mo fence="true">)</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">p_V(v)=\frac{v^{2/D-1}}{D\omega_2}
\exp\!\left(-\frac{v^{2/D}}{2\omega_2}\right).</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-excursion-volume-density" aria-label="Equation 2.16">
    <span class="equation-number-value" aria-hidden="true">(2.16)</span>
  </a>
</div>

<p>For <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>D</mi><mo>=</mo><mn>2</mn></mrow><annotation encoding="application/x-tex">D=2</annotation></semantics></math></span></span>, this normalized volume, and likewise the squared Rayleigh height variable, is exponentially distributed.</p>
<h2 id="coding-properties"><a class="section-anchor" href="#coding-properties" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Coding properties
</h2>
<p>So far the Gaussian process has described the structure of a neural code. We now ask how well a population of these fields can encode position. The calculation follows a simplified random-code model without thresholding <span class="article-citation" data-citation>(<a id="cite-malerba2022-41" href="#ref-malerba2022" role="doc-biblioref" data-citation-key="malerba2022">Blanco Malerba et al., 2022</a>)</span>.</p>
<p>Let <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi></mrow><annotation encoding="application/x-tex">N</annotation></semantics></math></span></span> neurons independently sample a stationary Gaussian process over a one-dimensional environment of length <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>L</mi></mrow><annotation encoding="application/x-tex">L</annotation></semantics></math></span></span>,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="bold">f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>=</mo><mo stretchy="false">(</mo><msub><mi>f</mi><mn>1</mn></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo separator="true">,</mo><mo>…</mo><mo separator="true">,</mo><msub><mi>f</mi><mi>N</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\mathbf f(x)=(f_1(x),\ldots,f_N(x)).
</annotation></semantics></math></span></div>
</div><p>Suppose the response at the true position <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>x</mi><mo>=</mo><mn>0</mn></mrow><annotation encoding="application/x-tex">x=0</annotation></semantics></math></span></span> is corrupted by independent Gaussian noise <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>z</mi><mi>i</mi></msub><mo>∼</mo><mi mathvariant="normal">𝒩</mi><mo stretchy="false">(</mo><mn>0</mn><mo separator="true">,</mo><msup><mi>η</mi><mn>2</mn></msup><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">z_i\sim\mathcal N(0,\eta^2)</annotation></semantics></math></span></span>. Under that noise model, maximum-likelihood decoding minimizes squared distance:</p>
<div class="math-equation math-equation--wide" id="equation-maximum-likelihood-position" data-equation="maximum-likelihood-position" data-equation-number="3.1">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mover accent="true"><mi>x</mi><mo stretchy="true">^</mo></mover><mo>=</mo><munder><mrow><mi mathvariant="normal">arg min</mi><mo>⁡</mo></mrow><mi>x</mi></munder><munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>N</mi></munderover><msup><mrow><mo fence="true">[</mo><msub><mi>f</mi><mi>i</mi></msub><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>−</mo><msub><mi>f</mi><mi>i</mi></msub><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mo>−</mo><msub><mi>z</mi><mi>i</mi></msub><mo fence="true">]</mo></mrow><mn>2</mn></msup><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\widehat x
=\argmin_x\sum_{i=1}^{N}
\left[f_i(x)-f_i(0)-z_i\right]^2.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-maximum-likelihood-position" aria-label="Equation 3.1">
    <span class="equation-number-value" aria-hidden="true">(3.1)</span>
  </a>
</div>

<p>We measure performance by mean squared position error,</p>
<div class="math-equation" id="equation-squared-position-loss" data-equation="squared-position-loss" data-equation-number="3.2">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">ℒ</mi><mo>=</mo><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mo stretchy="false">(</mo><mover accent="true"><mi>x</mi><mo stretchy="true">^</mo></mover><mo>−</mo><mi>x</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup><mo stretchy="false">]</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\mathcal L=\EE[(\widehat x-x)^2].</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-squared-position-loss" aria-label="Equation 3.2">
    <span class="equation-number-value" aria-hidden="true">(3.2)</span>
  </a>
</div>

<p>Two mechanisms contribute. A local error moves the single posterior peak away from the true position. A global error makes a distant, weakly correlated codeword appear closer than the true one. Their dependence on field roughness points in opposite directions.</p>
<h3 id="local-error"><a class="section-anchor" href="#local-error" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Local error
</h3>
<p>Suppose the error <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="normal">Δ</mi><mi>x</mi><mo>=</mo><mover accent="true"><mi>x</mi><mo stretchy="true">^</mo></mover></mrow><annotation encoding="application/x-tex">\Delta x=\widehat x</annotation></semantics></math></span></span> is small. Linearizing each field around zero gives</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mover accent="true"><mi>x</mi><mo stretchy="true">^</mo></mover></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><munder><mrow><mi mathvariant="normal">arg min</mi><mo>⁡</mo></mrow><mrow><mi mathvariant="normal">Δ</mi><mi>x</mi></mrow></munder><munderover><mo>∑</mo><mrow><mi>i</mi><mo>=</mo><mn>1</mn></mrow><mi>N</mi></munderover><msup><mrow><mo fence="true">[</mo><msubsup><mi>f</mi><mi>i</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msubsup><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mi mathvariant="normal">Δ</mi><mi>x</mi><mo>−</mo><msub><mi>z</mi><mi>i</mi></msub><mo fence="true">]</mo></mrow><mn>2</mn></msup><mo separator="true">,</mo></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mi mathvariant="normal">Δ</mi><mi>x</mi></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mo>=</mo><mfrac><mrow><munder><mo>∑</mo><mi>i</mi></munder><msubsup><mi>f</mi><mi>i</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msubsup><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><msub><mi>z</mi><mi>i</mi></msub></mrow><mrow><munder><mo>∑</mo><mi>i</mi></munder><msubsup><mi>f</mi><mi>i</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msubsup><mo stretchy="false">(</mo><mn>0</mn><msup><mo stretchy="false">)</mo><mn>2</mn></msup></mrow></mfrac><mi mathvariant="normal">.</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">
\begin{aligned}
\widehat x
&amp;=\argmin_{\Delta x}\sum_{i=1}^{N}
\left[f_i&#x27;(0)\Delta x-z_i\right]^2,\\
\Delta x
&amp;=\frac{\sum_i f_i&#x27;(0)z_i}{\sum_i f_i&#x27;(0)^2}.
\end{aligned}
</annotation></semantics></math></span></div>
</div><p>Conditioned on the field derivatives, averaging over the readout noise gives</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msub><mi mathvariant="normal">𝔼</mi><mi>z</mi></msub><mo stretchy="false">[</mo><mo stretchy="false">(</mo><mi mathvariant="normal">Δ</mi><mi>x</mi><msup><mo stretchy="false">)</mo><mn>2</mn></msup><mo stretchy="false">]</mo><mo>=</mo><mfrac><msup><mi>η</mi><mn>2</mn></msup><mrow><munder><mo>∑</mo><mi>i</mi></munder><msubsup><mi>f</mi><mi>i</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msubsup><mo stretchy="false">(</mo><mn>0</mn><msup><mo stretchy="false">)</mo><mn>2</mn></msup></mrow></mfrac><mo>=</mo><mfrac><msup><mi>η</mi><mn>2</mn></msup><mrow><msub><mi>ω</mi><mn>2</mn></msub><munder><mo>∑</mo><mi>i</mi></munder><msubsup><mi>f</mi><mi>i</mi><mo mathvariant="normal" lspace="0em" rspace="0em">′</mo></msubsup><mo stretchy="false">(</mo><mn>0</mn><msup><mo stretchy="false">)</mo><mn>2</mn></msup><mi mathvariant="normal">/</mi><msub><mi>ω</mi><mn>2</mn></msub></mrow></mfrac><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\EE_z[(\Delta x)^2]
=\frac{\eta^2}{\sum_i f_i&#x27;(0)^2}
=\frac{\eta^2}{\omega_2
\sum_i f_i&#x27;(0)^2/\omega_2}.
</annotation></semantics></math></span></div>
</div><p>The normalized sum is <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msubsup><mi>χ</mi><mi>N</mi><mn>2</mn></msubsup></mrow><annotation encoding="application/x-tex">\chi_N^2</annotation></semantics></math></span></span>. Since <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mo stretchy="false">(</mo><msubsup><mi>χ</mi><mi>N</mi><mn>2</mn></msubsup><msup><mo stretchy="false">)</mo><mrow><mo>−</mo><mn>1</mn></mrow></msup><mo stretchy="false">]</mo><mo>=</mo><mn>1</mn><mi mathvariant="normal">/</mi><mo stretchy="false">(</mo><mi>N</mi><mo>−</mo><mn>2</mn><mo stretchy="false">)</mo></mrow><annotation encoding="application/x-tex">\EE[(\chi_N^2)^{-1}]=1/(N-2)</annotation></semantics></math></span></span> for <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi><mo>&gt;</mo><mn>2</mn></mrow><annotation encoding="application/x-tex">N&gt;2</annotation></semantics></math></span></span>,</p>
<div class="math-equation" id="equation-local-error" data-equation="local-error" data-equation-number="3.3">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msub><mi mathvariant="normal">ℒ</mi><mrow><mi mathvariant="normal">l</mi><mi mathvariant="normal">o</mi><mi mathvariant="normal">c</mi><mi mathvariant="normal">a</mi><mi mathvariant="normal">l</mi></mrow></msub><mo stretchy="false">]</mo><mo>=</mo><mfrac><msup><mi>η</mi><mn>2</mn></msup><mrow><msub><mi>ω</mi><mn>2</mn></msub><mo stretchy="false">(</mo><mi>N</mi><mo>−</mo><mn>2</mn><mo stretchy="false">)</mo></mrow></mfrac><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\EE[\mathcal L_{\mathrm{local}}]
=\frac{\eta^2}{\omega_2(N-2)}.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-local-error" aria-label="Equation 3.3">
    <span class="equation-number-value" aria-hidden="true">(3.3)</span>
  </a>
</div>

<p>Rougher fields have larger <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">\omega_2</annotation></semantics></math></span></span> and steeper local gradients, so they reduce this error.</p>
<h3 id="global-error"><a class="section-anchor" href="#global-error" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>Global error
</h3>
<p>Now assume global errors are rare and occur at positions separated by more than one correlation length. Their count is then approximately Poisson. If <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>λ</mi></mrow><annotation encoding="application/x-tex">\lambda</annotation></semantics></math></span></span> is the rate per independent segment,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">ℙ</mi><mo stretchy="false">(</mo><mtext>at least one global error</mtext><mo stretchy="false">)</mo><mo>=</mo><mn>1</mn><mo>−</mo><msup><mi>e</mi><mrow><mo>−</mo><mi>λ</mi><mi>L</mi></mrow></msup><mo>≈</mo><mi>λ</mi><mi>L</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\PP(\text{at least one global error})
=1-e^{-\lambda L}\approx\lambda L.
</annotation></semantics></math></span></div>
</div><p>At a distant position <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>x</mi></mrow><annotation encoding="application/x-tex">x</annotation></semantics></math></span></span>, define the vector difference</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover><mo>=</mo><mi mathvariant="bold">f</mi><mo stretchy="false">(</mo><mi>x</mi><mo stretchy="false">)</mo><mo>−</mo><mi mathvariant="bold">f</mi><mo stretchy="false">(</mo><mn>0</mn><mo stretchy="false">)</mo><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\widetilde{\mathbf f}=\mathbf f(x)-\mathbf f(0).
</annotation></semantics></math></span></div>
</div><p>A global error occurs when the distant noisy code is closer to the observation than the true code.<input class="sidenote-toggle" type="checkbox" id="sidenote-45" aria-controls="sidenote-45-note" aria-label="Toggle sidenote">
<label class="sidenote-ref" for="sidenote-45" data-sidenote-reference><span class="sidenote-ref-number" aria-hidden="true"></span></label>
<span class="sidenote" id="sidenote-45-note" role="note" aria-label="Sidenote" data-sidenote-note><span class="sidenote-number" aria-hidden="true"></span>The noise is symmetric, so changing the sign of the cross term leaves the error probability unchanged.</span></p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><msup><mrow><mo fence="true">∥</mo><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover><mo>+</mo><mi mathvariant="bold">z</mi><mo fence="true">∥</mo></mrow><mn>2</mn></msup><mo>&lt;</mo><msup><mrow><mo fence="true">∥</mo><mi mathvariant="bold">z</mi><mo fence="true">∥</mo></mrow><mn>2</mn></msup><mo separator="true">,</mo></mrow><annotation encoding="application/x-tex">
\norm{\widetilde{\mathbf f}+\mathbf z}^2&lt;\norm{\mathbf z}^2,
</annotation></semantics></math></span></div>
</div><p>or equivalently when</p>
<div class="math-equation" id="equation-global-error-event" data-equation="global-error-event" data-equation-number="3.4">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">ℐ</mi><mo>=</mo><msup><mrow><mo fence="true">∥</mo><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover><mo fence="true">∥</mo></mrow><mn>2</mn></msup><mo>+</mo><mn>2</mn><msup><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover><mi mathvariant="normal">𝖳</mi></msup><mi mathvariant="bold">z</mi><mo>&lt;</mo><mn>0.</mn></mrow><annotation encoding="application/x-tex">\mathcal I
=\norm{\widetilde{\mathbf f}}^2
+2\widetilde{\mathbf f}^{\mathsf T}\mathbf z&lt;0.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-global-error-event" aria-label="Equation 3.4">
    <span class="equation-number-value" aria-hidden="true">(3.4)</span>
  </a>
</div>

<p>Conditioned on <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover></mrow><annotation encoding="application/x-tex">\widetilde{\mathbf f}</annotation></semantics></math></span></span>,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">ℐ</mi><mo>∼</mo><mi mathvariant="normal">𝒩</mi><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><msup><mrow><mo fence="true">∥</mo><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover><mo fence="true">∥</mo></mrow><mn>2</mn></msup><mo separator="true">,</mo><mn>4</mn><msup><mi>η</mi><mn>2</mn></msup><msup><mrow><mo fence="true">∥</mo><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover><mo fence="true">∥</mo></mrow><mn>2</mn></msup><mo fence="true">)</mo></mrow><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\mathcal I\sim\mathcal N\!\left(
\norm{\widetilde{\mathbf f}}^2,
4\eta^2\norm{\widetilde{\mathbf f}}^2
\right).
</annotation></semantics></math></span></div>
</div><p>Dividing by the positive norm gives a Gaussian variable with mean <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mo fence="true">∥</mo><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover><mo fence="true">∥</mo></mrow><annotation encoding="application/x-tex">\norm{\widetilde{\mathbf f}}</annotation></semantics></math></span></span> and variance <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>4</mn><msup><mi>η</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">4\eta^2</annotation></semantics></math></span></span>. The conditional error probability can be written as</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">ℙ</mi><mo stretchy="false">(</mo><mi mathvariant="normal">ℐ</mi><mo>&lt;</mo><mn>0</mn><mo>∣</mo><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover><mo stretchy="false">)</mo><mo>=</mo><msubsup><mo>∫</mo><mrow><mo>−</mo><mi mathvariant="normal">∞</mi></mrow><mn>0</mn></msubsup><mfrac><mn>1</mn><msqrt><mrow><mn>8</mn><mi>π</mi><msup><mi>η</mi><mn>2</mn></msup></mrow></msqrt></mfrac><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mo>−</mo><mfrac><mrow><mo stretchy="false">(</mo><mi>q</mi><mo>−</mo><mrow><mo fence="true">∥</mo><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover><mo fence="true">∥</mo></mrow><msup><mo stretchy="false">)</mo><mn>2</mn></msup></mrow><mrow><mn>8</mn><msup><mi>η</mi><mn>2</mn></msup></mrow></mfrac><mo fence="true">]</mo></mrow><mo></mo><mtext> ⁣</mtext><mi mathvariant="normal">d</mi><mi>q</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\PP(\mathcal I&lt;0\mid\widetilde{\mathbf f})
=\int_{-\infty}^{0}
\frac{1}{\sqrt{8\pi\eta^2}}
\exp\!\left[-\frac{(q-\norm{\widetilde{\mathbf f}})^2}{8\eta^2}\right]\dd q.
</annotation></semantics></math></span></div>
</div><p>For points beyond the correlation length, each component of <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover></mrow><annotation encoding="application/x-tex">\widetilde{\mathbf f}</annotation></semantics></math></span></span> has variance approximately <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>2</mn><msub><mi>r</mi><mn>0</mn></msub></mrow><annotation encoding="application/x-tex">2r_0</annotation></semantics></math></span></span>. Averaging the exponential over the resulting norm distribution, using the noncentral <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>χ</mi><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">\chi^2</annotation></semantics></math></span></span> moment-generating function, gives the approximation used in the talk,</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mtable rowspacing="0.25em" columnalign="right left" columnspacing="0em"><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><msub><mi mathvariant="normal">𝔼</mi><mi mathvariant="bold">f</mi></msub><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">(</mo><mo>−</mo><mfrac><msub><mi>r</mi><mn>0</mn></msub><mrow><mn>4</mn><msup><mi>η</mi><mn>2</mn></msup></mrow></mfrac><msup><mrow><mo fence="true">[</mo><mi>q</mi><mo>−</mo><mfrac><mrow><mo fence="true">∥</mo><mover accent="true"><mi mathvariant="bold">f</mi><mo stretchy="true">~</mo></mover><mo fence="true">∥</mo></mrow><msqrt><mrow><mn>2</mn><msub><mi>r</mi><mn>0</mn></msub></mrow></msqrt></mfrac><mo fence="true">]</mo></mrow><mn>2</mn></msup><mo fence="true">)</mo></mrow><mo fence="true">]</mo></mrow></mrow></mstyle></mtd></mtr><mtr><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow></mrow></mstyle></mtd><mtd><mstyle scriptlevel="0" displaystyle="true"><mrow><mrow></mrow><mspace width="2em"/><mo>=</mo><mi>exp</mi><mo>⁡</mo><mtext> ⁣</mtext><mrow><mo fence="true">[</mo><mo>−</mo><mfrac><msup><mi>q</mi><mn>2</mn></msup><mrow><mn>2</mn><mo stretchy="false">(</mo><mn>1</mn><mo>+</mo><mn>2</mn><msup><mi>η</mi><mn>2</mn></msup><mi mathvariant="normal">/</mi><msub><mi>r</mi><mn>0</mn></msub><mo stretchy="false">)</mo></mrow></mfrac><mo fence="true">]</mo></mrow><msup><mrow><mo fence="true">(</mo><mn>1</mn><mo>+</mo><mfrac><msub><mi>r</mi><mn>0</mn></msub><mrow><mn>2</mn><msup><mi>η</mi><mn>2</mn></msup></mrow></mfrac><mo fence="true">)</mo></mrow><mrow><mo>−</mo><mi>N</mi><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mi mathvariant="normal">.</mi></mrow></mstyle></mtd></mtr></mtable><annotation encoding="application/x-tex">
\begin{aligned}
&amp;\EE_{\mathbf f}\!\left[
\exp\!\left(-\frac{r_0}{4\eta^2}
\left[q-\frac{\norm{\widetilde{\mathbf f}}}{\sqrt{2r_0}}\right]^2\right)
\right]\\
&amp;\qquad=
\exp\!\left[-\frac{q^2}{2(1+2\eta^2/r_0)}\right]
\left(1+\frac{r_0}{2\eta^2}\right)^{-N/2}.
\end{aligned}
</annotation></semantics></math></span></div>
</div><p>Completing the remaining half-Gaussian integral yields</p>
<div class="math-equation math-equation--wide" id="equation-global-error-probability" data-equation="global-error-probability" data-equation-number="3.5">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">ℙ</mi><mo stretchy="false">(</mo><mi mathvariant="normal">ℐ</mi><mo>&lt;</mo><mn>0</mn><mo stretchy="false">)</mo><mo>=</mo><mfrac><mn>1</mn><mn>2</mn></mfrac><msup><mrow><mo fence="true">(</mo><mn>1</mn><mo>+</mo><mfrac><msub><mi>r</mi><mn>0</mn></msub><mrow><mn>2</mn><msup><mi>η</mi><mn>2</mn></msup></mrow></mfrac><mo fence="true">)</mo></mrow><mrow><mo>−</mo><mo stretchy="false">(</mo><mi>N</mi><mo>−</mo><mn>1</mn><mo stretchy="false">)</mo><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\PP(\mathcal I&lt;0)
=\frac12\left(1+\frac{r_0}{2\eta^2}\right)^{-(N-1)/2}.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-global-error-probability" aria-label="Equation 3.5">
    <span class="equation-number-value" aria-hidden="true">(3.5)</span>
  </a>
</div>

<p>To turn this single-comparison probability into an error rate, the note uses the simplifying estimate that an environment of length <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>L</mi></mrow><annotation encoding="application/x-tex">L</annotation></semantics></math></span></span> contains <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>L</mi><msub><mi>ω</mi><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">L\omega_2</annotation></semantics></math></span></span> effectively independent comparisons. This is a rough correlation-length approximation rather than an exact identity. It gives</p>
<div class="math-display" data-math-display>
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">ℙ</mi><mo stretchy="false">(</mo><mtext>global error</mtext><mo stretchy="false">)</mo><mo>≈</mo><mfrac><mrow><mi>L</mi><msub><mi>ω</mi><mn>2</mn></msub></mrow><mn>2</mn></mfrac><msup><mrow><mo fence="true">(</mo><mn>1</mn><mo>+</mo><mfrac><msub><mi>r</mi><mn>0</mn></msub><mrow><mn>2</mn><msup><mi>η</mi><mn>2</mn></msup></mrow></mfrac><mo fence="true">)</mo></mrow><mrow><mo>−</mo><mo stretchy="false">(</mo><mi>N</mi><mo>−</mo><mn>1</mn><mo stretchy="false">)</mo><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">
\PP(\text{global error})
\approx\frac{L\omega_2}{2}
\left(1+\frac{r_0}{2\eta^2}\right)^{-(N-1)/2}.
</annotation></semantics></math></span></div>
</div><p>Finally, approximate the signed displacement by a uniform variable on an interval of length <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>L</mi></mrow><annotation encoding="application/x-tex">L</annotation></semantics></math></span></span> centered at zero. Its second moment is <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mi>L</mi><mn>2</mn></msup><mi mathvariant="normal">/</mi><mn>12</mn></mrow><annotation encoding="application/x-tex">L^2/12</annotation></semantics></math></span></span>, so</p>
<div class="math-equation math-equation--wide" id="equation-global-error-loss" data-equation="global-error-loss" data-equation-number="3.6">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><msub><mi mathvariant="normal">ℒ</mi><mrow><mi mathvariant="normal">g</mi><mi mathvariant="normal">l</mi><mi mathvariant="normal">o</mi><mi mathvariant="normal">b</mi><mi mathvariant="normal">a</mi><mi mathvariant="normal">l</mi></mrow></msub><mo stretchy="false">]</mo><mo>=</mo><mfrac><mrow><msup><mi>L</mi><mn>3</mn></msup><msub><mi>ω</mi><mn>2</mn></msub></mrow><mn>24</mn></mfrac><msup><mrow><mo fence="true">(</mo><mn>1</mn><mo>+</mo><mfrac><msub><mi>r</mi><mn>0</mn></msub><mrow><mn>2</mn><msup><mi>η</mi><mn>2</mn></msup></mrow></mfrac><mo fence="true">)</mo></mrow><mrow><mo>−</mo><mo stretchy="false">(</mo><mi>N</mi><mo>−</mo><mn>1</mn><mo stretchy="false">)</mo><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\EE[\mathcal L_{\mathrm{global}}]
=\frac{L^3\omega_2}{24}
\left(1+\frac{r_0}{2\eta^2}\right)^{-(N-1)/2}.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-global-error-loss" aria-label="Equation 3.6">
    <span class="equation-number-value" aria-hidden="true">(3.6)</span>
  </a>
</div>

<p>Adding the local and global contributions gives</p>
<div class="math-equation math-equation--wide" id="equation-total-error" data-equation="total-error" data-equation-number="3.7">
  <div class="math-scroll" data-math-scroll><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"><semantics><mrow><mi mathvariant="normal">𝔼</mi><mo stretchy="false">[</mo><mi mathvariant="normal">ℒ</mi><mo stretchy="false">]</mo><mo>=</mo><mfrac><msup><mi>η</mi><mn>2</mn></msup><mrow><msub><mi>ω</mi><mn>2</mn></msub><mo stretchy="false">(</mo><mi>N</mi><mo>−</mo><mn>2</mn><mo stretchy="false">)</mo></mrow></mfrac><mo>+</mo><mfrac><mrow><msup><mi>L</mi><mn>3</mn></msup><msub><mi>ω</mi><mn>2</mn></msub></mrow><mn>24</mn></mfrac><msup><mrow><mo fence="true">(</mo><mn>1</mn><mo>+</mo><mfrac><msub><mi>r</mi><mn>0</mn></msub><mrow><mn>2</mn><msup><mi>η</mi><mn>2</mn></msup></mrow></mfrac><mo fence="true">)</mo></mrow><mrow><mo>−</mo><mo stretchy="false">(</mo><mi>N</mi><mo>−</mo><mn>1</mn><mo stretchy="false">)</mo><mi mathvariant="normal">/</mi><mn>2</mn></mrow></msup><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">\EE[\mathcal L]
=\frac{\eta^2}{\omega_2(N-2)}
+\frac{L^3\omega_2}{24}
\left(1+\frac{r_0}{2\eta^2}\right)^{-(N-1)/2}.</annotation></semantics></math></span></div>
  <span class="math-scroll-trace instrument-trace" aria-hidden="true">
    <span class="instrument-trace__scale"></span>
    <span class="instrument-trace__index" data-math-scroll-index></span>
  </span>
  <a class="equation-number" href="#equation-total-error" aria-label="Equation 3.7">
    <span class="equation-number-value" aria-hidden="true">(3.7)</span>
  </a>
</div>

<p>Compare the two error terms and their minimum in <a class="plate-ref" href="#plate-coding-error-balance" data-plate-ref="coding-error-balance" aria-label="Plate 3.1"><span class="plate-ref-kind">Plate</span> <span class="plate-ref-number">3.1</span></a> as field roughness changes.</p>
<figure class="scientific-plate scientific-plate--error" id="plate-coding-error-balance" data-scientific-plate="error" data-plate-number="3.1">
  <header class="scientific-plate-header">
    <span class="scientific-plate-number">Plate 3.1</span>
    <span class="scientific-plate-title">Coding error and field roughness</span>
  </header>
  <div class="scientific-plate-body"><div class="scientific-plate-live-reading" data-error-status aria-live="polite"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi></mrow><annotation encoding="application/x-tex">N</annotation></semantics></math></span></span><span aria-hidden="true"> = </span><span data-error-status-population>16</span>
  <span aria-hidden="true"> / </span><span>formal minimum at </span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--label scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">\omega_2</annotation></semantics></math></span></span><span aria-hidden="true"> = </span><span data-error-status-optimum>4.90</span>
</div>
<div class="scientific-plate-panels scientific-plate-panels--two scientific-plate-panels--error">
  <section class="scientific-plate-panel" aria-labelledby="coding-error-balance-decomposition-label">
    <p class="scientific-plate-panel-title" id="coding-error-balance-decomposition-label">decomposition, independent segments</p>
    <div class="scientific-plate-graphic">
    <svg viewBox="0 0 340 250" role="img" aria-labelledby="coding-error-balance-decomposition-title coding-error-balance-decomposition-desc" focusable="false">
      <title id="coding-error-balance-decomposition-title">Local, global, and total coding loss</title>
      <desc id="coding-error-balance-decomposition-desc">For sixteen neurons, local error falls and the independent-segment approximation to global error rises as omega two increases. Their sum has a minimum near omega two equals 4.90. Both axes are logarithmic.</desc>
      <g class="scientific-plate-grid" aria-hidden="true">
        <path d="M42 28V210M136.7 28V210M231.3 28V210M326 28V210"></path>
      </g>
      <g class="scientific-plate-grid" data-error-y-grid aria-hidden="true">
        <path d="M42 41.7H326M42 87.2H326M42 132.7H326M42 178.3H326"></path>
      </g>
      <path class="scientific-plate-line scientific-plate-line--condition" data-error-local d="M42.0 44.3L51.5 48.9L60.9 53.4L70.4 58.0L79.9 62.5L89.3 67.1L98.8 71.6L108.3 76.2L117.7 80.7L127.2 85.3L136.7 89.8L146.1 94.4L155.6 98.9L165.1 103.5L174.5 108.0L184.0 112.6L193.5 117.1L202.9 121.7L212.4 126.2L221.9 130.8L231.3 135.3L240.8 139.9L250.3 144.4L259.7 149.0L269.2 153.5L278.7 158.1L288.1 162.6L297.6 167.2L307.1 171.7L316.5 176.3L326.0 180.8"></path>
      <path class="scientific-plate-line scientific-plate-line--event" data-error-global d="M42.0 198.1L51.5 193.6L60.9 189.0L70.4 184.5L79.9 179.9L89.3 175.4L98.8 170.8L108.3 166.3L117.7 161.7L127.2 157.2L136.7 152.6L146.1 148.1L155.6 143.5L165.1 139.0L174.5 134.4L184.0 129.9L193.5 125.3L202.9 120.8L212.4 116.2L221.9 111.7L231.3 107.1L240.8 102.6L250.3 98.0L259.7 93.5L269.2 88.9L278.7 84.4L288.1 79.8L297.6 75.3L307.1 70.7L316.5 66.2L326.0 61.6"></path>
      <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" data-error-total d="M42.0 44.3L51.5 48.9L60.9 53.4L70.4 58.0L79.9 62.5L89.3 67.0L98.8 71.5L108.3 76.0L117.7 80.4L127.2 84.8L136.7 89.0L146.1 93.1L155.6 97.0L165.1 100.4L174.5 103.4L184.0 105.7L193.5 107.1L202.9 107.5L212.4 106.9L221.9 105.3L231.3 102.9L240.8 99.8L250.3 96.2L259.7 92.3L269.2 88.2L278.7 83.9L288.1 79.5L297.6 75.1L307.1 70.6L316.5 66.1L326.0 61.6"></path>
      <circle class="scientific-plate-minimum" data-error-minimum cx="202" cy="107.5" r="3.6"></circle>
      <path class="scientific-plate-leader" data-error-minimum-leader d="M202 112V151"></path>
      <text class="scientific-plate-label scientific-plate-label--blue" data-error-local-label x="106.8" y="68.1">local error</text>
      <text class="scientific-plate-label scientific-plate-label--wine" data-error-global-label x="219" y="83">global error</text>
      <text class="scientific-plate-label scientific-plate-label--green" data-error-total-label x="221.7" y="100.3">total</text>
      <text class="scientific-plate-label" data-error-minimum-label x="209" y="149">minimum 4.90</text>
      <g aria-hidden="true">
        <path class="scientific-plate-axis" d="M42 210H326M42 28V210"></path>
        <text class="scientific-plate-label" x="42" y="225" text-anchor="middle">0.1</text>
        <text class="scientific-plate-label" x="136.7" y="225" text-anchor="middle">1</text>
        <text class="scientific-plate-label" x="231.3" y="225" text-anchor="middle">10</text>
        <text class="scientific-plate-label" x="326" y="225" text-anchor="middle">100</text>
        <text class="scientific-plate-label" x="42" y="18">expected loss (log scale)</text>
      </g>
    </svg><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-16" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>16</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-16}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-15" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>15</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-15}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-14" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>14</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-14}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-13" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>13</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-13}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-12" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>12</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-12}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-11" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>11</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-11}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-10" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>10</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-10}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-9" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>9</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-9}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-8" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>8</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-8}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-7" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>7</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-7}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-6" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>6</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-6}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-5" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>5</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-5}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-4" style="--plate-math-x:10%;--plate-math-y:71.3%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>4</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-3" style="--plate-math-x:10%;--plate-math-y:53.1%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>3</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-3}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-2" style="--plate-math-x:10%;--plate-math-y:34.9%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>2</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="-1" style="--plate-math-x:10%;--plate-math-y:16.7%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>1</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-1}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="0" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn></mrow><annotation encoding="application/x-tex">1</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="1" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mn>1</mn></msup></mrow><annotation encoding="application/x-tex">10^{1}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="2" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mn>2</mn></msup></mrow><annotation encoding="application/x-tex">10^{2}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor scientific-plate-math-anchor-shell math-inline" data-error-y-tick="3" hidden style="--plate-math-x:10%;--plate-math-y:0%"><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--left scientific-plate-math--small scientific-plate-math--inline math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mn>3</mn></msup></mrow><annotation encoding="application/x-tex">10^{3}</annotation></semantics></math></span></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:95.9%;--plate-math-y:95.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>2</mn></msub><mtext> (log scale)</mtext></mrow><annotation encoding="application/x-tex">\omega_2\ \text{(log scale)}</annotation></semantics></math></span></span></div>
  </section>

  <section class="scientific-plate-panel" aria-labelledby="coding-error-balance-comparison-label">
    <p class="scientific-plate-panel-title" id="coding-error-balance-comparison-label">total loss across population size</p>
    <div class="scientific-plate-graphic">
    <svg viewBox="0 0 340 250" role="img" aria-labelledby="coding-error-balance-comparison-title coding-error-balance-comparison-desc" focusable="false">
      <title id="coding-error-balance-comparison-title">Total coding loss for three population sizes</title>
      <desc id="coding-error-balance-comparison-desc">Directly labelled total-loss curves compare eight, sixteen, and twenty-four neurons. Larger populations move the formal optimum toward higher omega two and rougher fields. Both axes are logarithmic.</desc>
      <g class="scientific-plate-grid" aria-hidden="true">
        <path d="M42 28V210M136.7 28V210M231.3 28V210M326 28V210"></path>
        <path d="M42 42.5H326M42 71.9H326M42 130.8H326M42 189.7H326"></path>
      </g>
      <path class="scientific-plate-line scientific-plate-line--event" data-error-comparison="8" d="M42.0 90.4L51.5 92.6L60.9 94.4L70.4 95.7L79.9 96.5L89.3 96.6L98.8 96.0L108.3 94.8L117.7 93.1L127.2 91.0L136.7 88.6L146.1 86.0L155.6 83.3L165.1 80.5L174.5 77.7L184.0 74.8L193.5 71.9L202.9 68.9L212.4 66.0L221.9 63.1L231.3 60.1L240.8 57.2L250.3 54.2L259.7 51.3L269.2 48.4L278.7 45.4L288.1 42.5L297.6 39.5L307.1 36.6L316.5 33.6L326.0 30.7"></path>
      <path class="scientific-plate-line scientific-plate-line--primary scientific-plate-line--strong" data-error-comparison="16" d="M42.0 102.7L51.5 105.6L60.9 108.6L70.4 111.5L79.9 114.5L89.3 117.4L98.8 120.3L108.3 123.2L117.7 126.1L127.2 128.9L136.7 131.7L146.1 134.3L155.6 136.8L165.1 139.0L174.5 141.0L184.0 142.4L193.5 143.4L202.9 143.6L212.4 143.2L221.9 142.2L231.3 140.6L240.8 138.6L250.3 136.3L259.7 133.8L269.2 131.1L278.7 128.3L288.1 125.5L297.6 122.6L307.1 119.7L316.5 116.8L326.0 113.9"></path>
      <path class="scientific-plate-line scientific-plate-line--condition" data-error-comparison="24" d="M42.0 108.5L51.5 111.4L60.9 114.4L70.4 117.3L79.9 120.3L89.3 123.2L98.8 126.2L108.3 129.1L117.7 132.1L127.2 135.0L136.7 138.0L146.1 140.9L155.6 143.8L165.1 146.8L174.5 149.7L184.0 152.7L193.5 155.6L202.9 158.6L212.4 161.5L221.9 164.4L231.3 167.3L240.8 170.2L250.3 173.0L259.7 175.8L269.2 178.4L278.7 181.0L288.1 183.3L297.6 185.2L307.1 186.8L316.5 187.8L326.0 188.1"></path>
      <g aria-hidden="true">
        <path class="scientific-plate-axis" d="M42 210H326M42 28V210"></path>
        <text class="scientific-plate-label" x="42" y="225" text-anchor="middle">0.1</text>
        <text class="scientific-plate-label" x="136.7" y="225" text-anchor="middle">1</text>
        <text class="scientific-plate-label" x="231.3" y="225" text-anchor="middle">10</text>
        <text class="scientific-plate-label" x="326" y="225" text-anchor="middle">100</text>
        <text class="scientific-plate-label" x="42" y="18">expected loss (log scale)</text>
      </g>
    </svg><span class="scientific-plate-math scientific-plate-math--wine scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:57.9%;--plate-math-y:26.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi><mo>=</mo><mn>8</mn></mrow><annotation encoding="application/x-tex">N=8</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--green scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:73.8%;--plate-math-y:52.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi><mo>=</mo><mn>16</mn></mrow><annotation encoding="application/x-tex">N=16</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--blue scientific-plate-math--left scientific-plate-math--label scientific-plate-math--anchor math-inline" style="--plate-math-x:84.1%;--plate-math-y:70.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi><mo>=</mo><mn>24</mn></mrow><annotation encoding="application/x-tex">N=24</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:10%;--plate-math-y:17.4%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>10</mn></mrow><annotation encoding="application/x-tex">10</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:10%;--plate-math-y:29.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mn>1</mn></mrow><annotation encoding="application/x-tex">1</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:10%;--plate-math-y:52.6%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>2</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-2}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:10%;--plate-math-y:76.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msup><mn>10</mn><mrow><mo>−</mo><mn>4</mn></mrow></msup></mrow><annotation encoding="application/x-tex">10^{-4}</annotation></semantics></math></span></span><span class="scientific-plate-math scientific-plate-math--muted scientific-plate-math--right scientific-plate-math--small scientific-plate-math--anchor math-inline" style="--plate-math-x:95.9%;--plate-math-y:95.2%"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>2</mn></msub><mtext> (log scale)</mtext></mrow><annotation encoding="application/x-tex">\omega_2\ \text{(log scale)}</annotation></semantics></math></span></span></div>
  </section>
</div>

</div>
  <figcaption class="scientific-plate-caption">Local error falls with roughness, while the independent-segment estimate of global error rises. Their sum has an interior minimum.</figcaption>
</figure>

<p>The two terms assign opposite roles to <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><msub><mi>ω</mi><mn>2</mn></msub></mrow><annotation encoding="application/x-tex">\omega_2</annotation></semantics></math></span></span>. More roughness improves local resolution but creates more independent opportunities for a distant confusion. Increasing <span class="math-inline"><span class="katex math-output-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>N</mi></mrow><annotation encoding="application/x-tex">N</annotation></semantics></math></span></span>, by contrast, suppresses the global term exponentially <span class="article-citation" data-citation>(<a id="cite-malerba2022-52" href="#ref-malerba2022" role="doc-biblioref" data-citation-key="malerba2022">Blanco Malerba et al., 2022</a>)</span>. The balance gives an optimal roughness within this simplified model.</p>
<h2 id="references"><a class="section-anchor" href="#references" aria-label="Permalink to this section"><span aria-hidden="true">§</span></a>References
</h2>
<section class="article-references" role="doc-bibliography" aria-labelledby="references">
  <ol class="article-reference-list"><li id="ref-vaart1998" role="doc-biblioentry" data-citation-entry="vaart1998">
      <span class="article-reference-authors">A. W. van der Vaart</span>
      (<time datetime="1998">1998</time>).
      <span class="article-reference-title">Asymptotic Statistics</span>.
      <cite class="article-reference-publication">Cambridge University Press</cite>.
      <a class="article-reference-identifier" href="https://doi.org/10.1017/CBO9780511802256" rel="external">doi:10.1017/CBO9780511802256</a>.
      <span class="article-reference-backlinks" aria-label="Citation backlinks"><a href="#cite-vaart1998-6" role="doc-backlink" aria-label="Back to citation 1 of 1 for van der Vaart, 1998">↩</a></span>
    </li><li id="ref-lehmann1998" role="doc-biblioentry" data-citation-entry="lehmann1998">
      <span class="article-reference-authors">E. L. Lehmann and George Casella</span>
      (<time datetime="1998">1998</time>).
      <span class="article-reference-title">Theory of Point Estimation</span>.
      <cite class="article-reference-publication">Springer, second edition</cite>.
      <a class="article-reference-identifier" href="https://doi.org/10.1007/b98854" rel="external">doi:10.1007/b98854</a>.
      <span class="article-reference-backlinks" aria-label="Citation backlinks"><a href="#cite-lehmann1998-6" role="doc-backlink" aria-label="Back to citation 1 of 1 for Lehmann &amp; Casella, 1998">↩</a></span>
    </li><li id="ref-kac1959" role="doc-biblioentry" data-citation-entry="kac1959">
      <span class="article-reference-authors">Mark Kac and David Slepian</span>
      (<time datetime="1959">1959</time>).
      <span class="article-reference-title">Large Excursions of Gaussian Processes</span>.
      <cite class="article-reference-publication">The Annals of Mathematical Statistics 30(4), 1215-1228</cite>.
      <a class="article-reference-identifier" href="https://www.jstor.org/stable/2237465" rel="external">JSTOR:2237465</a>.
      <span class="article-reference-backlinks" aria-label="Citation backlinks"><a href="#cite-kac1959-14" role="doc-backlink" aria-label="Back to citation 1 of 2 for Kac &amp; Slepian, 1959">↩1</a> <a href="#cite-kac1959-28" role="doc-backlink" aria-label="Back to citation 2 of 2 for Kac &amp; Slepian, 1959">↩2</a></span>
    </li><li id="ref-mainali2024" role="doc-biblioentry" data-citation-entry="mainali2024">
      <span class="article-reference-authors">Nischal Mainali, Rava Azeredo da Silveira, and Yoram Burak</span>
      (<time datetime="2024">2024</time>).
      <span class="article-reference-title">Universal statistics of hippocampal place fields across species and dimensionalities</span>.
      <cite class="article-reference-publication">bioRxiv</cite>.
      <a class="article-reference-identifier" href="https://doi.org/10.1101/2024.06.11.597569" rel="external">doi:10.1101/2024.06.11.597569</a>.
      <span class="article-reference-backlinks" aria-label="Citation backlinks"><a href="#cite-mainali2024-1" role="doc-backlink" aria-label="Back to citation 1 of 1 for Mainali, da Silveira &amp; Burak, 2024">↩</a></span>
    </li><li id="ref-rice1944" role="doc-biblioentry" data-citation-entry="rice1944">
      <span class="article-reference-authors">S. O. Rice</span>
      (<time datetime="1944">1944</time>).
      <span class="article-reference-title">Mathematical Analysis of Random Noise</span>.
      <cite class="article-reference-publication">The Bell System Technical Journal 23(3), 282-332</cite>.
      <a class="article-reference-identifier" href="https://doi.org/10.1002/j.1538-7305.1944.tb00874.x" rel="external">doi:10.1002/j.1538-7305.1944.tb00874.x</a>.
      <span class="article-reference-backlinks" aria-label="Citation backlinks"><a href="#cite-rice1944-14" role="doc-backlink" aria-label="Back to citation 1 of 1 for Rice, 1944">↩</a></span>
    </li><li id="ref-malerba2022" role="doc-biblioentry" data-citation-entry="malerba2022">
      <span class="article-reference-authors">Simone Blanco Malerba, Mirko Pieropan, Yoram Burak, and Rava Azeredo da Silveira</span>
      (<time datetime="2022">2022</time>).
      <span class="article-reference-title">Random Compressed Coding with Neurons</span>.
      <cite class="article-reference-publication">bioRxiv</cite>.
      <a class="article-reference-identifier" href="https://doi.org/10.1101/2022.01.06.475186" rel="external">doi:10.1101/2022.01.06.475186</a>.
      <span class="article-reference-backlinks" aria-label="Citation backlinks"><a href="#cite-malerba2022-41" role="doc-backlink" aria-label="Back to citation 1 of 2 for Blanco Malerba et al., 2022">↩1</a> <a href="#cite-malerba2022-52" role="doc-backlink" aria-label="Back to citation 2 of 2 for Blanco Malerba et al., 2022">↩2</a></span>
    </li></ol>
</section>

]]></content:encoded></item></channel></rss>