Skip to content

Main content

Cohort Age Boundary Gap Tool

Calculate cohort age boundary gap from explicit caller-supplied inputs.

Loading tool…

Description

Return age margins and membership in a supplied cohort bin.

Business timing and cohort summaries depend on event origins, bucket boundaries and the treatment of incomplete records. A time difference or bucket label is a supplied record convention rather than proof of customer behavior, completed service or future retention.

Return age margins and membership in a supplied cohort bin.

When to use this tool

Use Cohort Age Boundary Gap when checking the stated business timing or cohort convention.

How to use the tool and how it works

  1. Enter age, binLower, binUpper, includeLower, includeUpper. 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 lowerGap, upperGap, inBin. Inspect inBin before interpreting the associated values.

Return age margins and membership in a supplied cohort bin. Require binUpper >= binLower; lowerGap = age-lower, upperGap = upper-age, inBin applies both endpoint-inclusion flags.1

Input fieldMeaning and unitsAccepted input
ageAgeRequired. Finite number.
binLowerBin LowerRequired. Finite number.
binUpperBin UpperRequired. Finite number.
includeLowerInclude LowerRequired. Boolean.
includeUpperInclude UpperRequired. Boolean.
Output fieldInterpretationReturned shape
lowerGapLower GapRequired. Finite number.
upperGapUpper GapRequired. Finite number.
inBinIn BinRequired. Boolean.
json
{
  "input": {
    "age": 5,
    "binLower": 0,
    "binUpper": 5,
    "includeLower": true,
    "includeUpper": false
  },
  "output": {
    "lowerGap": 5,
    "upperGap": 0,
    "inBin": false
  }
}

Limitations and assumptions

  • The age unit and policy are supplied; a coincident bin includes its point only when both ends are closed.
  • 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

Use complete event records and a defined cohort/period policy; evaluate commercial performance and uncertainty with appropriate complete analyses.

References

  1. Calculation and input contract: business-analytics/cohort-age-boundary-gap — tool.io

Similar or alternative tools