A probabilistic problem arising in economics