Skip to main content Link Search Menu Expand Document (external link)

Statistics

statistics.ts#L92

correlation (aX: Array<number>, aY: Array<number>): number

Calculates the correlation between the numbers in two arrays aX and aY.

Name Type Default Description
aX Array<number>    
aY Array<number>    
statistics.ts#L85

covariance (aX: Array<number>, aY: Array<number>): number

Calculates the covariance of the numbers in two arrays aX and aY.

Name Type Default Description
aX Array<number>    
aY Array<number>    
statistics.ts#L12

mean (values: Array<number>): number

Calculates the mean of an array of numbers.

Name Type Default Description
values Array<number>    
statistics.ts#L37

median (values: Array<number>): number

Calculates the median of an array of numbers.

Name Type Default Description
values Array<number>    
statistics.ts#L45

mode (values: Array<number>): undefined|number

Calculates the mode of an array of numbers. Returns undefined if no mode exists, i.e. there are multiple values with the same largest count.

Name Type Default Description
values Array<number>    
statistics.ts#L17

quantile (values: Array<number>, p: number): number

Finds the quantile of an array of numbers for the cumulative probability p.

Name Type Default Description
values Array<number>    
p number    
statistics.ts#L79

stdDev (values: Array<number>): number

Calculates the standard deviation of an array of numbers.

Name Type Default Description
values Array<number>    
statistics.ts#L70

variance (values: Array<number>): undefined|number

Calculates the variance of an array of numbers.

Name Type Default Description
values Array<number>    

Copyright © 2022 Mathigon.org