Calculating probability with socks