Stochastic pair approximation treatment of the noisy voter model