Skip to content

Commit

Permalink
Fix margin of error formula
Browse files Browse the repository at this point in the history
  • Loading branch information
hacobe authored and timbauman committed May 8, 2023
1 parent 113be78 commit 9ed0c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarking/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ paper = pd.DataFrame.from_records([
paper["count"] = 5
paper["confidence_level"] = 0.95
# Back out the standard deviation from the margin of error.
paper["std"] = (paper["margin"] * paper["count"]) / scipy.stats.t.ppf(1-((1-paper["confidence_level"])/2), paper["count"] -1)
paper["std"] = (paper["margin"] * np.sqrt(paper["count"])) / scipy.stats.t.ppf(1-((1-paper["confidence_level"])/2), paper["count"] -1)

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

Expand Down

0 comments on commit 9ed0c47

Please sign in to comment.