Goldman Sachs Group Inc. is looking at opportunities in prediction markets, positioning the investment bank to benefit from the fast-growing forums for bets on real-world events.