Design Exercise 7: Exploratory Data Analysis with the ATUS data
In this assignment (actually, all the design exercises for the rest of the class), we will work with the American Time Use Survey - a data set that surveys thousands of people each year to see how they spend their time. Please read about it here: ATUS: American Time Usage Survey.
For this design exercise, we ask you to “explore” the data set. Your task is to identify interesting things in the data (that you might want to make visualizations of later). This task is Exploratory Data Analysis - and you will want to do some visualization. It’s just a different kind of visualization. You want to make quick, rough visualizations that show lots of things quickly so you can make judgements about where to did deeper or what stories to tell in more refined visualizations.
You will turn this in on canvas as DE07: Exploration (EDA) (due Tue, Nov 1).
I’ll be open here: this assignment is an experiment. The idea of having you try to do Exploratory Data Analysis and work with a data set of this scale is important. Exactly how to make this an assignment is a challenge.
Overview
The ATUS data is big in many ways. Over the years, it has included hundreds of thousands of people. It considers hundreds of categories of time uses. It considers dozens of variables about those people. At the same time, it isn’t too big to work with (you can easily load it into Python or Tableau). We’ve created some reduced versions for you, but you might prefer to work with the data straight from the source (see ATUS: American Time Usage Survey).
In the past, we asked students to find “stories” (interesting things) in this data set and make visualizations to show it. This semester, we will break the process down into steps. First, (this assignment) we will ask you to explore the data to look for interesting questions to ask/answer (find the stories to tell). In a next phase we will ask you to make “good” visualizations that actually show these stories. Then, in the third phase, we’ll do some “vis research” to see what we might be able to do to address the challenges in working with this kind of data.
Note: For the purposes of this assignment, you do not need to worry about how the results generalize to the broader population. Your work can be descriptive, that is, you are just trying to describe what is in the sample (the set of people surveyed), not to figure out if what we see in the sample may be true across the entire population. The ATUS data actually has information to help do the fancy statistics to test generalizability, but we won’t consider that here.
To put the multiple comparisons problem backwards (see Readings 08: Why Does (or doesn't) Vis Work?): with hundreds of variables (especially after joins) and tens of thousands of samples the odds of there not being at least some interesting patterns in the data is near zero. It might be a random chance - but we are just trying to describe what we see in the data. Think about this exploration as “let’s see what’s there, we can do good statistics later to see if we can actually draw a conclusion from it.” (I am not suggesting this is good practice, but it does fit this exercise for class).
Exploration (this exercise)
Your goal in this exercise is to “explore” the data. In class, I was cautious about this as a task. But here, the real goal of exploration is clear: you want to try to better understand the data set to identify what are the interesting questions to ask (stories to tell). Looking ahead, you will want to make visualizations that tell interesting stories from the data: this phase you need to figure out what those stories are, and understand the data well enough that you can make “nice” visualizations later.
This exploration might take different forms… you might just look at the data in different ways that might make patterns stand out; you might want to pick a general question, and look at the data in different ways to see if you can refine it; you might start with a specific question, and look at the data to see if there is a broader picture. You can see an example of me exploring in A Quick EDA Example with the ATUS data.
I strongly recommend you use Tableau for this. Yes, there’s a learning curve, but I believe that if you spend 2 hours with Tableau (and a lot of web searching to pick up specific tricks), then the next 2 hours you will be more productive, and ultimately get more done in the 4 hours than you would with 4 hours of trying to do this programmatically with Python (assuming you are already good with Python and some high-level plotting library). I will not require you to use Tableau.
Exploring data like this is a big, open ended exercise. Everytime I sit down to do it, I find myself getting sucked in to looking around more. (you can see some of my meanderings in A Quick EDA Example with the ATUS data - trying to write while doing it slowed me down a bit).
To make the exercise concrete, I’d like you to make sure you achieve the following (which you will need to hand in):
A list of good “questions” (things to show, stories to tell) that you would want to make visualizations from this data set. These should be things that you’ve found in exploring, so you know there’s something interesting, and sufficient data to show it.
Examples of where a visualization helped you find a good story to tell - even if the visualization doesn’t tell the story itself well.
I recommend that you do this with the following plan:
Come up with some initial questions - without looking at the data. (you should read the descriptions, and the meta-data to know what is in the data)
Think of what visualizations (or other data analyses) you might want to look at that would help you identify more and/or better questions.
Actually do some of exploration as you thought about in #2. There is a good chance that when you actually start looking at things, you will change what you want and create different things. You make make visualizations (or other analyses) that are based on convenience (it was easy to try X, or “while trying Y, I ended up making Z”) or interest (“when I saw X, I decided to look at Y”).
Come up with an additional set of questions based on #3.
I am separating #2 and #3 because I am assuming we arent’ expert data explorers. I think it is better to start with some ideas of what exploring we want to do, and then to see what is actually practical to do. It is also interesting to see how what you actually end up looking at deviates from what you initially thought you might look for.
Steps #3 and #4 probably happen together - you come up with questions while doing the exploration.
You will turn in the results of your exploration as DE07: Exploration (EDA) (due Tue, Nov 1).
What is a “Good Question”
For the purposes of this exercise, a “Good Question” has a non-standard (but still hand-wavy) definition: it will make for a good visualization.
I should also say that I am using the terms “Good Question” and “Stories in the Data” in a very similar way. The idea is to find something interesting in the data: you might phrase it as a question the data answers or a fact/pattern in the data (that would answer a question).
A good question/answer should be:
- Interesting (non obvious, ideally it is something that the course staff who has looked at this data hasn’t already seen; uniqueness is valued)
- Multi-variate (involve bringing together many variables)
- Taking advantage of visualization (Generally, this means the answer is complex. But it could be a simple yes no, but the visualization would have value to give context, or support the answer, or help address followup questions, …)
- Can actually be answered from the data (you could actually make a good visualization to answer the question)
A simple way to look at it would be to consider last year’s assignment. You goal is to come up with questions/stories that would lead to good responses to this assignment (with the criteria it presents). You don’t need to make the resulting visualizations (yet).
Or, next week, you will be asked to make some interesting visualizations from the ATUS data set (where “interesting” visualization is defined as in last year’s assignment). What are the questions you want these visualizations to answer / the stories you want them to tell. The criteria for the next phase will be something like:
- Is the question/story interesting and clear?
- Is it multi-variate?
- Is the design effective? (is it well adapted to the story/task?)
- Do the details represent good choices?
- Is the design appropriate for the data?
- Is the rationale properly stated (in the documentation)
- Is the design complete (it has enough of a caption that it stands alone)?
One trick to doing well on last year’s assignment (it wasn’t a secret - it is stated in the assignment) was to do good exploration to find the good stories. This year, we have the current design exercise to make you do that.
Again - the visualizations you make for this exercise are the ones for exploration. They are things that are useful to you, the explorer trying to find the interesting story, rather than to the potential viewer that you will ulitimately try to tell the story to.
What to turn in
The Canvas Hand-In DE07: Exploration (EDA) (due Tue, Nov 1) will ask you for:
A list of initial questions that you have to start your exploration. These can be broad, vague, unconfirmed, …
A list of the visualizations that you want to make for exploring (to start with)
Some evidence from your exploration. I don’t expect you to make a full “log” like I did on A Quick EDA Example with the ATUS data. A few pictures is probably OK, but it is better to put them into a document and say something about what they are. You can turn in a PDF or a ZIP file of images.
A list of new “questions” (or stories, or observations) that you think you would want to make visualizations for in the upcoming parts of the assignment. One challenge for you: try to come up with good questions that are unique - that your classmates will say “I wish I thought of that”.
An example of a visualization you made in your exploration that lead you to a question. This will be a picture, and an explanation of how the visualization lead you to something else.
We’ll also ask some other questions about the process.
What will happen with this
Canvas will give you a check/no check for turning something in. We will do evaluation separately.
We will have some form of “class discussion” to share questions and refine things before we send you off to make visualizations.
Because we might discuss the results of this in class, the deadline for handing in the questions may be strict.
Coming Attractions
The idea is that we will use this one data set for the rest of the semester. You will work with it in many ways. So, it is useful for you to get used to it.
The general strategy: I want you to experience working with a hard data set, and then we can do projects that try to address some of the challenges. Until you’ve seen the challenges, its harder to come up with solutions.
So the plan: (1) explore the data, (2) make visualization with it, (3) propose projects that address some of the challenges we encountered, (4) do a project where you push the boundaries of the state of the art.
It may be useful for you to see how this assignment fits in with the rest of the semester:
- DE07: Exploration (EDA) (due Tue, Nov 1) - You will do some explorations with the ATUS data set.
- DE08: Story Building (due Tue, Nov 8) - You will decide some visualizations to make with the ATUS data.
- DE09: Story Telling With Data (Handin) (due Sun, Nov 20) - You will make (good) visualizations showing the things you found.
- DE10: Project Proposals (due Tue, Nov 22) - You will critique visualizations, and think of how tools might make working with this data better.
- DE11: Project Updates (due Tue, Nov 29) - You will propose a project that supports working with this kind of data (and improve your DE9 visualizations based on the critiques)/
- DE12: Evaluation Exercise (due Tue, Dec 6) - You will do an exercise about how we evaluate visualizations - this is meant to reinforce some class content, but we’ll apply it to the project.
- DE13: Final Project Handin (due Fri, Dec 16) - You turn in your project.