Statistical model-based methods for observation selection in wireless sensor networks and for feature selection in classification