Local confidence

Local confidence is a measure from 0 to 1 of how likely a given price range is to be correct at a specific time, based on the distribution of active, stake-weighted bets.

It answers the question: "Given that a bet resolves at time x, what is the probability that the actual price will fall within a specific price range [y1, y2]?"

Local confidence is computed using the current market's kernel density estimate (KDE) of all outstanding bets, weighted by stake and linearly adjusted for decay (i.e. how long ago each bet was placed).

  1. A vertical slice of the 2D KDE surface is taken at the desired time x.

  2. This slice is normalized so that its total probability sums to 100% (i.e. the price must hit some value at time x).

  3. The percentage of this probability mass that falls within the desired price range [y1, y2] is summed: this is the Local confidence value.

Underlying math:

  1. Raw input data Each bet is defined by:

    • Resolution time xᵢ

    • Price center yᵢ

    • Stake size sᵢ

    • Time since placed tᵢ

  2. Decay-adjusted weight Each bet’s influence decays over time: wi=sieritiw_i = s_i \cdot e^{-r_i \cdot t_i}

    Where:

    • sᵢ is the stake

    • rᵢ is the decay rate (e.g. 1–10% daily)

    • tᵢ is time since placement in days

  3. Kernel density estimation To estimate the smooth probability surface P(x, y): P(x,y)=1Zi=1nwiK(xxi,yyi)P(x, y) = \frac{1}{Z} \sum_{i=1}^{n} w_i \cdot K(x - x_i, y - y_i)

    Where:

    • K() is a 2D Gaussian kernel

    • Z is a normalization constant

    This gives us a continuous probability field over all time-price combinations.

  4. Local confidence formula For a fixed time x, the Local confidence for a price range [y₁, y₂] is: LocalConfidence[y1,y2](x)=y1y2P(x,y)dyP(x,y)dy\text{LocalConfidence}_{[y_1, y_2]}(x) = \frac{\int_{y_1}^{y_2} P(x, y) \, dy}{\int_{-\infty}^{\infty} P(x, y) \, dy}

Visually, local confidence looks like a heatmap style probability map as shown above.

Last updated