Detecting a stochastic gravitational wave signal