{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Homework 7 - Chapter 12" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "- Due Date: Friday, March 13th no later than 11:59 p.m.\n", "- Partner Information: You may complete this assignment individually or with exactly one classmate.\n", "- Submission Instructions (working alone): Upload your solution, entitled **YourFirstName-YourLastName-Homework7.ipynb** to the \n", "Canvas Homework 7 Dropbox.\n", "- Submission Instructions (working with one classmate): Upload your solution, entitled \n", "**YourFirstName-YourLastName-PartnerFirstName-PartnerLastName-Homework7.ipynb** to the Canvas Homework 7 Dropbox. Note: If you \n", "work with a partner, only one person needs to submit a solution. If you both submit a solution, the submission that will be graded is the one \n", "from the partner whose last name comes alphabetically first.\n", "- Deadline Reminder: Once the submission deadline passes, Canvas will no longer accept your submission and you will no longer be able to earn credit. \n", "Thus, if you are not able to fully complete the assignment, submit whatever you have before the deadline so that partial credit can be earned." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Starting Code" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from datascience import *\n", "%matplotlib inline\n", "import numpy as np" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Download the ab_test.csv file and place it\n", "into the same directory as this Jupyter notebook.\n", "The meaning of the columns is as follows:\n", "- user_id: A unique id assigned to a visitor of a data science tutoring web site\n", "- group: the web site experience given to the visitor: either **A** or **B**\n", "- page_views: the number of different pages on the site the user visited\n", "- time_spent: the number of seconds the user spent on the site\n", "- conversion: **1** if the user purchased a tutoring session and **0** otherwise\n", "- device: the type of device the user used to visit the site\n", "- location: the visitor's general location" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| user_id | group | page_views | time_spent | conversion | device | location | \n", "
|---|---|---|---|---|---|---|
| 9032 | B | 1 | 50 | 0 | mobile | West Midlands | \n", "
| 3463 | A | 3 | 159 | 1 | mobile | South East | \n", "
| 3864 | A | 1 | 50 | 0 | mobile | London | \n", "
... (9997 rows omitted)
" ], "text/plain": [ "