Prejudice and Volatility: A Statistical Framework for Measuring Social Discrimination in Large Language Models