Skip to content

Commit

Permalink
cite
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderthclark committed Apr 17, 2024
1 parent cbe32dd commit 581096a
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 19 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified book/_build/.doctrees/chi2.doctree
Binary file not shown.
Binary file modified book/_build/.doctrees/environment.pickle
Binary file not shown.
6 changes: 3 additions & 3 deletions book/_build/html/_sources/chi2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@
"1. Counted (qualitative) Data \n",
"2. Independence (e.g. individuals being counted are sampled independently)\n",
"3. Randomization (to generalize results)\n",
"4. Expected Cell Frequency (rule of thumb: expectation of at least 5 for each cell)\n",
"4. Expected Cell Frequency (rule of thumb: expectation of at least 5 for each cell {cite}`destats`)\n",
"\n",
"### Constructing Contingency Tables in Google Sheets\n",
"\n",
Expand Down Expand Up @@ -806,7 +806,7 @@
"\n",
"Is the test statistic large enough to lead us to reject the null? There are 2 degrees of freedom, so the critical value would be 5.99 according to {numref}`chi2Table`. We can reject the null because our statistic is greater. We have evidence that genre and song theme are related. It seems like Swift's genre shift also included thematic shifts.\n",
"\n",
"But can we trust the analysis? Our calculations are correct but we should think about the assumptions. Our data is small. In particular, the expected cell count for Country and Self-Discovery is just 2.56. A rule of thumb is that each expected cell count should be at least five. Our test fails this rule of thumb, so we shouldn't take the analysis that seriously. Further, even if we leave aside the sample size, we must include the usual caveats about causality. There's nothing in the data or the test that the genre drives different song themes. Swift's transition to pop also came with her maturation as an artist. Perhaps more mature artists progress to different song themes and that is related to the the genre shift only coincidentally. \n",
"Can we trust the analysis? Our calculations are correct, but we should think about the assumptions. Our data is small. In particular, the expected cell count for Country and Self-Discovery is just 2.56. A rule of thumb is that each expected cell count should be at least five. Our test fails this rule of thumb, so we shouldn't take the analysis that seriously. Further, even if we leave aside the sample size, we must include the usual caveats about causality. There's nothing in the data or the test that the genre drives different song themes. Swift's transition to pop also came with her maturation as an artist. Perhaps artists progress to different song themes over time and that is related to the the genre shift only coincidentally. \n",
"\n",
"##### Python Code\n",
"\n",
Expand All @@ -816,7 +816,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "7538d0cf",
"id": "7b04429d",
"metadata": {},
"outputs": [
{
Expand Down
14 changes: 7 additions & 7 deletions book/_build/html/chi2.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion book/_build/html/searchindex.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions book/_build/jupyter_execute/chi2.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions book/chi2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@
"1. Counted (qualitative) Data \n",
"2. Independence (e.g. individuals being counted are sampled independently)\n",
"3. Randomization (to generalize results)\n",
"4. Expected Cell Frequency (rule of thumb: expectation of at least 5 for each cell)\n",
"4. Expected Cell Frequency (rule of thumb: expectation of at least 5 for each cell {cite}`destats`)\n",
"\n",
"### Constructing Contingency Tables in Google Sheets\n",
"\n",
Expand Down Expand Up @@ -816,7 +816,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "3b2f81c7",
"id": "7b04429d",
"metadata": {},
"outputs": [
{
Expand Down

0 comments on commit 581096a

Please sign in to comment.