pub struct SignificanceTest {
pub mean_a: f64,
pub mean_b: f64,
pub difference: f64,
pub std_error: f64,
pub t_statistic: f64,
pub p_value: f64,
pub n: usize,
pub significant_05: bool,
pub significant_01: bool,
}Expand description
Result of a paired significance test between two systems (very rough p-value approximation).
Fields§
§mean_a: f64System A mean score.
mean_b: f64System B mean score.
difference: f64Difference (A - B).
std_error: f64Standard error of the difference.
t_statistic: f64t-statistic.
p_value: f64p-value (two-tailed, approximate).
n: usizeNumber of samples.
significant_05: boolSignificant at p < 0.05.
significant_01: boolSignificant at p < 0.01.
Implementations§
Source§impl SignificanceTest
impl SignificanceTest
Sourcepub fn paired_t_test(scores_a: &[f64], scores_b: &[f64]) -> SignificanceTest
pub fn paired_t_test(scores_a: &[f64], scores_b: &[f64]) -> SignificanceTest
Perform a paired t-test on CoNLL F1 scores (approximate).
Sourcepub fn a_better_than_b(&self) -> bool
pub fn a_better_than_b(&self) -> bool
True if system A is significantly better than system B.
Sourcepub fn b_better_than_a(&self) -> bool
pub fn b_better_than_a(&self) -> bool
True if system B is significantly better than system A.
Trait Implementations§
Source§impl Clone for SignificanceTest
impl Clone for SignificanceTest
Source§fn clone(&self) -> SignificanceTest
fn clone(&self) -> SignificanceTest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SignificanceTest
impl RefUnwindSafe for SignificanceTest
impl Send for SignificanceTest
impl Sync for SignificanceTest
impl Unpin for SignificanceTest
impl UnsafeUnpin for SignificanceTest
impl UnwindSafe for SignificanceTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more