Thursday, April 12, 2007

Historical Bear Market Contractions

Barry Ritholtz continues his track record at finding and sharing interesting and useful charts that provide new perspectives at looking at important data. You can find the full post at:
The Big Picture Historical Bear Market Contractions

I liked the creative way that the width of the bars in this chart shows the second dimension of length of the contraction period.

Wednesday, April 11, 2007

An Old Fashioned Trend Visualization Appliance

And speaking about the excellent Calculated Risk Blog, I would like to point out the following exemplary post on the Housing market.

Using just the ordinary blog posting mechanism and the ability to embed JPG pictures as the Trend Visualization Appliance, the resulting article has a high degree of explanatory power and immediacy. You can literally see what Calculated Risk is talking about as you read as a result of the great blend of clarifying text with the easy to read trend graphics in close proximity.

Not relying on the normal conventions of providing only one or two graphics for headline numbers, Calculated Risks walks us through a series of 6 or 7 less well known but still key factors. This leaves the reader/viewer which a much more complete view of the dynamics that are at work in this one complex area.

Combine this with good references back to data sources and consistently good judgment on what would constitute a reasonable time frame, leaves with a very useful end result that provides the reader with the maximum amount of infomation in relatively short period of time.

The only difficulty with this is the same one I face with this TimelineView blog -- namely that as a limitation of BLOGGER.COM the largest allowed size of the embedded images is just too small to be fully readable and understandable in most instances. To really understand the charts, at least at first, usually requires clicking for the larger image and then using the browser navigation controls to go back to the main page. This really slows down the flow of reading and understanding.

I think we can all learn a lot by watching how Calculated Risk handles these kinds of presentations. Take a look at the post or other similar posts that appear regularly at Calculated Risk and you will see what I mean.

The Importance of Mortgage Equity Withdrawal (MEW)


Another hat tip to Barry Ritholtz in his post on The Big Picture The Capital Commerce Debate this time highlighting some eye opening and vital data about MEW (Mortgage Equity Withdrawal) using charts from courtesy of CalculatedRisk.

You can find a very recent Calculated Risk article here with comments on the debate between Barry Ritholtz and Don Luskin and a clarification of the meaning of the second chart here.

Business Capex - Another Nice Chart

Hat tip again to Barry Ritholtz who regularly posts some charts well worth looking at as with today's post on: The Big Picture Business Capex Rolling Over

It sure does look like capital spending has turned a big corner.

The chart is courtesy of Bob Bronson. You can find some more of Bob's posts here.

For reference, here's is a similar chart from about 6 months ago.I found it interesting how well Bob's analysis back in October, before the raw data turned the corner, was able to predict the recent changes in Capex.
I also like the way Bob has integrated textual explanations and graphical pointers right in with the charts themselves.

The only negative point I see with this presentation is that the dates are hard too read clearly.

Iraq Trend Data Set now posted to Swivel and Many Eyes

A while back we mentioned the great new data sharing and visualization web site called Many Eyes and we pointed out an Iraq Trend data set we had uploaded so that others could more readily examine and analyze it.

We've recently come across another great new data sharing and visualization web site called Swivel and have uploaded the same data set there for comparison purposes at: http://www.swivel.com/data_sets/show/1004780.

Both Many Eyes and Swivel fall into a category I have started calling Trend Visualization Appliances. The amazing Gapminder work also fits into this category as do all the various stock market visualization tools currently available.

The old fashioned form of trend visualization appliances (e.g. a standard report including graphical output) can still be pretty useful when managed carefully. For further comparison, here is the link to a PDF report that graphically presents the same data - vizualizing-trends-ohanlon-testimony.pdf.

Similarly, for data sharing, the old fashioned URL links to csv files offer an alternative to the WEB 2.0 mechanisms such as Many Eyes and Swivel. Here's the Iraq trend data the old fashioned way: ohanlon-key-factors.csv

So many choices, so little time. How can we decide which is best for our purposes?

I'll be revisiting this topic, but for now, my own criteria for deciding which tools I will use at a given moment are:
1) ease of use,
2) shortness of learning curve, and
3) personal productivity and time saving -- the speed at which I can navigate through complex trend data sets to discover previously hidden patterns.

What do you think?

Tuesday, April 10, 2007

Digging into the Job Opening Data

As mentioned in the previous post, the Bureau of Labor Statistics makes detailed trend data available on all the key Job Opening and Labor Turnover Survey (JOLTS). You can take a look yourself at the BLS data page and then scrolling down to select one of the option buttons (e.g. for most requested statistics) for Job Openings and Labor Turnover Survey.

You can set the time period for the trend graphs created to be the entire time since the year 2000 that JOLTS data has been collected. Here are a few examples. It's somewhat puzzling to me why the Openings rate seems to be going steadily up from 12/2003 onward while the Hiring rate stays steady beginning around 12/2004.





There's a ton more data at the BLS web site. The biggest difficulty for me and I bet for others is just how time consuming and inflexible the BLS' trend visualization application (TVA) is to work with.

Job Openings and Labor Turnover Report

Here's the two reasonably readable graphs from this morning's JOLT (Job Openings and Labor Turnover) report from the Bureau of Labor Statistics (BLS). Looks like there has been a moderately strong trend at work in the job openings picture for the past 3 years.



As has been typical in the BLS formal reports like this, the time span is too short to be able to place recent behavior in context and the number of factors shown in visual form is far too few to fully grasp what is going on in the world of employment.

In the full monthly report itself which runs to 15 pages, there are numerous tables with literally hundreds of important factors. Unfortunately, these covering an even shorter two year time period with even fewer sample trend sample points per factor. This again matches the current BLS standard not-particularly-reader-friendly approach for their "printed" reports.

In my view, this standard BLS approach is far from the best way to present important trend data. All the time consuming work of searching for and extracting meaning is left to reader (which means in most cases it will never happen) or it is left to the expert pundits who will typically comment on a few of the sub factors that they find most interesting and perhaps present one or two charts.

Of course, back at the BLS web site, just about all the trend data for all the factors for all the time periods is available for those who have the time and skill to track it down.

Another Easy to Read Housing Chart

Here's another easy to read chart that I find attractive from Political Calculations' post on the Boom in Realtors. The long time sweep creates excellent perspective. It would be interesting to zoom in on the past 30 years for another view.





San Diego Mortgage Defaults & Foreclosures

Here's a nice crisp chart that I think is instantly understandable. I especially like the long time sweep so the most recent data can be put into perspective. You can find the full story at:
voiceofsandiego.org: Toscano... Motivated Sellers Abound


It would be nice to be able to flip through a series of charts like this for a sampling of strategic areas or state by state to be able to compare how the San Diego trends match up against other parts of the country.

Hat tip to Kirk for this post at Reasons Unbeknownst

Monday, April 9, 2007

The Battle for Baghdad - NY Times interactive graphic

Here's another New York Times graphic that provides some insight into the evolving situation.

Violence in Iraq - The Battle for Baghdad - New York Times

If you click on the Sunni Area, Shiite Area, and Green Zone labels in the upper right corner, the map will be painted with some subtle coloring that I found helpful.

The forward and back controls that that show you week by week changes did not work well for me, often not responding to my mouse clicks. The pull down menu worked better but of course is a lot more clumsy. A PLAY button with some speed control would have been really helpful.

The time span runs backward to February 11th so this chart doesn't allow comparisons of how post "surge" events relate to the pre "surge" situation.

Is the "Surge" working?


Here's a before and after the 'surge' graphic from this morning's New York Time article on: Patterns of War Shift in Iraq Amid Buildup of U.S. Force that sheds some light on the degree to which the "surge" is working.

Disaggregating the figures by area is helpful at clarifying better what is happening on the ground. For example, the increase in Baghdad deaths and Diyala deaths due to IED both look substantial while the drop off in total deaths in Anbar Province is also striking.

By selecting a 7 week Before Period and a 7 week After Period, this graphic sets up the possiblity of direct and straightforward Apples to Apples
comparisons .

I would also have liked to see all the same key factors represented on this chart (such as Baghdad deaths by IED, Baghdad deaths by other causes, Anbar deaths by IED) also available as a week by week trend table and charts with the time frame stretching back to the beginning of the war so that the trends showing up in the current casualty levels could be put put into a broader context.

Of course, adding in other factors such as US troops wounded, Iraqi forces deaths and wounded, and Iraqi civilian deaths and wounded would give a much fuller picture of the degree to which the "surge" has so far changed things in Iraq.











Saturday, April 7, 2007

Selective Perception, Cognitive Bias, & the Recency Effect

Barry Ritholtz has an excellent post this morning commenting on NonFarm Payroll (NFP) increase of 180,000 from yesterday's Bureau of Labor Statistics Employment Situation Report.

His comments on selective perception, cognitive bias, the "recency effect" and the soft prejudice of low expectations apply well beyond the NFP example.

Let's begin with a quick word on cognitive bias. Humans are guilty of this -- selectively perceiving and recalling what agrees with their world view. We are all guilty of this, and while we cannot escape it, being aware of it at least allows some measure of recognition, and perhaps, adaptation to the phenomena.

Let's use the NFP data as an example: Consider another bias, the Human tendency to overemphasize more recent data versus the totality of information and the overall trend. This is a cognitive bias known as the recency effect. Despite the overwhelming evidence showing this to be a generally weak jobs recovery (the worst since WWII), our primate brains interpret a single good data point as proof of something better. ...

Regardless, we also see some of the soft prejudice of low expectations in yesterday's data: 180k is hardly a rockin' strong number, relative to population growth,. Put that into the context of recent expansions such as the 1990s. Oh, and in that more recent period, there was no BLS Birth/Death adjustment, responsible for nearly a million fictitious jobs in 2006.
Unfortunately, the two trend chart he shows only go back three years (suffering themselves from the recency effect) so we can't compare the relatively weak current numbers to the NFP increases of the 1990s. The two charts shown in the Bureau of Labor Statistics Employment Situation Report also only go back 3 years.

So, below I have posted a 15 year view showing year over year percentage change for the seasonally adjusted value of the growth in NonFarm Payroll. It's pretty clear from this longer term chart that our growth in non-farm employment during this latest expansion never got back to the steady, multi-year 2.5% growth rate of the late 1990's and appears to be declining again.

Of course, in a subject area as complex as employment, an equally important danger in my opinion is the almost universal tendency these days to stick with just a few headline factors. If we truly want to understand employment, I believe we have to make it easy to visualize and then examine a full range of factors over a substantial time period.

For example, the recent drop off shown above does not seem to square with the reported drop in the headline unemployment rate. Maybe some other factor of the thousands of factors recorded by Bureau of Labor Statistics (BLS) can help explain it.

Too often, really important factors aren't mentioned at all, and the ones that are mentioned are not accompanied by their corresponding trend charts.

Here's a link to a short list of the most popular BLS statistics which might be a useful starting point for a deeper analysis.

Sunday, March 25, 2007

Longer term view of Iraqi Oil Production


Here's a longer term (10 year view) of Iraqi Oil Production in a single chart (Source is Oil Market Report, provided by the International Energy Agency). With the more complete time range view, it becomes easier to put the most recent production data as reported in the Iraq Weekly Status Report into broader perspective.

Hat tip for this link to Scott Johnson.

Saturday, March 24, 2007

Michael O'Hanlon Year over Year Iraq Update

Here's a recent Michael O'Hanlon New York Times article which includes year over year table showing some 17 trend metrics from Feb 2004, year by year through Feb 2007.

The State of Iraq: An Update:

We plan to graph some of the more interesting of these trends in a future post to see what patterns we can discover that may be hiding in the data once we have transformed the posted table into a more readily reusable format for further investigation and discussion.

The Brookings Iraq Index Archive

Here's the link for the Brookings Iraq Index Archive: Iraq Index Archive that lets you access their entire history of this important report going back to Nov 17th, 2003.

Latest Iraq Trends from the Brookings Institution

The Brookings Institution continues its weekly Iraq Trend reporting. Here are some interesting charts gleaned from their March 22nd edition. Note the link to the Brookings Latest Iraq Trends Report will always take you to their most recent version.

Security Stations Established. This is a new chart reflecting changes underway as a result of the "surge" showing the number of security stations (cumulative) that have been established in Baghdad. The new goal is to reach 70 stations (original goal of 30).


Patrols Per Week. This new chart shows patrols carried per week and shows an impressive jump up in recent weeks.

IED Fatalities & Percentage. This dual axis chart shows both the number of IED fatalities (red bars, left scale) and the percentage of all fatalities that are attributable to IEDs (blue line, right scale).

Targetted Attacks. This chart shows average weekly attack based on who the attacks target - Coalition forces, Iraqi forces, or others.

Oil Production: Iraq Weekly Status Report - March 21, 2007

Here's the latest Iraq Oil production chart from the Iraq Weekly Status Report, March 21, 2007
showing production at or close to the Oil Ministry Goal for 2007 and holding quite steady .for the past 7 weeks after a slowdown period at the beginning of January.

To completely understand the meaning of current production and this year's goal, it would be helpful if the full range of production data since the beginning of the war were also available in addition to the zoomed in most recent view that is presented.

With that in mind, I assembled a mini time series history (each about 3 months apart) of this chart as it appears in weekly reports stretching back to 2005. Note that the next to the last chart overlaps the charts before and after to more clearly show the January 2007 dip.

Ideally, all this data would be on a single chart and much more readily digestible.











Iraq Reconstruction Management Office: Employment Chart

Here's latest employment chart from the US State Department's Iraq Reconstruction Management Office (IRMO) Report dated March 20th, 2007.

It shows Iraqi employment in US Govt. projects and what appears to be a rapidly declining trend. It would interesting to determine whether the change in this factor was having an impact on other key success factors in Iraq.

If you would like to be on an email distribution list for the full weekly IRMO report which also contains detailed updates about Electricity, Oil, Water, and Sanitation project. you can send your request to:
jddurso AT earthlink DOT net

More BBC trend charts for Iraq


BBC NEWS | In Depth | Iraq violence, in figures

The BBC link above is the source for these two easy to read charts -- the first showing the varying levels of US troop strength and the second showing the US Military Death Toll.

Good points of the BBC presentation:

1) Full range of Data. Both charts go back to the beginning of the conflict in 2003 and are up to date as of Feb 2007.

2) Combining Data from Multiple Sources.
The BBC has combined data sources obtaining the troop strength information from the Brookings Institution and fatality figures from the Iraq Coalition Casualty Count. The charts are presented on the page so the single Time Axis can be used for both for more ready comparison.

3) Detailed Interactive Event Description Integrated with the Trend Data.

The BBC original interactive chart has the option to click on the event arrows to get a brief snapshot of some of the important events and see how these fit into the overall picture and relate to the underlying trends.

More Timelines in Motion


BBC NEWS | In Depth | Baghdad: Mapping the violence

This interactive graphic from the BBC will repay your careful interactive examination.

Some things to try.

1) Drag the timeline slider slowly to see how the level of violence has changed month to month.

2) Also click on Ethnic Areas and then click back and forth between Current and Pre-2006 to see the dramatic changes in ethnic mix that have taken place already and to understand where the predominance of violence is taking place.

It will be interesting to compare the March 2007 view of violence when it is ready to the pictures of violence in December 2006, January 2007 and February 2007 to better gauge the degree to which the "surge" may be having a positive effect.

This would be even better if, like Gapminder, there were a PLAY button and some Speed control. Next Month and Previous Month buttons would also be handy as it is a little tricky dragging the timeline control exactly one month forward or back or clicking on exactly a given hash mark along the timeline of months.

Hat tip to: Data Mining: Text Mining, Visualization and Social Media


Tuesday, March 20, 2007

And speaking of gapminder

Thanks to a hat tip from Pat McConnell, I've learned that the latest news is it that GOOGLE has acquired gapminder's Trendalyzer software. Here's the scoop from the the gapminder home page.

Make sense of the world by having fun with statistics

Gapminder and Google share an enthusiasm for technology that makes data easily accessible and understandable to the world. Gapminder’s Trendalyzer software unveils the beauty of statistics by converting boring numbers into enjoyable interactive animations. We believe that Google’s acquisition of Trendalyzer will speed up the achievement of this noble goal. Trendalyzer’s developers have left Gapminder to join Google in Mountain View, where Google intends to improve and scale up Trendalyzer, and make it freely available to those who seek access to statistics.

The Stockholm-based Gapminder Foundation will continue to spearhead the use of new technology for data animations. The goal is to promote a fact-based worldview by bringing statistical story-telling to new levels. In collaboration with producers of accurate statistics that are eager to give the public free access to databases, Gapminder hopes to recruit and inspire many users of public statistics.

If you haven't seen Trendalyzer in action, you are in for a treat. You can check it out for yourself with this powerful example.

Trendalyzer in simple terms is a timeline in motion machine which has all sorts of potential to help us discover previously unseen patterns. Google's stated intentions to continue to advance on this already powerful design is an exciting development for anyone interested in understanding the behavior of important factors and how they change over time.

timelines in motion

A nice example of timelines in motion accompanied by an audio track from Brad Delong.

The combination of a timeline change in motion and a guided audio track is powerful.

To make this even better, I would have liked it to zip along at a faster pace and it would be great to have a higher resolution graphic quality so that the X and Y axes could be more readily examined and understood.

You won't be surprised to hear me saying that making the data available in a readily re-usable format would sweeten things even further.

Providing a mechanism similar to gapminder to be able to watch this change over time with the viewer in control of the speed would be even better.

What do you think?

Monday, February 12, 2007

Many Eyes - A New Doorway for Graphical Collaboration

From our previous post we noted that:
We believe in many eyes, many hands, many voices working together on the path of mutual discovery (rather than the idea of a single expert figuring it all out and presenting it to us in final form).
To help foster exactly this kind of process, I am excited to note a new web site, Many Eyes that is now available for exactly this purpose. As they describe it on their home page: Many Eyes is a place to: view your data, ask questions, share your discoveries, and harness the collective intelligence of the net for insight and analysis.

Once you register, you can upload interesting data sets and create visualizations that you feel are meaningful. Others can view your visualization and comment. They can also create their own variant visualizations using the data you uploaded and publish these for others to view and comment. Many different visualization formats including time series graphs, bar charts, scatter charts as well as some very creative new chart types are available in an interactive fashion. Creating new charts is similar to the kinds of interactions you might experience with one of the many stock quote charting web sites such as the java charts on prophet.net

Even better, once a data set is uploaded by anyone, it is possible someone else to download that data set for further analysis on their system using their favorite tools. For example, you might want to take a set of raw time line data series and compute some additional columns of data as we did in one of our previous Iraq posts. You could then take your new data set with added columns and upload it to Many Eyes for others to work with directly.

To test out these capabilities, I uploaded the O'Hanlon indicators that we have recently posted about. You can find a visualization that shows a single indicator that I created at: Percent of Coalition Troops Appears to be Shrinking. Once you get to that page, you can select other indicators from the list box on the left side to view the other trends at work. You can also download the entire table to your computer or leave a comment or create at publish your own chart. [Unfortunately, at present the long indicator names cannot be fully seen during the selectino process. So if you want to know what they are, you can find out by clicking on the table like icon element to look at and scroll through the top row of the data set where the indicator names appear]

I see Many Eyes (what a great name) as a big step forward in thinking about, discussing, understanding, and collaborating about the most important factors in our lives. I expect I will be uploading additional data sets and creating new visualizations there in the future. I would love to hear what you think about his newly available capability.

Change Over Time: First Principles Revisted

I am enjoying reading Edward Tufte's new book: Beautiful Evidence. It's the fourth in a series of wonderful Tufte volumes that exemplify the power of visual display and it certainly lives up to its title. Beautiful Evidence, like its predecessors, is simply a beautiful and inspiring work - blending art and science and philosophy and the linkages between numeric data and their visual representations into a unifying whole.

Tufte is powerfully interested in the underlying principles. For example, here's a brief passage from his introduction to Beautiful Evidence:
Evidence is evidence, whether words, numbers, images, diagrams, still or moving. The intellectual tasks remain constant regardless of the mode of evidence: to understand and to reason about the materials at hand, and to appraise their quality, relevance, and integrity.

... The point of evidence displays is to assist the thinking of the producer and consumer alike. Evidence presentations should be created in accord with the common analytical tasks at hand, which usually involve understanding causality, making multivariate comparisons, examining relevant evidence, and assessing the credibility of evidence and conclusions.
This blog is especially concerned with a particular kind of evidence: multi-dimensional time series. We are surely interested in the underlying intellectual and analytical tasks including understanding causality, making comparisons, and cross checking conclusions.

"Beauty" on the other hand, plays a much smaller role in our efforts. It is always a delight when it makes one of its rare appearances for us, but is not a primary or even a secondary goal. In fact, many of the approaches we recommend in order to meet our primary mission by their very nature tend to lead away from beauty.

Reading Tufte always encourages me to take a step back and think about the first principles that are the foundation of the work of this blog. I want to think through and examine all that his approach has in common with the work shown in this blog and all the ways we might differ.

Here are some further thoughts about the first principles that are the basis of my continuing work with the visualization of time series data (with special emphasis today on the principles that might mitigate against "beauty").
  1. Time is of the essence - both analyst time and viewer time. While making comparisons and searching for understanding and seeking out properties of the data that have never before been seen, we will give preference to those approaches that help speed up the work of the analyst, even if some or a lot of beauty must be sacrificed.
  2. Following Covey, we seek first to understand the data and then to present our findings in ways that make it easiest and quickest for others to understand.
  3. Sharing the data in a readily accessible and readily reusable form along with the presentation of any findings is perhaps the core principle of our work. It's the one that allows for collaboration and for a rapid and multi-step search for meaning.
  4. We aim to make both the data and whatever graphical representations we create accessible to experts and non-experts alike.
  5. We care deeply about practical tools that allow ordinary citizens to participate in this work of comparison and understanding.
  6. We believe in many eyes, many hands, many voices working together on the path of mutual discovery (rather than the idea of a single expert figuring it all out and presenting it to us in final form).
  7. We want to apply this approach to the most important, practical, everyday problems that we face. We want this approach to help dramatically improve decision making. And we want this to happen in near real time.
For example, in hindsight, the famous Napoleon' March graphic that Tufte has written extensively about is certainly a beautiful and powerful display that promotes understanding of what happened to Napoleon's army on the way to Russia and back. But of course, it was not available in time to help Napoleon make better decisions. What we are interested in is figuring out ways in which such powerful understanding might be made available soon enough (in near real time) to actually be of use to the decisions makers and to ordinary citizens as complicated and important events are unfolding. Our recent series of posts about the key indicators at work that help us understand how things are going in Iraq is a step in that direction.

To sum up, in our approach, if we have to chose, we will chose timeliness, usefulness, ready re-usability, accessibility to the ordinary citizen, tools that are available here and now, and the ability to collaborate over beauty every time.

Edward Tufte's "Beautiful Evidence", Sparklines & CSVPNG

Edward Tufte is out with a new and inspirational book: Beautiful Evidence which includes a full chapter on the idea of sparklines - small word like graphic elements that can be integrated fully with text and that allow for massive amounts of statistical data to be presented in a compact format that encourages comparison between elements.

Not many software tools are yet available to help create the sparkline graphical elements. One exception is the T4 & Friends utility: CSVPNG that we have talked about in previous posts. CSVPNG has some introduced some new basic capabilities that can let you experiment with creating your own sparklines without having to write all the code yourself. The latest version of CSVPNG can be downloaded from the Trends That Matter download page