Pulsar spin-down switching
A pulsar whose spin-down rate jumps between two values: the timing noise it produces, its Green–Kubo strength, the exact two-state formulas, and what timing data can and cannot tell apart.
The model
A pulsar rotates at frequency $\nu(t)$ and slows down. Its spin-down rate $\dot\nu$ is not constant: it switches abruptly between two values, set by the state of the magnetosphere. PSR B1931+24 spins down about 50% faster when its radio emission is on than when it is off (Kramer et al. 2006), and many pulsars switch between two spin-down rates that differ by about a percent (Lyne et al. 2010).
Model the state as a hidden Markov chain $y_t \in \{1, 2\}$ that leaves state 1 at rate $a$ and state 2 at rate $b$. The rates may differ, so the pulsar can spend most of its time in one state. The spin-down rate is $\dot\nu_{y_t}$, and frequency and phase (in cycles) are its integrals:
$$\nu(t) = \nu(0) + \int_0^t \dot\nu_{y_s}\,ds, \qquad \phi(t) = \phi(0) + \int_0^t \nu(s)\,ds .$$The main formulas start the chain from its stationary law, appropriate when the initial magnetospheric state is unknown. For an intermittent pulsar the radio on/off state can instead be observed at the beginning of a timing campaign; an exact known-start correction is derived below.
There are two time scales. The state persists for $1/a$ or $1/b$, from days to years.
The pulsar is timed over a span $T$ of years. The expansion parameter is $1/(\gamma T)$ with $\gamma = a + b$.
Parameters (PSR B1931+24, from Kramer et al. 2006): $\nu = 1.2289688$ Hz, $\dot\nu_{\mathrm{on}} = -16.3\times10^{-15}$ Hz/s, $\dot\nu_{\mathrm{off}} = -10.8\times10^{-15}$ Hz/s, on phases of 5 to 10 days, off phases of 25 to 35 days; mean durations $1/a = 7.5$ days and $1/b = 30$ days.
The quantity
Write $\pi = (\pi_1, \pi_2)$ for the stationary law and $\bar{\dot\nu} = \pi_1\dot\nu_1 + \pi_2\dot\nu_2$ for the averaged spin-down rate. Removing it leaves the fluctuation of the rate,
$$g(y) = \dot\nu_y - \bar{\dot\nu}, \qquad g_1 = \pi_2\Delta, \qquad g_2 = -\pi_1\Delta, \qquad \Delta = \dot\nu_1 - \dot\nu_2 .$$The frequency residual and the phase residual after the averaged spin-down are
$$X(T) = \int_0^T g(y_s)\,ds, \qquad \Phi(T) = \int_0^T X(t)\,dt = \int_0^T (T - s)\,g(y_s)\,ds .$$The timing residual in seconds is $\Phi/\nu$. We want the mean, the variance and the full distribution of $X$ and $\Phi$, the power spectrum of the timing residual, and the residual left after the usual timing fit.
Averaging
When the state switches infinitely fast, the pulsar spins down at the constant rate $\bar{\dot\nu}$. Both residuals have mean zero, and the averaged model predicts no timing noise.
Reduction to a linear system
Let $Q$ be the generator of the chain and $G = \operatorname{diag}(g_1, g_2)$. Condition on the state over the first instant. The characteristic function of $X$ started in state $i$, $a_i(T) = \mathbb{E}_i\,e^{iuX(T)}$, then solves
$$a' = \big(Q + iu\,G\big)\,a, \qquad a(0) = \mathbf 1, \qquad \mathbb{E}\,e^{iuX(T)} = \pi\cdot a(T).$$This is the engine's linear system with an imaginary, constant forcing. The phase weights the rate at time $s$ by $T - s$, and the same argument gives a forcing that grows with time:
$$a' = \big(Q + iu\,t\,G\big)\,a, \qquad a(0) = \mathbf 1, \qquad \mathbb{E}\,e^{iu\Phi(T)} = \pi\cdot a(T).$$The first instant carries the largest weight, $T$, which is why the forcing at time $t$ is $iu\,t\,G$.
The first-order rule
The variance of an integral is the double integral of the covariance. For a stationary rate with covariance $C(\tau) = \operatorname{Cov}\big(\dot\nu_{y_0}, \dot\nu_{y_\tau}\big)$,
$$\operatorname{Var} X(T) = 2\int_0^T (T - \tau)\,C(\tau)\,d\tau .$$When $T$ is long against the correlation time, the factor $T - \tau$ is close to $T$ wherever $C$ is not negligible. Each spell in a state adds a nearly independent kick to the frequency, so the kicks add like a random walk:
$$\operatorname{Var} X(T) \approx 2KT, \qquad K = \int_0^\infty C(\tau)\,d\tau = -\pi\cdot\big(g\;Q^{\#}g\big).$$$K$ is the Green–Kubo integral of the spin-down rate, and $Q^{\#}$ is the group inverse of the generator, as on the general page. The neglected part, $-2\int_0^\infty \tau\,C(\tau)\,d\tau$, is a constant: the initial layer.
The phase integrates the frequency again. Its variance is
$$\operatorname{Var} \Phi(T) = 2\int_0^T C(\tau)\,\Big(\frac{(T - \tau)^3}{3} + \frac{\tau\,(T - \tau)^2}{2}\Big)\,d\tau \approx \frac23\,K\,T^3 .$$To first order the frequency residual is a random walk and the phase residual is its integral. Both are Gaussian, with the characteristic functions
$$\mathbb{E}\,e^{iuX(T)} \approx e^{-u^2 KT}, \qquad \mathbb{E}\,e^{iu\Phi(T)} \approx e^{-u^2 KT^3/3} .$$The rates, the switching times and the asymmetry of the chain enter only through $\bar{\dot\nu}$ and $K$.
The two-state results written out
For two states the covariance is a single exponential, $C(\tau) = \pi_1\pi_2\Delta^2 e^{-\gamma\tau}$, and every integral above can be done. The variances are exact for all $T$:
The layer constant of the frequency variance is $-2K/\gamma$. In the phase variance the first correction to the Green–Kubo form is the $T^2$ term, $-KT^2/\gamma$, and the constant is $2K/\gamma^3$.
The characteristic function of the frequency residual follows from the $2\times2$ matrix exponential. Since $\pi\cdot g = 0$, the term in $\pi\cdot(Q + sG)\mathbf 1$ drops out, and with $s = iu$
The expression is even in $D$, so the branch of the square root does not matter. For large $T$ the logarithm of the characteristic function is $\lambda(s)\,T$ plus a constant, where $\lambda(s)$ is the largest eigenvalue of $Q + sG$. Its Taylor coefficients are the cumulant rates:
The skewness is a second-order effect: it falls like $(\gamma T)^{-1/2}$ relative to the Gaussian. It vanishes when the two states are equally occupied. With unequal occupation the rare state produces bursts of extra frequency change, and the residual leans towards them.
The phase weights the rate by $T - s$, which varies slowly on the switching time. To leading order each stretch contributes its own growth rate:
$$\log\mathbb{E}\,e^{s\Phi(T)} \approx \int_0^T \lambda(s\,t)\,dt .$$This gives the phase variance $\tfrac23KT^3$ and the third cumulant above.
The power spectrum
The spin-down rate is a random telegraph signal. Its spectrum is a Lorentzian, and the phase spectrum divides it by $(2\pi f)^4$ because phase is the double integral of the rate:
The spectra are two-sided, per unit frequency, and $S_r$ is the spectrum of the timing residual in seconds. Below the corner frequency $\gamma/2\pi$ the rate spectrum is flat at $S_{\dot\nu}(0) = 2K$, and the timing residual has the $f^{-4}$ spectrum of a random walk in frequency. Above the corner it steepens to $f^{-6}$.
After a timing fit
Timing analyses fit phase, frequency and spin-down to the arrival times, so a quadratic in $t$ is removed and $\bar{\dot\nu}$ need not be known. At first order $\Phi$ is an integrated random walk with covariance
$$\operatorname{Cov}\big(\Phi(t), \Phi(t')\big) = 2K\int_0^{\min(t, t')} (t - r)(t' - r)\,dr .$$Project it onto quadratics on $[0, T]$ and average the square of what is left over the span:
Here $r$ is the phase residual after the fit. Before the fit the same average is $KT^3/6$, so the fit removes all but $1/210$ of the mean-square phase wander. The root-mean-square timing residual after the fit, in seconds, is
$$r_{\mathrm{rms}} = \frac1\nu\sqrt{\frac{2K\,T^3}{2520}} .$$This last formula is the white-noise, or $\gamma T\to\infty$, limit.
Any polynomial timing fit at Green–Kubo order
The quadratic is not special. Let $P_d$ be continuous, uniformly weighted $L^2[0,T]$ projection onto all polynomials through degree $d$. For every integer $d\ge1$, the integrated-Brownian limit gives the exact all-degree coefficient
For a constant-only fit $c_0=1/30$. The cases $d=1,2,3$ give $1/420$, $1/2520$ and $1/6930$; in particular $d=2$ recovers the formula above. These are Green–Kubo coefficients: the displayed $c_d$ must not be substituted for the exact finite-rate factor $R(x)/2520$ except in the $\gamma T\to\infty$ limit.
A short proof uses the orthonormal shifted Legendre basis $\phi_n(t)=\sqrt{2n+1}\,P_n(2t-1)$ on $[0,1]$. For unit integrated Brownian motion, stochastic Fubini gives
$$\operatorname{Var}\langle\Phi,\phi_n\rangle =\int_0^1\left\{\int_s^1(t-s)\phi_n(t)\,dt\right\}^2ds.$$For $n\ge2$, put $z=2s-1$. Two integrations of the Legendre recurrence give the inner integral as
$$\frac{\sqrt{2n+1}}4\left\{ \frac{P_{n+2}(z)}{(2n+1)(2n+3)} -\frac{2P_n(z)}{(2n-1)(2n+3)} +\frac{P_{n-2}(z)}{(2n+1)(2n-1)}\right\}.$$Legendre orthogonality then shows that its variance is $c_{n-1}-c_n$. Summing the unremoved modes $n>d$ telescopes to $c_d$.
This extends the Legendre-projector treatment of arbitrary polynomial timing fits in Lee et al. (2012, Appendix A) to a closed coefficient for the integrated-frequency-noise kernel. An independent covariance-trace calculation for every $0\le d\le12$ agrees to relative error below $1.3\times10^{-9}$.
All-degree finite-correlation boundary cancellation
The missing finite-rate statement is also explicit at its first nonzero order. Let $R_d(x)$ be the exact continuous post-fit mean square divided by $2KT^3c_d$, with $x=\gamma T$. For every fixed integer $d\ge1$,
Thus fitting a line already cancels the relative $x^{-1}$ endpoint error, and every higher polynomial fit retains that cancellation. The result is for each fixed degree; it is not uniform when $d$ grows with $x$. A constant-only fit is exceptional:
$$R_0(x)=1-\frac{5}{4x}+O(x^{-2}).$$To prove the claim, put $k_z(t)=(t-z)_+$, $H_d(z,u)=\langle(I-P_d)k_z,(I-P_d)k_u\rangle$, and
$$F_d(y)=2\int_y^1 H_d(z,z-y)\,dz.$$The exact dimensionless covariance integral is $\int_0^1e^{-xy}F_d(y)\,dy$. Direct shifted-Legendre projection gives
$$F_d(0)=2c_d,\qquad F_d'(0)=0,\qquad F_d''(0)=-\frac{d+1}{(2d+1)(2d+3)}.$$The middle identity is structural: $k_0(t)=t$ is removed whenever $d\ge1$, $k_1=0$, and symmetry of $H_d$ cancels the two diagonal derivatives. Watson's endpoint expansion then gives the displayed coefficient, since $F_d''(0)/F_d(0)=-4(2d-1)(2d+5)$.
This complements the exact quadratic formula below and keeps its scope to stationary exponential covariance and continuous uniformly weighted ordinary least squares. Independent projection quadrature for degrees one through six gives last-doubling remainder ratios from $7.89$ to $7.97$, confirming the predicted third-order residual.
Exact finite-rate quadratic
For the two-state chain the continuous, uniformly weighted quadratic least-squares calculation is exact at every switching rate. Put $x=\gamma T$. Then
The timing fit cancels the relative $1/x$ boundary correction that appears before fitting:
$$R(x)=1-\frac{108}{x^2}+\frac{1260}{x^3}-\frac{7560}{x^4}+O(x^{-5})+O(e^{-x}x^{-5}).$$At the opposite extreme, $R(x)=x^2/22+O(x^3)$. A chain that barely switches produces an almost deterministic quadratic phase drift, which the fit removes.
For completeness, the proof does not assume a Gaussian telegraph signal. If $k_s(t)=(t-s)_+$ and $P_2$ is the $L^2[0,1]$ projection onto $\{1,t,t^2\}$, direct polynomial projection gives, for $0\le u\le z\le1$,
$$\langle(I-P_2)k_z,(I-P_2)k_u\rangle =-\frac{u^2(z-1)^2}{12}\big(15u^2z^2-30uz^2+4uz+2u+15z^2-6z\big).$$Integrating this kernel against $2e^{-x(z-u)}$ yields the displayed $R(x)$. This covariance-projection calculation follows the transfer-function treatment of pulsar timing noise in van Haasteren and Levin (2012).
It applies to a continuous, uniformly weighted ordinary least-squares fit. Irregular arrival times, measurement weights and generalized least squares require the corresponding discrete design and covariance matrices; the scalar factor $R(x)$ should not be reused in those settings.
Exact sampled-design version
There is nevertheless an exact finite-sample answer. For observation times $t_i$, let $C_{ij}$ be the covariance of the phase residuals before the timing fit. If $u=\min(t_i,t_j)$ and $v=\max(t_i,t_j)$, direct integration of the exponential rate covariance gives
$$C_{ij}=\pi_1\pi_2\Delta^2\,J_\gamma(u,v),$$ $$\begin{aligned} J_\gamma(u,v)={}&-\frac{u^3}{3\gamma}+\frac{u^2v}{\gamma}-\frac{uv}{\gamma^2} +\frac{v-u}{\gamma^3}-\frac{u e^{-\gamma v}+v e^{-\gamma u}}{\gamma^3}\\ &+\frac{e^{-\gamma(v-u)}+1-e^{-\gamma v}-e^{-\gamma u}}{\gamma^4}. \end{aligned}$$Let $X_i=(1,t_i,\ldots,t_i^d)$, let $W=\operatorname{diag}(w_i)$ with positive weights summing to one, and let
$$H=X(X^\top W X)^{-1}X^\top W.$$The sampled weighted least-squares residual $r=(I-H)\Phi$ satisfies the exact trace identity for any degree $d$ whose sampled design has full rank:
The second equality uses $H^2=H$ and $H^\top W=WH$. More generally, the first trace formula applies to any specified linear fitting matrix, including a generalized least-squares timing fit; measurement noise is included by adding its covariance to $C$.
Thus irregular sampling and weights do not need a new homogenization approximation—they need the correct finite design. This is the covariance-matrix viewpoint advocated for correlated pulsar timing data by van Haasteren and Levin (2012).
For B1931+24 over 100 days, equally weighted grids with 17 and 257 observations give mean-square residuals $164.416$ and $139.865$ nHz$^2$ day$^2$, respectively, converging to the continuous value $138.075$. The endpoint grid has first-order quadrature error. On an eleven-point irregular weighted design, the exact trace is $154.452$; exact-path simulation gives $155.726\pm0.852$.
A known starting regime: the exact entry layer
The stationary calculation is not the conditional answer when the radio state is known at the first observation. Put $q=\Pr(y_0=1)$, $d=q-\pi_1$, and let $I_t$ indicate state 1. The two-state semigroup gives, for $s\le t$,
$$\mathbb E(I_t-\pi_1\mid I_s)=e^{-\gamma(t-s)}(I_s-\pi_1).$$Consequently the nonstationary first and raw second moments of the centered spin-down rate are exactly
The second term is the exact entry layer. It is linear in the initial law, as every raw Markov expectation must be. After integrating twice, the phase mean is
$$m_q(t)=\Delta d\left\{\frac{t}{\gamma} -\frac{1-e^{-\gamma t}}{\gamma^2}\right\}.$$For $u=\min(t_i,t_j)$, $v=\max(t_i,t_j)$ and $E_k(u)=\int_0^u s^k e^{-\gamma s}\,ds$, the raw phase second moment is
$$M_{q,ij}=\pi_1\pi_2\Delta^2J_\gamma(u,v) +d(\pi_2-\pi_1)\Delta^2L_\gamma(u,v),$$ $$\begin{aligned} L_\gamma(u,v)={}&\frac{u^2e^{-\gamma v}}{2\gamma^2} +u\left(\frac v\gamma-\frac1{\gamma^2}\right)E_0(u)\\ &+\left(uv-\frac u\gamma-\frac v\gamma+\frac1{\gamma^2}\right)E_1(u) +\left(\frac1\gamma-v-\frac u2\right)E_2(u)+\frac12E_3(u). \end{aligned}$$The conditional covariance is $C_q=M_q-m_qm_q^\top$. Therefore the expected fitted residual energy uses the raw second moment,
This separates stochastic timing noise conditional on the starting state from a deterministic transient mean that is not exactly quadratic and hence is not completely removed by the timing fit. When $q=\pi_1$, $d=0$ and all formulas reduce to the stationary theorem above. The derivation uses only the two-state Markov semigroup, not Gaussianity.
On the same 100-day irregular B1931+24 design, the stationary expected energy is $154.452$. Conditioning on an on-state start gives $167.131=163.217+3.914$, where the last number is the projected squared mean; an off-state start gives $151.283=151.038+0.245$. Thus using the stationary law changes this finite-span benchmark by $+8.21\%$ or $-2.05\%$, depending on the observed initial state.
Independent matrix-semigroup quadrature agrees with the closed form within $7.2\times10^{-15}$, label swapping is invariant to $2.0\times10^{-16}$, and conditioned exact-path simulations agree within Monte Carlo uncertainty. The relevance of conditioning is empirical rather than hypothetical here: Kramer et al. (2006) identify B1931+24's radio on/off state and its associated spin-down change directly.
What timing data identify
The two-state chain has four parameters: $\dot\nu_1$, $\dot\nu_2$, $a$ and $b$. To first order timing data see two numbers, the averaged spin-down $\bar{\dot\nu}$ and the Green–Kubo integral $K$. Any two chains that share them give the same variance, the same Gaussian law and the same low-frequency spectrum.
For example, keep the switching time of B1931+24 and make the two states equally likely, with the rates moved so that the average and $K$ are unchanged. Both chains have $1/\gamma = 6$ days, $\bar{\dot\nu} = -11.90\times10^{-15}$ Hz/s and $K = 2.51\times10^{-24}$ Hz$^2$/s. The frequency and timing residuals are identical in variance, and only the skewness differs:
| chain | $\dot\nu_1$, $\dot\nu_2$ ($10^{-15}$ Hz/s) | $\pi_1$ | sd frequency, 1000 days | sd timing, 1000 days | skewness |
|---|---|---|---|---|---|
| B1931+24 idealized | −16.3, −10.8 | 0.2 | 20.76 nHz | 0.841 s | −0.25 |
| equal occupancy | −14.1, −9.7 | 0.5 | 20.76 nHz | 0.841 s | 0.00 |
Here the variances agree at every order, because they depend only on $K$ and $\gamma$ and the two chains share both. In general the second-order terms separate the parameters. The $T^2$ term of the phase variance gives $\gamma$.
The third cumulant gives $\Sigma = (\pi_2 - \pi_1)\Delta$. Then $\Delta^2 = \Sigma^2 + 4K\gamma$ closes the system. These corrections are smaller by $(\gamma T)^{-1/2}$ and $(\gamma T)^{-1}$, so over spans of many switching times they are hard to measure.
Quasi-periodic switching
Real switching is often close to periodic. The on and off phases of B1931+24 last 5 to 10 and 25 to 35 days, far less variable than exponential durations with the same means.
The frequency then wanders much less, and $K$ must come from an alternating renewal process. With durations of mean $m_1$, $m_2$ and standard deviations $s_1$, $s_2$, the occupation-time central limit theorem gives
Exponential durations, $s_i = m_i$, give back $\pi_1\pi_2\Delta^2/\gamma$. Strictly periodic switching, $s_1 = s_2 = 0$, gives $K = 0$: the frequency residual stays bounded and there is no random walk.
The same answer comes from the Markov machinery. Replace each phase by a chain of $k$ exponential stages, an Erlang duration with standard deviation $m/\sqrt k$. The Green–Kubo formula $-\pi\cdot(g\,Q^{\#}g)$ on the resulting cyclic chain reproduces the renewal formula exactly.
For B1931+24 with uniform durations on 5 to 10 and 25 to 35 days, $K = 5.81\times10^{-26}$ Hz$^2$/s, about 43 times smaller than the Markov value. Timing noise scales as $\sqrt K$, so the quasi-periodic residuals are about 6.6 times smaller than the Markov ones.
Worked example: PSR B1931+24
Kramer et al. (2006) give $\nu = 1.2289688061$ Hz, $\dot\nu_{\mathrm{on}} = -16.3(4)\times10^{-15}$ Hz/s, $\dot\nu_{\mathrm{off}} = -10.8(2)\times10^{-15}$ Hz/s, an active duty cycle of 19(5)%, on phases of 5 to 10 days and off phases of 25 to 35 days. Take state 1 as on, with mean durations 7.5 and 30 days. Then
$$\begin{aligned} \pi_{\mathrm{on}} &= 0.2, \qquad \frac1\gamma = 6\ \text{days}, \\ \Delta &= -5.5\times10^{-15}\ \text{Hz/s}, \qquad \bar{\dot\nu} = -11.90\times10^{-15}\ \text{Hz/s}, \end{aligned}$$ $$K = \frac{0.2\times0.8\times(5.5\times10^{-15})^2}{1/(6\ \text{days})} = 2.51\times10^{-24}\ \text{Hz}^2/\text{s} .$$The averaged rate is within the duty-cycle uncertainty of the published long-term value, $-12.2488\times10^{-15}$ Hz/s. Over spans of months to years:
| span $T$ | sd of frequency residual | Green–Kubo | sd of timing residual | leading $T^3$ term | exact rms after quadratic fit | quasi-periodic, leading | skewness |
|---|---|---|---|---|---|---|---|
| 100 days | 6.38 nHz | 6.58 nHz | 0.026 s | 0.027 s | 0.8 ms | 0.1 ms | −0.86 |
| 300 days | 11.29 nHz | 11.40 nHz | 0.137 s | 0.139 s | 4.7 ms | 0.7 ms | −0.46 |
| 1000 days | 20.76 nHz | 20.82 nHz | 0.841 s | 0.845 s | 29.1 ms | 4.4 ms | −0.25 |
| 3000 days | 36.03 nHz | 36.07 nHz | 4.385 s | 4.392 s | 151.5 ms | 23.1 ms | −0.14 |
The frequency residual grows like $\sqrt T$ and the timing residual like $T^{3/2}$. The Green–Kubo column is within about 3% of the exact value at 100 days and 0.3% at 1000 days. The quadratic fit absorbs most of the wander, leaving milliseconds to a fraction of a second.
The quasi-periodic column uses the renewal $K$ and is the more realistic of the two. The skewness is negative because the rare on state spins the pulsar down faster.
Lyne et al. (2010) list slower switchers. For PSR B1828−11 they give $\nu = 2.469$ Hz, $\dot\nu = -365.68\times10^{-15}$ Hz/s, a peak-to-peak change of 0.71% in $\dot\nu$ and a fluctuation frequency of 0.73 per year, a cycle of about 500 days.
The split of the cycle between the two states is not in their table; take one third in the faster state as an illustration, with mean durations 167 and 334 days, so $\dot\nu = (-367.41,\ -364.81)\times10^{-15}$ Hz/s and $1/\gamma = 111$ days. Then $K = 1.44\times10^{-23}$ Hz$^2$/s, and:
| span | $\gamma T$ | sd of frequency residual | sd of timing residual | leading $T^3$ term | exact rms after quadratic fit | skewness |
|---|---|---|---|---|---|---|
| 5 years | 16 | 65 nHz | 2.4 s | 2.5 s | 77 ms | −0.41 |
| 10 years | 33 | 94 nHz | 6.9 s | 7.0 s | 234 ms | −0.27 |
| 20 years | 66 | 134 nHz | 19.7 s | 19.9 s | 679 ms | −0.19 |
Here a switching time of months meets a timing span of years, and $\gamma T$ is between 16 and 66. Lyne et al. find a narrow periodic peak in the spin-down spectrum of B1828−11, so the Markov figures overstate its random-walk component in the same way as for B1931+24.
Regular switching in seventeen pulsars
Keith and Nițu (2023) published spin-down rate series for 17 Jodrell Bank pulsars, each about 23.6 years long. The series are smoothed by Gaussian-process regression of the timing residuals.
After removing a linear trend, the autocovariance of each series was fitted with the two-level stage model: $k$ exponential stages per level, which gives durations with standard deviation $m/\sqrt k$. Only lags of 300 days and more were used, beyond the reach of the smoothing.
The stages and durations below come from the fit to all lags. The last column is the least-squares misfit of the best Markov model ($k = 1$) divided by that of the best $k$, using lags of 300 days and more:
| pulsar | stages $k$ | mean durations (days) | duration sd / mean | Markov misfit | |
|---|---|---|---|---|---|
| B1540−06 | 64 | 616 | 852 | 0.12 | 354.5 |
| J2043+2740 | 32 | 2778 | 1190 | 0.18 | 189.6 |
| B2035+36 | 32 | 3892 | 2320 | 0.18 | 84.9 |
| B0950+08 | 8 | 1096 | 2504 | 0.35 | 54.9 |
| B1929+20 | 24 | 324 | 271 | 0.20 | 26.2 |
| B1818−04 | 64 | 952 | 2518 | 0.12 | 25.3 |
| B1714−34 | 24 | 717 | 717 | 0.20 | 24.5 |
| B1642−03 | 8 | 386 | 1269 | 0.35 | 19.9 |
| B1907+00 | 6 | 771 | 1679 | 0.41 | 12.2 |
| B1826−17 | 32 | 288 | 817 | 0.18 | 9.5 |
| B2148+63 | 8 | 252 | 684 | 0.35 | 8.3 |
| B1828−11 | 64 | 359 | 130 | 0.12 | 5.7 |
| B1839+09 | 24 | 365 | 78 | 0.20 | 2.2 |
| B0919+06 | 4 | 101 | 505 | 0.50 | 2.2 |
| B1903+07 | 3 | 871 | 296 | 0.58 | 1.9 |
| B0740−28 | 4 | 66 | 66 | 0.50 | 1.7 |
| B1822−09 | 2 | 353 | 353 | 0.71 | 1.2 |
For 12 of the 17 pulsars the Markov fit is at least 5 times worse. Their best fits have 6 to 64 stages per level, so the durations vary by 12 to 41 percent of their means, not the 100 percent of exponential durations. The Markov misfit grows or stays the same when the shortest lags are dropped, so the regularity is not produced by the smoothing.
For these pulsars the renewal formula applies, and $K$ is about $1/k$ of the Markov value with the same levels and mean durations. Their random-walk timing noise is correspondingly smaller than a Markov switching model predicts.
The remaining five pulsars (B0740−28, B0919+06, B1822−09, B1839+09 and B1903+07) are fitted nearly as well by Markov switching. For B0740−28 and B1839+09 the observed $K$ is too large for any two-level fit until a slow Ornstein–Uhlenbeck component is added. B1822−09 has sharp spikes rather than two levels.
Twenty-three years hold too few independent blocks to measure $K$ directly to better than a factor of about 4, so the evidence for regularity comes from the shape of the autocovariance. The analysis scripts and a log of the results are in research/pulsar.
Checks
All checks use the B1931+24 parameters, with the span $T$ standing in for the speed of switching. The frequency variance against the matrix exponential of the Van Loan block generator, which gives the double integral exactly (values in nHz$^2$):
| span $T$ | $\gamma T$ | matrix exponential | closed form, relative difference | Green–Kubo $2KT$, relative error |
|---|---|---|---|---|
| 30 days | 5.0 | 10.423085 | 5e-16 | +24.79% |
| 100 days | 16.7 | 40.755099 | 1e-15 | +6.38% |
| 300 days | 50.0 | 127.468074 | 2e-16 | +2.04% |
| 1000 days | 166.7 | 430.963488 | 6e-15 | +0.60% |
| 3000 days | 500.0 | 1298.093241 | 7e-16 | +0.20% |
The closed form agrees to rounding. The Green–Kubo error is $1/(\gamma T)$, a first-order remainder: it falls threefold with each threefold increase in $T$.
The phase variance against a numerical solution of the moment equations, whose second moment is $\pi\cdot m_2(T)$ (values in nHz$^2$ day$^2$):
$$m_1' = Q\,m_1 + t\,g, \qquad m_2' = Q\,m_2 + 2t\,g\,m_1, \qquad m_1(0) = m_2(0) = 0 .$$| span $T$ | $\gamma T$ | numerical ODE | closed form, relative difference | $T^3$ term, relative error | $T^3$ and $T^2$ terms, relative error |
|---|---|---|---|---|---|
| 30 days | 5.0 | 2.821323e+03 | 2e-16 | +3.83e-01 | -3.19e-02 |
| 100 days | 16.7 | 1.316083e+05 | 0e+00 | +9.81e-02 | -7.12e-04 |
| 300 days | 50.0 | 3.785115e+06 | 4e-16 | +3.09e-02 | -2.47e-05 |
| 1000 days | 166.7 | 1.432210e+08 | 0e+00 | +9.08e-03 | -6.54e-07 |
| 3000 days | 500.0 | 3.890378e+09 | 2e-16 | +3.01e-03 | -2.41e-08 |
The $T^3$ term alone has relative error $3/(2\gamma T)$. Adding the $T^2$ term leaves $-3/(\gamma T)^3$, as the closed form predicts.
The characteristic function of the standardized frequency residual, largest error over $0 \le u \le 4$, against the matrix exponential of $T(Q + iuG)$:
| $\gamma T$ | skewness | closed form vs matrix exponential | Gaussian, variance $2KT$ | with layer constant and skewness |
|---|---|---|---|---|
| 25 | -0.677 | 2e-15 | 0.1344 | 0.04466 |
| 100 | -0.323 | 6e-15 | 0.0627 | 0.00761 |
| 400 | -0.160 | 3e-14 | 0.0309 | 0.00174 |
| 1600 | -0.080 | 1e-13 | 0.0154 | 0.00043 |
The Gaussian error halves each time $\gamma T$ quadruples, as the skewness does. With the layer constant in the variance and the third cumulant $6\lambda_3T$, the error falls fourfold, a second-order remainder.
The characteristic function of the standardized phase residual, against a numerical solution of the engine system $a' = (Q + iu\,t\,G)\,a$:
| $\gamma T$ | skewness | Gaussian, variance $\tfrac23KT^3$ | two-term variance and skewness |
|---|---|---|---|
| 25 | -0.907 | 0.1777 | 0.10051 |
| 100 | -0.423 | 0.0826 | 0.01493 |
| 400 | -0.208 | 0.0403 | 0.00321 |
The same orders hold. The largest-eigenvalue expansion is checked directly too: finite differences of the eigenvalue of $Q + sG$ give $\lambda_2$ and $\lambda_3$ to five and four digits, and the group inverse gives the same $K$.
Monte Carlo with no time discretization: the switching times are drawn exactly, and on each path $X$ and $\Phi$ are integrated in closed form between switches, 400,000 paths per span (units as above):
| span $T$ | Var $X$, Monte Carlo | closed form | Var $\Phi$, Monte Carlo | closed form | skewness of $X$, Monte Carlo | first order |
|---|---|---|---|---|---|---|
| 100 days | 40.69 ± 0.09 | 40.76 | 1.3173e+05 ± 2.9e+02 | 1.3161e+05 | -0.747 | -0.855 |
| 300 days | 127.34 ± 0.28 | 127.47 | 3.7780e+06 ± 8.4e+03 | 3.7851e+06 | -0.441 | -0.464 |
| 1000 days | 432.01 ± 0.97 | 430.96 | 1.4324e+08 ± 3.2e+05 | 1.4322e+08 | -0.246 | -0.249 |
The mean-square phase residual after a least-squares quadratic fit to 1001 equally spaced samples, from 4,000 exact paths, against the first-order formula:
| span $T$ | Monte Carlo | $2KT^3/2520$ | ratio |
|---|---|---|---|
| 300 days | 4.4149e+03 ± 7.7e+01 | 4.6453e+03 | 0.950 |
| 1000 days | 1.7382e+05 ± 2.9e+03 | 1.7205e+05 | 1.010 |
| 3000 days | 4.5907e+06 ± 7.0e+04 | 4.6453e+06 | 0.988 |
The rate spectrum computed as the numerical Fourier transform of the matrix-exponential covariance $\pi\cdot\big(g\,e^{\tau Q}g\big)$ matches the Lorentzian to eight digits at every frequency tested. For quasi-periodic switching, the Erlang chain with $k = (27, 108)$ stages reproduces the renewal $K$ to rounding. A Monte Carlo of 20,000 paths with uniform durations over 20,000 days gives $\operatorname{Var}X/2T = 0.00503 ± 0.00005$ against the renewal value 0.00502 (nHz$^2$/day).
Prior art
That timing noise comes from switching between spin-down rates is the finding of Kramer et al. (2006) for B1931+24 and of Lyne et al. (2010) for many pulsars. Lyne et al. simulated it directly: two rates with dithered switching times, integrated twice, sampled, with a quadratic removed. Nothing here claims that observation.
The random walk in frequency, with its $f^{-4}$ residual spectrum, is one of the classical timing-noise models of Boynton et al. (1972) and Cordes and Helfand (1980). Hobbs, Lyne and Kramer (2010) analyse timing irregularities across hundreds of pulsars, and van Haasteren and Levin (2012) treat timing noise as a Gaussian process with a red spectrum. The telegraph covariance, its Lorentzian spectrum and the central limit theorem for occupation times of alternating renewal processes are classical.
The fast-switching reading adds the following to these facts. The strength of the random walk is a Green–Kubo integral, as in Green (1954) and Kubo (1957). The two-state variances, characteristic function and cumulant rates are written out for finite spans, with the layer constant.
The post-fit residual has a closed first-order form. To first order the timing data identify $\bar{\dot\nu}$ and $K$, not the individual rates and switching times, and quasi-periodic switching enters only through a smaller $K$.
Certificate: verify_pulsars.py.