liveBook · Manning

Probability of best arm

As explained in Experimentation for Engineers

The probability of best arm is the estimated probability that an arm produces the highest aggregate metric among the alternatives.

The probability of best arm estimates how often an arm produces the highest aggregate metric among alternatives. For click models, the metric is production CTR. Epsilon-greedy selects one apparent best arm, whereas Thompson sampling allocates traffic in proportion to these probabilities. section 3.3.1

Bootstrap sampling approximates repeated experiments from one experiment’s individual measurements. Resample each arm’s data with replacement, compute its CTR, identify the highest CTR, and count each arm’s wins. Dividing win counts by the number of bootstrap trials estimates pbest. section 3.3.1

Two click-model arms

For I_clicked = [0,0,1,0,1,1,0,0,1,0], CTR is 0.40 and its standard error is about 0.16. Generate many bootstrap CTRs for two arms, compare each pair, and estimate pbest from the fraction of trials each arm wins. Ties contribute to neither arm. section 3.3.1

How Experimentation for Engineers covers it

How deep it goes
Explains bootstrap estimation, CTR uncertainty, comparisons, and ties, but does not develop formal confidence intervals.
Examples
Uses click-indicator arrays, bootstrap CTR histograms, and simulated arms with expected CTRs from 0.003 to 0.009.
What it assumes
Assumes individual observations and familiarity with aggregate metrics such as CTR; defines uncertainty through standard error before bootstrapping.
What you can do after
Apply it via NumPy to estimate each arm’s probability of being best from one experiment’s individual measurements.
How it connects
Connects CTR, standard error, bootstrap sampling, Thompson sampling, and epsilon-greedy.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Experimentation for Engineers. The section links point to the parts of the book it draws on.