Skip to content

Commit

Permalink
Merge pull request #498 from gungorMetehan/patch-9
Browse files Browse the repository at this point in the history
Update 92-appendixB.Rmd
  • Loading branch information
ismayc authored May 24, 2024
2 parents 5e3631e + d941e0f commit 9c0820f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 92-appendixB.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ mu0 <- 23
```

1. Sample with replacement from our original sample of `r nrow(age_at_marriage)` women and repeat this process 10,000 times,
2. calculate the mean for each of the 10,000 bootstrap samples created in Step 1.,
2. calculate the mean for each of the 10,000 bootstrap samples created in Step 1,
3. combine all of these bootstrap statistics calculated in Step 2 into a `boot_distn` object, and
4. shift the center of this distribution over to the null value of `r mu0`. (This is needed since it will be centered at `r age_summ$mean` via the process of bootstrapping.)

Expand Down Expand Up @@ -422,7 +422,7 @@ So our $p$-value is `r pvalue` and we fail to reject the null hypothesis at the
We can also create a confidence interval for the unknown population parameter $\pi$ using our sample data. To do so, we use *bootstrapping*, which involves

1. sampling with replacement from our original sample of 100 survey respondents and repeating this process 10,000 times,
2. calculating the proportion of successes for each of the 10,000 bootstrap samples created in Step 1.,
2. calculating the proportion of successes for each of the 10,000 bootstrap samples created in Step 1,
3. combining all of these bootstrap statistics calculated in Step 2 into a `boot_distn` object,
4. identifying the 2.5th and 97.5th percentiles of this distribution (corresponding to the 5% significance level chosen) to find a 95% confidence interval for $\pi$, and
5. interpret this confidence interval in the context of the problem.
Expand Down

0 comments on commit 9c0820f

Please sign in to comment.