I lacked a very simple lib for statistics (and was not really happy about the ones I found) so here it is. It provides really simplistic float computation statistics indicators.
Supported functions
| Functions | Examples |
| :-- | :-- |
| `mean(x: list) -> float` | `mean([1, 2, 3, 4, 5])` |
| `median(x: list) -> float` | `median([5, 2, 6, 4, 1, 3])` |
| `variance(x: list) -> float` | `variance([1, 2, 3, 4, 5])` |
| `standard_deviation(x: list) -> float` | `standard_deviation([1, 2, 3, 4, 5])` |
| `covariance(x: list, y: list) -> float` | `covariance([1, 2, 3, 4, 5], [1, 2, 3, 4, 5])` |
| `correlation(x: list, y: list) -> float` | `correlation([1, 2, 3, 4, 5], [1, 2, 3, 4, 5])` |
| `rsquared(x: list, y: list) -> float` | `rsquared([1, 2, 3], [-1, -2, -3])` |
| `linear_regression(x: list, y: list) -> dict` | `linear_regression([1, 2, 3, 4, 5], [4, 4.5, 5.5, 5.3, 6])` |