FAILURE MAP
← Case archive

FA-13166 / Numerical aggregation / Open access

Frequency central scatter: Only the most deviant support point contributes to scatter. · case 01

The reduction disagrees with its explicit aggregation oracle.

Verified by executionVariant 1 · 9 checks per implementationDownload source bundle ↓JSON ↗

ROOT CAUSE

Only the most deviant support point contributes to scatter.

THE FAILURE

Only the most deviant support point contributes to scatter.

Unsuccessful approach: Keeping only one side drops compensating deviations that still contribute positive scatter.

Case contract

Rows [integer value, nonnegative frequency] represent replicated observations. Return unnormalised sum of squared deviations from their exact replicated mean as a Fraction string; zero total frequency returns None.

Why this case matters

Exact bounded examples isolate a reduction defect without floating-point or external-service effects.

1 / The failure

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
from fractions import Fraction
from collections import Counter, defaultdict
import math
import itertools
N = 1
observations = []
def solve(rows):
    total=sum(w for x,w in rows)
    if total==0: return None
    center=Fraction(sum(x*w for x,w in rows),total)
    return str(max(w*(x-center)**2 for x,w in rows))
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('regression 1', solve(*([(1, 2), (1, 2), (4, 1)],)), '36/5')
check('regression 2', solve(*([(1, 2), (4, 1)],)), '6')
check('regression 3', solve(*([(0, 1), (0, 3)],)), '0')
check('regression 4', solve(*([],)), None)
check('regression 5', solve(*([(3, 0), (8, 0)],)), None)
check('regression 6', solve(*([(9, 1), (-2, 3), (5, 2)],)), '689/6')
check('regression 7', solve(*([(7, 3), (1, 0)],)), '0')
check('regression 8', solve(*([(1, 1), (2, 1), (5, 1)],)), '26/3')
check("variable replication scatter",solve([(0,N),(2,N)]),str(2*N))
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
regression 1144/2536/5Failed
regression 246Failed
regression 300Passed
regression 4NoneNonePassed
regression 5NoneNonePassed
regression 6625/12689/6Failed
regression 700Passed
regression 849/926/3Failed
variable replication scatter12Failed

SHA-256 / 95a21cef8bf4968c39c7e3d344498f8f8dc2839ea6d3d84b470de5a8f4056c90

2 / The unsuccessful fix

Exit 1
"""Failure Map reference implementation. Python standard library only."""
import json
from fractions import Fraction
from collections import Counter, defaultdict
import math
import itertools
N = 1
observations = []
def solve(rows):
    total=sum(w for x,w in rows)
    if total==0: return None
    center=Fraction(sum(x*w for x,w in rows),total)
    return str(sum(w*(x-center)**2 for x,w in rows if x>=center))
def check(label, actual, expected):
    observations.append({"check": label, "actual": actual, "expected": expected, "passed": actual == expected})
check('regression 1', solve(*([(1, 2), (1, 2), (4, 1)],)), '36/5')
check('regression 2', solve(*([(1, 2), (4, 1)],)), '6')
check('regression 3', solve(*([(0, 1), (0, 3)],)), '0')
check('regression 4', solve(*([],)), None)
check('regression 5', solve(*([(3, 0), (8, 0)],)), None)
check('regression 6', solve(*([(9, 1), (-2, 3), (5, 2)],)), '689/6')
check('regression 7', solve(*([(7, 3), (1, 0)],)), '0')
check('regression 8', solve(*([(1, 1), (2, 1), (5, 1)],)), '26/3')
check("variable replication scatter",solve([(0,N),(2,N)]),str(2*N))
print(json.dumps({"observations": observations, "passed": all(x["passed"] for x in observations)}, ensure_ascii=False))
raise SystemExit(0 if all(x["passed"] for x in observations) else 1)
Boundary fixtureActualExpectedOutcome
regression 1144/2536/5Failed
regression 246Failed
regression 300Passed
regression 4NoneNonePassed
regression 5NoneNonePassed
regression 6251/4689/6Failed
regression 700Passed
regression 849/926/3Failed
variable replication scatter12Failed

SHA-256 / 4bff7da72e2002c26b07c4de462bbc1852b60475c329960df4e4844ae3f54516

HELD IN THE MEMBER ARCHIVE

The verified repair and its recorded checks are member-only.

This mechanism has 9 recorded checks per implementation. The open-access tier publishes the failure and the unsuccessful fix; the repaired source that passes every check, and the observations that prove it, are available to members.

Every case sharing this mechanism uses the same contract and the same repair, so this one record is held back for all of them.

Member access is invitation-based. Sign in with your invited account to inspect the repair.

Sign in to the archive ↗

Verification & scope

Small offline integer/rational inputs only; no performance, statistical inference, or production-library conformance claim. This reproducer isolates one failure mechanism. Results cover the supplied fixtures. Variants within a family share a test contract and should remain grouped when constructing evaluation splits. Related mechanisms with a shared evaluation_group must also remain together; these controlled models are not independent production incidents.

Observations recorded using Python 3.12.14 at 2026-09-29T14:39:04.229740+00:00.

Case digest / e249286fb8d0a66024244e5b1e27bc1e86833734060cb6e16df7c5882979ebd2