ExperimentBinaryStatisticalEvidence
NexusLabs.Foundry.Evaluation¶
NexusLabs.Foundry.Evaluation.Experiments¶
ExperimentBinaryStatisticalEvidence Class¶
Describes binary-success proportion evidence and its uncertainty.
public sealed record ExperimentBinaryStatisticalEvidence : System.IEquatable<NexusLabs.Foundry.Evaluation.Experiments.ExperimentBinaryStatisticalEvidence>
Inheritance System.Object 🡒 ExperimentBinaryStatisticalEvidence
Implements System.IEquatable<ExperimentBinaryStatisticalEvidence>
Properties¶
ExperimentBinaryStatisticalEvidence.AttemptCount Property¶
Gets the total number of operational attempts across all trials.
Property Value¶
ExperimentBinaryStatisticalEvidence.ConfidenceLevel Property¶
Gets the one-sided confidence level.
Property Value¶
ExperimentBinaryStatisticalEvidence.Estimate Property¶
Gets the observed success proportion, when a denominator exists.
Property Value¶
System.Nullable<System.Double>
ExperimentBinaryStatisticalEvidence.ExclusionCount Property¶
Gets the number of trials with unknown or excluded evidence.
Property Value¶
ExperimentBinaryStatisticalEvidence.ExecutionFailureCount Property¶
Gets the number of execution-failed trials.
Property Value¶
ExperimentBinaryStatisticalEvidence.FailureCount Property¶
Gets the denominator failure count.
Property Value¶
ExperimentBinaryStatisticalEvidence.IntervalMethod Property¶
Gets the confidence interval method.
public NexusLabs.Foundry.Evaluation.Experiments.ExperimentConfidenceIntervalMethod IntervalMethod { get; }
Property Value¶
ExperimentConfidenceIntervalMethod
ExperimentBinaryStatisticalEvidence.MetricName Property¶
Gets the required boolean metric name.
Property Value¶
ExperimentBinaryStatisticalEvidence.MinimumSampleCount Property¶
Gets the minimum effective sample count.
Property Value¶
ExperimentBinaryStatisticalEvidence.OneSidedLowerBound Property¶
Gets the one-sided lower bound at ConfidenceLevel, when a denominator exists.
Property Value¶
System.Nullable<System.Double>
ExperimentBinaryStatisticalEvidence.OneSidedUpperBound Property¶
Gets the one-sided upper bound at ConfidenceLevel, when a denominator exists.
Property Value¶
System.Nullable<System.Double>
ExperimentBinaryStatisticalEvidence.RequiredSuccessRate Property¶
Gets the required success proportion.
Property Value¶
ExperimentBinaryStatisticalEvidence.SampleCount Property¶
Gets the effective denominator sample count.
Property Value¶
ExperimentBinaryStatisticalEvidence.StatusCounts Property¶
Gets item counts in stable status order.
public System.Collections.Generic.IReadOnlyList<NexusLabs.Foundry.Evaluation.Experiments.ExperimentItemStatusCount> StatusCounts { get; }
Property Value¶
System.Collections.Generic.IReadOnlyList<ExperimentItemStatusCount>
ExperimentBinaryStatisticalEvidence.SuccessCount Property¶
Gets the denominator success count.
Property Value¶
ExperimentBinaryStatisticalEvidence.TotalTrialCount Property¶
Gets the number of statistical trials in the run.
Property Value¶
ExperimentBinaryStatisticalEvidence.UnknownSampleTreatment Property¶
Gets the configured treatment for unknown samples.
public NexusLabs.Foundry.Evaluation.Experiments.ExperimentUnknownSampleTreatment UnknownSampleTreatment { get; }
Property Value¶
ExperimentUnknownSampleTreatment
Methods¶
ExperimentBinaryStatisticalEvidence.Create(string, int, int, int, int, IReadOnlyList<ExperimentItemStatusCount>, double, double, int, ExperimentConfidenceIntervalMethod, ExperimentUnknownSampleTreatment) Method¶
Creates validated binary statistical evidence.
public static NexusLabs.Foundry.Evaluation.Experiments.ExperimentBinaryStatisticalEvidence Create(string metricName, int attemptCount, int successCount, int failureCount, int exclusionCount, System.Collections.Generic.IReadOnlyList<NexusLabs.Foundry.Evaluation.Experiments.ExperimentItemStatusCount> statusCounts, double confidenceLevel, double requiredSuccessRate, int minimumSampleCount, NexusLabs.Foundry.Evaluation.Experiments.ExperimentConfidenceIntervalMethod intervalMethod, NexusLabs.Foundry.Evaluation.Experiments.ExperimentUnknownSampleTreatment unknownSampleTreatment);
Parameters¶
metricName System.String
The required boolean metric name.
attemptCount System.Int32
The total number of operational attempts.
successCount System.Int32
The effective denominator success count.
failureCount System.Int32
The effective denominator failure count.
exclusionCount System.Int32
The number of trials with excluded evidence.
statusCounts System.Collections.Generic.IReadOnlyList<ExperimentItemStatusCount>
Item counts for every terminal status.
confidenceLevel System.Double
The one-sided confidence level.
requiredSuccessRate System.Double
The required success proportion.
minimumSampleCount System.Int32
The minimum effective sample count.
intervalMethod ExperimentConfidenceIntervalMethod
The confidence interval method.
unknownSampleTreatment ExperimentUnknownSampleTreatment
The treatment for excluded evidence.
Returns¶
ExperimentBinaryStatisticalEvidence
Validated binary statistical evidence with derived totals and Wilson bounds.
Exceptions¶
System.ArgumentNullException
statusCounts or one of its elements is null.
System.ArgumentException
metricName is blank, status accounting is incomplete or inconsistent, or
sample and exclusion counts do not match the configured unknown-sample treatment.
System.ArgumentOutOfRangeException
A count is negative, a configured rate or confidence level is outside its supported range,
the minimum sample count is not positive, or an enum value is undefined.