Skip to content

Commit

Permalink
fix quiz bug
Browse files Browse the repository at this point in the history
  • Loading branch information
khider committed Jul 3, 2024
1 parent b18d594 commit 459629e
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 20 deletions.
36 changes: 19 additions & 17 deletions chapters/module3.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ What is the best correlation statistic?
<choice id="03-05">
<opt text="Pearson's R">
Good, not best
</opt>
<opt text="Spearman's rho">
Good, not best
</opt>
<opt text="Kendall's tau">
Good, not best
</opt>
</opt>
<opt text="Spearman's rho">
Good, not best
</opt>
<opt text="Kendall's tau">
Good, not best
</opt>
<opt text="There is no best one. Each statistic has pros and cons", correct="true">
You win!
</opt>
Expand All @@ -107,7 +107,7 @@ What implicit assumption is made when testing for the significance of Pearson's
<choice id="03-06">
<opt text="Data are causally related">
Correlation says nothing about causation
</opt>
</opt>
<opt text="Data are independent", correct="true">
Yes, and ... ?
</opt>
Expand All @@ -116,33 +116,35 @@ Correct
</opt>
<opt text="Data are linearly related">
it is true that a linear relationship is measured by R, but that does not affect the significance estimate.
</opt>
</opt>
</choice>

Under those assumptions, the null distribution for Pearson's R is:

<choice id="03-07">
<opt text="a Gaussian distribution">
Not quite
</opt>
<opt text="A Gamma distribution">
Nope
</opt>
</opt>
<opt text="A Gamma distribution">
Nope
</opt>
<opt text="Student's t distribution", correct="true">
Yes indeed
</opt>
</choice>

When the data are not independent, e.g. because of serial correlation, how may this test be corrected?

<choice id="03-08">
<opt text="Reduce the degrees of freedom as n_eff = n (1-g)/(1+g), where g is the lag-1 autocorrelation", correct="true">
Yes, though when g is close to 1, even that is not enough.
</opt>
<opt text="Switch the null distribution to a Monte Carlo Markov Chain">
That sounds impressive, but it is complete gibberish
</opt>
<opt text="Switch the test statistic to Kendall's tau">
No. The null distribution for Kendall's tau also assumes independence, so that won't help.
</opt>
</opt>
<opt text="Switch the test statistic to Kendall's tau">
No. The null distribution for Kendall's tau also assumes independence, so that won't help.
</opt>
</choice>

</exercise>
Expand Down
2 changes: 1 addition & 1 deletion public/page-data/dev-404-page/page-data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"componentChunkName":"component---cache-dev-404-page-js","path":"/dev-404-page/","result":{"data":{"allSitePage":{"nodes":[{"path":"/module1"},{"path":"/module5"},{"path":"/module3"},{"path":"/module4"},{"path":"/module2"},{"path":"/"}]}},"pageContext":{}},"staticQueryHashes":[]}
{"componentChunkName":"component---cache-dev-404-page-js","path":"/dev-404-page/","result":{"data":{"allSitePage":{"nodes":[{"path":"/module1"},{"path":"/module5"},{"path":"/module4"},{"path":"/module2"},{"path":"/module3"},{"path":"/"}]}},"pageContext":{}},"staticQueryHashes":[]}
2 changes: 1 addition & 1 deletion public/page-data/index/page-data.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"componentChunkName":"component---src-pages-index-js","path":"/","result":{"data":{"site":{"siteMetadata":{"title":"A platform to learn FAIR science practice and publishing"}},"allMarkdownRemark":{"edges":[{"node":{"fields":{"slug":"/module1"},"frontmatter":{"title":"Module 1: Introduction to Python","description":"In this module, you will learn how to write basic Python code. Make sure that you go through the material provided in the links before attempting the exercises. You have two solutions to attempt the exercise (1) Write directly into the console and click `run code`. You will be told whether your get the correct answer. If stuck, you can ask for a hint or show the solution. Note that the first time you do this, a cloud server will be set up and it may take some time. Also do not navigate away from the code block (e.g., by opening another exercise) as this will stop the execution. (2) Attempt this on your local machine and use the Show solution tab to verify that you did the exercise correctly. You can also use the hints to help you if you choose to run locally."}}},{"node":{"fields":{"slug":"/module2"},"frontmatter":{"title":"Module 2: The scientific Python Stack","description":"Now that you have learned about basic Python; let's talk about the scientific Python stack, which contains the functionalities that you will most likely need."}}},{"node":{"fields":{"slug":"/module3"},"frontmatter":{"title":"Module 3: Timeseries analysis","description":"Let's now introduce key concepts about timeseries analysis, and check that you have understood them, before moving on to practicums."}}},{"node":{"fields":{"slug":"/module4"},"frontmatter":{"title":"Module 4: The Scientific Paper of The Future","description":"This module provides fundamental principles in scientific publishing. Scientific publishing refers to the making all artifacts of research publicly accessible (not only the paper but also the data, software and workflow) to ensure that all artifacts of science are Findable, Reproducible, Interoperable, and Reusable (FAIR). The following module will provide author checklist on publishing guidelines and test your understanding of the concepts."}}},{"node":{"fields":{"slug":"/module5"},"frontmatter":{"title":"Module 5: Using GitHub for your research","description":"This module provides fundamental information about using GitHub for your research."}}}]}},"pageContext":{}},"staticQueryHashes":["1771538597","4240431937"]}
{"componentChunkName":"component---src-pages-index-js","path":"/","result":{"data":{"site":{"siteMetadata":{"title":"A platform to learn FAIR science practice and publishing"}},"allMarkdownRemark":{"edges":[{"node":{"fields":{"slug":"/module1"},"frontmatter":{"title":"Module 1: Introduction to Python","description":"In this module, you will learn how to write basic Python code. Make sure that you go through the material provided in the links before attempting the exercises. You have two solutions to attempt the exercise (1) Write directly into the console and click `run code`. You will be told whether your get the correct answer. If stuck, you can ask for a hint or show the solution. Note that the first time you do this, a cloud server will be set up and it may take some time. Also do not navigate away from the code block (e.g., by opening another exercise) as this will stop the execution. (2) Attempt this on your local machine and use the Show solution tab to verify that you did the exercise correctly. You can also use the hints to help you if you choose to run locally."}}},{"node":{"fields":{"slug":"/module2"},"frontmatter":{"title":"Module 2: The scientific Python Stack","description":"Now that you have learned about basic Python; let's talk about the scientific Python stack, which contains the functionalities that you will most likely need."}}},{"node":{"fields":{"slug":"/module3"},"frontmatter":{"title":"Module 3: Timeseries analysis","description":"Here we introduce key concepts and practicums about timeseries analysis, and check that you have understood them. "}}},{"node":{"fields":{"slug":"/module4"},"frontmatter":{"title":"Module 4: The Scientific Paper of The Future","description":"This module provides fundamental principles in scientific publishing. Scientific publishing refers to the making all artifacts of research publicly accessible (not only the paper but also the data, software and workflow) to ensure that all artifacts of science are Findable, Reproducible, Interoperable, and Reusable (FAIR). The following module will provide author checklist on publishing guidelines and test your understanding of the concepts."}}},{"node":{"fields":{"slug":"/module5"},"frontmatter":{"title":"Module 5: Using GitHub for your research","description":"This module provides fundamental information about using GitHub for your research."}}}]}},"pageContext":{}},"staticQueryHashes":["1771538597","4240431937"]}
2 changes: 1 addition & 1 deletion public/page-data/module3/page-data.json

Large diffs are not rendered by default.

0 comments on commit 459629e

Please sign in to comment.