Statistics for Thermodynamics of metal-insulator systems