5/17
Part 3 of 7 · Same questionsLearn and do

Compare two models question by question

Both models answered the same 400 questions, so compare them question by question.

# 1, 0 or -1 for each question
diffs = [int(s) - int(h) for s, h in zip(sonnet, haiku)]
mean, paired_half = paired_difference(sonnet, haiku)
ps, ph = sum(sonnet) / len(sonnet), sum(haiku) / len(haiku)
unpaired_se = math.sqrt(ps * (1 - ps) / len(sonnet) + ph * (1 - ph) / len(haiku))
print(f"Sonnet only {diffs.count(1)}, Haiku only {diffs.count(-1)}, both alike {diffs.count(0)}")
print(f"difference {mean:.1%}, paired ± {paired_half:.1%}, unpaired ± {1.96 * unpaired_se:.1%}")
Predict

Both models answered the same 400 questions. Most questions are easy for both or hard for both. Which interval for the difference is narrower?

Pick one to see what it prints.
Pick an answer above to see the rest