Relationship To DUPR
DUPR's algorithm is proprietary and is not published, so this engine is written independently. It borrows only DUPR's publicly observable behavior:
| Public DUPR behavior | Club Rating equivalent |
|---|---|
| 2.000-8.000 scale, three decimals | Same display scale, stored as integer milli-rating |
| Separate singles and doubles ratings | Doubles only in v1; singles reserved |
| Doubles side strength from partner ratings | Arithmetic mean of the two partners' pre-period ratings |
| Rating moves on points won versus expected, so a close loss to stronger players can raise a rating | Expected point share versus actual point share |
| Reliability score from volume, recency, and partner/opponent variety | Reliability 0-100 from recency-weighted match count and distinct co-players |
| Verified results weigh more than self-reported ones | Per-match source weight; every v1 official league match has weight 1 |
| Unrated players start from a default | Self-reported DUPR seed, else configured default 3.500 |
Self-reported DUPR values are seed inputs only. The platform never calls its own number "DUPR", "DUPR-like", or an estimate of DUPR in product copy, APIs, or exports; it is the "Club Rating". Official DUPR export (CSV to a DUPR Club, later the Partner API) is deferred and independent of this engine.
Public Formula
This section is the plain-language version published to players.
- Your starting rating is the DUPR doubles rating you reported when you first played in a rated season. If you didn't report one, you start at 3.500. Changing your reported DUPR later doesn't change your Club Rating; your results do.
- Each match has an expected score. Your side's strength is the average of you and your partner. If your side is stronger, you're expected to win more than half the points. With the starting constants, a side 0.5 stronger is expected to win roughly 64% of the points.
- You move by how you did against that expectation. We compare the share of points your side actually won with the share it was expected to win. Beating the expectation raises your rating, falling short lowers it. That's why a close 13-15 loss to a much stronger side can still raise your rating, and an 11-9 win over a much weaker side can lower it.
- How far you move depends on reliability. New and infrequent players have low reliability and move faster. Established players move slower, and move even less when their opponents are new, so a newcomer's unknown rating can't swing an established rating much.
- A league night counts as one batch. Every match you play in one league night uses your rating from the start of that night. The movement from each match is added up, capped, and applied once at the end, so the order of matches never matters.
- Ratings stay between 2.000 and 8.000 and never decay. If you stop playing, your rating stays where it was but your reliability slowly falls, so you'll move faster again when you come back.
- Corrections rebuild history. If an official score is corrected, every affected rating is recomputed from the corrected facts.
Fixed Policies
Every candidate preserves these rules:
| Policy | Fixed behavior |
|---|---|
| Rating family | Logistic expected point share, base 10 |
| Doubles strength | Arithmetic mean of the two partners' pre-period ratings |
| Period | One occurrence: all current official matches in it |
| Period ordering | Occurrence start, then stable occurrence ID |
| Match ordering inside period | No rating effect; every match reads the same pre-period state |
| Eligibility | Every current official match in a rated season, including standings-ineligible and playoff matches; anonymized-history simulation may evaluate unrated official facts without writing ratings |
| Recipient | Actual players, not credited standing recipients |
| Seed | Immutable seed fact: self-reported doubles DUPR snapshot, else configured default |
| Reliability | Recency-weighted volume times partner/opponent variety; decays with inactivity |
| Established protection | Reliable players move less against unreliable opposition |
| Bounds | 2.000-8.000; per-match and per-period caps |
| Storage/display | Integer milli-rating after each period; reliability shown as integer 0-100 |
| Rating decay | None |
| Corrections | Rebuild from the earliest affected period |
Algorithm Configuration
Persist every candidate as immutable RatingAlgorithmConfigV1. The server supplies the engine identity.
schemaVersion: 1
engineSemanticsVersion: complete deterministic execution identifier
engineBuildDigest: SHA-256 of encoder, transition, projection/replay bundle, and exact decimal dependency
minimumRating: integer milli, at least 2000
maximumRating: integer milli, at most 8000, greater than minimumRating
defaultSeedRating: integer milli within bounds
seedPriorMatches: { player_reported, organizer_reported, none }: canonical decimal 0-10 each
expectationScale: positive integer milli (S)
kNew: canonical decimal rating units
kEstablished: canonical decimal rating units, less than kNew
establishedProtection: canonical decimal in [0, 1]
reliabilityHalfLifeDays: integer 1-3650
reliabilityHalfVolumeMatches: canonical decimal greater than 0
varietyCap: integer 1-100
varietyFloor: canonical decimal in [0, 1]
sourceWeights: { league_official: exactly 1 }
perMatchDeltaCap: positive integer milli
perPeriodDeltaCap: positive integer milli, at least perMatchDeltaCap
integerRounding: half_away_from_zero | half_to_even
teamStrength: arithmetic_mean
inactivityPolicy: reliability_decay_onlyengineSemanticsVersion changes whenever transition, folding, replay order, checkpoint interpretation, encoding, scales, or rounding changes; CI golden outputs fail when behavior changes without it. engineBuildDigest changes whenever any code in that bundle or the decimal dependency changes. algorithmConfigHash uses domain ppc-rating-config-v1 over the decoded config including engine identity.
Encode decimals as canonical non-negative strings with at most six fractional digits, no exponent, and no insignificant zeroes. Decode kNew/kEstablished to micro-rating, fractions to ppm, and seedPriorMatches/reliabilityHalfVolumeMatches to micro-matches before hashing or calculation. Require (maximumRating - minimumRating) / expectationScale <= 8 so every expected share stays strictly inside (0, 1) at ppb precision.
Provisional Starting Ranges
These ranges seed the first candidate search. They are provisional and not settled defaults; the activated values are whatever the published comparison selects.
| Parameter | Provisional range | Intent |
|---|---|---|
expectationScale | 1500-3000 milli | A 0.5 side gap expects about a 60-68% point share |
kNew | 0.300-0.800 | New players converge within a few league nights |
kEstablished | 0.050-0.150 | Established ratings move a few hundredths per match |
establishedProtection | 0.3-0.7 | Damps established movement against unreliable opponents |
reliabilityHalfLifeDays | 90-180 | Volume older than a season counts for less |
reliabilityHalfVolumeMatches | 8-20 | Matches needed for 50% volume |
varietyCap | 8-20 | Distinct co-players needed for full variety |
varietyFloor | 0.3-0.6 | Reliability ceiling for a closed group |
perMatchDeltaCap | 0.100-0.250 | Safeguard, rarely hit |
perPeriodDeltaCap | 0.300-0.600 | Safeguard, rarely hit |
seedPriorMatches | 0-2 reported, 0 none | Credit for a self-report |
defaultSeedRating | 3500 | Matches common recreational convention |
Deterministic Transition
Arithmetic Contract V1
milliPerRating = 1_000 stored rating unit microPerMilli = 1_000 internal delta unit is micro-rating fractionUnit = 1_000_000 ppm; also micro-matches per match probabilityUnit = 1_000_000_000 ppb
Use bigint for every value after boundary decoding. roundDivHalfEven(n, d) divides absolute values, rounds exact ties to even, then restores sign; roundDivHalfAwayFromZero rounds ties away from zero. Every division below uses half-even unless stated; do not reassociate or pre-round. Only the final micro-to-milli conversion uses the configured rounding.
The only transcendental operations are the two below. Use exactly pinned decimal.js through a private cloned constructor with 50 significant digits and ROUND_HALF_EVEN; never Math.pow, Math.exp, floats, or a process-wide decimal configuration. Golden tests compare Node and workerd byte-for-byte.
expectedShare(sumA, sumB): exponent = Decimal(sumB - sumA) / Decimal(2 * expectationScale) expectedA = 1 / (1 + 10 ^ exponent) expectedAppb = half-even integer(expectedA * probabilityUnit) decayFactor(days): decayPpb = half-even integer(2 ^ (-days / reliabilityHalfLifeDays) * probabilityUnit)
sumA and sumB are integer milli team sums, so no half-milli average is rounded.
Pre-Period State
For every player in the period, load working state or initialize from the seed:
rating: integer milli seed: reportedDoublesRating or defaultSeedRating ratedMatchCount: integer seed: 0 volumeMicro: micro-matches seed: seedPriorMatches[seedSource] coPlayers: sorted IDs, at most varietyCap seed: empty lastRatedDate: optional date seed: absent
Decay volume to the period date:
days = competitionDate - lastRatedDate, or 0 when absent volumeBefore = roundDivHalfEven(volumeMicro * decayFactor(days), probabilityUnit)
Reliability before the period:
volumePpm = roundDivHalfEven(volumeBefore * fractionUnit,
volumeBefore + reliabilityHalfVolumeMicro)
varietyPpm = roundDivHalfEven(min(len(coPlayers), varietyCap) * fractionUnit, varietyCap)
varietyFactorPpm = varietyFloorPpm
+ roundDivHalfEven((fractionUnit - varietyFloorPpm) * varietyPpm, fractionUnit)
reliabilityPpm = roundDivHalfEven(volumePpm * varietyFactorPpm, fractionUnit)All matches in the period read this same state.
Expected And Actual Share
expectedAppb = expectedShare(ratingA1 + ratingA2, ratingB1 + ratingB2) expectedBppb = probabilityUnit - expectedAppb actualAppb = roundDivHalfEven(scoreA * probabilityUnit, scoreA + scoreB) actualBppb = probabilityUnit - actualAppb
A legal score is never 0-0, so the denominator is positive.
Effective Update Coefficient
For each player and match:
baseKMicro = kEstablishedMicro + roundDivHalfEven((kNewMicro - kEstablishedMicro) * (fractionUnit - reliabilityPpm), fractionUnit) opponentReliabilityPpm = roundDivHalfEven(opponent1ReliabilityPpm + opponent2ReliabilityPpm, 2) protectionReductionPpm = roundDivHalfEven( protectionPpm * reliabilityPpm * (fractionUnit - opponentReliabilityPpm), fractionUnit * fractionUnit ) effectiveKMicro = roundDivHalfEven(baseKMicro * (fractionUnit - protectionReductionPpm), fractionUnit)
Reliability is fixed for the whole period, so match order cannot affect any coefficient.
Match And Period Delta
errorPpb = actualSidePpb - expectedSidePpb rawMatchDeltaMicro = roundDivHalfEven( effectiveKMicro * sourceWeightPpm * errorPpb, fractionUnit * probabilityUnit ) boundedMatchDeltaMicro = clamp(rawMatchDeltaMicro, ±perMatchDeltaCap * microPerMilli)
Sum bounded deltas in canonical match-ID order, clamp once to ±perPeriodDeltaCap * microPerMilli, round to milli with the configured rule, then:
ratingAfter = clamp(ratingBefore + roundedPeriodDelta, minimumRating, maximumRating) actualPeriodDelta = ratingAfter - ratingBefore
Update state:
ratedMatchCount += periodAppearances volumeMicro = volumeBefore + sum(sourceWeightPpm over the player's matches) coPlayers = add this period's partners and opponents in canonical ID order until varietyCap lastRatedDate = competitionDate
Persist the actual post-bound delta, never the unclipped proposal. Do not serialize Decimal instances or floats.
Read models may show reliability as of today by applying the same decay to today's date. That value is display-only and never an engine input.