Statistical Thermodynamics and Stochastic Kinetics