Statistics for Ubiquitous intelligence for smart cities: a public safety approach