pub fn sample_variance(data: &[f64]) -> f64
Computes the sample variance of data (unbiased, divides by n-1).
data