Write a .Rmd Homework 8

$24.99 $18.99

Write a .Rmd le to answer these questions, knitting it to .html along the way. Start by pasting this outline to help the grader nd your answers: (Your Name Here) 1 Pumpkins 1a. 1b. 1c. 1d. 1e. 1f. 2. Penguins 2a. 2b. 2c. 2d. A pumpkin farmer weighed a simple random sample of size n…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Description

5/5 – (2 votes)

Write a .Rmd le to answer these questions, knitting it to .html along the way. Start by pasting this outline to help the grader nd your answers:

(Your Name Here)

  • 1 Pumpkins

  • 1a.

  • 1b.

  • 1c.

  • 1d.

  • 1e.

  • 1f.

  • 2. Penguins

  • 2a.

  • 2b.

  • 2c.

  • 2d.

    1. A pumpkin farmer weighed a simple random sample of size n = 20 pumpkins, with these results:

9.6, 8.8, 5.1, 9.7, 9.1, 8.9, 8, 9.2, 2.7, 9.1, 8.5, 7.3, 9.3, 9.6, 4.1, 9.9, 7.6, 9, 7.2, 8.5

      1. Create a QQ plot of the weights. Do you think it is reasonable to assume that the population distribution is normal? Explain your answer.

      1. Regardless of your answer to (a), use R to perform the bootstrap with 2000 resamplings to create a 90% con dence interval for . (Show your R code and its output.)

      1. Suppose you want to know whether the true mean pumpkin weight for this pumpkin farmer’s patch is greater than 7.2. Conduct a bootstrap hypothesis test with 2000 resamplings at a signi cance level = 0:05.

          1. What is the p-value?

          1. What conclusion do you draw?

      1. Conduct a hypothesis test at level = 0:05 to see whether we can assert the data are strong evidence the true median weight for this pumpkin farmer’s patch is greater than 7.2.

What is the value of the test statistic?

      1. What is the p-value?

    1. What is your conclusion?

  1. Most penguin species are not sexually dimorphic, which means they lack obvious outward body characteristics which indicate sex. Observation of behavior or a blood test can determine Penguin sex. A penguin researcher is interested in estimating the proportion of females in a large penguin population. She takes a random sample of n = 20 penguins and determines the sex of each one using a blood test. She nds 12 males and 8 females. Let be the proportion of females in the population.

    1. Find a point estimate of .

    1. Find the estimated standard deviation of your estimate.

    1. Is it reasonable to compute a 95% con dence interval for using the normal approximation in this case? If it is possible, explain why, and make the interval. If it is not reasonable, explain why.

    1. Are the data strong evidence the population proportion of females is di erent from 63%? Run a test at level = :05 to nd out.

2

Write a .Rmd Homework 8
$24.99 $18.99