Skip to content

Main content

Campaign Test Cell Allocation Rounding Tool

Floor the first cell allocation and give the exact remainder to the second.

Loading tool…

Description

Floor audience × firstFraction for first and assign the remainder to second.

Weights, counts, and capacities determine an allocation only under a chosen normalization and rounding policy. A conserved total does not establish fairness or suitability.

Floor audience × firstFraction for first and assign the remainder to second.

When to use this tool

Use Campaign Test Cell Allocation Rounding when you need one explicit allocation or weight-change calculation.

How to use the tool and how it works

  1. Enter audience, firstFraction. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read first, second, roundingError. Use the output convention below.

Floor audience × firstFraction for first and assign the remainder to second. Return first minus its unrounded target as roundingError.1

Input fieldMeaning and unitsAccepted input
audienceAudienceRequired. Safe integer; minimum 0.
firstFractionFirst FractionRequired. Finite number; minimum 0; maximum 1.
Output fieldInterpretationReturned shape
firstFirstRequired. Safe integer.
secondSecondRequired. Safe integer.
roundingErrorRounding ErrorRequired. Finite number.
json
{
  "input": {
    "audience": 101,
    "firstFraction": 0.5
  },
  "output": {
    "first": 50,
    "second": 51,
    "roundingError": -0.5
  }
}

Limitations and assumptions

  • This is deterministic count allocation, not random assignment, stratification, or an experimental power calculation.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Check totals, indivisibility, eligibility, and policy constraints across all recipients or criteria.

References

  1. Calculation and input contract: marketing/campaign-test-cell-allocation-rounding — tool.io

Similar or alternative tools