Documentation
¶
Overview ¶
Package tinystat provides the ability to compare data sets using Welch's t-test at various levels of confidence.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Difference ¶
type Difference struct { Delta float64 // Delta is the absolute difference between the samples' means. CriticalValue float64 // CriticalValue is the maximum allowed Delta at the given confidence level. RelDelta float64 // RelDelta is the ratio of Delta to the control mean. RelCriticalValue float64 // RelCriticalValue is the ratio of CriticalValue to the control mean. P float64 // P is the p-value for the test. }
Difference represents the statistical difference between two Summary values.
func Compare ¶
func Compare(control, experiment Summary, confidence float64) Difference
Compare returns the statistical difference between the two summaries using a two-tailed Welch's t-test. The confidence level must be in the range (0, 100).
func (Difference) Significant ¶
func (d Difference) Significant() bool
Significant returns true if the difference is statistically significant.
type Summary ¶
type Summary struct { N float64 // N is the number of measurements in the set. Mean float64 // Mean is the arithmetic mean of the measurements. Variance float64 // Variance is the sample variance of the data set. }
A Summary is a statistical summary of a normally distributed data set.
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
tinystat
tinystat is used to compare two or more sets of measurements (e.g., runs of a multiple runs of benchmarks of two possible implementations) and determine if they are statistically different.
|
tinystat is used to compare two or more sets of measurements (e.g., runs of a multiple runs of benchmarks of two possible implementations) and determine if they are statistically different. |
internal
|
|
Click to show internal directories.
Click to hide internal directories.