Statistics for Stochastic resonance and brownian ratchets