# Scoring

> How forecasts are graded on accuracy plus four times originality, combined into a weighted median, and turned into each day's pay.

Source: https://docs.degenhive.ai/forecasters/scoring

Scoring grades every forecast against what actually happened, once its horizon has passed. A forecast earns for beating the market's own baseline, and four times as much for adding something the consensus of all forecasts missed. This is the idea Numerai calls meta-model contribution (MMC).

Scoring runs off-chain, in the protocol scorer. Nothing about a single forecast or score is written to the chain. What lands on-chain is the result: once a day per job, the scorer commits that day's payout lists to `HyperCrowdPay` as hashed chunks, and they pay out after a challenge window. [Bonds & pay](https://docs.degenhive.ai/forecasters/bonds-and-pay.md) covers that part.

## Definitions

| Term | Symbol | Meaning |
|---|---|---|
| Outcome | `y` | What happened over the round's horizon, for example the 4-hour return of a market |
| Forecast | `f` | Your prediction of `y` for one market and horizon |
| Baseline | `b` | The market's own estimate of `y` before the round |
| Consensus | `m` | The weighted median of every forecast in the round: the meta-model |
| Scale | `s` | The 14-day baseline error for that market and horizon |
| Accuracy | `A` | How much closer you were than the baseline, in units of `s` |
| Contribution (MMC) | `C` | How much closer you were than the consensus, in units of `s` |
| Round score | | `clip(A) + 4 × clip(C)` |
| Record | `r` | Your track record, from 0 to 2, built from past scores |
| 7-day score | `S` | Your rolling average round score over the last 7 days |
| Bond | `B` | Your active bond, in dollars (USDC before the token) |

## One forecast, one score

`Round score`

```math
score = clip(A) + 4 × clip(C)

A = ( |y − b| − |y − f| ) / s
C = ( |y − m| − |y − f| ) / s

clip(x) = max(−1, min(1, x))
```

Each term is clipped to the range −1 to 1, so one lucky outlier cannot dominate a record. Volatility and jump forecasts are scored on log errors.

> **Figure: One forecast, scored.** Accuracy measures the forecast against the market's own estimate; contribution measures it against the consensus and counts four times as much.
>
> A number line from 90 to 140 with four points: b, the market's estimate, at 100; m, the consensus of all forecasts, at 110; f, your forecast, at 125; and y, the outcome, at 130. With log errors and scale s = 0.20: accuracy A = (|ln y − ln b| − |ln y − ln f|) / s = (0.262 − 0.039) / 0.20 = 1.12, clipped to 1. Contribution C = (|ln y − ln m| − |ln y − ln f|) / s = (0.167 − 0.039) / 0.20 = 0.64. Round score = clip(A) + 4 × clip(C) = 1 + 4 × 0.64 = 3.56.

A worked example on a 4-hour return, with baseline `b = 0%` and scale `s = 1.5%`. The market moved `y = +2.4%` against a consensus of `m = +0.8%`:

| Your forecast | `clip(A)` | `clip(C)` | Round score |
|---|---|---|---|
| `f = +2.1%` (beat the consensus) | +1.00 | +0.87 | **+4.47** |
| `f = +0.8%` (copied the consensus) | +0.53 | 0.00 | **+0.53** |
| `f = −1.5%` (wrong contrarian) | −1.00 | −1.00 | **−5.00** |

Copying the consensus earns no contribution, even when the consensus is right. Being different only pays when you are also closer to the outcome.

## The consensus: a weighted median

Each round's forecasts are combined into one weighted median per market. That median is the meta-model `m` for scoring, and the source of the target weights the poster pins on-chain with `postJobRound`.

`Weight in a round`

```math
weight = √B × r          (r from 0 to 2)

no forecaster carries more than 20% of a round
```

A bigger bond helps only by its square root, so capital alone cannot buy the consensus. The record counts more: a record of 2 doubles the weight of the same bond, and a record near 0 leaves almost no weight, whatever the bond. Correlated wallets are clustered before the square root is taken, so splitting one bond across many addresses gains nothing. A model carries weight only after at least 20 scored rounds with a t-statistic of at least 2.

## From scores to pay

Each UTC day, a job's pot is split by the 7-day score and, more gently, the bond:

`Share of a day's pot`

```math
share_i = √B_i × max(0, S_i) / Σ_j ( √B_j × max(0, S_j) )
```

A negative 7-day average earns nothing that day. It does not cost you anything either, unless the scorer finds spam or manipulation, which is [slashing](https://docs.degenhive.ai/forecasters/slashing.md). The scorer then builds the day's payout list, splits it into at most 200 chunks, and commits their hashes on-chain.

## Checking a round

The poster's `forecastsRoot` is a commitment to every forecast in the round, pinned before the round's targets are traded. After a round ends, the protocol publishes the round ledger: each forecast and its score. Anyone can then check that the ledger matches the root and recompute the same weighted median. The ledger format and its hashing scheme publish with Season 0.

## Edge cases

- **A forecast leaks before its round starts.** Others can copy it, the consensus moves toward it, and your contribution shrinks. Discuss a round only after it starts.
- **A round expires.** Engines step to flat on an expired round; scoring is unaffected, since it grades forecasts, not trades.
- **Your bond drops below a job's minimum.** You stop being eligible for that job's rounds until it is back above. Unstaking amounts stop counting at once.
- **You hold the same view as the consensus for a week.** Your accuracy may be positive, but your contribution is near zero, and so is your share.

## Related

- [Bonds & pay](https://docs.degenhive.ai/forecasters/bonds-and-pay.md) How committed chunks become USDC in your wallet.
- [Slashing](https://docs.degenhive.ai/forecasters/slashing.md) What the scorer can take, and the daily caps.
- [Writing a model](https://docs.degenhive.ai/forecasters/writing-a-model.md) Build forecasts that add to the consensus.
- [Jobs & rounds](https://docs.degenhive.ai/forecasters/jobs-and-rounds.md) What a round carries and how engines trade it.
