Smoothness estimation#

Random field theory (RFT) results depend on the smoothness of the residuals. The smoother the residuals, the fewer independent observations the domain effectively contains, and the lower the critical threshold. spm1d first fits a statistical model and then estimates smoothness from the fitted model’s residuals.

FWHM, LKC and resels#

spm1d reports smoothness in three equivalent forms:

  • FWHM is the full width at half maximum of a Gaussian kernel that would yield the same average smoothness as the observed residuals when convolved with uncorrelated noise.

  • LKC is the Lipschitz–Killing curvature of the domain.

  • resels (resolution elements) is the number of FWHM-wide intervals in the domain.

For a domain of \(Q\) points, these quantities are related by:

\[\text{resels} = \frac{Q - 1}{\text{FWHM}}, \qquad \text{LKC} = \sqrt{4 \ln 2}\;\text{resels}\]

These quantities are available for all 1D test statistics as spm.fwhm, spm.lkc and spm.resels.

Univariate and multivariate residuals#

In spm1d 0.5 the LKC is estimated from normalized residuals following Taylor and Worsley (2007). First the residuals at each point are normalized to unit length. Then the LKC is calculated as the sum of the lengths of the differences between the normalized residuals at adjacent points.

For multivariate procedures, spm1d 0.5 uses the multivariate estimator of Taylor and Worsley (2008, Eqn. 18). Version 0.4 contrastingly averaged the component-wise estimates, so multivariate smoothness estimates and downstream values such as critical thresholds therefore differ slightly between v0.4 and v0.5.

Estimation procedures#

spm1d.geom.estimate_fwhm estimates the FWHM from a residual array with one of four methods:

  • 'taylor2007' (default) is the Lipschitz–Killing curvature estimator of Taylor and Worsley (2007), converted to FWHM.

  • 'barnes2013' is the same estimator in the notation of Barnes et al. (2013). It agrees with 'taylor2007' to machine precision.

  • 'kiebel1999' is the standardized-residual estimator of Kiebel et al. (1999, Eqn. 16). The factor (ν − 2)/(ν − 1) makes it unbiased, where ν is the error degrees of freedom.

  • 'spm1d-v04' is the gradient-based estimator of spm1d v0.4, retained only for reproducing v0.4 results.

Like the sample mean, the estimated FWHM converges to the true value as the sample size grows, and its error is approximately proportional to the true FWHM. Simulating 200 datasets of Gaussian fields with a true FWHM of 10 and a sample size of J gives these mean estimates:

  J    taylor2007   kiebel1999    spm1d-v04
  4         10.42        12.05         8.35
  5         10.22        10.93         8.78
  6         10.15        10.56         9.06
  8         10.06        10.30         9.35
 10         10.02        10.21         9.49
 15         10.08        10.24         9.80
 20         10.04        10.20         9.88
 40         10.02        10.15        10.00

The default estimator is accurate at every sample size. 'kiebel1999' overestimates and 'spm1d-v04' underestimates the FWHM at small J. For J ≥ 20 all three are within a few percent of the true value.

While smoothness can also be estimated from test statistic continua (Kiebel et al. 1999, Eqn. 19), true effects tend to make the test statistic smoother, thereby biasing smoothness estimates. spm1d therefore estimates smoothness from the residuals only.

Smoothness and the critical threshold#

A larger FWHM value implies that the domain contains fewer “resolution elements” (or “resels”) where a resel can be approximately interpreted as a single independent process. As RFT aims to correct for the number of independent processes, the RFT threshold naturally depends on the estimated smoothness. The larger the FWHM, the lower the number of resels, and the lower the RFT threshold. For very large FWHM (FWHM > 200) the fields approach flat lines, the number of resels approaches 1, and the critical RFT threshold converges to the usual 0D critical value.

Examples of true smoothness values, estimated smoothness, resels and the critical threshold for a one-sample t test with J=10 are shown in the table below:

True FWHM

Estimated FWHM

Resels

Critical threshold zc

none

1.17

85.36

5.298

5

5.05

19.78

5.026

10

9.64

10.37

4.502

20

18.95

5.28

3.992

References#