(10 pts)
In this assignment, you’ll examine the degree to which runners slow down with age in much the same way that we did in our class notes. You’ll begin by grabbing our data from the 2015 Peachtree Road Race and then separating out some younger and older runners as follows:
df = read.csv('https://www.marksmath.org/data/peach_tree2015.csv')
young = subset(df, 25<=Age & Age<30)
old = subset(df, 35<=Age & Age<40)
Note that the group of young
riders and the group of old
riders are still quite large - well over 5000 each. Your mission is to grab a random sample like so:
set.seed(n)
young_times = sample(young$Net.Time, 100)
old_times = sample(old$Net.Time, 100)
Note that n
here is an integer. You should choose your value of n
by finding your position in our Groovy Class Randomizer.
Once you have your samples, run t.test
to compare the means, as we did in our class notes. Be sure to clearly state the conclusion at the end!