From the course: Introduction to Data Science
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Creating a permutation
From the course: Introduction to Data Science
Creating a permutation
Hypothesis testing allows data scientists to make informed conclusions based on the data that they observe. I have a Pandas data frame that contains data on the time taken by a sample of avocado trees to grow avocado fruits and whether the trees receive fertilizer. If a tree received fertilizer, the corresponding value in the fertilizer column would be true. Otherwise, it would be false. I want to determine whether there's an association between growth duration and fertilizer usage, and I've already designed a hypothesis test. My null hypothesis states that on average, avocado trees that received fertilizer took the same period of time to grow than those that did not. And my alternative hypothesis states that on average, avocado trees that receive fertilizer took a shorter period of time to grow than those that did not. So I came up with the following test statistic The average growing time among avocado trees that receive fertilizer minus the average growing time among trees that did…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.