12_simulation

.pdf

School

Rumson Fair Haven Reg H *

*We aren’t endorsed by this school

Course

101

Subject

Statistics

Date

Nov 24, 2024

Type

pdf

Pages

4

Uploaded by CoachRiverTiger30

Prof. Garcia SDS 201: Lecture notes February 26th, 2018 Agenda 1. HW #4 due on Wednesday (will do 1 problem) 2. Initial Project Proposals due in one week 3. More on hypothesis testing 4. Simulation Warm-up: Hypothesis Testing for the Mites Our goal for this randomization simulatio was to assess the likelihood that exposure to mites was associated, to a statistically significant degree, with a decrease in wilt disease after exposure to Verticillium, a fungus that causes wilt disease. library (mosaic) tally (outcome ~ treatment, data = Mites) ## treatment ## outcome mites no mites ## no wilt 15 4 ## wilt 11 17 tally (outcome ~ treatment, data = Mites, format = "proportion" ) ## treatment ## outcome mites no mites ## no wilt 0.5769231 0.1904762 ## wilt 0.4230769 0.8095238 tbl <- tally (outcome ~ treatment, data = Mites, format = "proportion" ) obs_diff_prop <- tbl[ 2 , 2 ] - tbl[ 2 , 1 ] obs_diff_prop ## [1] 0.3864469 null_dist <- do ( 5000 ) * tally (outcome ~ shuffle (treatment), data = Mites) null_dist <- null_dist %>% mutate ( prop_wilt_nomites = wilt.no.mites / (wilt.no.mites + no.wilt.no.mites)) %>% mutate ( prop_wilt_mites = wilt.mites / (wilt.mites + no.wilt.mites)) %>% mutate ( diff_prop = prop_wilt_nomites - prop_wilt_mites) ggplot ( data = null_dist, aes (diff_prop)) + geom_histogram ( bins = 10 ) qdata ( ~ diff_prop, p = c ( 0.025 , 0.975 ), data = null_dist) ## quantile p ## 2.5% -0.3021978 0.025 ## 97.5% 0.3003663 0.975 2 * pdata ( ~ diff_prop, q = obs_diff_prop, data = null_dist, lower.tail = FALSE ) ## [1] 0.002 1. What was the null hypothesis for your simulation? 2. What was the test statistic ? 3. Where did the test statistic lie in the null distribution ? 4. Did this evidence cause you to reject or fail to reject the null hypothesis? 5. Write one sentence to your grandpa summarizing what you’ve learned about mites and wilt disease.
Prof. Garcia SDS 201: Lecture notes February 26th, 2018 What’s Wrong? Here are several situations where there is an incorrect application of the ideas presented in this section. Write a short paragraph explaining what is wrong in each situation and why it is wrong. 1. A researcher tests the following null hypothesis: H 0 : ¯ x = 23 2. A study with ¯ x = 45 reports statistical significance for H a : μ > 50. 3. A researcher tests the hypothesis H 0 : μ = 350 and concludes that the population mean is equal to 350. 4. A test preparation company wants to test that the average score of their students on the ACT is better than the national average score of 21.1. They state their null hypothesis to be H 0 : μ > 21 . 2. 5. A study summary says that the results are statistically significant and the p-value is 0.98. Determining hypotheses State the approporiate null hypothesis H 0 and alternative hypothesis H A in each of the following cases: 1. A 2008 study reported that 88% of students owned a cell phone. You plan to take a simple random sample of students to see if the percentage has changed. 2. Experiments on learning in animals sometimes measure how long it takes a mouse to find its way through a maze. The mean time is 20 seconds for one particular maze. A researcher thinks that playing rap music will affect the time it takes the mice to complete the maze. She measures how long each of 12 mice takes with the rap music as a stimulus.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help