Articles
    Back to Product Metrics and Formulas

    Sample Ratio Mismatch p-value

    p-value of a goodness-of-fit test comparing observed unit counts per variant with the planned allocation in one experiment; it flags assignment or tracking problems.

    Category
    Experimentation
    Role
    Guardrail
    Timing
    Leading
    Direction
    Higher is better
    Unit
    Ratio
    Window
    Pre-set readouts by stage (assignment, exposure, analysis); separate epochs if the allocation changed
    Basis
    Unique units per variant at the chosen stage, planned shares fixed and summing to 1
    Data source
    Experiment assignment logs and the analysis warehouse
    Decision it informs
    Block the effect readout on a pre-set SRM signal until the cause is found; never drop the inconvenient group.
    Formula
    Chi-square = Σ (Observed_g - Expected_g)² / Expected_g, Expected_g = N × planned share_g; p = 1 - CDF_chi2(Chi-square, K - 1)

    Calculator, worked example, common mistakes and formula variants are available after free sign-up

    • Worked example
    • Common mistakes

    Description

    Evidence that the observed split of units between variants differs from the planned split in one experiment. A tiny p-value means assignment or logging is broken and the effect should not be read.

    Often confused with

    Metric tree

    Open tree

    Read more

    Related metrics

    These metrics are covered in detail in the LinkedIn Friends All Courses PassTG, YouTube, bots, channels and resources here