Detecting stochasticity in discrete signals via nonparametric excursion theorem | Synapse