Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding draft of Chapter 12 #37

Merged
merged 1 commit into from
Dec 7, 2022
Merged

Conversation

amandakube
Copy link
Collaborator

No description provided.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jesteria jesteria added the content textbook content label Dec 1, 2022
@@ -0,0 +1,767 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

six-sixed -> six-sided


Reply via ReviewNB

@@ -0,0 +1,767 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you say "the default option?" I thought the default was without replacement (replace=False).


Reply via ReviewNB

@@ -0,0 +1,767 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If think if you underline or bold the terms "empirical distribution" and "probability distribution" it will help to remind readers the difference and relationship between the two, which they could look into to better construct an understanding and refer to more information in the probability chapter/lectures


Reply via ReviewNB

@@ -0,0 +1,767 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an outside reference (like maybe the stats book Dan wanted to refer students to for the probability lecture) that explains this a bit more? It's a bit out of context and left field. Like, how did one ascertain these mathematical definitions of the mean and variance?

Is it assumed one would know this if they have already studied/familiar with the Law of Large Numbers? If so, then I guess that reference you mention would rectify the above.


Reply via ReviewNB

@@ -0,0 +1,767 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is well-stated.


Reply via ReviewNB

@@ -0,0 +1,296 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the distribution respectively -> the distribution, respectively


Reply via ReviewNB

@@ -0,0 +1,296 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deviation is 1.71. The -> deviation is 1.71, the


Reply via ReviewNB

@@ -0,0 +1,383 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the prefix bi implies -> As the prefix bi- implies


Reply via ReviewNB

@@ -0,0 +1,383 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trails -> trials


Reply via ReviewNB

@@ -0,0 +1,54 @@
{
Copy link
Collaborator

@campbelle1 campbelle1 Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Probability Distributions paragraph is a bit of a mouthful for someone that may be unfamiliar. Could you possibly offer a simple, anecdotal example to illustrate the meaning of the terms random variables, sample space, and probability distribution after this paragraph? I think having such an example, and directly pointing out which terms are what in the example, could help in comprehending this paragraph.

Just to clarify, you defined variance as σ^2(X) and then said standard deviation is the square root of variance and is σ^2(X). How so? it wouldn't be sqrt(σ^2(X))? Just want to make sure I'm understanding...

denoted by s is the -> denoted by s, is the

Reply via ReviewNB

Comment on lines 97 to 99
- file: 10/1/uniform
- file: 10/2/normal
- file: 10/3/binomial
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: Just a typo but your TOC updates refer to the chapter 10 directory rather than 12.

textbook/12/empirical-distributions.ipynb:: WARNING: toctree contains reference to nonexisting document '10/1/uniform' [etoc.ref]
textbook/12/empirical-distributions.ipynb:: WARNING: toctree contains reference to nonexisting document '10/2/normal' [etoc.ref]
textbook/12/empirical-distributions.ipynb:: WARNING: toctree contains reference to nonexisting document '10/3/binomial' [etoc.ref]
textbook/12/1/uniform.ipynb: WARNING: document isn't included in any toctree
textbook/12/2/normal.ipynb: WARNING: document isn't included in any toctree
textbook/12/3/binomial.ipynb: WARNING: document isn't included in any toctree

@@ -0,0 +1,60 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a typo resulting in a broken image:

![Chapter 11](../11/Probability.ipynb)

Rather than say a link:

[Chapter 11](../11/Probability.html)

Reply via ReviewNB

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are absolutely right that the ! is a typeo. The file should be .html instead of .ipynb? Will a rendered html file be in that folder in the built version of the textbook? Asking because I think I made this mistake other places if so...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right. The ambiguity in authoring such things is honestly frustrating.

There are generally three ways about it:

  • Write proper HTML, which will be passed through as-is, and work in the textbook.
  • Write Markdown, which should be fixed up before conversion to HTML.
  • Use a Jupyter Book (Sphinx) helper, which will ostensibly make things easier, (but this markup may be even less natural).

Here's documentation I found.

And so, any of the following would work:

  • <a href="../11/Probability.html">Chapter 11</a>
  • [Chapter 11](../11/Probability.ipynb)
  • [](../11/Probability.ipynb)
  • [Chapter 11](../11/Probability)
  • [](../11/Probability)
  • {doc}`Chapter 11 <../11/Probability>`
  • {doc}`../11/Probability`

That is, all references are relative, and:

  • HTML should presume the full final document path (with .html suffix)
  • Markdown may either refer to the actual file name (including .ipynb suffix) or omit the suffix entirely
  • Sphinx-style references may not include the file suffix
  • Markdown and Sphinx references may omit the link text, in which case it will be derived from the referenced document's full header, (in this case Probability: Mathematical/Theoretical and Computational Approaches).

So! Yes, in short, this would do the trick, (among other options)…:

[Chapter 11](../11/Probability.ipynb)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Goodness, so confusing! Thank you for clarifying! I have pushed the change, so hopefully it works now! Please let me know if other changes are needed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good to me. So this is ready to merge?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think so

* edit toc and remove placeholder

* add text

* Edits based on meeting 12/6

* fixed chapter reference
@jesteria jesteria merged commit 4377df2 into uchicago-dsi:master Dec 7, 2022
@amandakube amandakube deleted the chapter12 branch December 13, 2022 17:50
campbelle1 pushed a commit to campbelle1/EC_textbook-datascience-1 that referenced this pull request Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content textbook content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants