package
0.0.0-20241023150245-c8bbc672ef66
Repository: https://github.com/aclements/go-moremath.git
Documentation: pkg.go.dev

# Functions

BandwidthScott is a bandwidth estimator implementing Scott's Rule.
BandwidthSilverman is a bandwidth estimator implementing Silverman's Rule of Thumb.
Bounds returns the minimum and maximum values of xs.
GeoMean returns the geometric mean of xs.
HistogramIQR returns the interquartile range of the samples in hist.
HistogramQuantile returns the x such that n*q samples in hist are <= x, assuming values are distibuted within each bin according to hist's distribution.
InvCDF returns the inverse CDF function of the given distribution (also known as the quantile function or the percent point function).
MannWhitneyUTest performs a Mann-Whitney U-test [1,2] of the null hypothesis that two samples come from the same population against the alternative hypothesis that one sample tends to have larger or smaller values than the other.
Mean returns the arithmetic mean of xs.
MeanCI returns the arithmetic mean of xs and its confidence interval based on the sample standard deviation.
NewLinearHist returns an empty histogram with nbins uniformly-sized bins spanning [min, max].
NewLogHist returns an empty logarithmic histogram with bins for integral values of m * log_b(x) up to x = max.
OneSampleTTest performs a one-sample t-test on sample x.
PairedTTest performs a two-sample paired t-test on samples x1 and x2.
QuantileCI returns the bounds of the confidence interval of the q'th quantile in a sample of size n.
Rand returns a random number generator that draws from the given distribution.
StdDev returns the sample standard deviation of xs.
TwoSampleTTest performs a two-sample (unpaired) Student's t-test on samples x1 and x2.
TwoSampleWelchTTest performs a two-sample (unpaired) Welch's t-test on samples x1 and x2.
Variance returns the sample variance of xs.

# Constants

BoundaryReflect reflects the density estimate at the boundaries.
A DeltaKernel is a Dirac delta function.
An EpanechnikovKernel is a smooth kernel with bounded support.
A GaussianKernel is a Gaussian (normal) kernel.
LocationDiffers specifies the alternative hypothesis that the locations of the two samples are not equal.
LocationGreater specifies the alternative hypothesis that the location of the first sample is greater than the second.
LocationLess specifies the alternative hypothesis that the location of the first sample is less than the second.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MannWhitneyExactLimit gives the largest sample size for which the exact U distribution will be used for the Mann-Whitney U-test.
MannWhitneyTiesExactLimit gives the largest sample size for which the exact U distribution will be used for the Mann-Whitney U-test in the presence of ties.
StdNormal is the standard normal distribution (Mu = 0, Sigma = 1).

# Structs

BinomialDist is a binomial distribution.
DeltaDist is the Dirac delta function, centered at T, with total area 1.
HypergeometicDist is a hypergeometric distribution.
A KDE is a distribution that estimates the underlying distribution of a Sample using kernel density estimation.
LinearHist is a Histogram with uniformly-sized bins.
LogHist is a Histogram with logarithmically-spaced bins.
A MannWhitneyUTestResult is the result of a Mann-Whitney U-test.
NormalDist is a normal (Gaussian) distribution with mean Mu and standard deviation Sigma.
QuantileCIResult is the confidence interval for a quantile.
Sample is a collection of possibly weighted data points.
StreamStats tracks basic statistics for a stream of data in O(1) space.
A TDist is a Student's t-distribution with V degrees of freedom.
A TTestResult is the result of a t-test.
A UDist is the discrete probability distribution of the Mann-Whitney U statistic for a pair of samples of sizes N1 and N2.

# Interfaces

A DiscreteDist is a discrete statistical distribution.
A Dist is a continuous statistical distribution.
A DistCommon is a statistical distribution.
No description provided by the author
A TTestSample is a sample that can be used for a one or two sample t-test.

# Type aliases

KDEBoundaryMethod represents a boundary correction method for constructing a KDE with bounded support.
KDEKernel represents a kernel to use for a KDE.
A LocationHypothesis specifies the alternative hypothesis of a location test such as a t-test or a Mann-Whitney U-test.