Three essays on uncertainty and learning by economic agents