Regret and learning from choices