Lab04: Hypothesis Test for a Single Mean

Due date: 2022-10-21

Use the dataset olives. Download the data and save the CSV file into your Lab04 directory (so that it is submit when you upload your Lab04 folder).

olives <- read.csv("olives.csv")
## if this didn't work,
## then your data and your .qmd file for Lab04
## are in different folders.
## Put both files in your Lab04 folder.

Read the help file about olives, to better understand the data set.

Please submit a folder containing your Quarto input (qmd) and output (html) documents for this lab, named Lab04, to our shared Google Drive folder when you are finished.

  1. Pick a numeric variable of your choice and use it for the rest of this assignment. No code needed here.

  2. Make a histogram of your numeric variable and describe its shape.

  3. Perform a hypothesis test of your numeric variable against 50% using \(\alpha = 0.02\). Please state your hypotheses.

  4. Based on your test, which hypothesis is more likely given the data? State your conclusion as either “reject H0” or “fail to reject H0”, and explain why this conclusion is appropriate.

  5. Interpret in context of the data your conclusion of the hypothesis test.

  6. Interpret, in context of the data, the confidence interval that appropriately matches your hypothesis test above.

  7. Pick a value for which you are guaranteed to reject the null hypothesis, H0. Justify your conclusion by updating your t.test(...) code.

  8. Pick a value for which you are guaranteed to fail to reject the null hypothesis, H0. Justify your conclusion by updating your t.test(...) code.