10.07.2015 Views

Using R for Introductory Statistics : John Verzani

Using R for Introductory Statistics : John Verzani

Using R for Introductory Statistics : John Verzani

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Using</strong> R <strong>for</strong> introductory statistics 238a t-test to see if there is a difference in the mean height. Assume the paired t-test isappropriate. What problems are there with this assumption?8.36 The question of equal variances comes up when we per<strong>for</strong>m a two sample ttest.We’ve answered this based on a graphical exploration. The F-test <strong>for</strong> equal variances oftwo normal populations can be used to test <strong>for</strong>mally <strong>for</strong> equality. The test statistic is theratio of the sample variances, which under the null hypothesis of equal variances has anF-distribution. This test is carried out by the function var. test(). A two-sided testis done with the command var.test(x, y).Do a two-sided test <strong>for</strong> equality of variance on the data in Example 8.9.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!