Statistics for An Adaptive Architecture for Internet of Things Applications