Section 13.14

Evidence eligibility

Definition

Evidence eligibility is the property of an attempt, meaning one run of an experiment, of being allowed to count as evidence in one particular analysis. Inclusion criteria decide it: yes-or-no tests, written down before the outcomes are seen, on recorded facts about the attempt. Typical criteria check that the intended software ran, that the environment met its declared conditions, and that the configuration and timing were as planned. Eligibility is separate from the outcome of the operation: a successful operation can be ineligible, and a failed one can be eligible.

The idea

A command finishes, reports success and gives a latency of 4 ms, the time from its request to its response. The experiment is about an otherwise idle machine, but a monitor shows that a software update ran on the same machine during the attempt. The operation worked and the 4 ms are real, but they describe a busier machine than the one the claim is about.

Three questions about an attempt therefore get separate answers: did the attempt run, did the operation succeed, and does the attempt count for this analysis. Athletics gives a fair picture. A 100-meter sprint run with a following wind above 2.0 meters per second is a real race with a real winner, but its time is not eligible for a record. The picture stops being accurate in one respect. A governing body fixes the athletics rules long before any race; in an experiment the analyst writes the rules, so they must be fixed before the outcomes are seen. A rule chosen after seeing the numbers becomes a way of picking the numbers.

Eligibility also works in the other direction. An attempt that timed out on an idle machine running the intended software is eligible. Its failure is real evidence, and leaving it out would make the system look more reliable than it is.

How it works

Deciding eligibility takes these steps.

  1. Declare the target population: the set of situations the claim is about, for example the operation performed by one specific build, on an idle machine, with one specific configuration.

  2. Write each inclusion criterion as a predicate, a test that gives true or false, over recorded facts about the attempt. Common criteria:

    • provenance: the recorded history of what ran, called artifact provenance §13.1, shows the intended program; for example, the digest of the executable that was loaded (a short value computed from the file’s bytes by a cryptographic hash function §5.1) equals the digest of the intended build;

    • environment: the declared conditions held; for example, no other process used more than 5% of the processor during the attempt;

    • configuration: the settings recorded at run time equal the planned settings;

    • completeness and timing: every expected record is present, and the attempt ran within its scheduled time window.

  3. Fix the criteria before the outcomes are seen, and keep a dated copy of them, for example in an analysis plan §13.17.

  4. Take the facts each criterion needs from a source other than the outcome, for example a separate monitor that logs processor load, so that an outcome cannot decide its own eligibility.

  5. Evaluate every criterion for every attempt. An attempt is eligible when all its criteria are true. Record the reason for every exclusion.

  6. Keep every attempt. An ineligible attempt stays in the records with its outcome and its reason. It is left out of one analysis, not deleted.

  7. Report three things separately: the operational outcome of each attempt, its eligibility with any reason for exclusion, and the performance over the eligible attempts, with the counts of attempts, eligible attempts and exclusions for each reason.

Worked example

An experiment declares one environment criterion: an attempt counts only if no other process used more than 5% of the processor during it. An attempt with no reply within 50 ms counts as timed out. Four attempts give these results.

Of the 4 attempts, 3 are eligible and 1 is excluded for background load. Among the 3 eligible attempts, 2 succeeded, a success rate of 2/3≈66.7%2 / 3 \approx 66.7\%. The mean latency of the eligible successful attempts is (2+9)/2=11/2=5.5(2 + 9) / 2 = 11 / 2 = 5.5 ms. Attempt 4 is eligible and counts against the success rate. Its latency is known only to exceed 50 ms, so it has no place in the mean latency.

Attempt 2 succeeded, and the report must not call it a failure; its 4 ms stays in the records, marked ineligible, with its reason. Excluding it raised the mean, since the mean of all three successful latencies is (2+4+9)/3=15/3=5(2 + 4 + 9) / 3 = 15 / 3 = 5 ms. The criterion exists to define the population, not to improve the number.

Stated precisely

Number the attempts i=1,…,ni = 1, \dots, n. Let c1,…,ckc_1, \dots, c_k be the inclusion criteria, each a function that maps the recorded facts about one attempt to true or false. Let Ei=1E_i = 1 when all kk criteria are true for attempt ii, and Ei=0E_i = 0 otherwise. Let Si=1S_i = 1 when attempt ii succeeded and Si=0S_i = 0 otherwise, and let YiY_i be its latency, defined when Si=1S_i = 1; a term with Si=0S_i = 0 contributes 0 to a sum. The eligible success rate and the eligible mean latency are ∑i=1nEiSi∑i=1nEiand∑i=1nEiSiYi∑i=1nEiSi.\frac{\sum_{i=1}^{n} E_i S_i}{\sum_{i=1}^{n} E_i} \qquad \text{and} \qquad \frac{\sum_{i=1}^{n} E_i S_i Y_i}{\sum_{i=1}^{n} E_i S_i}. Each is defined only when its denominator is greater than zero. In the example, E=(1,0,1,1)E = (1, 0, 1, 1) and S=(1,1,1,0)S = (1, 1, 1, 0). The success rate is (1+0+1+0)/(1+0+1+1)=2/3(1 + 0 + 1 + 0) / (1 + 0 + 1 + 1) = 2 / 3, and the mean latency is (1×2+0×4+1×9)/(1+0+1+0)=11/2=5.5(1 \times 2 + 0 \times 4 + 1 \times 9) / (1 + 0 + 1 + 0) = 11 / 2 = 5.5 ms.

These numbers describe the target population that the criteria define, not every condition under which the operation was attempted. They are free of selection by the analyst if three assumptions hold.

  1. Prospective criteria: the criteria were fixed before anyone saw the outcomes.

  2. Criteria on context, not on the outcome: no criterion tests SiS_i or YiY_i itself. A criterion that does, such as one that excludes latencies above 10 ms, turns the result into a conditional quantity, the mean of the latencies that passed the test, and the report must say so.

  3. Accurate context records: the facts the criteria test were recorded correctly and independently of the outcome.

Limits and common mistakes

Excluding attempts narrows the claim. A mean over attempts on an idle machine says nothing about a busy machine.

Excluding failures as invalid runs is the commonest mistake. Dropping a timeout that happened in the declared conditions overstates the success rate; this is survivorship bias §11.30, judging only by the cases that came through.

A criterion chosen after seeing the outcomes, or one that tests the outcome without saying so, introduces selection bias: the reported number reflects the choices of the analyst as much as the system.

Eligibility belongs to an attempt and an analysis together. The same attempt can be ineligible for an analysis of an idle machine and eligible for an analysis of behavior under load.

Ineligible does not mean deleted; deleted exclusions cannot be audited. A sensible criterion can also exclude every attempt, which leaves no estimate.

Eligibility does not check the measurement: an eligible attempt can still carry a wrong number from a faulty instrument.

Questions answered

Can an operation complete successfully yet be ineligible because provenance or environment failed?

Yes: success and eligibility answer different questions. Success says that the operation did its job; eligibility says whether the attempt measured the situation the analysis is about. If the provenance check fails, for example because the recorded history shows that the executable that ran was not the intended build, the result describes a different program. If the environment check fails, for example because another process loaded the machine during an attempt meant for an idle machine, the result describes a different environment. In both cases the operation succeeded and its value is real, yet it cannot support the claim.

The right record keeps the attempt, marks it as successful and ineligible, states the reason, and counts it among the exclusions. It is neither relabeled as a failure of the system nor deleted. The reverse case also exists: an operation that fails in the declared environment, running the intended software, is eligible and counts as a failure.

Related entries: Prospective exclusion rule (§13.15), Analysis plan (§13.17), Population and sample (§11.1), Conditional probability (§15.43), Artifact provenance (§13.1), Survivorship bias (§11.30).