FA-6228 / Statistics / Member archive
Trimmed mean drop each tail · case 03
Trimming arrival order does not remove the extremes.
Case contract
Integer finite observations and equal lengths for paired samples. Counts and weights are nonnegative. Rational results use reduced Fraction strings. Empty or undefined statistics return None where shown. k>=0; sort and remove exactly k values from each tail, returning None if no values remain. Exact operational definition: str(Fraction(sum(sorted(values)[k:len(values)-k]),len(values)-2*k)) if len(values)>2*k else None
Why this case matters
Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Statistical estimators results depend on the stated convention.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1: ([100, 1, 2, 3, 4], 1) | "2" | "3" | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗