NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Ostats: O-Stats, or Pairwise Community-Level Niche Overlap Statistics

Quentin D. Read, Arya Yue, Isadora E. Fluck, Benjamin Baiser, John M. Grady, Phoebe L. Zarnetske, Sydne RecordOpenalex Unknown 2021 · OpenAlex

Abstract

O-statistics, or overlap statistics, measure the degree of community-level trait overlap by fitting nonparametric kernel density functions to species’ trait distributions. This approach calculates the areas of overlap between species pairs and aggregates them—typically using the median—to produce a community-level metric. The Ostats R package provides tools for both univariate and multivariate overlap statistics, supporting continuous, discrete, and circular data. By evaluating these statistics against null models, researchers can derive standardized effect sizes to understand the drivers of biodiversity across scales.

Introduction: Quantifying Niche Overlap

A fundamental challenge in ecology is understanding how species coexist within a community. Traditional niche theory posits that species must differentiate their resource use to avoid competitive exclusion. However, methodologically consistent measurement of this overlap across entire communities has been elusive. Many traditional methods rely on species-level means, which ignore critical intra-specific variation.

The Ostats package addresses this by providing a standardized framework to calculate O-statistics. These statistics quantify trait overlap at the community level, helping researchers determine whether species are packing into trait space or partitioning it to minimize competition.

Methodology and Implementation

The core of the Ostats framework is Nonparametric Kernel Density Estimation (KDE). Rather than assuming a normal distribution, the package fits a density function to the actual trait measurements of individuals.

The workflow involves:

  1. Density Fitting: Estimating probability density functions for each species' traits.
  2. Pairwise Overlap Calculation: Determining the area of overlap for every species pair.
  3. Community Aggregation: Calculating the median or mean of these overlaps to generate the O-statistic.
  4. Null Model Testing: Generating null communities to calculate Standardized Effect Sizes (SES), determining if observed overlap significantly deviates from chance.

The package is highly flexible, as evidenced by its support for various data types and weighting schemes.

Key parameters for the Ostats function, demonstrating support for continuous, discrete, and circular trait data.
Additional arguments for Ostats, including weight randomization for null models and arguments for circular or multivariate density estimation.

Datasets and Applications

The utility of Ostats is demonstrated through several diverse datasets:

  • Small Mammal Data: Body mass measurements from the National Ecological Observatory Network (NEON) used for continuous trait analysis.
  • Ant Data: Discrete hourly observations used to demonstrate circular niche overlap in temporal dimensions.
  • Pitcher Plant Traits: A multivariate dataset for Northern Pitcher plants (Sarracenia purpurea), showcasing complex niche modeling.

Key Insights

  • Individual Variation: By utilizing individual-level measurements, Ostats captures niche breadth more accurately than species-mean approaches.
  • Abundance Weighting: The use of the harmonic mean for weighting prevents extreme abundance or rarity from biasing community statistics.
  • Standardized Comparisons: Integration with null models allows for hypothesis testing rather than just descriptive reporting.
  • Visualization: Sophisticated plotting functions help interpret high-dimensional niche overlaps by projecting them into 2D space.

Conclusion and Future Directions

Ostats successfully unifies univariate and multivariate niche analysis into a single, documented pipeline. While it requires data-intensive individual-level measurements and can be computationally demanding for large multivariate sets, it provides a robust tool for modern ecological research. Future work may involve developing more complex null models to account for regional dispersal and biogeographic factors.

This work is part of the Macrosystems Biodiversity Project. For more information, visit https://neon-biodiversity.github.io/.

Summary updated

BibTeX
@inproceedings{read2021ostats,
  author = {Quentin D. Read and Arya Yue and Isadora E. Fluck and Benjamin Baiser and John M. Grady and Phoebe L. Zarnetske and Sydne Record},
  title = {{Ostats: O-Stats, or Pairwise Community-Level Niche Overlap Statistics}},
  booktitle = {Openalex Unknown},
  year = {2021},
  doi = {10.32614/cran.package.ostats},
}
Figure