stat

package
v0.0.0-...-d47400d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 2, 2015 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Statistics package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Agostino

func Agostino(x []float64, alternative int) (skew, z, pVal float64)

Agostino performs D’Agostino test for skewness in normally distributed data vector.

func Anscombe

func Anscombe(x []float64, alternative int) (kurt, z, pVal float64)

Anscombe performs Anscombe-Glynn test of kurtosis for normally distributed data vector.

func BinomPConfInt

func BinomPConfInt(n, k int64, alpha float64) (lo, hi float64)

BinomPConfInt returns a one-sided frequentist Confidence Interval for binomial parameter estimated from a random sample. Ref.: Hahn & Meeker (1991).

func Bonett

func Bonett(x []float64, alternative int) (kurt, z, pVal float64)

Bonett performs Bonett-Seier test of Geary’s measure of kurtosis for normally distributed data vector.

func Cov

func Cov(data *DenseMatrix) *DenseMatrix

Covariance matrix between columns of data matrix, two-pass algorithm http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Covariance

func Geary

func Geary(x []float64) float64

Geary returns an estimator of Geary’s measure of kurtosis.

func Jarque

func Jarque(x []float64) (jb, pVal float64)

Jarque performs performs the Jarque-Bera test on the given data sample to determine if the data are sample drawn from a normal population.

func Kurt

func Kurt(x []float64) float64

Kurt returns the estimator of Pearson’s measure of kurtosis of the data vector. This is NOT the Excess Kustosis!

func Mean

func Mean(x []float64) float64

Mean returns the mean of the data vector.

func SCov

func SCov(data *DenseMatrix) *DenseMatrix

Sample covariance matrix between columns of data matrix, for samples This is R:cov()

func SampleMeanVar

func SampleMeanVar(x []float64) (μ, σ2 float64)

Sample mean and unbiased (Bessel correction) variance estimates for a data vector.

func Skew

func Skew(x []float64) float64

Skew returns skewness of the data vector.

Types

type Vector

type Vector struct {
	X []float64 // data
	L int       // length
}

func NewVector

func NewVector(length int) (v *Vector)

func SVar

func SVar(data *DenseMatrix) *Vector

Sample variance vector of columns of data matrix, one-pass algorithm This is R:var()

func Var

func Var(data *DenseMatrix) *Vector

Population variance vector of columns of data matrix, one-pass algorithm http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#On-line_algorithm

func (Vector) Get

func (v Vector) Get(i int) float64

func (Vector) Len

func (v Vector) Len() int

func (Vector) Set

func (v Vector) Set(i int, x float64)

func (Vector) Swap

func (v Vector) Swap(i int, j int)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL