/*@Size*/ final int N = samples();
QL.require(N > 1, "sample number <=1, unsufficient");
// Subtract the mean and square. Repeat on the whole range.
// Hopefully, the whole thing will be inlined in a single loop.
/*@Real*/ final double s2 = expectationValue(
new ComposedFunction(
new Square(), new Bind2nd(
new Minus(), mean())),
new Everywhere()).first();
return s2*N/(N-1.0);
}