-
Notifications
You must be signed in to change notification settings - Fork 37
[Bug]: error in Tutorial 4.2 Randomization test #278
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existsgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existsgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededquestionFurther information is requestedFurther information is requested
Type
Fields
Give feedbackNo fields configured for issues without a type.
Contact Details
Jane Robertson Evia, jane.robertsonevia@vt.edu
Bug
I think there are errors in the Foundations of Inference 2 - Randomization Test lab (for R). Starting in the 'What is a p-value' section, the p-value reported for this example is 0.03 (which seems to be correct). However, in the 'Calculating the p-values' section, when you run the code for the original differences, you get a p-value of 0.996 (which is neither 0.03 nor 1-0.03). This error continues through this lab anytime you use use diff_orig. Also, the graph just under the 'What is a p-value' header doesn't appear to be marked in alignment with the text below (discussing the 0.1, 0.05 and 0.01 quantiles).
Reproducible Example
From @hardin47: I haven't taken the time to dig into the problem yet.
Expected Behavior
p-values should match.
Session Info
No response
Additional context
No response