Analysis and reporting
increment.workflows.unit_counts(experiment, reader) returns enrolled counts
by canonical group label, including excluded units as "(unassigned)". The
source must retain total-grain counts; day-axis views refuse.
increment.artifacts.artifact_context(experiment, reader) returns the trusted
context for a definitions-backed experiment. Pass it as expected_context when
opening an artifact published from that experiment.
increment.workflows.allocation_history(experiment, reader, population=...)
returns a PyArrow table with experiment_id, analysis_population, ds,
group_id, n_daily, and n_cumulative, ordered by population, date, and
arm. Native assigned cohorts are binned by first exposure date; triggered
cohorts start at their first eligible trigger. Artifact-backed assigned history
is available only when the artifact retains assignment identity rows, and
remains aggregate rather than per-unit replay data; otherwise it refuses with
evidence.assignment.identity_unavailable. Triggered artifact history is not
available. Clustered sources refuse with CapabilityError.
Mixed-covariate fixed-horizon CUPED
Section titled “Mixed-covariate fixed-horizon CUPED”On per-unit fixed-horizon inputs such as from_frame(..., shape="summary"),
declare inputs on Method.cuped_multicovariate(covariates=...), using
CupedCovariate or the binding-aware CupedCovariateBinding for each input.
Each declaration has a name, kind="continuous" or "categorical", and a
missing policy ("refuse" or "impute-indicator"). Categorical values
must be strings. Multicovariate CUPED supports mean, conversion, and ratio
metrics; ratio metrics use the same declared covariates for numerator and
denominator. The scalar Method.cuped(covariates=...) factory is for one
continuous covariate. Both factories accept a column name in place of a
declaration: "pre" means CupedCovariate(name="pre", kind="continuous"), so
categorical covariates are always declared explicitly. See the runnable
mixed-covariate CUPED recipe.
Multicovariate CUPED uses HC2 uncertainty and a Bell–McCaffrey Student-t
approximation, unlike scalar cuped, which retains its separate
Welch–Satterthwaite method. It is fixed-horizon only. Native definitions and
verified unit-day artifacts fit continuous/mixed models in the warehouse
without transferring unit rows; only the small triangular solve and
finalization run client-side. A fitted continuous/mixed fit can be exported in
a format-13 fitted envelope and replayed from from_moments, including
reintervalization at a changed alpha. A moments cube cannot refit a model or
reconstruct a missing fitted envelope. Clustered assignment and sequential
inference are unsupported. Fits outside M1 are returned as unavailable with
estimation.cuped_linear.support_region, not silently replaced by an
unadjusted result. Ratio fits also enforce the M1 raw denominator-precision
bound. See M1 and statistical limits.
The preregistered coverage campaign in calibration/cuped_linear.py has not
been run; its coverage is not established. External-prediction training
(tracker #72) and longitudinal dependence (tracker #80) are not implemented.
See campaign status and commands.
The day-axis collections returned by daily and as-of views, values or lift, are ordered chronologically by day, then by requested metric and a stable row identity order. The order is independent of backend row order.
increment.workflows.available_metrics(experiment, reader) lists undeclared
saved per-unit metrics on the experiment’s unit, in definitions order. It
excludes report-only total and active metrics and metrics for other
entities. Whole-window run, breakout, as-of lift, as-of values and daily
values views accept selected names through run(..., exploratory_metrics=...).
Lift rows from the first three carry role="exploratory", join no plan family,
and use two-sided full-plan alpha; as-of and daily absolute values have no
role. Declared rows are unchanged. Use metrics=[] to read only exploratory
metrics. Unknown or declared names refuse before querying with
facade.analysis_config.exploratory_metric_unavailable. Other sources refuse
with facade.analysis.exploratory_metrics_source_limited; registered
sequential plans refuse with facade.analysis.exploratory_metrics_sequential.
prepare_dashboard reads every offered added metric in the same pinned snapshot as the headline.
Metric
Section titled “Metric”MetricNo docstring.
Method
Section titled “Method”MethodAn estimation configuration: named method with optional adjustments.
MethodSpec is the serializable method declaration, including CUPED inputs.
MethodSpec
Section titled “MethodSpec”MethodSpecSerializable estimation-method declaration, including CUPED inputs.
MixturePrior
Section titled “MixturePrior”MixturePriorFinite Normal mixture with ordered component weights, means and deviations.
StudentTPrior
Section titled “StudentTPrior”StudentTPriorZero-centered Student-t prior with shape nu, scale and legacy size k.
The precision mixture is theta | lam ~ N(0, scale^2/lam) with
lam ~ Gamma(nu/2, nu/2). Unwrapped priors use components():
a fixed, data-independent finite expansion of that mixing density.
RelativeLiftPrior uses the continuous target; k does not change it.
The existing declaration range caps nu at 200. Use a Normal prior for a larger, near-Normal shape.
RelativeLiftPrior
Section titled “RelativeLiftPrior”RelativeLiftPriorPrior directly on fractional relative lift: 0.10 means ten percent.
moments_from_summaries
Section titled “moments_from_summaries”moments_from_summaries(rows, metrics, control, study_id, assignment_counts)Build format-12 rows from per-arm mean/variance or conversion summaries.
Mean rows require n >= 2, mean, and unbiased var (ddof=1).
Conversion rows require n and exact integer successes. Optional
source-level assignment_counts enable unit_counts() and allocation
health checks; without them those operations refuse with
source.moments.assignment_counts. Ratio and other richer summary
shapes should use :func:increment.frame.from_unit_summary.
Normal
Section titled “Normal”NormalNormal distribution with finite scalar parameters.