turning analysis into action with apis - superweek 2017

37
TURNING ANALYSIS INTO ACTION WITH APIs

Upload: peter-meyer

Post on 11-Apr-2017

3.892 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: Turning Analysis into Action with APIs - Superweek 2017

TURNING ANALYSIS INTO ACTION WITH APIs

Page 2: Turning Analysis into Action with APIs - Superweek 2017

• Digital business focus• 15+ years of experience• Web Analytics House

2013, 2014, 2015, 2016, 2017

• Value-driven business• More than 40 people in

Denmark, Sweden & Norway

About IIH Nordic

Page 3: Turning Analysis into Action with APIs - Superweek 2017

About Us

Mark Edmondson• In digital since 2006• Data Insight

Developer• Google Developer

Expert for Google Analytics

• RStudio Advocate• cloudyR contributor• @HoloMarkeD

Peter Meyer• In digital since 1997• Analytics Technician• TMS and Analytics

implementer• @pmeyerdk

Page 4: Turning Analysis into Action with APIs - Superweek 2017

Agenda

• What are actionable analysis APIs?

• Example 1 - Weather API - IBM

• Example 2 - Custom prediction API - Prefetching

• Example 3 - Text sentiment API – Google/Algorithmia Machine Learning

• Future opportunities

Page 5: Turning Analysis into Action with APIs - Superweek 2017

What are Analysis

APIs?

Page 6: Turning Analysis into Action with APIs - Superweek 2017

Collect Data

Analyse Data

Change something

An Analytics Workflow

Page 7: Turning Analysis into Action with APIs - Superweek 2017

Collect Data

Analyse Data

Change somethin

g

Reporting APIs

Tracking APIs

Analysis APIs

An Analytics Workflow

Page 8: Turning Analysis into Action with APIs - Superweek 2017

Collect Data

Analyse Data

Change somethin

g

Reporting APIs

Tracking APIs

Analysis APIs

An Analytics Workflow

Page 9: Turning Analysis into Action with APIs - Superweek 2017
Page 10: Turning Analysis into Action with APIs - Superweek 2017

Analysis API

An API that transforms data into useful information

Page 11: Turning Analysis into Action with APIs - Superweek 2017

Examples of actionable analysis APIs

• Visualisations for decision support (dashboards)

• Multivariant testing• Bid managers

• Enrichment of data - weather• Content prediction - prefetching• Text analysis – machine learning API

We will talk today about these ones:

…but others include:

Page 12: Turning Analysis into Action with APIs - Superweek 2017

Weather API(data

enrichment)

Page 13: Turning Analysis into Action with APIs - Superweek 2017

Deployment• Only one webservice used• Geo- and weather data in one go• A bunch of information returned

Page 14: Turning Analysis into Action with APIs - Superweek 2017

Deployment

Page 15: Turning Analysis into Action with APIs - Superweek 2017

Analysis• Take daily lag to

negate spurious trend correlation

• tscount() R package for poisson distribution

• 16% ±4% extra visitors on rainy days

Page 16: Turning Analysis into Action with APIs - Superweek 2017

URL Prefetching

(react to predictions)

Page 17: Turning Analysis into Action with APIs - Superweek 2017

Deployment

http://code.markedmondson.me/predictClickOpenCPU/supercharge.html

Page 18: Turning Analysis into Action with APIs - Superweek 2017
Page 19: Turning Analysis into Action with APIs - Superweek 2017
Page 20: Turning Analysis into Action with APIs - Superweek 2017

https://www.noisetosignal.io/2016/11/using-google-analytics-to-predict-clicks-and-speed-up-your-website/

Simpler method using offline analysis and deploying through a GTM lookup table

Page 21: Turning Analysis into Action with APIs - Superweek 2017

Text Sentiment

API (surfacing important

features)

Page 22: Turning Analysis into Action with APIs - Superweek 2017

Real-time sentiment tracking of customer service forums/comment sections

Categorise topics your customers care about

Page 23: Turning Analysis into Action with APIs - Superweek 2017

http://bit.ly/Superweek2017-Demo

Page 24: Turning Analysis into Action with APIs - Superweek 2017

Deployment - Algorithmia• Stanford NLP Sentiment Analysis• https://algorithmia.com/

Page 25: Turning Analysis into Action with APIs - Superweek 2017

Deployment - AlgorithmiaI really love ice cream very much!

Page 26: Turning Analysis into Action with APIs - Superweek 2017

Deployment - Google• Google Cloud Natural Language API (beta)• https://cloud.google.com/natural-language/

Page 27: Turning Analysis into Action with APIs - Superweek 2017

Deployment - GoogleI really love ice cream very much!

http://glaforge.appspot.com/article/sentiment-analysis-on-tweets

Page 28: Turning Analysis into Action with APIs - Superweek 2017

Recent example at gov.uk

https://gdsdata.blog.gov.uk/2016/12/20/using-machine-learning-to-classify-user-comments-on-gov-uk/

Page 29: Turning Analysis into Action with APIs - Superweek 2017

Future Opportunitie

sThe Horizon

Page 30: Turning Analysis into Action with APIs - Superweek 2017

Machine Learning APIs

Page 31: Turning Analysis into Action with APIs - Superweek 2017

Preparation for the singularity

• Get your data tidy and out of silos• Start prototyping models• Skill up in a ML tech stack

Page 32: Turning Analysis into Action with APIs - Superweek 2017

Skill up in a machine learning tech stack

• Google BigQuery

• Google Compute Engine

• Tensorflow • Dataproc

(Spark)

• Redshift/Athena

• Amazon EMR• EC2• S3• Amazon

Machine Learning

• SQL Data Warehouse

• Azure• Microsoft R• Microsoft

Cognitive

Programming languages: R, Python, bash, JavaScript, Scala, Java, Julia(?), SQL

Page 33: Turning Analysis into Action with APIs - Superweek 2017

ML: Google FlavouredBuild your own self-driving car!

....or for simpler use cases use the pre-trained models available using easy to use APIs

Page 34: Turning Analysis into Action with APIs - Superweek 2017

A Microsoft Cognitive API Example

https://matt-stannard.blogspot.dk/2016/12/measuring-footfall-with-google.html

Page 35: Turning Analysis into Action with APIs - Superweek 2017

• Look to reduce time to actions via APIs• GTM can do more than tracking• Skill up in a machine learning tech stack

Summary

Page 36: Turning Analysis into Action with APIs - Superweek 2017

Thank you!Mark [email protected]

@HoloMarkeD

https://www.linkedin.com/in/markpeteredmondson

Peter [email protected]

@pmeyerdk

https://www.linkedin.com/in/pmeyerdk

Page 37: Turning Analysis into Action with APIs - Superweek 2017