Text this: Analysis and optimisation of stochastic systems