https://github.com/vweevers/student-histogram

Record a sample and compute its statistical significance.

https://github.com/vweevers/student-histogram

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.3%) to scientific vocabulary

Keywords

histogram nodejs npm-package statistics student-t

Keywords from Contributors

sequences projection interactive serializer measurement cycles packaging charts network-simulation archival
Last synced: 6 months ago · JSON representation

Repository

Record a sample and compute its statistical significance.

Basic Info
  • Host: GitHub
  • Owner: vweevers
  • License: other
  • Language: JavaScript
  • Default Branch: main
  • Homepage:
  • Size: 19.5 KB
Statistics
  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • Open Issues: 5
  • Releases: 0
Topics
histogram nodejs npm-package statistics student-t
Created over 8 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

readme.md

student-histogram

Record a sample and compute its statistical significance. Uses native-hdr-histogram and a two-tailed t-distribution table under the hood. Good for sample sizes below 200. HDR histogram is designed for "value measurements in latency and performance sensitive applications", quantizes values with a configurable precision and has a constant memory footprint.

npm Node version Test Standard

Example

```js const StudentHistogram = require('student-histogram') const h = new StudentHistogram(1, 200, 3)

// Record some example values. const sample = [100, 120, 101, 103, 99] sample.forEach(v => h.record(v))

const log = console.log const percent = require('fixed-number')(1, 2, 'percent')

log('arithmetic mean : %d ±%s', h.mean(), percent(h.rme())) log('standard deviation :', h.stddev()) log('minimum and maximum : %d and %d', h.min(), h.max()) log('75% of values fall below :', h.percentile(75)) log()

log('standard error of the mean :', h.sem()) log('margin of error :', h.moe()) log('relative margin of error :', h.rme()) log('with higher confidence :', h.rme(0.998)) log()

// Estimate the size (number of sampling points aka recorded values) // that is required to achieve a relative margin of error of 0.05. log('recommended sample size :', h.minimumSize(0.05)) log('for 99.5% confidence :', h.minimumSize(0.05, 0.995)) log('with 10% error tolerance :', h.minimumSize(0.10))

if (h.size < h.minimumSize(0.05)) { // Maybe record some more! } ```

Output:

``` arithmetic mean : 104.6 ±9.27% standard deviation : 7.812809993849844 minimum and maximum : 99 and 120 75% of values fall below : 103

standard error of the mean : 3.493994848307593 margin of error : 9.700727296841201 relative margin of error : 0.09274117874609179 with higher confidence : 0.23960921458776316

recommended sample size : 18 for 99.5% confidence : 70 with 10% error tolerance : 5 ```

API

StudentHistogram(min, max, figures, opts)

Documentation to follow.

Install

With npm do:

npm install student-histogram

See also

License

MIT © 2017-present Vincent Weevers. Based in part on benchmark.js and sample-sizer. See included LICENSE file for all copyright owners.

Owner

  • Name: Vincent Weevers
  • Login: vweevers
  • Kind: user
  • Location: Netherlands

human. most of the time

GitHub Events

Total
Last Year

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 17
  • Total Committers: 3
  • Avg Commits per committer: 5.667
  • Development Distribution Score (DDS): 0.176
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Vincent Weevers m****l@v****l 14
greenkeeper[bot] 2****] 2
dependabot[bot] 4****] 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 5
  • Total pull requests: 7
  • Average time to close issues: 3 months
  • Average time to close pull requests: 12 months
  • Total issue authors: 2
  • Total pull request authors: 2
  • Average comments per issue: 0.0
  • Average comments per pull request: 1.43
  • Merged pull requests: 3
  • Bot issues: 1
  • Bot pull requests: 7
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • vweevers (4)
  • greenkeeper[bot] (1)
Pull Request Authors
  • greenkeeper[bot] (5)
  • dependabot[bot] (2)
Top Labels
Issue Labels
dependencies (1)
Pull Request Labels
dependencies (7) github_actions (2)

Packages

  • Total packages: 1
  • Total downloads:
    • npm 19 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 1
  • Total versions: 4
  • Total maintainers: 1
npmjs.org: student-histogram

Record a sample and compute its statistical significance

  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 19 Last month
Rankings
Downloads: 7.8%
Dependent repos count: 10.8%
Stargazers count: 14.9%
Forks count: 15.9%
Average: 20.7%
Dependent packages count: 54.2%
Maintainers (1)
Last synced: 6 months ago

Dependencies

package.json npm
  • standard ~14.1.0 development
  • tape ^4.10.1 development
  • big.js ~5.2.2
  • int64-buffer ~0.99.1007
  • native-hdr-histogram ~0.7.0
  • sample-sizer 0.1.0
.github/workflows/test.yml actions
  • actions/checkout v4 composite
  • actions/setup-node v3 composite