This manuscript describes and contextualizes the research I performed as a PhD student in Northwestern University. The first three chapters, on Markov chains, stochastic thermodynamics, and large deviation theory, describe three interrelated topics that serve as the background for subsequent research detailed in the next three chapters, on understanding the...