Earlier this summer, David F. Swensen, Yale University's investment chief, looked on as Peter H. Ammon left the New Haven campus to head up the $6.8-­billion endowment at the University of Pennsylvania.