calculates statistics for marker detection (distance)