Showing posts with label tlviz. Show all posts
Showing posts with label tlviz. Show all posts

Thursday, June 7, 2007

Turning the Tables

Some important data in the Brookings' Iraq Index only appears in tables (e.g. the prison population data we mentioned in the previous post). Troop strength for US forces and for other Coalition forces may be interest now because of the "surge" in in US Forces that is now reaching its stated goals. However, the troop strength trend data in the most recent report is tabular.

So we turned the tables and transformed it into a small CSV file and created some new charts (see below) using the TLViz interactive trend visualization tool.

If you would like to take a look at the CSV file yourself, you can download it from Troop Strength Table. This table includes three original trends from the Brookings' table (US Troop Strength, Other Coalition Troop Strength, and Total Coalition Force Troop Strength). To that, we have added two calculated trends. The first shows Other Coalition Troop Strength as percentage of Total Troop Strength. The second shows the ratio of US Troop Strength to a nominal value of 135,000.

If you haven't already tried out the TLViz tool that runs on Microsoft Windows as a way for looking at two dimensional tables of trend data, here's another chance. Get started by downloading the base kit. Once you have installed the base kit, you can grab the latest version of TLViz.

If you want to learn more about TLViz, check out some of our earlier posts on the subject starting in chronological order with the ones from early January.


This first chart shows a sharp downtrend in other Coalition forces dropping in half from 25,000 to 12,000 since January 2005.

This chart shows US Troop strength from the beginning of the war. While the uptick since January is sharp, the current level of US troops is not far from the middle of the range it has been operating in for the past 3 years.

This is a chart using the calculated value showing the Other Coalition forces as a percentage of total troop strength. There has been a sharp decline over the past 3 years from a maximum of 17 percent down to the current value of approximately 7.5%.

This is another calculated chart showing how US troop strength has fluctuated around the 135,000 mark for the past few years. The current peak is lower than the two previous peaks.

The final chart shows total coalition forces in Iraq over the past 4 years. The current value of 160,000 looks like it is right in the middle of the operational range for this factor since the beginning of the war.


Saturday, January 20, 2007

Tapping the Power of Iraq Readily Reusable Data

In the previous post, we showed how the tabular data from Michael O'Hanlon's testimony to the Senate Foreign Relations Committee could be converted to a Readily Reusable (RR) format as a CSV file ( ohanlon-key-factors.csv ) and how the RR format then made it relatively straightforward and inexpensive to actually look at the visualization of all thirty of the reported trends, one by one as shown in vizualizing-trends-ohanlon-testimony.pdf.

We have found that when using RR data and TLViz, the time savings we achieve make it possible to look at hundreds of trends, one after the other, in a very short time so as to gain a gestalt sense of all the reported factors at work. Typically, moving from tabular form to RR form gives a productivity saving factor of at least 10 to 1. Frequently, the productivity increase is 50 to 1 or more.

After having reviewed each of the 30 reported trend factors from Michael O'Hanlon's testimony, it became apparent that there were some other interesting trends hiding amongst the original data that could be computed with simple calculations from the original data. This is readily achievable by opening the RR csv file with a tool such as Microsoft Excel.

For example, with Excel we could create a new column of data and combine US troop strength and troop strength of other non-US coalition forces and then calculate the percentage of coalitions forces that were non-US. Similarly, we could use the original data to calculate the percentage of US troops that had been killed in that month by IEDs. We could also take factors such as the cumulative number of refugees and convert them into year over year trend data.

Below, we show you the three new trend charts that bring some previously invisible trends into the light of day where we can all see them. (please click on trend graphic for full size image.)




Bottom line. Once the trend data is in RR format, all sorts of new possibilities of understanding open up that can help us better understand what is really going on.

Friday, January 19, 2007

Visualizing the O'Hanlon Trend Data

Once we had the the data from Michael O'Hanlon's Senate Foreign Relations Committee Testimony (Jan 10, 2007) in readily reusable (RR) form, we opened that csv file with TLViz and were able to generate a set of graphs in a matter of minutes showing the individual trends in visual form including some that combined several of the metrics together.

You can see a pdf slide show of the entire set of charts we created in full screen size by clicking on: vizualizing-trends-ohanlon-testimony.pdf

Using Edward Tufte's idea of small multiples, we have combined 4 trends at a time into the pictures below (please click for full size) that show a sample of the charts from the full report.

The first 4 show US troops killed by IED, Iraq Civilian Fatalities, Multiple Fatality Bombings, and Estimated Strength of the Insurgency.

The next 4 trends show Estimated Strength of Shia Militias, Daily Average of Inter-ethnic attacks, Estimated Number of Foreign Fighters, and Number of Daily Attacks by Insurgents or Militias.



The next four small multiples show Iraqi Internally Displace, Iraq Refugees, Iraqi Physicians Murdered or Kidnapped, and Iraqi Physicians who have fled Iraq.


In this next set of trends, the first chart shows the total number of Iraqi Physicians who have murdered, kidnapped, or who have left Iraq. This chart was created by combining two of the originally reported trends. The second chart also combines two original trends, this time comparing the number of Iraqi forces who are technically proficient to the number who are politically dependable. The final two charts in the small multiple set show the Percentage of Household Fuel needs that are being met and the average hours per day of electricity in Baghdad.


This final small multiple set shows the Unemployment Rate, the Per Capita GDP, the Number of Trained Judges, and the Number of Telephone Subscribers.


If you click on these charts and then press F11, you should have a full screen readable version to examine. Of course, if you want to look at each chart by itself in full screen size with easy back and forth navigation, the vizualizing-trends-ohanlon-testimony.pdf is the place to go.

One of the advantages of these charts to the previous set of combined charts that we published is that they all cover the same time period and that makes understanding what they mean just that much easier. Once you understand what the X axis timeline means in one chart, you don't have to recompute that with each chart you examine.

Once again, we suggest that you download this RR data yourself and play with it to see what else you can find, what other patterns are hiding in the data. You can download by right clicking on ohanlon-key-factors.csv. We also suggest that this could be a fine opportunity for you to test out the ways in which TLViz simplifies and speeds up trend analysis work once you have RR data. You can learn more about TLViz from our earlier posts this month and you can download a copy of the full kit for Windows PC's from TrendsThatMatter's Download Page

Iraq Trend Data: O'Hanlon's Testimony to the Foreign Relations Committee

Michael O'Hanlon who is the lead author of the Brookings Iraq Index testified last week before the Senate Foreign Relations Committee. Here's the 4 page text of his January 10th testimony.

The last two pages show a relatively easy to read and understand printed table. The table lists, all in one place, what I assume to be what O'Hanlon thinks are the 30 key factors on the ground in Iraq and how they have varied year by year from November 2003 to November 2006.

Here's a version of that table that I have edited for even better visibility and to keep it from covering two pages. (please click on image for full size view):

The four data columns of the table show the trends for those factors with the data values being captured for the month of November in each of the past 4 years. From a standpoint of printed table readability, limiting the number of trend samples to 4 makes this table much more suited for direct human consumption at the cost of reducing overall trend data quality compared to a set of trend samples for a given factor that showed how that factor changes every month.

While most people are not comfortable with reading tables, this one is actually readable and understandable with the application of a modest amount of effort. Please let us know what you think?

This table as text is of course not a readily-reusable (RR) file. However, it was relatively straightforward for us to convert it into RR format and you can download your own copy by right clicking on ohanlon-key-factors.csv. This RR file is ready for examination with Microsoft Excel or even better with the T4 & Friends tools TLViz or CSVPNG.

You will note that the layout of the data has been inverted with the data rows now representing the 4 monthly sample reading time periods, and the 30 data columns representing the 30 key factors which is the orientation required for TLViz and CSVPNG. This makes for a very wide page, but of course, when using TLViz or CSVPNG to examine the trend data, we do not actually need to read it.

In our next post, we will show you why this conversion from printed table to RR format is so helpful in the way it allows the tabular data to come alive in visual form with very little effort by using a tool such as TLViz.

Thursday, January 18, 2007

Creating Readily Reusable Data from Online Tables of Trends in Iraq: a quick example

Here's a quick example of how relatively inaccessible tabular data from a web site can be converted into a readily reusable format.

Starting Point: Tabular data from GlobalSecurity

Step 1. We went to Global Security's Iraq Casualties page and found a table that included one column of monthly data for US Named Dead and second column for US Wounded. The bottom of that page also includes one chart for each of these factors that are worth examining. Note that these charts were not included in the ones we selected from Global Security in our earlier post as we already had charts on US dead and wounded that we had selected from the Iraq Casualty Coalition that we felt were more revealing. We cut and pasted the table from Global Security into Microsoft Excel and played with the data to create two clean columns of CSV data and a time stamp column.

Step 2. We went to Global Security's Boots on the Ground page and cut and pasted the two columns of data showing troops in Iraq and and troops "in theatre" to create a CSV data file which now had 4 data columns.

Step 3. We now had the data in a readily-reusable (RR) form as 4 data column CSV file. We took advantage of this to compute some new data columns derived from the original four columns, namely:
  1. the monthly ratio of wounded to dead
  2. the monthly change in troop level in Iraq
  3. the monthly change in troop level in Iraq as a percent of the previous month's level
  4. the three month trailing moving average of fatalities
  5. the six month trailing moving average of fatalities
  6. the 9 month trailing moving average of fatalities
  7. the monthly total of wounded and dead combined
The payoff:

You can take a look at the resulting RR file we have created which now has 11 data columns by downloading it from Iraq-RR-Example.csv. Check it out with Microsoft Excel, or even better this would be a great opportunity to try out TLViz (the TimeLine Visualizer) or the CSVPNG utility - both of which are expressly designed to work with RR data in this format.

You can learn more about these powerful tools in our previous posts: here and here and here and here for TLViz and here for CSVPNG and you can download the latest versions of these powerful utilities from the TrendsThatMatter Download page.

The first payoff of an RR approach is that when tabular data is converted to RR format, it puts you back in the driver seat. You are not dependent on only seeing the charts that some other analyst selected. You can look at every factor. You are not restricted to just the time period that someone else selected. You can zoom in on a period you are most interested in.

A second payoff is that you are not restricted to looking at only the combinations of data (if any) that someone else selected. You can also combine factors together with multiple trends on a single graph. Interactive tools like TLViz make it an order of magnitude easier to create different combinations of key factors and help reveal patterns hiding in the data.

A thrid payoff is that you are not restricted to only looking at the raw data. You can add moving averages and look at the moving average by itself or create a trend graph that shows both the initial raw data and the moving average together as shown in the example below:


A fourth payoff is that you can now create new computed or derived values such as the 7 new metrics we added on to our starting point of four Global Security factors. This facility to compute or derive new trend data by calculation involving the current set of factors is extremely important at revealing the full value that the data might hold.

The final payoff is that as you gather data from other sources, you can turn this into RR format and then add new columns to extend the your existing RR file.

The example we showed in this post is pretty elementary, starting as it does with only a handful of factors. As we have seen from our work with the Iraq war data so far, there are literally dozens of important factors. If we could put them all into a single RR data set, our ability to understand what is going on would be markedly enhanced and many opportunities for discovery would open up.

We are still a long way from that goal. In our next post, we will give you a little more complex example of RR data for Iraq that involves substantially more of the relevant factors.

In the meantime, I suggest you download and take a look at the Iraq-RR-Example.csv and see what else you can discover from the 11 reported factors that we have assembled for you.


Thursday, January 11, 2007

Some Background on the T4 & Friends Project

In several previous posts we have mentioned the T4 & Friends project. If you want to learn more about this project, you can check out the HP T4 & Friends web site where you can download the general purpose TLViz and CSVPNG software. Additional valuable information can be found on the T4 FAQ page where at the bottom you will also discover some links to valuable related documents.

Initially and on the surface T4 was a project that was intended to make things better for OpenVMS Engineering as it carried out various performance analysis duties. Converting proprietary format performance trend data to readily reusable (R-R) format turned out to be both easy and amazingly powerful. This step alone was a huge win as we were able to use the powerful features of tools such as Excel to help us do our jobs better.

Then, suddenly, tools such as TLViz the timeline visualizer and the versatile CSVPNG utility came on the scene and added at least another order of magnitude productivity benefit to our work. With better downstream tools, more and more people were able to see the value of converting proprietary data formats to the readily-reusable T4-style format so that they could benefit form the downstream tools such as TLViz and CSVPNG, not to mention Excel or MySQL.

As the number of converters and extractors came on the scene to create R-R data, it became clear that the T4 & Friends project provided value well beyond VMS and even well beyond situations where trend data was needed for system performance analysis. The more collectors that were built, the more it was clear that Readily-Reusable data in CSV format combined with tools such as TLViz and CSVPNG were truly universal in scope and available as helpers on any project involving trend data.

Tying things together: This blog sets out as a fundamental assumption that as we learn together how to better harness trend data our ability to create the future that we want for ourselves on this planet will be enhanced.

In upcoming posts, we will be looking into how we might use Ready-Reusability combined with the T4 downstream tools TLViz and CSVPNG to look at the trend data that is most important to us in our lives.

We are also going to be looking at how we might make our downstream tool capabilities even better as well as looking to how we can automate the creation of R-R data from an ever growing set of collectors and extractors reporting on the most important factors controlling the most important aspect of our lives.

Wednesday, January 10, 2007

Why Is TLViz important and different from what you have seen before?

Continuing with our discussion of TLViz -- a Timeline Visualization tool for readily reusable data that we began with our post on TLViz' historical-background.

Quite quickly TLViz proved it was an excellent tool for all sorts of trend data, not just OpenVMS system performance trends. I have personally used it for example with environmental data gleaned from World Watch and with employment data from the Bureau of Labor Statistics (BLS) once these data streams were converted to readily reusable format. Once we had made this data transformation, we realized that TLViz made it possible to discover previously invisible patterns that would have been more difficult to find if we had limited ourselves to the World Watch or the BLS tools that came with the original data.

Why is TLViz an important step forward and what makes it different from other visualization tools that you know?

First: We believe that just about any trend data can be rearranged without a huge effort so that it satisfies the simple rules for ready reusability. Once you have rearranged your trend data in this way, you will find that this new data can be combined readily with other data that has been converted to this format. Of course, you can still continue to use your data in its original format with the original collection and analysis tools you have always used. TLViz doesn’t take anything away, it only adds.

Second: Once your data is readily reusable, you will be able to make use of TLViz to analyze, understand, and report on your findings. We have discovered that TLViz is an outstanding tool for collaboration, for dialogue, for transparency, for looking at the data together with one or more individuals and discussing what it all means, for thinking together, and for discovering patterns that would otherwise have remained invisible.

TLViz is not the end all or be all for graphical trend analysis. It has undergone a series of enhancements and improvements over the past 6 years and yet in some ways it is really only at the beginning of what else might be accomplished.

As you look around the web at the many trend tools that are available especially for financial and stock data (e.g. Big Charts, Prophet Net, Yahoo Finance, and so on), you will notice that these tools often have powerful features that are not [yet] included in TLViz but that you can easily imagine being added in to TLViz in future versions as this tool continues to evolve.

The virtue of TLViz is that like MS Excel it is a generic tool. It works with any trend data, not just stock prices. Once you add a feature, it can then be available for everyone. And, you may be surprised to find that TLViz provides capabilities today that are radically more time efficient than even the best stock market tools for certain heavily used types of graphic representation. One example is the ease of combining metrics on a single chart. We will be delving into these advantages with specific examples in future posts.

Third: by using readily reusable data as its base, TLViz helps further promote the idea of ready reusability (R-R). What this means is that someone else can come along and build another generic utility that does something else magical and wonderful with trend data and that once that happens, these new capabilities will be available to everyone who has created or converted their data to the R-R form. For example, there is now a utility called CSVPNG (more about this in future posts) that takes R-R data and provides an additional set of capabilities that extend beyond what TLViz can do. And of course, if you use R-R data, you will still be able to use Excel, or Oracle, or MySQL on these data sets.

Wednesday, January 3, 2007

TLViz – A Little Historical Background

Before TLViz came on the scene, I was part of a team in Hewlett Packard's OpenVMS Engineering that was already enjoying success with readily-reusable (R-R) CSV files as part of the T4 & Friends project (more on this later). These files contained detailed system performance trend data for many different factors that had been extracted from trend data that was originally stored in a proprietary, difficult to reuse format.

Originally, when we created these R-R files known as T4 files, we simply input them to Microsoft Excel. The R-R format allowed us to make full use of the trend visualization capabilities and other features already built into Excel. This immediately extended our ability to visualize the trend data beyond the limitations built into the tools that had originally collected the most important performance data that we had wanted to investigate. Conversion to R-R format by itself gave us an order of magnitude time-saving and productivity improvement compared to previous methods for looking at this trend data.

What we discovered was that Ian Megarity's creation of the TLViz utility changed everything for us, literally overnight. In particular, what TLViz accomplished was to change the productivity equation even further, allowing us to analyze and report on a complex trend data set at least 5 times more quickly than we could have done if we had continued to use only Excel. In one example, a project that had previously taken two weeks was shrunk down to less than half a day.

We also discovered that TLViz was helpful in multiple ways - it dramatically cut analyst time AND it also made it easier and faster to present the results of analysis to others (both expert and non-expert) AND it greatly increased the possibilities for collaboration.

These additional productivity improvements alone made TLViz a worthwhile tool to add to our repertoire for the OpenVMS performance work we were doing. TLViz at its conception was designed for the very specific purpose of looking at OpenVMS System Performance Data. TLVIZ not intended as a general purpose trend visualization mechanism. However, experience with TLViz in the past 5 years has shown that it can be mapped over to the general case and by doing so it can offer some of the same time-saving and productivity and collaboration advantages.

While there are certainly areas for improvement for the general case, TLViz today provides a demonstration of what might be possible to do in the general case of making trend data more accessible to a wider audience with the intention of radically improving productivity, promoting collaboration and encouraging mutual learning.

In the next post, we will outline some other key reasons why we think TLViz is such an important demonstration of what is possible for the general case of trend collaboration that we are advocating in this blog..

In the meantime, to give this a quick try yourself, we recommend you DOWNLOAD TLViz from HP's T4 & Friends page, then DOWNLOAD http://trendsthatmatter.com/nbu/t4-data/rr-example.csv (a sample readily-reusable file of World Watch data file), and then use TLViz to open rr-example.csv.

Tuesday, January 2, 2007

Some Sample TLViz outputs

Here are some sample trend charts. They were created in minutes with a minimum of keystrokes using TLViz (the TimeLine Visualizer). The input to TLViz was a readily reusable (RR) data file (see previous post) crafted with considerable effort from the original source data produced by World Watch in their State of World 2002 report.

The RR file included approximately 50 separate metrics covering a range of areas of interest. I hope you will give TLViz a test run using his data set so you can get a feel for how TLViz saves substantial amounts of your time and lets you get a feel for this rather complex data set in very short order. For example, try using the keyboard Up and Down Arrow keys to quickly look at each factor's trend all by itself with a single key stroke moving you to the next trend chart.

To get this first chart, we held down the CONTROL key and selected the second factor to display, achieving this result with a single key stroke combination. It's probably not important, but it did seem kind of curious that the number of bikes built each year in China was approximately the same as the number of passenger cars built world wide that year.
This next chart is a good example of how a non-expert can become knowledgeable in short order, simply by clicking on a single factor and taking a look at the shape of the curve and the Y-axis numeric range.
The data on the number of existing nuclear weapons is sobering. For me at least, seeing the size of the existing nuclear arsenals numbered in the 10's of thousands helps me think more clearly about the challenge for any work on nuclear non-proliferation.
I found this next chart kind of surprising. The world population is growing but at least in this 10 year period, the rate of growth was slowing down, even in absolute terms.
This is another sobering chart showing the huge number of worldwide refugees. To get 4 metrics displayed, we simply selected the first metric and then held down the control key as we selected each additional factor.

TLViz - A Trend Visualization Tool for Readily Reusable (R-R) Data

TLViz - A Trend Visualization Tool for Readily Reusable (R-R) Data

The TimeLine Visualizer (TLViz) is an easy to use Windows PC tool. TLViz was originally conceived and developed for OpenVMS Engineering by Ian Megarity at Hewlett Packard in 2001. It was part of what became known as the T4 & Friends project (more about T4 in future posts).

Right from the start, TLViz was expressly designed to work directly with readily-reusable computer system trend data stored in CSV (comma separated values) files. The TLViz format for CSV files obeyed the few simple R-R rules outlined in our previous post on readily reusable data.

Since TLViz is a tool intended to dramatically enhance productivity for dealing with trend data through visualization, the best way to understand its capabilities is for you to try it out on some sample trend data yourself.

A working copy of the TLViz software can be downloaded without charge from the HP's T4 & Friends web site. It will take you just a few minutes to install it on your Windows PC.

At the HP T4 & Friends web site you will find additional background material about TLViz and about the T4 project. You might want to check out the T4 FAQ page and take a look at the Technical Journal Article on TimeLine Collaboration that's also available at that site.

In future posts, we will work through some examples showing the highlights of TLViz' capabilities. In the meantime, once you have it up and running on your PC, you can try out TLViz yourself with the following sample readily-reusable CSV trend data file. The source for this data is World Watch State of the World 2002. Many independent factors from many different areas of interest were combined together in a single file with each covering the same 1990 to 2000 time frame. The areas combined together include

  • world population
  • travel
  • nuclear weapons
  • population
  • agriculture
  • armed forces manpower
  • fossil fuel use.

In the next post, we will show some possible impressions you might create/discover by playing with this composite readily reusable data file using TLViz by generating a few sample output graphs.

Update: January 2nd, 2006, 4:15 PM - If you would like a copy of the RR file, please send mail to steve.lieman@trendsthatmatter.com and I will forward it to you. We are working out different possible ways to make it easy for you to download such files in the future but they are not quite ready for prime time yet. My apologies for any inconvenience this may have caused you.