An introduction to large deviations with applications in physics | Synapse