Function → equation index¶
Generated from the public mathematical-contract registry in eyetrajectoriespy.mathematical_contracts.
The equations below are implementation contracts, not claims of methodological novelty. See the linked expanded reference for assumptions, derivations, and scope limits.
Observed-grid trapezoidal quadrature¶
Functions: functional_trapezoid_weights()
Scope: Strictly increasing observed grids; optional normalization only rescales the weights to sum to one.
Expanded mathematical reference
Quadrature-weighted FPCA / MFPCA¶
Functions: fit_fpca(), fit_mfpca(), transform_fpca(), reconstruct_fpca(), component_trajectories()
Scope: Common-grid functional PCA with explicit channel scaling; retained-component interpretation is conditional on the fitted basis.
Expanded mathematical reference
Integrated functional L2 distance¶
Functions: functional_l2_distance(), pairwise_functional_distances()
Scope: Complete trajectories on a common grid; optional dimension weights must be non-negative.
Expanded mathematical reference
Discrete Fréchet trajectory distance¶
Functions: discrete_frechet_distance(), pairwise_discrete_frechet_distances()
Scope: Ordered complete point sequences with monotone coupling and no backtracking; elapsed time is not part of the recurrence, and no interpolation, resampling, normalization, or path simplification is introduced automatically.
Expanded mathematical reference
Dynamic time warping trajectory distance¶
Functions: dynamic_time_warping_distance(), pairwise_dynamic_time_warping_distances()
Scope: Complete ordered point sequences with explicit symmetric1 or normalizable symmetric2 step weighting and optional Sakoe-Chiba sample-index constraint; the 0.33 symmetric1 raw-cost default is preserved, elapsed time is not used, and no hidden preprocessing or automatic specification selection is introduced.
Expanded mathematical reference
Trajectory-distance specification sensitivity¶
Functions: trajectory_distance_sensitivity()
Scope: Descriptive comparison of at least two analyst-declared L2, discrete-Frechet, and/or DTW specifications on the same complete trajectories. Raw distance matrices remain on native scales; no standardization, consensus metric, p-value, or preferred distance is constructed automatically.
Expanded mathematical reference
Continuous planar trajectory geometry¶
Functions: heading_function(), signed_curvature_function(), turning_rate_function(), trajectory_tortuosity()
Scope: Complete declared planar coordinates with numerical derivatives computed without hidden smoothing; low-speed and zero-displacement undefinedness is explicit, and geometric interpretation remains conditional on source coordinate scaling and axis orientation.
Expanded mathematical reference
Two-level participant / trial decomposition¶
Functions: fit_multilevel_fpca()
Scope: Transparent two-level functional ANOVA followed by separate FPCAs; not a full probabilistic functional mixed model.
Expanded mathematical reference
Compositional AOI additive log-ratio transform¶
Functions: alr_transform(), inverse_alr(), fit_compositional_fpca(), reconstruct_compositional_fpca()
Scope: Simplex-valued AOI probabilities with explicit reference component and zero-replacement epsilon.
Expanded mathematical reference
Landmark registration and phase displacement¶
Functions: register_to_landmarks(), warping_displacement(), phase_summary()
Scope: Monotone piecewise-linear landmark warping; phase is retained rather than silently discarded.
Expanded mathematical reference
Simultaneous functional mean multiplier band¶
Functions: multiplier_functional_mean_band(), windowed_rqa_functional_mean_band()
Scope: Simultaneous calibration over the observed time-by-dimension grid, with curve or equal-weight participant inference units.
Expanded mathematical reference
Joint functional mixed-effects regression¶
Functions: fit_functional_mixed_effects_regression(), functional_mixed_effects_whitened_residuals()
Scope: One selected Gaussian functional response dimension on a common grid with explicit B-spline fixed effects and participant functional random effects. Version 0.48 optionally adds one nested trial functional random intercept with a shared unstructured basis-coefficient covariance. Version 0.49 optionally adds an analyst-declared within-trial residual covariance: physical-time exponential correlation on arbitrary strictly increasing common grids or signed index-step AR(1) on verified regular grids. Residual covariance is block diagonal across trials; phi/rho is estimated jointly and whitening uses the fitted residual covariance. No automatic basis, trial-effect, or residual-correlation-family selection, multiple trial random effects, or multivariate cross-dimension covariance is claimed.
Expanded mathematical reference
Predeclared functional mixed-effects covariance sensitivity¶
Functions: functional_mixed_effects_covariance_sensitivity(), functional_mixed_effects_variance_decomposition()
Scope: Descriptive comparison of already fitted, predeclared covariance structures against one analyst-declared reference. Successful fits must share observations, fixed design/basis, participant mapping, time grid, response dimension, and ML/REML mode. Failed declared structures remain visible. Coefficient changes, paired band-width changes, variance decomposition, raw/whitened residual diagnostics, and information criteria are reported without ranking, automatic selection, or likelihood-ratio p-values.
Expanded mathematical reference
One participant random functional slope¶
Functions: functional_random_effect_frame()
Scope: Exactly one analyst-declared random functional slope predictor using the same q-dimensional B-spline basis size as the participant functional random intercept. The stacked 2q random coefficient vector has one unstructured covariance. Version 0.45 requires the slope predictor to vary within every participant and requires the participant count to exceed the number of free covariance parameters. No automatic random-slope selection or multiple random slopes is introduced. The slope may coexist with the separately declared 0.48 trial effect and 0.49 residual-correlation family.
Expanded mathematical reference
Full-refit participant bootstrap for functional mixed-effects models¶
Functions: bootstrap_functional_mixed_effects_full_refit(), compare_functional_mixed_effects_bootstraps()
Scope: Whole-participant case bootstrap with a complete declared mixed-model parameter refit in every replicate. Duplicate source-participant draws receive distinct bootstrap group identities. Fixed effects, participant covariance, optional trial covariance, residual variance, and any declared residual-correlation parameter are re-estimated; basis sizes, spline degree, preprocessing, predictor specification, random-slope structure, REML/ML choice, and optimizer remain fixed. Failed replicates raise and are not silently redrawn.
Expanded mathematical reference
Participant-cluster simultaneous mixed-effects coefficient bands¶
Functions: bootstrap_functional_mixed_effects_coefficients(), functional_mixed_effects_simultaneous_bands()
Scope: Whole-participant case bootstrap for fixed coefficient functions. Each resample re-estimates the fixed B-spline coefficients by GLS while conditioning on the reference participant covariance, optional trial covariance, residual variance, residual-correlation parameter, and declared bases. Bands are simultaneous over the observed time grid with coefficient or full fixed-effect-family scope; variance-component, basis-selection, and between-grid uncertainty are not included.
Expanded mathematical reference
Marginal generalized function-on-scalar regression¶
Functions: fit_generalized_function_on_scalar_regression(), bootstrap_generalized_function_on_scalar_coefficients(), generalized_function_on_scalar_simultaneous_bands()
Scope: Marginal population-averaged GEE for Bernoulli/logit or Poisson/log functional responses on a common grid. Version 0.54 adds explicit grouped-binomial integer successes and positive integer denominators, implemented as success proportions with denominator GEE weights and validated against row-expanded Bernoulli reference fits. Version 0.53 Poisson exposure remains available. Denominators and exposure are never inferred, and generic proportion/offset inputs are not exposed. Participants are independent clusters, working independence is fixed, robust sandwich covariance is used, and whole-participant bootstrap refits carry the observation contract with each response/design bundle. No family, link, denominator, exposure, basis size, working correlation, or model is selected automatically.
Expanded mathematical reference
Fixed-profile marginal prediction and explicit contrasts¶
Functions: generalized_function_on_scalar_predict(), generalized_function_on_scalar_prediction_bands(), generalized_function_on_scalar_mean_difference_band()
Scope: Fixed analyst-declared scalar predictor profiles projected through the fitted marginal Bernoulli/logit or Poisson/log coefficient functions. Grouped-binomial fits predict success probability; target denominators are neither required nor inferred. Exposure-adjusted Poisson fits can always predict rates; expected-count prediction requires an explicit strictly-positive target exposure and never assumes unit exposure silently. One predeclared contrast may target a rate difference, rate ratio, or expected-count difference; rate-ratio bands are calibrated on the log-rate-ratio scale and exponentiated. Profile values and target exposures are fixed, not resampled. No profile or contrast is selected automatically and between-grid coverage is not claimed.
Expanded mathematical reference
Function-on-scalar regression and simultaneous coefficient bands¶
Functions: fit_function_on_scalar_regression(), bootstrap_function_on_scalar_coefficients(), function_on_scalar_simultaneous_bands()
Scope: Observed-grid OLS for functional responses with explicit scalar design, HC1 pointwise sandwich standard errors, and fixed-design wild-bootstrap maxima. Repeated trials are supported only through equal-weight participant aggregation when all predictors are constant within participant; this is not a functional mixed model.
Expanded mathematical reference
Scalar-on-function regression through FPC scores¶
Functions: fit_scalar_on_function_regression()
Scope: Score-space approximation; Gaussian and binomial fits have distinct inferential assumptions and no automatic component-selection uncertainty.
Expanded mathematical reference
Heteroscedastic Gaussian FPCR wild bootstrap¶
Functions: wild_bootstrap_fpca_projection()
Scope: Fixed-regressor Gaussian FPCR with independent curve rows; not clustered wild bootstrap or future-outcome prediction.
Expanded mathematical reference
Simultaneous fixed-target wild-bootstrap calibration¶
Functions: fpca_wild_bootstrap_projection_simultaneous_interval()
Scope: One predeclared fixed-target family using the stored joint root matrix; no adaptive target-family guarantee.
Expanded mathematical reference
Fixed-family wild-bootstrap hypothesis tests¶
Functions: fpca_wild_bootstrap_projection_family_test()
Scope: Two-sided post-processing tests for a declared fixed family; strong FWER for arbitrary subsets is not claimed without additional theory.
Expanded mathematical reference
Finite-bootstrap Monte Carlo precision¶
Functions: fpca_wild_bootstrap_family_test_monte_carlo_diagnostics()
Scope: Simulation precision of retained bootstrap tail probabilities; not scientific-effect uncertainty and not sequential-stopping inference.
Expanded mathematical reference
Split-conformal FPCA anomaly p-value¶
Functions: split_conformal_fpca_anomaly()
Scope: Marginal curve-level split-conformal interpretation under exchangeability; review flags are never automatic exclusions.
Expanded mathematical reference
Delay-coordinate reconstruction and embedding diagnostics¶
Functions: delay_embed_trajectory(), embedding_delay_diagnostics(), embedding_dimension_diagnostics()
Scope: Common-grid reconstruction only; delay and embedding dimension remain analyst-declared after diagnostics, with no silent smoothing, interpolation, or scaling.
Expanded mathematical reference
Sparse recurrence and recurrence quantification¶
Functions: recurrence_matrix(), recurrence_radius_profile(), rqa_metrics(), rqa_parameter_sensitivity(), windowed_rqa(), cross_recurrence_matrix(), cross_rqa_metrics()
Scope: Sparse observed-state or reconstructed-state recurrence with an explicit radius policy, metric, Theiler exclusion, and line-length thresholds.
Expanded mathematical reference
Synchronized joint recurrence and JRQA¶
Functions: joint_recurrence_matrix(), joint_rqa_metrics()
Scope: Logical intersection of at least two synchronized auto-recurrence matrices on an exact common grid with one shared Theiler exclusion. Component state spaces, metrics, and thresholds may differ and remain explicit. No lag alignment, resampling, threshold harmonization, cross-recurrence interpretation, or causal-coupling claim is introduced.
Expanded mathematical reference
Sparse recurrence-network topology¶
Functions: recurrence_network(), recurrence_network_node_frame(), recurrence_network_summary_frame()
Scope: Undirected unweighted network induced by one declared symmetric auto-recurrence matrix. Network topology inherits the recurrence state representation, metric, threshold policy, Theiler exclusion, and sampling design. No threshold tuning, community optimization, edge weighting, or automatic dynamical-dimension interpretation is introduced.
Expanded mathematical reference
Discrete transfer entropy and circular-shift surrogate testing¶
Functions: discrete_transfer_entropy(), transfer_entropy_circular_shift_test()
Scope: Empirical plug-in conditional mutual information for analyst-supplied integer-coded states with explicit target/source histories and source lag. Circular-shift inference uses only analyst-declared shifts. No automatic discretization, lag/history selection, shift generation, or causal interpretation is introduced.
Expanded mathematical reference
Conditional transfer entropy and source-shift surrogate testing¶
Functions: conditional_transfer_entropy(), conditional_transfer_entropy_circular_shift_test()
Scope: Empirical plug-in conditional mutual information for analyst-supplied integer-coded source, target, and conditioning states with explicit target/source/conditioning histories and source/conditioning lags. Surrogate inference shifts only the source and holds target and conditioning processes fixed. Conditioning addresses only the explicitly supplied process and does not establish causal influence or guarantee adjustment for unmeasured common drivers.
Expanded mathematical reference
Transfer-entropy specification sensitivity¶
Functions: transfer_entropy_parameter_sensitivity()
Scope: Descriptive robustness analysis over the full analyst-declared Cartesian grid of target histories, source histories, and source lags. Optional surrogate-centered TE uses the identical declared circular-shift set for every specification. No failed row is discarded and no specification is ranked or selected automatically.
Expanded mathematical reference
Population mean bootstrap for curve-level RQA metrics¶
Functions: bootstrap_rqa_metric_means()
Scope: Percentile bootstrap for the between-unit population mean of fixed-specification curve-level RQA summaries; participant mode first averages curve metrics within participant. It does not estimate within-single-trajectory or parameter-selection uncertainty.
Expanded mathematical reference
Windowed RQA as functional trajectories¶
Functions: windowed_rqa_trajectory_set(), windowed_rqa_sensitivity()
Scope: Derived functional summaries of declared sliding-window RQA; overlapping windows reuse source samples and are not independent observational units.
Expanded mathematical reference
Rosenstein local divergence and largest Lyapunov estimate¶
Functions: local_divergence_curve(), estimate_largest_lyapunov_rosenstein(), lyapunov_parameter_sensitivity()
Scope: Nearest-neighbor local-divergence estimate with explicit Theiler window and analyst-declared linear fit interval; a positive estimate is not standalone evidence of deterministic chaos.
Expanded mathematical reference
Kantz neighborhood divergence and largest Lyapunov estimate¶
Functions: kantz_divergence_curve(), estimate_largest_lyapunov_kantz(), kantz_parameter_sensitivity()
Scope: Fixed-radius Kantz neighborhood divergence with explicit minimum neighbor count, Theiler exclusion, and analyst-declared fit interval; no automatic radius expansion or chaos classification.
Expanded mathematical reference
Cross-spectrum-aware multivariate IAAFT surrogates¶
Functions: generate_multivariate_iaaft_surrogates(), multivariate_surrogate_nonlinearity_test()
Scope: Reference-anchored multivariate IAAFT with exact empirical marginal rank distributions and iterative targeting of each channel power spectrum plus original inter-channel Fourier phase differences. Final power/cross-spectrum preservation is approximate after rank remapping and retained diagnostically; the reference dimension is analyst-declared.
Expanded mathematical reference
IAAFT surrogate nonlinearity test¶
Functions: surrogate_nonlinearity_test()
Scope: Monte Carlo test against the declared IAAFT linear-stochastic surrogate null using identical statistic settings for observed and surrogate series.
Expanded mathematical reference
Empirical Poincare return-map stability¶
Functions: poincare_crossings(), fit_local_return_map(), return_map_stability()
Scope: Experimental local affine cycle-to-cycle diagnostic; the empirical Jacobian is not a variational-equation monodromy matrix and its eigenvalues are not classical Floquet multipliers.