Load the helium dataset using the code below. This dataset contains data from an experiment in which two identical footballs, one air filled with air and one filled with helium, were each kicked 39 times. The distances traveled were measured for each trial.
helium_data <- read.csv("https://www.openintro.org/data/csv/helium.csv")
Use the t.test
function to test the null hypothesis that the mean distance traveled by the helium-filled ball is equal to the mean distance traveled by the air-filled ball. Use a one-sided hypothesis. What do you conclude?
Write code to run a permutation test to test the same hypothesis as above. Your permutation test should follow these steps:
What is your conclusion from the permutation test?