helper functions for analyzing experiments in bpl.py