compute.py computes a sharp (best-possible) upper bound on the population (or sample) variance statistic. This code works independently of interval arithmetic libraries. Only Numpy is needed for this ...
A GCSE Maths video about how to calculate upper and lower bounds. For any measurement, there’s an upper and lower bound to what the actual non-rounded measurement could be.