Statistics for Security and Privacy Preservation in Mobile Advertising