You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
- Adding `StreamingStat` class (experimental) for streaming/online computation of mean, variance, stdev, skewness, kurtosis, sum, min, and max with O(1) memory
5
5
- Adding `percentile()` method for computing the value at any percentile (0–100) with linear interpolation
6
6
- Adding `coefficientOfVariation()` method for relative dispersion (CV%), supporting both sample and population modes
7
+
- Adding `trimmedMean()` method for robust central tendency — computes the mean after removing outliers from each side
Return the trimmed (truncated) mean of the data. Computes the mean after removing the lowest and highest fraction of values. This is a robust measure of central tendency, less sensitive to outliers than the regular mean.
138
+
139
+
The `$proportionToCut` parameter specifies the fraction to trim from **each** side (must be in the range `[0, 0.5)`). For example, `0.1` removes the bottom 10% and top 10%.
The geometric mean indicates the central tendency or typical value of the data using the product of the values (as opposed to the arithmetic mean which uses their sum).
- Kendall tau correlation - another rank-based correlation
16
14
- Multiple/polynomial regression
17
15
- R-squared (coefficient of determination)
@@ -42,9 +40,3 @@
42
40
43
41
- Rank - assign ranks to data points
44
42
- Percentile rank - what percentile a given value falls at
45
-
46
-
---
47
-
48
-
### Notes
49
-
50
-
The most impactful additions would likely be (skewness DONE), (kurtosis DONE), coefficient of variation, percentile, and Spearman correlation — these are commonly needed and align well with the package's existing scope (inspired by Python's statistics module).
0 commit comments