Related Experiment Video
Updated: Apr 28, 2026

A Psychophysics Paradigm for the Collection and Analysis of Similarity Judgments
Published on: March 1, 2022
A fast and unbiased procedure to randomize ecological binary matrices with fixed row and column totals
Giovanni Strona1, Domenico Nappo1, Francesco Boccacci1
1European Commission, Joint Research Centre, Institute for Environment and Sustainability, Forest Resources and Climate Unit, Via Enrico Fermi 2749, 21027 Ispra, Italy.
The Curveball algorithm efficiently randomizes ecological matrices, preserving totals while overcoming statistical and performance limitations of prior methods. This novel approach enables uniform sampling of matrix configurations for large datasets.
Area of Science:
- Numerical ecology
- Ecological modeling
- Computational biology
Background:
- Recombining ecological matrices while preserving row and column totals is a persistent challenge.
- Existing methods for matrix randomization suffer from issues with statistical robustness and computational performance.
- Accurate randomization is crucial for null model analysis in ecology.
Purpose of the Study:
- To introduce a new algorithm, the 'Curveball algorithm', for randomizing presence-absence matrices.
- To address the limitations of existing methods in terms of statistical robustness and computational efficiency.
- To enable uniform sampling of all possible matrix configurations.
Main Methods:
- The Curveball algorithm focuses on matrix information content rather than matrix structure for randomization.
- It generates different matrix configurations with the same probability, ensuring statistical robustness.
- The algorithm's computational efficiency allows for rapid randomization of large matrices.
Main Results:
- The Curveball algorithm samples uniformly from the set of all possible matrix configurations.
- It requires computational effort orders of magnitude lower than existing methods.
- The algorithm successfully randomizes matrices larger than 10^8 cells.
Conclusions:
- The Curveball algorithm offers a statistically robust and computationally efficient solution for randomizing ecological matrices.
- It overcomes the limitations of previous methods, facilitating more reliable null model analyses.
- This advancement enables the analysis of larger and more complex ecological datasets.
Related Concept Videos
Randomized Experiments
Simple randomization
Simple...
Wald-Wolfowitz Runs Test I
The test works...
Random Variables
Uppercase letters such as X or Y denote a random variable. Lowercase letters like x or y denote the value of a random variable. If X is a random variable, then X is written in words, and x is given as a number.
For example, let X = the...
Group Design
Contingency Table
Wald-Wolfowitz Runs Test II
For binary data, runs are identified using symbols such as + and −, or equivalently, 1s and...

