<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/probability/blob/v0.25.0/tensorflow_probability/python/stats/__init__.py) |

Statistical functions.

## Functions

[`assign_log_moving_mean_exp(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/assign_log_moving_mean_exp): Compute the log of the exponentially weighted moving mean of the exp.

[`assign_moving_mean_variance(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/assign_moving_mean_variance): Compute one update to the exponentially weighted moving mean and variance.

[`auto_correlation(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/auto_correlation): Auto correlation along one axis.

[`brier_decomposition(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/brier_decomposition): Decompose the Brier score into uncertainty, resolution, and reliability.

[`brier_score(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/brier_score): Compute Brier score for a probabilistic prediction.

[`cholesky_covariance(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/cholesky_covariance): Cholesky factor of the covariance matrix of vector-variate random samples.

[`correlation(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/correlation): Sample correlation (Pearson) between observations indexed by `event_axis`.

[`count_integers(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/count_integers): Counts the number of occurrences of each value in an integer array `arr`.

[`covariance(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/covariance): Sample covariance between observations indexed by `event_axis`.

[`cumulative_variance(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/cumulative_variance): Cumulative estimates of variance.

[`expected_calibration_error(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/expected_calibration_error): Compute the Expected Calibration Error (ECE).

[`expected_calibration_error_quantiles(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/expected_calibration_error_quantiles): Expected calibration error via `quantiles(exp(pred_log_prob),num_buckets)`.

[`find_bins(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/find_bins): Bin values into discrete intervals.

[`histogram(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/histogram): Count how often `x` falls in intervals defined by `edges`.

[`kendalls_tau(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/kendalls_tau): Computes Kendall's Tau for two ordered lists.

[`log_average_probs(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/log_average_probs): Computes `log(average(to_probs(logits)))` in a numerically stable manner.

[`log_loomean_exp(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/log_loomean_exp): Computes the log-leave-one-out-mean of `exp(logx)`.

[`log_loosum_exp(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/log_loosum_exp): Computes the log-leave-one-out-sum of `exp(logx)`.

[`log_soomean_exp(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/log_soomean_exp): Computes the log-swap-one-out-mean of `exp(logx)`.

[`log_soosum_exp(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/log_soosum_exp): Computes the log-swap-one-out-sum of `exp(logx)`.

[`moving_mean_variance_zero_debiased(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/moving_mean_variance_zero_debiased): Compute zero debiased versions of `moving_mean` and `moving_variance`.

[`percentile(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/percentile): Compute the `q`-th percentile(s) of `x`.

[`quantile_auc(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/quantile_auc): Calculate ranking stats AUROC and AUPRC.

[`quantiles(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/quantiles): Compute quantiles of `x` along `axis`.

[`stddev(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/stddev): Estimate standard deviation using samples.

[`variance(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/variance): Estimate variance using samples.

[`windowed_mean(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/windowed_mean): Windowed estimates of mean.

[`windowed_variance(...)`](https://www.tensorflow.org/probability/api_docs/python/tfp/stats/windowed_variance): Windowed estimates of variance.