Link Search Menu Expand Document

Statistics

statistics.ts#L76

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#L69

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#L11

mean (values: Array<number>): number

Calculates the mean of an array of numbers.

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

median (values: Array<number>): number

Calculates the median of an array of numbers.

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

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#L63

stdDev (values: Array<number>): number

Calculates the standard deviation of an array of numbers.

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

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

Calculates the variance of an array of numbers.

Name Type Default Description
values Array<number>    

Copyright © 2021 Mathigon.org