A common problem in applied ecology is to determine whether the diversity o
f a biological community declines along a gradient. This note describes a s
tatistical test for such a decline. The test is based on a combination of n
onlinear optimization and a parametric bootstrap, An illustration involving
late Cretaceous dinosaur diversity is presented.