William Frey, a demographer with the Brookings Institution, said all of the Northeast and Midwest have had domestic migration losses for a generation, as residents, particularly those in their 20s and 30s, leave for warmer climates with faster-growing economies. But immigration has been higher than those losses in much of the Northeast, including Connecticut.