pub struct TwoSampleTests {
pub ks_statistic: f64,
pub ks_p_value: f64,
pub chi2_homogeneity: f64,
pub chi2_df: usize,
pub chi2_p_value: f64,
pub chi2_reliable: bool,
pub cliffs_delta: f64,
pub mann_whitney_u: f64,
pub mann_whitney_p_value: f64,
}Expand description
Two-sample statistical tests that directly compare stream A against stream B.
Fields§
§ks_statistic: f64Two-sample Kolmogorov-Smirnov statistic: max|F_A(x) - F_B(x)|. Tests whether both samples come from the same distribution.
ks_p_value: f64Approximate p-value for the two-sample KS test.
chi2_homogeneity: f64Chi-squared homogeneity statistic comparing the 256-bin byte histograms. Tests whether A and B have the same byte frequency distribution.
chi2_df: usizeDegrees of freedom for the homogeneity test (255 for byte data).
chi2_p_value: f64Approximate p-value for the chi-squared homogeneity test.
chi2_reliable: boolWhether the chi-squared approximation is reliable (expected count >= 5 in every cell of the 2×k contingency table).
cliffs_delta: f64Cliff’s delta: non-parametric effect size for ordinal data. Range [-1, 1]. 0 = no difference. Appropriate for discrete byte values (unlike Cohen’s d which assumes normality).
mann_whitney_u: f64Mann-Whitney U statistic (normalized to [0, 1]). Tests whether values from A tend to be larger or smaller than values from B. 0.5 = no difference.
mann_whitney_p_value: f64Approximate p-value for the Mann-Whitney U test (two-tailed, z-approximation). Valid for large samples (n, m >> 20).
Trait Implementations§
Source§impl Clone for TwoSampleTests
impl Clone for TwoSampleTests
Source§fn clone(&self) -> TwoSampleTests
fn clone(&self) -> TwoSampleTests
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more