Understanding histogram analysis