histogram based stats