Statistics by filtering is done, but needs test