Mathematics and Social Science: A Statistical Mechanics Approach to Immigration