Showing posts with label sensemaking. Show all posts
Showing posts with label sensemaking. Show all posts

Wednesday, August 31, 2011

Wednesday Search Challenge (August 31, 2011): Easiest way to animate the visualization

There are no end of hard problems to ask.  Most of the really good ones aren't quite suitable for this blog--what is the nature of life?  why is there something rather than nothing?  


So I tend to pick problems that have some kind of observation about the world.  Someone will ask me a question ("Is synesthesia consistent across people?") or I'll notice something odd about the world ("What is that anode thing in the middle of the street?") and that will lead to a search challenge.  


For today's question I want to pose a more mundane, but in some ways even harder, much more pragmatic question.  (And I ask this in the hope that you'll come up with a solution that I haven't thought of!)  


Remember last week's question about the words kayak and tint?   I thought so.  


When I saw the data curves, I immediately wanted to make an animation of the US vs. New Zealand data showing the maps of both US and NZ growing darker/lighter with the value of each query volume.  


This is the kind of practical question someone might ask a data analyst. Can you make me a cool animation that does... this cool thing?  


So the challenge is this:  Figure out how to make an animation of US vs. NZ that pulses the color of the country from white-to-black with the values of each query.  I'll give you the data so you don't have to hassle it yourself.  


Link to Google Spreadsheet with data. 
Link to XSL version of data. 
Link to CSV version of data. 


Each version is 104 rows of data, one for each week of 2009 and 2010.  The values vary from 0  - 100 , with 0 being the lowest query volume.  


Go ahead, so us your animation!  (And let us know how you did it!) 




Search on! 

Tuesday, July 12, 2011

Answer: How many planes from SFO / day?

Last week I asked a question that should be pretty simple to answer:  How many regularly scheduled flights depart SFO (San Francisco airport) on a typical day?  


The hard part here is to find a reasonable data source of flights from SFO.  Here's what I did: 



First search for [ faa flight departures ] 


When I scanned the results, I quickly find that the FAA has an "ASDI Data Feed," which shows all of the flights that the FAA tracks, and that wouldn't be a bad thing to use, but I only want to do this once from one airpot, not many times over and over, so that seems like overkill.  


In my reading of the results I also learned about codeshares.  Ah, that's right, any listing of airline flights will have the same flight listed as being from multiple carriers.  Since I wanted the number of planes departing, I need to exclude the codeshare flights.  Don’t want to double or triple count these, so I want to get a singlecode for 1 plane.  


After then searching for [ SFO flights listing ] I find that FlightStats.com allows you to search for all departures by the hour!  Although it's inelegant (and I wouldn't want to do it this way more than once), I can manually copy/paste all of the departures from SFO into spreadsheet!  Luckily, FlightStats also has a "Remove codeshares" button which lets me skip the post-data download step of removing dups.  


It seems painful, but the truth is that I was able to grab the 18 screen-fulls of data in about 3 minutes and paste it into my spreadsheet.  Great!  




After spot checking to make sure that I really DID have all the flights, and that there really were no codeshares, and that I hadn't accidentally duplicated data somehow, I was ready to go.  Finding the number of flights was then just looking at the last row in the sheet:  there are 583 regularly-scheduled flights / day out of SFO (at least for July 12, 2011).  


But I couldn't stop there!  From here, it was easy to write out a CSV file and then import that into Google Fusion Tables in order to use the map visualization tool that I know is there.  A quick import, and then a click on "Visualize" and then "Map" yields: 


Interesting, is it not, that there are more flights to more cities in China that to Russia, Africa and Australia combined?  

And for my last quick look at the data, I computed a histogram to see the number of flights departing by hour of the day.  As you can see, it's quiet after midnight, but pretty steady for most of the day.  



And finally, this chart that buckets departures by 30 minute buckets... 


So now you know the quiet times for departures at SFO.  I've flown enough times out of SFO to say with some certainty that this is probably right.  

People who left comments (Hans, Julia and gasstationswithoutpumps) all had reasonable guesses, but they were estimates from other people's summaries.  That's a valid method when you can't get to the actual data, but when possible (as in this case), I like to get the raw numbers and do the analysis myself.  (Still--Hans got extremely close to my number! Nice job.)  

There are a couple of search lessons here.... 

1.  When you can, get the raw data and do your own analysis.  Other people's analyses often contain assumptions that you can't verify (and they might not even explain).  Be careful! 

2.  A really important part of the search analysis process is learning stuff along the way.  This is such an important concept that we'll have to talk about it in more detail in a future post, but I wanted to highlight it here.  I was reminded about the codeshare problem as I read through the initial search results... and that let me know how to frame my subsequent searches to be more to the point.  

Keep searching! 





Postscript:  I also should mention here Aaron Koblin's wonderful visualizations of air traffic patterns. It's not quiet what I was asking for, but you might be interested in seeing them.   




Here I zoomed into his flow patterns around SFO.  The labels are mine to add a bit of clarity.  

Monday, March 21, 2011

What counts as a credible source for a newspaper article?




There's been a recent kerfuffle in the NYTimes about what counts as a credible resource for news reporting.  

To start, there was an article in the Times about how Michelle Obama is advocating breastfeeding.  The problem begins with the article containing with a few quotes from “anonymous bloggers."   

Arthur Brisbane, the public editor for the Times and the “reader’s representative” who responds to complains and comments, wrote in commentary.  

The Times’s policy on anonymous sourcing describes the use of anonymous sources as a “last resort to obtain information that we believe to be newsworthy and reliable.” The policy goes on to say that the identity of every anonymous source should be known by at least one editor. Unfortunately, it is all but impossible to know the identity of an anonymous blogger.

That said, I can see some merit in reporting on how a particular political controversy is playing out in the blogosphere, so long as that is clearly described as the basis of the story.”

Katie Zernicke, the reporter who wrote the original story responded saying:


“…her reporting included interviews, as well as the blog material, and that interviewees were reluctant to be quoted. The blog material supported what she was hearing in her interviews, she said.


“I wouldn’t have taken only blog postings, but given that they backed up what I was hearing elsewhere – and that this was generating so much comment online – they seemed to be relevant,” she said.


So… Should you use anonymous blog posts in news coverage?  I would say generally  no, there’s really not any value added to the conversation.  

The point of reporting is to add some information or insight to the public conversation.  If the blog quotes were brilliant, incisive bits of text that added a perspective or nuanced and colorful language, it might be a plausible addition.  But the quotes are pedestrian.  They fell like filler more than content. 

When you’re trying to make sense of a complex argument or data-space, your task is to gather insightful, dataful and  useful content.  Anonymous bloggers do not a source of data make.

Now if she had said 90% of all blog posts in the US during the past week were pro- or con- this position, THAT would have been an interesting insight.  (I presuppose that the author would have some way of crawling the blogosphere and sentiment labeling the comments; something, perhaps, along the line of “I feel fine” by Jon Harris and Sep Kamvar.) 

But one unknown blogger with an opinion is pretty cheap, content free stuff.  The NY Times really shouldn’t be reaching that low for their sources. 

Keep searching!  (And always use credible sources.)  

Saturday, March 20, 2010

The smallest sensemaking problem

“Sensemaking” is what you do when you’re trying to figure out some complicated problem that involves too much data, or the wrong kind of data.  It’s problem-solving, but of a particular type.  When someone says “I need to make sense of <something…>” generally what they mean is that they don’t get what’s going on in a deep way. 

So what do one do?  Answer:  You start collecting information about what’s going on, then start to organize it in ways that make sense.

That’s kind of abstract, so let me give you the smallest possible sensemaking problem I could think up.

Here’s a number sequence:   80, 50, 40, 90, 70, 60, 30, 20

Now I’ll tell you that the number 10 fits into this sequence.  So… where does 10 go?

Think about this for a second. (Really!  Don’t read farther until you’ve given it at least 30 seconds of thought.) 

If you’ve done problems like this in the past, you might have done what I did and made a table of numbers, with each column showing a different operation on the numbers. 




The reason for making a table like this is to try different artithmetic operations, looking for a pattern that you recognize.  In this case, we’re looking for a numeric relationship.  So first I try dividing the number by 10 (that’s the second column).  That’s better, but I still don’t recognize any pattern. 

 Next I try subtracting each number from the one above it in the sequence (that is, 80 – 50 = 30, which gives me the second number in the third column).  This is a clever trick that often works for finding simply polynomials (more on this in another post), but it's giving junk here (that -50 in the 3rd column is just a mess).  

Then I tried dividing the number by 10 and then squaring the result.  (80 / 10)^2 = 64. 

No such luck.  This is just mucking around, and not revealing anything to me.  I try a few other operations… and nothing seems to be working.  Usually if you just fool around trying different operations on the sequence of numbers, something will emerge. 

I step away for a bit, and then realize that maybe this question is NOT a numeric question, it just might LOOK like a math problem.  Perhaps, just maybe, it’s a TEXT question.  That’s the kind of thing that makes puzzles so hard—you focus intently on one possible solution that you don’t think about anything else. 

So I write down all the names of the numbers into my table.  Now it looks like this. 













And I notice something interesting with this pattern…  The names of the numbers are all in alphabetic sequence!  It has nothing to do with any mathematical formula at all! 

This tells me that the number 10 belongs in this sequence just after 60 (sixty) and before 30 (thirty).  So the answer is:  80, 50, 40, 90, 70, 60, 10, 30, 20

As you might have guessed, I’ve been using a spreadsheet to help me figure this stuff out.  A spreadsheet is nice for doing this kind of sensemaking task because you can try out lots of hypotheses really quickly.  Want to divide everything by 10, just make the formula once, then you can extend it downward with a single keystroke.  (It’s control-D, for Down.) 

And the really great thing is that if we add 10 (and it’s name “ten”) to the spreadsheet, and then sort the spreadsheet by the “names” column, we’ll get exactly the sequence we want.  Namely,














Now let’s pop back up to the question of sensemaking again. 

In this case, I’ve been using a spreadsheet because it’s a handy way to keep track of a sequence of numbers.  Once you’ve got that sequence, you can do various operations on them quickly and easily.  As you can see, I can even sort by alphabetic sequence to verify that everything’s right. 

In the language of sensemaking, I’ve been “trying out different representations,” looking for one that explains what’s going on with this small data set.  That is, I’m trying to find a way to represent that data in a way that has a neat, simple and correct explanation for what’s going on. 

I must have tried 5 or 6 different representations before I figured out that it was the alphabetic sort order that was the best explanation.  That’s part of the process too!  For almost any sensemaking task, finding the best solution (or interpretation of the data) means trying out different “theories” about what’s going on.  I had the “divide by 10 and square it” theory, and that didn’t work at all.  I tried others, but nothing really clicked until I got here to the last step.  Once I figured that one out, everything fell into place. 

As I said, this is just about the smallest sensemaking problem I can think up.  It’s not something I can do in my head—I really did have to sit down and fool around with the data for a while, searching for a pattern that explained everything. 

And, in the end, the explanation is neat and clean; it explains everything. 

This is not the usual case with real-life big & hard sensemaking problems.  If I could make sense of the Middle East situation by filling out a table, I’d do so.  But in the smaller less geopolitically complicated day-to-day sensemaking tasks, tables and other ways of organizing the data often help by making the data visible and comprehensible.  And that’s almost entirely the trick of sensemaking… converting data from a large, intractable mess into something that’s smaller and has a clear underlying explanation. 

That makes sense to me so far. 

Search on!