Skip to content

Commit bfacb37

Browse files
Update inference-paired-means.qmd (#504)
some typos.
1 parent 6baa1f6 commit bfacb37

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

inference-paired-means.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ Notice that the two observations from the same car are linked with a grey line;
436436
#| across the two tread wear measurements (in cm) from the same car.
437437
#| fig-alt: |
438438
#| Box plots and scatterplot with tire brand on the x-axis and
439-
#| treat on the y-axis. The points are assigned to the x-axis brand
439+
#| tire tread on the y-axis. The points are assigned to the x-axis brand
440440
#| given by the permutation, but the plot differs from previous figures
441441
#| in that it is a second permutation of the brands. Again, the two
442442
#| permuted brands seem equivalent with respect to tire wear.
@@ -485,7 +485,7 @@ Again, the same observations are linked by a grey line, and some of the tread va
485485
#| across the two tread wear measurements (in cm) from the same car.
486486
#| fig-alt: |
487487
#| Box plots and scatterplot with tire brand on the x-axis and
488-
#| treat on the y-axis. The points are assigned to the x-axis brand
488+
#| tire tread on the y-axis. The points are assigned to the x-axis brand
489489
#| given by the permutation, but the plot differs from previous figures
490490
#| in that it is a second permutation of the brands. The additional
491491
#| permutation demonstrates that the box plots
@@ -650,7 +650,7 @@ Using the histogram of bootstrapped difference in means, estimate the standard e
650650
The bootstrap SE interval is found by computing the SE of the bootstrapped differences $(SE_{\overline{x}_{diff}} = \$1.64)$ and the normal multiplier of $z^{\star} = 2.58.$ The averaged difference is $\bar{x} = \$3.58.$ The 99% confidence interval is: $\$3.58 \pm 2.58 \times \$ 1.64 = (\$-0.65, \$7.81).$
651651

652652
The confidence intervals seem to indicate that the UCLA bookstore price is, on average, higher than the Amazon price, as the majority of the confidence interval is positive.
653-
However, if the analysis required a strong degree of certainty (e.g., 99% confidence), and the bootstrap SE interval was most appropriate (given a second course in statistics the nuances of the methods can be investigated), the results of which book seller is higher is not well determined (because the bootstrap SE interval overlaps zero).
653+
However, if the analysis required a strong degree of certainty (e.g., 99% confidence), and the bootstrap SE interval was most appropriate (given a second course in statistics the nuances of the methods can be investigated), the results of which bookseller is higher are not well determined (because the bootstrap SE interval overlaps zero).
654654
That is, the 99% bootstrap SE interval gives potential for UCLA bookstore to be lower, on average, than Amazon (because of the possible negative values for the true mean difference in price).
655655

656656
```{r}
@@ -868,7 +868,7 @@ To compute the test compute the standard error associated with $\bar{x}_{diff}$
868868

869869
$$SE_{\bar{x}_{diff}} = \frac{s_{diff}}{\sqrt{n_{diff}}} = \frac{13.42}{\sqrt{68}} = 1.63$$
870870

871-
The test statistic is the T score of $\bar{x}_{diff}$ under the null hypothess that the true mean difference is 0:
871+
The test statistic is the T score of $\bar{x}_{diff}$ under the null hypothesis that the true mean difference is 0:
872872

873873
$$T = \frac{\bar{x}_{diff} - 0}{SE_{\bar{x}_{diff}}} = \frac{3.58 - 0}{1.63} = 2.20$$
874874

0 commit comments

Comments
 (0)