Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Python Floripa - Teste A/B

Python Floripa - Teste A/B

Avaliação de testes A/B com Pandas.

Larissa Lautert

January 26, 2017
Tweet

More Decks by Larissa Lautert

Other Decks in Technology

Transcript

  1. 1. What is A/B testing? 2. Why do we need

    statistics? 3. The stack: Jupyter + Python + pandas 4. Examples Agenda
  2. Time What is A/B testing?→ The basic concept. • Examples:

    ◦ Green Button vs. Red Button; ◦ Landing page A vs. Landing Page B; ◦ Algorithm A vs. Algorithm B; ◦ Product A vs. Product B;
  3. WHY DO WE NEED STATISTICS? • Is the difference between

    metrics significant or due to random fluctuations? • When should we stop the test?
  4. users buy orders products oid, pid, uid, timestamp, ... pid,

    name, specs, ... uid, email, gender, ... THE STACK: JUPYTER+PYTHON+PANDAS
  5. users buy orders products oid, pid, uid, timestamp, ... pid,

    name, specs, ... uid, email, gender, ... THE STACK: JUPYTER+PYTHON+PANDAS
  6. users buy orders products joint table oid, pid, uid, timestamp,

    ... pid, name, specs, ... uid, email, gender, ... oid, uid, pid, email, gender, timestamp, name, specs, ... THE STACK: JUPYTER+PYTHON+PANDAS
  7. users buy orders products joint table oid, pid, uid, timestamp,

    ... pid, name, specs, ... uid, email, gender, ... reports THE STACK: JUPYTER+PYTHON+PANDAS
  8. TURBO ANALYTICS → CÁLCULO DA ELASTICIDADE DE PRODUTOS price quantity

    '2016-01-01 15:48:50' '2016-01-02 21:26:12' '2016-01-02 21:41:17' '2016-01-02 23:56:05' '2016-01-03 03:48:57' '2016-01-03 10:42:11' '2016-01-03 12:25:38' '2016-01-03 12:30:55' '2016-01-03 13:23:13' '2016-01-04 16:09:16' . . . 1 2 1 3 2 6 7 10 8 7 R$ 79.99 R$ 79.99 R$ 79.99 R$ 79.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99
  9. TURBO ANALYTICS → CÁLCULO DA ELASTICIDADE DE PRODUTOS price quantity

    '2016-01-01 15:48:50' '2016-01-02 21:26:12' '2016-01-02 21:41:17' '2016-01-02 23:56:05' '2016-01-03 03:48:57' '2016-01-03 10:42:11' '2016-01-03 12:25:38' '2016-01-03 12:30:55' '2016-01-03 13:23:13' '2016-01-04 16:09:16' . . . 1 2 1 3 2 6 7 10 8 7 R$ 79.99 R$ 79.99 R$ 79.99 R$ 79.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 price quantity '2016-01-01' '2016-01-02' '2016-01-03’ . . . 1 6 40 . . . R$ 79.99 R$ 79.99 R$ 69.99 . . .
  10. TURBO ANALYTICS → CÁLCULO DA ELASTICIDADE DE PRODUTOS price quantity

    '2016-01-01 15:48:50' '2016-01-02 21:26:12' '2016-01-02 21:41:17' '2016-01-02 23:56:05' '2016-01-03 03:48:57' '2016-01-03 10:42:11' '2016-01-03 12:25:38' '2016-01-03 12:30:55' '2016-01-03 13:23:13' '2016-01-04 16:09:16' . . . 1 2 1 3 2 6 7 10 8 7 R$ 79.99 R$ 79.99 R$ 79.99 R$ 79.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 price quantity '2016-01-01' '2016-01-02' '2016-01-03’ . . . 1 6 40 . . . R$ 79.99 R$ 79.99 R$ 69.99 . . .
  11. TURBO ANALYTICS → CÁLCULO DA ELASTICIDADE DE PRODUTOS price quantity

    '2016-01-01 15:48:50' '2016-01-02 21:26:12' '2016-01-02 21:41:17' '2016-01-02 23:56:05' '2016-01-03 03:48:57' '2016-01-03 10:42:11' '2016-01-03 12:25:38' '2016-01-03 12:30:55' '2016-01-03 13:23:13' '2016-01-04 16:09:16' . . . 1 2 1 3 2 6 7 10 8 7 R$ 79.99 R$ 79.99 R$ 79.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 R$ 69.99 price quantity '2016-01-01' '2016-01-02' '2016-01-03’ . . . 1 6 40 . . . R$ 79.99 R$ 76.66 R$ 69.99 . . .