1 | <?php |
||
12 | final class Variance |
||
13 | { |
||
14 | /** |
||
15 | * Population variance |
||
16 | * Use when all possible observations of the system are present. |
||
17 | * If used with a subset of data (sample variance), it will be a biased variance. |
||
18 | * |
||
19 | * ∑⟮xᵢ - μ⟯² |
||
20 | * σ² = ---------- |
||
21 | * N |
||
22 | */ |
||
23 | public static function population(array $population): float |
||
27 | } |
||
28 |