Hypothesis

A hypothesis is a pattern or rule about a process in the world that can be tested. We use hypothesis testing to determine if a change we made had a meaningful impact or not.
You can use hypothesis testing to help you determine:
  • if a new banner ad on a website caused a meaningful drop in the user engagement,
  • if raising the price of a product caused a meaningful drop in sales,
  • if a new weight loss pill helped people lose more weight.
Observing a decrease in user engagement or sales after instituting a change doesn't automatically imply that the change was the cause. Hypothesis testing allows us to calculate the probability that random chance was actually responsible for the difference in outcome. Every process has some inherent amount of randomness that we can't measure and understanding the role of chance helps us reach a conclusion that's more likely to be correct.
We first set up a null hypothesis that describes the status quo. We then state an alternative hypothesis, which we used to compare with the null hypothesis to decide which describes the data better. In the end, we either need to:
  • reject the null hypothesis
  • fail to reject the null hypothesis
We can frame each of the studies above as these rival pairs of hypotheses:
  • if a new banner ad on a website caused a meaningful drop in the user engagement:
    • null hypothesis: users who were exposed to the banner ad spent the same amount of time on the website than those who weren't.
    • alternative hypothesis: users who were exposed to the banner ad spent less time on the website than those who weren't.
  • if raising the price of a product caused a meaningful drop in sales:
    • null hypothesis: the number of purchases of the product was the same at the lower price than it was at the higher price.
    • alternative hypothesis: the number of purchases of the product was lower at the higher price than it was at the lower price.
  • if a new weight loss pill helped people lose more weight:
    • null hypothesis: patients who went on the weight loss pill lost no more weight than those who didn't.
    • alternative hypothesis: patients who went on the weight loss pill lost more weight than those who didn't.

Comments

Popular posts from this blog

Support Vector Machines

ACCURACY, RECALL, PRECISION, F1 SCORE

Random Forest