Statistical dynamics :a stochastic approach to nonequilibrium thermodynamics