AnalysisPlan which is a planning phase description of how you plan to analyze the data, and AnalysisData which is the data that you’ve collected so far.
Analysis Plan
AnAnalysisPlan is a description of how to compare a set of groups (for example, treatments) to each other, a set of hypotheses about these groups, and a decision rule that encodes how you plan to make a decision on the combined set of results from all hypotheses. The API uses AnalysisPlan in the planning phase to calculate power, and in the analysis phase to decide to analyze the data.
Comparisons and Groups
AGroup is a unique identifier and an integer weight. The weight is proportional to the group allocation. In an analysis, the set of groups to each other according to so pre-defined scheme called the ComparisonSpec, it has three options: 1) compare all groups to the group designated as baseline, 2) compare all pairs of groups to each other, or 3) compare all listed group pairs. The most common setup is to compare all groups to the control group.
Hypothesis and Method
AHypothesis represents a testable belief about a metric. For example, the change A leads to an increase by X% in metric M. In more technical terms, a hypothesis is a belief about a specific parameter in a statistical model. You test your hypothesis by constructing a model of the data, estimating its parameters and evaluating whether the estimated parameters are consistent with the hypothesis. The analysis method defines these steps. Depending on how your data arises and your experiment designed, different analysis methods are appropriate. For example, if you collect new data every day, a sequential analysis is appropriate, whereas a non-sequential method would result in an increased number of false positives. You should carefully select which method to apply. All methods come with a set of assumptions. If some of these assumptions are not satisfied, you shouldn’t trust the results.
Two common categories of hypotheses are superiority and non-inferiority hypotheses. A superiority hypothesis states that a metric changes in a given direction by some practically meaningful amount set by the experimenter, called the minimum detectable effect (MDE). A non-inferiority hypothesis states that a metric doesn’t change more, in a given direction, than some acceptable margin, called the non-inferiority margin (NIM).
You define a superiority hypothesis for a relative increase of 3% as:
1% but not more as:
Decision Rule
A decision rule is a logical expression of the significance of a set of hypotheses that determines when you view an analysis as a success. A typical example would be that at least one success metric is significant, while all guardrails are significantly non-inferior. You encode that rule as:(guardrail1 AND guardrail2) AND (success1 OR success2).
The decision rule enforces you to be explicit about the decision that you aim to take. The rule is the basis for adjusting both the false positive rate and statistical power per hypothesis so that you get the desired overall false positive rate and statistical power.

