The maths that tells us when a scientific discovery is real – or not