calculated precision at rank i