---
library: "brainference"
slug: "NullModelBaseline"
name: "NullModelBaseline"
ref: "NullModelBaseline#9d36"
hash: "sema:NullModelBaseline#mh:SHA-256:9d361368a16dd9c0d05cbb9fd851745b75eae2c8608e22ade4801687a80761c4"
type: "Verification"
layer: "Infrastructure"
version: "1.0.0"
root: "8d7193fc97804cdc3aa9080728d8094732206c114f34d36b8ca2b89b943b3990"
license: null
url: "https://semahash.org/vocabularies/brainference/patterns/NullModelBaseline"
---

# NullModelBaseline

Attribute structure to a mechanism only by beating a baseline that keeps everything except that mechanism

Infrastructure · Verification

## Mechanism

To claim that an observed pattern comes from mechanism X, build a null model that preserves the constraints you are not testing (counts, bounds, marginal statistics, population over time) and randomises exactly what X would add. Generate many realisations, apply the identical pipeline and measures to them, and compare the observed values with the null distribution, for instance with [JensenShannonDivergence](https://semahash.org/vocabularies/brainference/patterns/JensenShannonDivergence.md). Structure that survives the comparison is attributable to what the null randomised; structure the null reproduces is explained by what it kept. Nulls form a ladder: a uniform random placement with the same number of agents per frame tests whether any spatial organisation exists; a null that also keeps individual movement statistics tests whether organisation exceeds what individual kinematics alone would produce.

## Invariants

- The null keeps every constraint except the mechanism under test
- Observed and null data pass through the identical construction and measurement pipeline
- Many null realisations are drawn, so the comparison is against a distribution, not a single draw

## Preconditions

- The mechanism under test is stated before the null is designed

## Postconditions

- Any remaining difference is attributable to what the null randomised, and only to that

## Failure modes

- Null too weak: it lacks constraints the real system has (density, boundaries, kinematics), so trivial structure looks significant
- Null too strong: it bakes in the mechanism itself and erases the effect
- Unmodelled mechanisms: a deviation is credited to 'social structure' when an unmodelled factor (pheromone fields, task allocation, internal state) could also produce it
- Choosing the null after seeing which one gives a significant result

## Where this came from

- Thesis: do_2026_ant_collective_behavior (Ch. 1.2.2; Ch. 3.1.1 SNM; Ch. 3.1.2 STNM; Ch. 5.6 null-model limitations)

## Builds on

- [JensenShannonDivergence](https://semahash.org/vocabularies/brainference/patterns/JensenShannonDivergence.md) (composes_with)

## Used by

- [EntropyDensityCollapse](https://semahash.org/vocabularies/brainference/patterns/EntropyDensityCollapse.md) (composes_with)
- [LocalSpatialStateDivergence](https://semahash.org/vocabularies/brainference/patterns/LocalSpatialStateDivergence.md) (references)
- [SpatioTemporalNullModel](https://semahash.org/vocabularies/brainference/patterns/SpatioTemporalNullModel.md) (references)

## Identity

- Library: brainference 1.0.0 (root 8d7193fc9780)
- Ref: NullModelBaseline#9d36
- Hash: sema:NullModelBaseline#mh:SHA-256:9d361368a16dd9c0d05cbb9fd851745b75eae2c8608e22ade4801687a80761c4

## Links

- Page: https://semahash.org/vocabularies/brainference/patterns/NullModelBaseline
- JSON: https://semahash.org/vocabularies/brainference/patterns/NullModelBaseline.json
- Library: https://semahash.org/vocabularies/brainference
- Library index: https://semahash.org/vocabularies/brainference/index.json
