Documentation
¶
Overview ¶
Package stats provides statistical functions and algorithms.
Index ¶
- func CorrMatrix(df *dataframe.DataFrame, method string) (*dataframe.DataFrame, error)
- func CovMatrix(df *dataframe.DataFrame) (*dataframe.DataFrame, error)
- func Covariance(x, y []float64) float64
- func IQR(values []float64) float64
- func Kendall(x, y []float64) (float64, error)
- func Kurtosis(values []float64) float64
- func Mean(values []float64) float64
- func Median(values []float64) float64
- func Mode(values []float64) (float64, int)
- func Pearson(x, y []float64) (float64, error)
- func Percentile(values []float64, p float64) float64
- func Quantile(values []float64, q float64) float64
- func Range(values []float64) float64
- func Skew(values []float64) float64
- func Spearman(x, y []float64) (float64, error)
- func Std(values []float64) float64
- func Var(values []float64) float64
- type DescriptiveStats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CorrMatrix ¶
CorrMatrix computes the correlation matrix for all numeric columns in a DataFrame.
func Covariance ¶
Covariance calculates the sample covariance between x and y.
func Kendall ¶
Kendall calculates the Kendall tau correlation coefficient. Measures the ordinal association between two quantities.
func Pearson ¶
Pearson calculates the Pearson correlation coefficient between x and y. Returns value in [-1, 1] where: 1 = perfect positive correlation 0 = no correlation -1 = perfect negative correlation
func Percentile ¶
Percentile calculates the p-th percentile (0 <= p <= 100).
func Quantile ¶
Quantile calculates the q-th quantile (0 <= q <= 1). Uses linear interpolation between closest ranks.
Types ¶
type DescriptiveStats ¶
type DescriptiveStats struct {
Count int
Mean float64
Std float64
Min float64
Q25 float64
Median float64
Q75 float64
Max float64
Skewness float64
Kurtosis float64
}
DescriptiveStats contains summary statistics for a dataset.
func Describe ¶
func Describe(values []float64) DescriptiveStats
Describe returns comprehensive descriptive statistics.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package distributions provides probability distributions.
|
Package distributions provides probability distributions. |
|
Package hypothesis provides statistical hypothesis tests.
|
Package hypothesis provides statistical hypothesis tests. |