Related Experiment Video
Updated: Aug 20, 2026

Profiling Maternal Behavior Responses During Whole-Brain Imaging
Published on: January 24, 2025
Using image and curve registration for measuring the goodness of fit of spatial and temporal predictions
Cavan Reilly1, Phillip Price, Andrew Gelman
1Division of Biostatistics, University of Minnesota, Minneapolis, Minnesota 55454, USA. cavanr@biostat.umn.edu
Abstract:
Conventional measures of model fit for indexed data (e.g., time series or spatial data) summarize errors in y, for instance by integrating (or summing) the squared difference between predicted and measured values over a range of x. We propose an approach which recognizes that errors can occur in the x-direction as well. Instead of just measuring the difference between the predictions and observations at each site (or time), we first "deform" the predictions, stretching or compressing along the x-direction or directions, so as to improve the agreement between the observations and the deformed predictions. Error is then summarized by (a) the amount of deformation in x, and (b) the remaining difference in y between the data and the deformed predictions (i.e., the residual error in y after the deformation). A parameter, lambda, controls the tradeoff between (a) and (b), so that as lambda-->infinity no deformation is allowed, whereas for lambda=0 the deformation minimizes the errors in y. In some applications, the deformation itself is of interest because it characterizes the (temporal or spatial) structure of the errors. The optimal deformation can be computed by solving a system of nonlinear partial differential equations, or, for a unidimensional index, by using a dynamic programming algorithm. We illustrate the procedure with examples from nonlinear time series and fluid dynamics.
Related Concept Videos
Calibration Curves: Correlation Coefficient
Calibration Curves: Linear Least Squares
For data that follow a straight line, the standard method for fitting is the linear...
Residuals and Least-Squares Property
If the observed data point lies above the line, the residual is positive, and the line underestimates the actual data value for y. If the observed data point lies below the line, the residual is negative, and the line overestimates the actual data value for y.
The process of fitting the best-fit...
Curves Defined by Parametric Equations
Distance Measurements by Taping
