Half your visitors see a blue button and half see green. Green converts 5.4% of visitors and blue 4.8%: real difference or luck? The two-proportion z-test compares the gap with the noise that random assignment alone would produce.