Measuring Resilience in Stochastic Systems | Synapse