Fixed confidence for cosine similarity