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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
Confidence intervals and summaries in Statistics (#5):
getConfidenceInterval(name, confidence = 0.95): Student-t interval for the mean of a sample-tracked metric ({ mean, lower, upper, halfWidth, stdError, confidence, n }). Unbounded with fewer than two samples.
getBatchMeansCI(name, { batches = 20, confidence = 0.95 }): interval via the method of batch means, for autocorrelated within-run series such as queue waits.
getPercentiles(name, [50, 95, 99]): several percentiles from one sort.
getSummary(name, confidence?): count, mean, standard deviation, variance, min, max, p50/p95/p99 and the interval in one object.
Dependency-free Student-t quantiles (regularized incomplete beta with bisection, accurate to about 1e-9) in src/statistics/distributions.ts.
New exported types ConfidenceInterval, BatchMeansResult, BatchMeansOptions, SummaryStatistics.
The M/M/1 example prints a 95% confidence interval next to the theoretical mean wait.