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
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
## 1.3.0 - WIP
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
+
- Adding `percentile()` method for computing the value at any percentile (0–100) with linear interpolation
6
+
- Adding `coefficientOfVariation()` method for relative dispersion (CV%), supporting both sample and population modes
Copy file name to clipboardExpand all lines: README.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,13 +73,15 @@ The various mathematical statistics are listed below:
73
73
|`quantiles()`| cut points dividing the range of a probability distribution into continuous intervals with equal probabilities (supports `exclusive` and `inclusive` methods) |
74
74
|`thirdQuartile()`| 3rd quartile, is the value at which 75 percent of the data is below it |
75
75
|`firstQuartile()`| first quartile, is the value at which 25 percent of the data is below it |
76
+
|`percentile()`| value at any percentile (0–100) with linear interpolation |
76
77
|`pstdev()`| Population standard deviation |
77
78
|`stdev()`| Sample standard deviation |
78
79
|`pvariance()`| variance for a population (supports pre-computed mean via `mu`) |
79
80
|`variance()`| variance for a sample (supports pre-computed mean via `xbar`) |
Return the value at the given percentile of the data, using linear interpolation between adjacent data points (exclusive method, consistent with `quantiles()`).
272
+
273
+
The percentile `$p` must be between 0 and 100. Requires at least 2 data points.
Return the **Population** Standard Deviation, a measure of the amount of variation or dispersion of a set of values.
270
286
A low standard deviation indicates that the values tend to be close to the mean of the set, while a high standard deviation indicates that the values are spread out over a wider range.
The coefficient of variation (CV) is the ratio of the standard deviation to the mean, expressed as a percentage. It measures relative variability and is useful for comparing dispersion across datasets with different units or scales.
380
+
381
+
By default it uses the sample standard deviation. Pass `population: true` to use the population standard deviation instead.
382
+
383
+
Requires at least 2 data points (sample) or 1 (population). Throws if the mean is zero.
0 commit comments