Giter Club home page Giter Club logo

analyze-a-b-test-results's Introduction

Analyze-A-B-Test-Results

Problem Definition:

For this project, we will be working to understand the results of an A/B test run by an e-commerce website. Our goal is to work through this notebook to help the company understand if they should implement the new page, keep the old page, or perhaps run the experiment longer to make their decision.

Data Preparation:

  1. check for nulls
  2. check for duplicates.
  3. drop the unreasonable records.

Hypothesis Test:

we assume that the old page is better unless the new page proves to be definitely better at a Type I error rate of 5%

  1. The null hypothesis is : pnew <= pold

    • means: the conversion rate to the old page is greater or equal to the conversion rate to new page
  2. The Alternative hypothesis is : pnew > pold

    • means: the conversion rate to the new page is greater than the conversion rate to the old page

Results:

  • we found that the p-value is large 0.9 then we shouldn't move away from the null hypothesis. that is we failed to reject the null hypothesis.

Regression Approach:

we showed that the result we acheived in the A/B test part can also be acheived by performing regression. Since each row is either a conversion or no conversion, so we perform logistic regression

Steps:

  1. we create a new column ab_page and encoded it to have 1 when an individual receives the treatment.
  2. we add a new column , the intercept which is neccessary to the model. Note According to point 1, the null hypothesis is that the probability of conversion when an individual recieves the new page is less than the probability when an individual recieves the old page pnew > pold, which is the opposite to the one in the Hypothesis Test.

Results:

  • the p-value associated with ab_page is 0.19
  • since the p-values is small we can reject the null hypothesis here which is the opposite to the one in Hypothesis Test part

analyze-a-b-test-results's People

Contributors

passant-abdelgalil avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.