Socket
Socket
Sign inDemoInstall

@tracerbench/stats

Package Overview
Dependencies
Maintainers
3
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tracerbench/stats - npm Package Compare versions

Comparing version 3.0.16 to 3.1.2

10

package.json
{
"name": "@tracerbench/stats",
"version": "3.0.16",
"version": "3.1.2",
"description": "Stats class written in TS-Node",

@@ -36,3 +36,3 @@ "keywords": [

"path": "0.12.7",
"tmp": "^0.1.0",
"tmp": "^0.2.1",
"tslib": "^1.11.1"

@@ -46,5 +46,5 @@ },

"@types/node": "^13.11.1",
"@types/tmp": "^0.1.0",
"@types/tmp": "^0.2.0",
"@typescript-eslint/eslint-plugin": "^2.25.0",
"@typescript-eslint/parser": "^2.25.0",
"@typescript-eslint/parser": "^3.0.2",
"chai": "^4.2.0",

@@ -68,3 +68,3 @@ "chai-files": "^1.4.0",

"engine": "node >= 10",
"gitHead": "30be10122ff4fcdf931eec6ecd8075ff6b2dc42f"
"gitHead": "71261c962b6b56f7c3080214270b865bcc9a50b3"
}

@@ -5,6 +5,5 @@ ## TracerBench: Automated Chrome Tracing For Benchmarking

## TracerBench: README.md
## TracerBench
https://www.tracerbench.com/
https://github.com/TracerBench/tracerbench/blob/master/README.md
### Installation

@@ -59,55 +58,2 @@

# Statistics Primer
Once tracing is complete and the data collected. The next step in analyzing it is to leverage some descriptive statistics to get a feeling for the data.
### Population & Sample
Population and Sample are part of the foundation of statistical hypothesis testing.
A population is a collection of data which you want to make an assumption on. For example in a swimming pool of water this represents all of the water in the pool. Since testing every drop of water is not realistically possible. A subset of the population (subset of the pool water) is tested to analyze and make an assumption, which is called a sample.
To represent the population well, a sample should be randomly collected and adequately large. If the sample is random and large enough, you can use the information collected from the sample to make an assumption about the larger population. Then leverage a hypothesis test to estimate the percentage of the sample to the population.
### Probability Sampling
Sampling involves choosing a method of sampling (how are we going to sample). In the example of the swimming pool, are we going to only sample the pool water from the shallow end? deep end? both ends? The method we decide on will influence the data we result with.
The two major categories in sampling are probability and non-probability sampling. For a given population (swimming pool), each element (drop of water) of that population has a chance of being "picked" as part of the sample (cup of water). In other words, no single element of the population has a zero chance of being picked. The odd/chances/probability of picking any element is known or can be calculated. This is possible if we know the total number in the entire population and are able to determine the odds of picking any one element. Probability sampling involves randomly picking elements from a population which is why no element has a zero chance of being picked to be part of a sample.
### Null hypothesis (H0)
The null hypothesis is a statement about a population. A hypothesis test uses sample data to determine whether to reject the null hypothesis. The null hypothesis states that a population parameter (such as the mean, the standard deviation, etc.) is equal to a hypothesized value. The null hypothesis is often an initial claim that is based on a previous analysis or insights.
### Standard Deviation & Variance
The standard deviation is the most common measure of how spread out the data are from the mean (dispersion). The greater the standard deviation, the greater the spread in the data.
The variance measures how much the data is scattered about their mean. The variance is equal to the standard deviation squared.
![Understanding-Standard-Deviation-and-Variance](https://github.com/TracerBench/tracerbench/blob/master/docs/std-deviation.png)
### Confidence Interval
A confidence interval is a range of values, derived from sample statistics, that is likely to contain the value of an unknown population parameter. Since they are random it's unlikely that two samples from a population will yield identical confidence intervals. However, if the sampling is repeated many times, a certain percentage of the confidence intervals would contain the unknown population parameter. For example in a 95% confidence interval, 5% would contain the unknown population parameter.
![Understanding-Confidence-Interval](https://github.com/TracerBench/tracerbench/blob/master/docs/c-interval.png)
### Power
The power of a hypothesis test is the probability that the test correctly rejects the null hypothesis. The power of a hypothesis test is affected by the sample size, difference, variance and the significance level of the test.
If a test has low power, you might fail to detect an effect and mistakenly conclude that none exists. If a test has a power that is too high very small effects/changes might seem to be significant.
### Wilcoxon rank sum with continuity correction
Wilcoxon rank sum essentially calculates the difference between each set of pairs in the test and analyzes the differences in the pairs.
Continuity correction pragmatically is as simple as adding or subtracting 0.5 to the x-value of a distribution with a lookup table to determine when to add or subtract 0.5.
### Statistical Significance
Statistical significance itself doesn't imply that your results have practical consequence. If you use a test with very high power, you might conclude that a small difference from the hypothesized value is statistically significant. However, that small difference might be meaningless to your situation. Your technical insight should be leveraged to determine whether the difference is practically significant. With a large enough sample, you can likely reject the null hypothesis even though the difference is of no practical importance.
Confidence intervals are commonly more useful than hypothesis tests because they provide a way to assess practical significance in addition to statistical significance. They help you determine what parameter value is, instead of what it is not.
(statistical primer sources: https://cbmm.mit.edu/, https://www.wyzant.com, https://support.minitab.com)
https://www.tracerbench.com/docs/guide/stats-primer

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc