Fields in which inborn ability is prized over hard work produce relatively fewer female Ph.D.s.