Skip to content

Commit

Permalink
Merge pull request #182 from mujisashi/mujifix-chap13-2
Browse files Browse the repository at this point in the history
Minor typo fixes - chapter 13, section 2 "Bootstrap"
  • Loading branch information
davidwagner authored Nov 15, 2023
2 parents 55cf349 + bd3bcc6 commit 564028b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chapters/13/2/Bootstrap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@
"source": [
"## Bootstrap Empirical Distribution of the Sample Median\n",
"\n",
"We can now repeat the bootstrap process multiple times by running a `for` loop as usual. In each iteration, we will call the function `one_bootstrap_median` to generate one value of the bootstrapped median based on our original sample `our_sample`. Then we will append the boostrapped median to the collection array `bstrap_medians`.\n",
"We can now repeat the bootstrap process multiple times by running a `for` loop as usual. In each iteration, we will call the function `one_bootstrap_median` to generate one value of the bootstrapped median based on our original sample `our_sample`. Then we will append the bootstrapped median to the collection array `bstrap_medians`.\n",
"\n",
"Since we are asking for 5000 repetitions, the code might take a while to run. It has a lot of resampling to do!"
]
Expand Down Expand Up @@ -797,7 +797,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We will start by writing a function `bootstrap_median` that takes two arguments: the name of the table containing the original random sample, and the number of bootstrap samples to draw. It returns an array of bootstrapped medians, one from each boostrap sample."
"We will start by writing a function `bootstrap_median` that takes two arguments: the name of the table containing the original random sample, and the number of bootstrap samples to draw. It returns an array of bootstrapped medians, one from each bootstrap sample."
]
},
{
Expand Down

0 comments on commit 564028b

Please sign in to comment.