Entropy production is the entropy change of the system plus that of its environment. For a discrete-state stochastic process, the stochastic system entropy at the occupied state is . A single thermal reservoir contributes , with positive heat into the reservoir. Including the actual endpoint probabilities is essential even if the final ensemble has not reached thermal equilibrium.[ref]
Under the hypotheses of the integral fluctuation theorem,Applying Jensen's inequality to the convex exponential function gives , hence . This constrains the mean, while a short individual sample trajectory may have negative entropy production. Equating a medium-only path-weight ratio to total entropy production would omit the stochastic system term.
New to topics? Read the docs here!