FA-6315 / Statistics / Member archive
Average ranks with ties · case 05
Each tied group receives its first rank rather than average rank.
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. Ascending ranks start at one and ties receive the mean occupied rank as a Fraction string; preserve original order. Exact operational definition: [str(Fraction(sum(i+1 for i,x in enumerate(sorted(values)) if x==v),values.count(v))) for v in values]
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: ([30, 10, 10, 20],) | ["4", "1", "1", "3"] | ["4", "3/2", "3/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 ↗