calculate various interesting measures