Buying and selling stocks – with real or play money – is a way to harness the wisdom of the crowd about questions like who is going to win a competition.