pub struct BayesianAbResult {
pub variant_a_id: String,
pub variant_b_id: String,
pub prob_b_beats_a: f64,
pub expected_uplift: f64,
pub posterior_mean_a: f64,
pub posterior_mean_b: f64,
}Expand description
Result of a Bayesian A/B test comparison between two variants.
Uses Beta-Binomial conjugate updates to estimate the probability that variant B outperforms variant A on the selected metric.
Fields§
§variant_a_id: StringID of the “control” variant (variant A).
variant_b_id: StringID of the “treatment” variant (variant B).
prob_b_beats_a: f64Estimated probability that variant B has a higher true rate than A. In [0.0, 1.0]; values > 0.95 are conventionally considered “significant”.
expected_uplift: f64Expected uplift: E[rate_B] − E[rate_A] using posterior means.
posterior_mean_a: f64Posterior mean of variant A’s rate.
posterior_mean_b: f64Posterior mean of variant B’s rate.
Trait Implementations§
Source§impl Clone for BayesianAbResult
impl Clone for BayesianAbResult
Source§fn clone(&self) -> BayesianAbResult
fn clone(&self) -> BayesianAbResult
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 moreSource§impl Debug for BayesianAbResult
impl Debug for BayesianAbResult
Source§impl PartialEq for BayesianAbResult
impl PartialEq for BayesianAbResult
Source§fn eq(&self, other: &BayesianAbResult) -> bool
fn eq(&self, other: &BayesianAbResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BayesianAbResult
Auto Trait Implementations§
impl Freeze for BayesianAbResult
impl RefUnwindSafe for BayesianAbResult
impl Send for BayesianAbResult
impl Sync for BayesianAbResult
impl Unpin for BayesianAbResult
impl UnsafeUnpin for BayesianAbResult
impl UnwindSafe for BayesianAbResult
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,
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