Connections Between Markets and Learning