add entropy function in statistics