∑⟮xᵢ - x̄⟯²
S² = ----------
n - 1
x̄ is the sample mean
n is the number of numbers in the sample set
public static sampleVariance ( array $numbers ) : numeric | ||
$numbers | array | |
return | numeric |
public static sampleVariance ( array $numbers ) : numeric | ||
$numbers | array | |
return | numeric |