Americans’ confidence in the economy rebounded somewhat in October as gas prices fell modestly but remain elevated