A/B Test for MuscleHub

Brief

Objective

Overview

This project is slightly different than others you have encountered thus far on Codecademy. Instead of a step-by-step tutorial, this project contains a series of open-ended requirements which describe the project you’ll be building. There are many possible ways to correctly fulfill all of these requirements, and you should expect to use the internet, Codecademy, and other resources when you encounter a problem that you cannot easily solve.

Project Goals

Congratulations! You’ve been hired as the newest member of the data analytics team at MuscleHub, a fancy gym, and your first assignment is to run an A/B test!

Currently, when a MuscleHub visitor purchases a membership, they follow the following steps:

  1. Take a fitness test with a personal trainer.
  2. Fill out an application for the gym.
  3. Send in their payment for their first month’s membership.

Janet, the manager of MuscleHub, thinks that the fitness test intimidates some prospective members, so she has set up an A/B test.

Visitors are randomly be assigned to one of two groups:

  • Group A is still asked to take a fitness test with a personal trainer.
  • Group B skips the fitness test and proceed directly to the application.

Janet’s hypothesis is that visitors assigned to Group B will be more likely to eventually purchase a membership to MuscleHub than visitors assigned to Group A. So that the null and alternate hypotheses are as follows:

  • Null Hypothesis = There will no difference between the visitors in Group A that purchase membership and the visitors in Group B that purchase membership.
  • Alternate Hypothesis = There will be more visitors in Group B that will purchase membership than visitors in Group A that will purchase membership.

The significance threshold we will set as the benchmark to either accept or fail to reject the null hypothesis will be:

  • 𝛼 = 0.05

You will help her analyze the data and create a presentation with your knowledge of conducting A/B testing with Python.

Setup Instructions

You have two options to complete this assignment. Either here, within Codecademy’s code editor, or on your own, in case you’re more comfortable using a Jupyter notebook.

If you choose to do this project on your computer instead of Codecademy, you can download what you’ll need by clicking the “Download” button below. If you need help setting up your computer, be sure to check out our setup guides:

Download the MuscleHub_AB.zip project folder.

Open musclehub_ab_project.ipynb and follow the steps in the Jupyter Notebook. If you get stuck, you can look at musclehub_ab_solution.ipynb for the answer.