Pro PickleballClub
Open source · Club Rating specification

Club Rating methodology

The formula section of the rating specification, exactly as the engine implements it. Ratings are integer thousandths; every step is deterministic.

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 behaviorClub Rating equivalent
2.000-8.000 scale, three decimalsSame display scale, stored as integer milli-rating
Separate singles and doubles ratingsDoubles only in v1; singles reserved
Doubles side strength from partner ratingsArithmetic 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 ratingExpected point share versus actual point share
Reliability score from volume, recency, and partner/opponent varietyReliability 0-100 from recency-weighted match count and distinct co-players
Verified results weigh more than self-reported onesPer-match source weight; every v1 official league match has weight 1
Unrated players start from a defaultSelf-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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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:

PolicyFixed behavior
Rating familyLogistic expected point share, base 10
Doubles strengthArithmetic mean of the two partners' pre-period ratings
PeriodOne occurrence: all current official matches in it
Period orderingOccurrence start, then stable occurrence ID
Match ordering inside periodNo rating effect; every match reads the same pre-period state
EligibilityEvery current official match in a rated season, including standings-ineligible and playoff matches; anonymized-history simulation may evaluate unrated official facts without writing ratings
RecipientActual players, not credited standing recipients
SeedImmutable seed fact: self-reported doubles DUPR snapshot, else configured default
ReliabilityRecency-weighted volume times partner/opponent variety; decays with inactivity
Established protectionReliable players move less against unreliable opposition
Bounds2.000-8.000; per-match and per-period caps
Storage/displayInteger milli-rating after each period; reliability shown as integer 0-100
Rating decayNone
CorrectionsRebuild 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_only

engineSemanticsVersion 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.

ParameterProvisional rangeIntent
expectationScale1500-3000 milliA 0.5 side gap expects about a 60-68% point share
kNew0.300-0.800New players converge within a few league nights
kEstablished0.050-0.150Established ratings move a few hundredths per match
establishedProtection0.3-0.7Damps established movement against unreliable opponents
reliabilityHalfLifeDays90-180Volume older than a season counts for less
reliabilityHalfVolumeMatches8-20Matches needed for 50% volume
varietyCap8-20Distinct co-players needed for full variety
varietyFloor0.3-0.6Reliability ceiling for a closed group
perMatchDeltaCap0.100-0.250Safeguard, rarely hit
perPeriodDeltaCap0.300-0.600Safeguard, rarely hit
seedPriorMatches0-2 reported, 0 noneCredit for a self-report
defaultSeedRating3500Matches 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.