Skip to content

Commit 9ed0c47

Browse files
hacobetimbauman
authored andcommitted
Fix margin of error formula
1 parent 113be78 commit 9ed0c47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarking/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ paper = pd.DataFrame.from_records([
8282
paper["count"] = 5
8383
paper["confidence_level"] = 0.95
8484
# Back out the standard deviation from the margin of error.
85-
paper["std"] = (paper["margin"] * paper["count"]) / scipy.stats.t.ppf(1-((1-paper["confidence_level"])/2), paper["count"] -1)
85+
paper["std"] = (paper["margin"] * np.sqrt(paper["count"])) / scipy.stats.t.ppf(1-((1-paper["confidence_level"])/2), paper["count"] -1)
8686

8787
comparison = pd.merge(summary, paper, on=["algo", "env_name"])
8888

0 commit comments

Comments
 (0)