A statistical approach for context-awareness of mobile applications