extreme value for batch sample