Skip to main content

The scoring math behind US Directory, in five formulas

Diminishing returns, decaying penalties, Wilson bounds and a stability test for rankings

Updated 2 min readMarkdown

US Directory publishes the method it uses to describe local service businesses from public records. Release 3.0 made the weights and formulas public, and a machine-readable copy lives in an open repository. Here is a short tour of the math.

1. Diminishing returns for counts

Years in business, certifications, posted prices and similar counts share one shape:

log_cap(x, cap) = min(1, ln(1 + x) / ln(1 + cap))

With a cap of 25 years, 5 years give about 0.55 and 10 years about 0.74. The first units matter most, and the value never exceeds 1.

2. Penalties that fade with time

Disciplinary events use one formula for every event type:

value = exp(-sum(severity * exp(-age_years / tau)) / scale), scale = 50, tau = 3

No events give 1. Events older than seven years are ignored.

3. Proportions from small samples

Shares such as passed final inspections are taken at their Wilson lower bound at 90% confidence, and shares built on fewer than ten observations stay unscored. Small samples cannot produce a perfect value by luck.

4. A score that decomposes exactly

score = 100 * sum(weight * value) / sum(weight)

Both sums run over the factors that could be checked. Each factor's contribution is 100 * weight * value / sum(weight), so the contributions add up exactly to the score, and every point can be traced to one factor.

5. Confidence, separate from the score

Confidence weighs how much was checked and how strong the evidence is (agency records count 1.0, site statements less), multiplied by a term that rewards independent source families. A poor license match lowers confidence but leaves the score unchanged.

A stability test before ranks appear

Rank numbers are shown only when the leading scores are spread out enough and stay put when the weights are randomly redrawn 500 times. Otherwise results are shown in tiers without numbers.

The full methodology is available at usd.org.

US Directory

About the author

  • Local service businesses, read through the public record. US Directory helps people look into a local service company by its records.

No comments yet. Be the first to comment.