Skip to content

Statistics

earth2studio.statistics

Various statistic and metric calculations for analysing inference data.

accStatistic for calculating the anomaly correlation coefficient of two tensors over a set of given dimensions, with respect to some optional climatology.
brier_scoreStatistic for calculating the Brier score (BS) of one tensors with respect to another over a set of given dimensions.
crpsCompute the Continuous Ranked Probability Score (CRPS).
energy_scoreCompute the Energy Score for multivariate ensemble forecast verification.
fssStatistic for calculating the fractions skill score (FSS) of one tensors with respect to another over a set of given dimensions.
log_spectral_distanceStatistic for calculating the radially averaged 2D log spectral distance (LSD) of one tensor with respect to another over a set of given dimensions.
maeStatistic for calculating the mean absolute error of two tensors over a set of given dimensions.
meanStatistic for calculating the sample mean over a set of given dimensions.
rank_histogramCompute the Rank Histogram for a given set of ensemble forecasts.
rmseStatistic for calculating the root mean squared error of two tensors over a set of given dimensions.
spread_skill_ratioMetric for calculating the spread/skill ratio of an ensemble forecast.
stdStatistic for calculating the sample standard deviation over a set of given dimensions.
varianceStatistic for calculating the sample variance over a set of given dimensions.

Utilities

lat_weightCompute the cosine-based latitude weighting for a given tensor representing latitude coordinates.