Statistics for Detecting and distinguishing transitions in ecological systems: model and data-driven approaches