Skip to content

Main content

Choice Set Availability Share Tool

Audit supplied choice-set availability without inferring preferences or purchase behavior.

Loading tool…

Description

Return availability share after excluding supplied option IDs.

Consumer-study records can describe exposure, recall, option availability and purchase-value bases. Local record arithmetic preserves a supplied study or billing convention without measuring preferences, establishing memory accuracy or determining consumer rights.

Return availability share after excluding supplied option IDs.

When to use this tool

Use Choice Set Availability Share when checking a supplied consumer-record, recall-window, choice or basket convention.

How to use the tool and how it works

  1. Enter options, available, excluded. Keep parallel arrays aligned. 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 availableCount, eligibleCount, share, defined. Inspect defined before interpreting the associated values.

Return availability share after excluding supplied option IDs. Require aligned unique options and availability flags; count eligible nonexcluded options and available members, divide or return zero with defined false.1

Input fieldMeaning and unitsAccepted input
optionsOptionsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
availableAvailableRequired. Array of boolean; maximum items 256.
excludedExcludedRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
Output fieldInterpretationReturned shape
availableCountAvailable CountRequired. Safe integer.
eligibleCountEligible CountRequired. Safe integer.
shareDimensionless numerator/denominator ratio under the explicit basis above.Required. Finite number.
definedWhether the stated denominator or information basis permits interpretation of the associated value; inspect before using a placeholder.Required. Boolean.
json
{
  "input": {
    "options": [
      "A",
      "B",
      "C"
    ],
    "available": [
      true,
      false,
      true
    ],
    "excluded": [
      "C"
    ]
  },
  "output": {
    "availableCount": 1,
    "eligibleCount": 2,
    "share": 0.5,
    "defined": true
  }
}

Limitations and assumptions

  • Literal flags and exclusions do not establish actual stock, accessibility or consumer access.
  • 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.

Alternative or Complementary methods

Use actual study data, validated measurement methods and applicable merchant/consumer rules for substantive behavioral or transaction conclusions.

References

  1. Calculation and input contract: consumer-behavior/choice-set-availability-share — tool.io

Similar or alternative tools