StreamingBandit; Experimenting with Bandit Policies

Jules Kruijswijk, Robin van Emden, Petri Parvinen, Maurits Kaptein
2/22/2016
cs.HCcs.CY

Official code: Nth-iteration-labs/streamingbandit (86 stars, MIT, last commit 2025-09-04).

Abstract

A large number of statistical decision problems in the social sciences and beyond can be framed as a (contextual) multi-armed bandit problem. However, it is notoriously hard to develop and evaluate policies that tackle these types of problem, and to use such policies in applied studies. To address this issue, this paper introduces StreamingBandit, a Python web application for developing and testing bandit policies in field studies. StreamingBandit can sequentially select treatments using (online) policies in real time. Once StreamingBandit is implemented in an applied context, different policies can be tested, altered, nested, and compared. StreamingBandit makes it easy to apply a multitude of bandit policies for sequential allocation in field experiments, and allows for the quick development and re-use of novel policies. In this article, we detail the implementation logic of StreamingBandit and provide several examples of its use.

View on arXivView PDF

Code Implementations(1)

MIT

Python application to setup and run streaming (contextual) bandit experiments.

8618HTML, PythonJul 17, 20151 years agoMIT
banditcmabcontextualmabmulti-armed+4 more

Cite this paper

@article{kruijswijk2016streamingbandit,
  title  = {StreamingBandit; Experimenting with Bandit Policies},
  author = {Jules Kruijswijk and Robin van Emden and Petri Parvinen and Maurits Kaptein},
  year   = {2016},
  eprint = {1602.06700},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1602.06700}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1602.06700.svg)](https://codeofpaper.com/paper/1602.06700)

Discussion