Expand description
Probability, descriptive statistics, and fairness metric helpers for f64 number-domain data.
Descriptive statistics and disparate-impact helpers also expose Claim surfaces. The Claim values carry their subject, predicate, and evidence table as inspectable runtime data, so callers can browse both the computed metric and the inputs used to justify it.
Structs§
- Binary
Outcome Counts - Counts for a binary selection or outcome table.
- Disparate
Impact - Disparate-impact summary for two binary-outcome groups.
- Fairness
Claim Value - A first-class runtime object wrapping the fairness Claim and its evidence.
- Fairness
Evidence - Evidence carried by the disparate-impact fairness Claim.
- Stats
Claim Evidence - Evidence carried by a descriptive statistics Claim.
- Stats
Claim Value - A first-class runtime object wrapping a descriptive statistics Claim.
- Stats
Numbers Lib - Library that installs the runtime statistics functions.
Enums§
- Stats
Error - Errors returned by probability, statistics, and fairness helpers.
Statics§
- RECIPES
- Cookbook recipes for this lib, embedded at build time.
Functions§
- bayesian_
update - Computes
prior * likelihood / evidenceand validates the posterior. - bayesian_
update_ binary - Computes a binary-test posterior from prior, true-positive, and false-positive rates.
- disparate_
impact - Computes disparate impact and the four-fifths pass/fail flag.
- entropy
- Computes Shannon entropy in bits for a probability vector that sums to one.
- fairness_
claim - Builds the public disparate-impact fairness Claim and interns its evidence object.
- fairness_
claim_ value - Wraps a fairness Claim as a runtime value.
- four_
fifths_ ratio - Computes the comparison/reference rate ratio used by the four-fifths rule.
- mean
- Computes the arithmetic mean of finite values.
- population_
variance - Computes population variance with divisor
n. - sample_
variance - Computes sample variance with divisor
n - 1. - stats_
claims_ symbol - Returns the symbol bound to the
stats/claimsbatch operation. - stats_
disparate_ impact_ claim_ symbol - Returns the symbol bound to the
stats/disparate-impact-claimoperation. - stats_
entropy_ claim_ symbol - Returns the symbol bound to the
stats/entropy-claimoperation. - stats_
mean_ claim_ symbol - Returns the symbol bound to the
stats/mean-claimoperation. - stats_
result_ claim - Builds the public descriptive statistics Claim and interns its evidence object.
- stats_
result_ claim_ value - Wraps a descriptive statistics Claim as a runtime value.
- stats_
variance_ claim_ symbol - Returns the symbol bound to the
stats/variance-claimoperation. - variance
- Computes population variance.
Type Aliases§
- Stats
Result - Result alias for the statistics helpers, fixing the error to
StatsError.