7/17
Part 3 of 7 · Same questionsLearn and do
Halving the interval takes four times the questions
When the difference is small next to how often the models split, the variance of a question's difference is about the share they split on. So the half-width is about 1.96 times the square root of that share over n, and n follows from the half-width you want.
returns = [x for x, k in zip(diffs, kinds) if k == "returns"]
# share of questions the models split on
split = sum(x != 0 for x in returns) / len(returns)
print(f"returns split {split:.1%} of the time: {questions_needed(split, 0.02):,} questions for ± 2 points")
The 120 returns questions give ± 5.8 points. To get down to ± 2 points, about how many returns questions do you need?
Pick one to see what it prints.
Pick an answer above to see the rest