Skip to content

Main content

Probability: Finite Support Endpoint Mass Tool

Extract endpoint atoms from an explicitly sorted finite probability distribution; duplicate/unsorted support and nonnormalized masses are rejected.

Loading tool…

Description

Extract endpoint atoms from an explicitly sorted finite probability distribution; duplicate/unsorted support and nonnormalized masses are rejected.

Event probabilities and probability masses lie between zero and one. Marginals, intersections, conditioning events, and endpoint atoms describe different quantities. A probability bound or local consistency check can constrain a model without specifying its complete distribution or dependence structure.

Extract endpoint atoms from an explicitly sorted finite probability distribution; duplicate/unsorted support and nonnormalized masses are rejected.

When to use this tool

Use Probability: Finite Support Endpoint Mass when you need the stated event identity, boundary policy, distribution component, or local feasibility check.

How to use the tool and how it works

  1. Enter support, probabilities. 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 result. Expand result to inspect the returned fields.

Require nonempty, equally sized support and probability arrays, strictly increasing numeric support, valid probabilities, and an absolute sum-to-one error at most 1e-12. Return the first and last support values and their associated masses inside result.1

Input fieldMeaning and unitsAccepted input
supportSupportRequired. Array of finite number. Implementation limit: 128 items.
probabilitiesProbabilitiesRequired. Array of finite number. Implementation limit: 128 items.
Output fieldInterpretationReturned shape
resultObject containing the calculated result members described below.Required. Object.
result.lowerEndpointLower EndpointCalculated result member: number.
result.upperEndpointUpper EndpointCalculated result member: number.
result.lowerMassLower MassCalculated result member: number.
result.upperMassUpper MassCalculated result member: number.
json
{
  "input": {
    "support": [
      1,
      2,
      4
    ],
    "probabilities": [
      0.2,
      0.3,
      0.5
    ]
  },
  "output": {
    "result": {
      "lowerEndpoint": 1,
      "upperEndpoint": 4,
      "lowerMass": 0.2,
      "upperMass": 0.5
    }
  }
}

Limitations and assumptions

  • Zero-mass entries can remain at the endpoints. These are the endpoints of the supplied array rather than necessarily the smallest and largest outcomes with positive mass.
  • Outputs are nested inside result. 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. Signed zero is exported as zero.

Alternative or Complementary methods

Use a full probability table or distribution when a local mass, bound, or identity is insufficient. Specify dependence, conditioning, support order, and endpoint policy before combining terms.

References

  1. Calculation and input contract: probability/finite-support-endpoint-mass — tool.io

Similar or alternative tools