8/17
Part 4 of 7 · Many triesLearn
pass@k asks whether any try worked, and pass^k whether every try did
An agent that books returns for the shop succeeds on a task 75% of the time, and each try is independent.
for k in (1, 3, 8):
print(f"k = {k}: pass@k {1 - (1 - 0.75) ** k:.3f}, pass^k {0.75 ** k:.3f}")
What's the chance it succeeds on all 3 of 3 tries?
Pick one to see what it prints.
Pick an answer above to see the rest