Skip to content

Main content

Audit Sample Selection Weight One Record Tool

One Horvitz-Thompson contribution from a supplied inclusion probability.

Loading tool…

Description

One Horvitz-Thompson contribution from a supplied inclusion probability.

Quality records separate measured results, reference values, acceptance rules, and supporting evidence. Arithmetic consistency and record coverage can be checked against supplied criteria without establishing traceability, approving a method, or deciding product conformity.

One Horvitz-Thompson contribution from a supplied inclusion probability.

When to use this tool

Use it for audit sample selection weight one record when the required inputs and conventions are already available.

How to use the tool and how it works

  1. Enter inclusionProbability, observedValue, eligiblePopulation. Use the stated units and boundary conventions.
  2. Run the calculation. Correct any input error before interpreting a result.
  3. Read weight, totalContribution, meanContribution. Inspect any known, defined, inclusion, or boundary flags before interpreting numeric values.

Require inclusionProbability greater than zero and no greater than one and positive eligiblePopulation. Return weight=1/inclusionProbability, totalContribution=observedValue/inclusionProbability, and meanContribution=totalContribution/eligiblePopulation.1

Input fieldMeaning and unitsAccepted input
inclusionProbabilityPositive inclusion probability no greater than one; not a percentage numeral.Required. Finite number; maximum 1; strictly above 0.
observedValueObserved ValueRequired. Finite number.
eligiblePopulationEligible PopulationRequired. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
weightWeightRequired. Finite number.
totalContributionTotal ContributionRequired. Finite number.
meanContributionMean ContributionRequired. Finite number.
json
{
  "input": {
    "inclusionProbability": 0.2,
    "observedValue": 5,
    "eligiblePopulation": 100
  },
  "output": {
    "weight": 5,
    "totalContribution": 25,
    "meanContribution": 0.25
  }
}

Limitations and assumptions

  • This is one record's inverse-probability contribution, not a complete sample estimate or variance. The inclusion probability and eligible population are not estimated or validated against a sampling design.
  • The field tables describe structural bounds; the mechanics also state cross-field requirements. Malformed input shapes, disallowed keys, and invalid domains cause input errors. Results must remain finite and within the declared output contract. A successful false flag or zero placeholder is distinct from an error.
  • Numeric arithmetic uses binary floating point. Exact comparisons have no hidden tolerance or decimal rounding; negative zero is exported as zero. Decimal-text integer operations retain the exactness specifically stated above.

Alternative or Complementary methods

For audit sample selection weight one record, check the source records and the supplied rule before comparing the result with another method. Use a separate evidence or method review when arithmetic consistency alone cannot establish the required conclusion.

References

  1. Calculation and input contract: quality-assurance/audit-sample-selection-weight-one-record — tool.io

Similar or alternative tools