A statistical model for evaluating a water quality index