Home » Uncategorized

7 Ways to Perplex a Data Scientist

On the heels of a report showing the inefficacy of government-run cyber security, it’s imperative to understand the limitations of your system and model. As that article shows, in addition to bureaucratic risk the government also needs to worry about gaming-the-bureaucracy risk! Government snafus aside, data science has enjoyed considerable success in the past few years. Despite this success, models can fail in surprising ways. Last year we saw how deep neural nets for image recognition fail on noisy data.

may20

As these examples show, a lot can be learned by breaking models. Model builders of all stripes must consider the limitations of their models and should be a requisite step in the validation stage. As a fun exercise, below I present some ways to confuse models at popular web destinations. Can you figure out how a model will fail based on this behavior?

Product Recommendations

Netflix

Netflix is known for using collaborative filtering but also matrix factorization like SVD.

Algorithm

  1. Choose a genre (e.g. Movies With A Strong Female Lead)
  2. For each movie, alternate ranking between 1 and 5 stars

Amazon

Amazon is known for using user-based collaborative filtering.

Algorithm
Make a separate purchase for each item in a list. For each item do the following:

  1. Choose a dimension or combination of dimensions e.g. gender, age, department
  2. Browse related (i.e. similar) items in the given dimension
  3. Now browse related items in the opposite direction of dimension (or something unrelated)
  4. Add actual item to purchase to cart
  5. Checkout

Example: Choose baby car seat. View n car seats plus m related items (e.g. strollers). Now view a bunch of scooters for old people, such as the Pride 3 Wheel Celebrity X Scooter. Now add your purchase item and checkout.

Alternative: If you have disposable income, actually buy the car seat and scooter and donate them to a charity afterward.

Social Media

Facebook

The Facebook News Feed is notorious for changing regularly and being somewhat opaque to outsiders, here is a narrative description of how it “works”. The short version is that there are various scoring models combined with various rules to deal with outliers.

Algorithm

  1. Choose a set of dimensions (e.g. day of week, time of day, media type)
  2. Choose a behavior (e.g. like, hide, scroll past, stay for long time, comment)
  3. For given set of dimensions, perform same behavior over a fixed period of time (e.g. 15 minutes)
  4. Repeat

Example: Choose Monday + 9 AM as dimensions. Choose “stay for long time + hide” as behavior. Do this for each item in news feed for 30 minutes. Repeat following week.

Bonus: Recruit your friends to follow the same algorithm, ideally in same geographic region.

LinkedIn

One curious feature of LinkedIn is automated skill endorsement recommendations. It’s often that I get endorsed for random things unrelated to what I do. Presumably this works on some sort of frequent itemset based on graph distances.

Algorithm

  1. Choose a network of related people
  2. Choose an unrelated skill
  3. Endorse all people in network with same “skill”

Example: For me, I might choose all my financial quant friends and endorse them with the skill “arm wrestling”.

Alternative: Use a brand slogan as the skill e.g. “Think Different” This can be awkward, so try changing initial verb to a present participle e.g. “Thinking Different”.

Bonus: Use a brand slogan with a double entendre e.g. “Doubling Your Pleasure”.

Marketing and Advertising

Google Analytics

While there aren’t any models embedded within GA, many many models are used to analyze web behavior based on the tracking codes attached to a URL.

Algorithm

  1. Choose a URL to link to
  2. Choose a unique identifier
  3. Replace tracking code with custom identifier
  4. Get people to click link

Example: In this post, the links to recode.net and slate.com to use a custom tracking code of pez.ai, linking to my AI SaaS service.

Tools

To explore the effects of different behaviors on these sites, these R packages can help you construct recommendation models: recommenderLab, arules, rCUR.

This is a small sampling of how to identify flaws in models. Add your own ideas on how to break models in the comments!

Brian Lee Yung Rowe is Founder and Chief Pez Head of Pez.AI // Zato Novo, a conversational AI platform for guided data analysis and automated customer service. Learn more at Pez.AI.

Leave a Reply

Your email address will not be published. Required fields are marked *