Error propagation and statistical analysis for Monte Carlo simulations in lattice QCD and statistical mechanics using autograd.