Now we will run a hypothesis test. Define a function called complete_test which takes in a table like cleaned_diets and simulates samples and calculates the rate differences for these samples under the null hypothesis 100 times.
Question 7: Now we will run a hypothesis test. Define a function called complete_test which takes in a table like cleaned_diets and simulates samples and calculates the rate differences for these samples under the null hypothesis 100 times. It then should return a P-value. O def complete_test (t): our_p_value = complete_test(cleaned_diets) our_p_value