EquityEstimate

dicechess.engine.search.EquityEstimate
final case class EquityEstimate(whiteWin: Double, blackWin: Double, undecided: Double, rollouts: Int, standardError: Double, varianceReductionVsVanilla: Double)

Result of a Monte-Carlo pre-roll equity estimate.

The three probabilities partition every rollout's outcome mass and therefore sum to 1.0:

  • whiteWin / blackWin — probability that White / Black captures a king first;
  • undecided — residual survival mass at the ply horizon (games that were neither won nor lost within maxPlies).

Value parameters

standardError

the standard error of the whiteWin estimate (sqrt(sampleVariance / rollouts)); halve by quadrupling rollouts.

varianceReductionVsVanilla

how many times smaller the per-rollout variance is than a vanilla 0/1 Monte-Carlo with the same mean would be (mean·(1-mean) / sampleVariance). Values > 1 quantify the Rao-Blackwell gain; +Infinity means the estimate is exact (zero sample variance, e.g. a position decided on the first roll).

Attributes

Source
MonteCarloEquity.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product