Skip to content

Short set of small challenges for data team interviews

Notifications You must be signed in to change notification settings

tailsdotcom/data-test-initial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Data Test: Round 1

Thank you for taking the time to complete our initial set of challenges. These are designed to help gauge your abilities on some of the core capabilities of the kind of work we do in our team - and help us to tailor the recruitment experience best to your current skill level. There are no "correct" answers to aim for, all of the problems are open to interpretation, and so feel free to take any approach you see fit to any of them.

Feel free to spend as much or as little time as you'd like, however bear in mind that the purpose of this is just to get a handle on your skill level and start a conversation so be pragmatic in how much time you spend. As a guidline, 20 minutes should be the most time it would be sensible to spend, and you may find you can answer some questions very quickly.

Challenge 1: Om Nom Nom

Recently we surveyed some of the dogs in our office (25 Labradors and 25 Spaniels) for how tasty they thought two of our ingredients were (Chicken and Fish). The taste score is a highly scientific measure developed by our nutrition team. We looked at the average scores, both overall and by breed and the results were confusing...

Challenge Picture

What should we conclude from these results?

Challenge 2: Super secret treat

Our food team has developed a new kind of super secret treat which we think all of our dogs are going to love. What we don't know is whether it should be square or round. We sent some samples to a selection of our loyal subscribers and then offered them the opportunity to buy more. The results of that test are below.

Month # Dogs offered Square Treat # Dogs who bought Square Treat # Dogs offered Round Treat # Dogs who bought Round Treat
March 100 20 150 37
April 200 38 150 0
May 300 55 150 39
June 400 75 150 41

Construct a visual (table, graphic or chart) of your choosing to interpret these results and suggest what we should conclude from the results. Think about:

  • Do we have enough data to make a decision about which treat works best?*
  • What do you recommend we do in July and why?
  • What assumptions have you made and how would you confirm those assumptions if you needed to?
  • How would you go about working out what happened in April?
  • Waht feedback would you give the team about how they carried out this test?

*(If you're feeling rusty on how to work out whether we've seen enough data yet then check out this excellent article on A/B testing statistics, or this very visual calculator)

Challenge 3: Rover the Labrador

One of the database technologies we use is MySQL, and we quite often use SQL to get at the data we need to inform decisions across the business. Below is a query that we've been using but one of the dogs has been editing the code and now we're getting an error.

(If you're feeling rusty, then check out sections 2, 3, 4, 5 & 6 of this tutorial)

Rover the Labrador has been in touch about his food and said he prefers chicken to beef, and would like a chicken-based blend rather than his current beef-based one. We've been looking for all of our Labradors that are called Rover, to find out what blends they're on right now, but we're getting a syntax error. Can you correct the query so that it works and then sort the answers by their most_recent_blend_date so that dogs who've had a blend more recently appear at the top?

SELECT
  dog.dog_name,
  dog.breed,
  dog.signup_date,
  blend.flavour,
  MAX(blend.order_date) as most_recent_blend_date
FROM dog
INNER JOIN blend
  ON (blend.dog_id = dog.dog_id)
WHERE dog.dog_name = 'Rover' 
WHERE dog.breed = 'Labrador'
GROUP BY dog_name, breed, signup_date, flavour

(If you'd like something to help you work with this, you might want to use a tool like DB Fiddle to test out your SQL. You can paste the content of this file into the left hand pane of that tool and the query above into the right hand pane to create yourself an environment which you can test in. You'll know if you've set it up right, if you run the query above before correcting it (by clicking the Run button in the top left of DB fiddle) and you get an error saying something like You have an error in your SQL syntax)

Extension questions - these are if you want to show off your skills and are not required, so only do these if it took you less than 5 minutes to do the first part, and don't spend more than 20 minutes on them.

  • We're interested in when customers change their favourite flavour. Write a query which will find the flavour and order_date for any blends which had a different flavour to the previous blend for that pet. Restrict your answer to pets with a dog_id less than 100.
  • Take the query you've just written and adapt it to display which flavour changes (i.e. combination of the flavour before the change and the flavour after the change) are most common.

About

Short set of small challenges for data team interviews

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published