Skip to content

v0.1.15

Choose a tag to compare

@github-actions github-actions released this 26 Sep 11:47
· 27 commits to main since this release
537e0ff

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.