Use Of Inferential Statistics To Design Effective Communication Protocols For Wireless Sensor Networks