Text this: OPTIMAL IDENTIFICATION OF RANDOM EVENTS