Statistics for Optimal Operation of Energy Hubs in the Context of Smart Grids