Reinforcement Learning model

Upper Confidence Bound

Balancing exploration and exploitation using confidence bounds in multi-armed bandits.

Upper Confidence Bound (UCB) is an algorithm for the multi-armed bandit problem that balances exploration and exploitation by selecting actions with the highest upper confidence bound. It favors less-explored actions with potentially high rewards.

Formula

UCB(a) = Q(a) + c√(ln(t)/N(a))

How it works

  • Initialize by trying each action once
  • Calculate upper confidence bound for each action
  • UCB = mean reward + exploration bonus
  • Select action with highest UCB
  • Update statistics after observing reward

When to use it

  • For multi-armed bandit problems
  • When exploration-exploitation balance is critical
  • For A/B testing
  • In recommendation systems
  • For clinical trial design

Advantages

  • Provable regret bounds
  • No parameter tuning required
  • Automatically balances exploration
  • Simple to implement
  • Works with unknown distributions

Limitations

  • Assumes bounded rewards
  • May explore too much early on
  • Not optimal for all distributions
  • Does not consider full history
  • May be slow to converge

Example uses

  • Online advertising
  • Website optimization
  • Clinical trials
  • Content recommendation
  • Dynamic pricing

Need a model built on your data?

Tell us the decision you want to improve. We will tell you whether your data can support it and which approach fits.