Lottery analysis