Showing posts with label computed or derived factors. Show all posts
Showing posts with label computed or derived factors. Show all posts

Thursday, September 15, 2011

A Unique View of CPI from Doug Short

If you want to look at charts that help you understand what's going on in our economy, Doug Short's Updates is a great place to start.  His charts are crisp, clear, concise and easy to understand and he provides a wide multidimensional view of many potentially inter-related metrics all launching from his Update landing page.

Here is one of his charts that gives a unique view to the CPI data that I have not seen expressed elsewhere and is worthy of emulation and further extension..

http://advisorperspectives.com/dshort/charts/inflation/headline-core-comps.html?inflation-since-2000.gif
In the previous two posts, we showed year over year data which is a traditional and well respected method for smoothing out the month to month variability.  But as we all know, inflation is cumulative and so it makes sense to look at year over 2 years, year over 5 years, or year over 10 years changes and compare those to how our earning power has changed over that time period.  E.g. for those on fixed income in retirement, the longer view translates more directly to the degree to which inflation will impact their lives.  A 4 percent difference over the year will have a small effect.  A 35% change over 10 years will have a huge impact for anyone whose income is not keeping up.

Doug's breakdown of the component changes is also highly revealing. 

UPDATE 20 September 2011 at 3:00 PM
Of all the published charts I found online covering the latest release of CPI for August 2011, I found this chart from Doug Short to be by far the most valuable & useful by itself, while inspiring further questions encouraging the viewer to dig deeper.  The big advantages of this chart compared to the others are that
  1. it shows the cumulative impact of inflation over an almost 12 year period
  2. it breaks down the overall cpi effects into a series of selected and interesting sub-components which show a wide range of cumulative change during this time period.
  3. it reveals Doug's thinking about which of the subcomponents he things might be the most important to pay closer attention to (Energy, Medical Care, and Tuition)
  4.  And with a little thought it lets us get a hint about how the average headline cpi cumulative increase of 34.2% came about from a weighted average of the three (left most) componentss: a core cpi reading of 26.3% an energy reading of 124% and a food reading of 37.7%.  To me this showed up the weakness of focusing on either the headline cpi number or the core cpi number whether by themselves or even when combined becasue doing so leaves the cumulative impact of energy and food invisible to the viewer.
For me, this chart inspired me to dig deeper because it was crystal clear that headline cpi value cannot be understood unless you get a feel for its key components while looking at the cumulative change.  This letter eventually to the series of cumulative cpi charts we created in our subsequent posts: 

A 20 year cumulative view of headline cpi from FRED - showing cumulative readings of headline CPI by itself for 5, 10, 15, and 20 years periods

Drilling down into CPI 20 year trends - showing a set of interesting sub-components and their 5-20 year cumulative history


Friday, August 19, 2011

Common Weaknesses in Online Visualization & Storytelling

Looking around the web we notice a growing number of examples of online visualization and storytelling.

Some of these are brilliant and incisive and easily accessible and digestible by their intended audience.

Too many however (including I am sure many of my own) exemplify one or more of a common set of weaknesses that make them harder to understand and that diminish their usefulness and value.

Here is a list of the shortcomings that appear most regularly. Once you can recognize them, all of these are correctable, often with only a modest effort that will pay big dividends. We've talked about many of these in previous posts and will no doubt return to them again to describe the particular details.

Can you think of any others? Which ones do you think are most important to correct?

Please share your thinking in the comments. Thanks.

Online Visualization and Storytelling Weaknesses and Shortcomings
  1. Too short a time period shown
  2. Too few metrics shown (sometimes only one or two out of thousands) and often only a single independent view of the key story telling metrics
  3. No story presented - figuring out the story is left as an exercise for the audience/reader/viewer. This often goes hand in hand with visualizations that require a substantial time investment by the audience in order to discover messages that are not obvious at first glance. Or worse to spend time and not be able to figure out why that particular graphic was chosen from amongst all the choices available to the analyst/storyteller
  4. Data set used to create the graphics is not readily available for further analysis by interested audience members
  5. The larger data set used by the analyst/visualizer/storyteller is not available and not even defined or listed. Consequently the viewer has no idea of how much effort the storyteller put into the analysis before deciding to display a particular choice of graphical elements.
  6. A standard template is re-used without any new or fresh thinking and without any sign of building on what's already been learned from previous analyses
  7. Presenting only a single point in time for many metrics that change over time without providing the relevant time line view
  8. Comparing just the most recent and the previous value of a particular metric without taking earlier values into account. This goes hand in hand with over use of graphs and tables showing month over month change.
  9. When showing month over month change, failing to normalize the values to yearly percentages
  10. Explaining time series behavior in dense text that is hard to parse and understand even for expert data analysts when a simple time series graphic would have done the job in seconds
  11. Limited opportunities for further collaboration between the audience and those who created the visualizations and story line.
  12. Too few data points in the time series
  13. Use of large unsorted lists where some simple sorts and application of some variant of the 80/20 rule would have conveyed much more meaning in a much shorter time
  14. Too may metrics all mushed together into a single indecipherable graphic. Such charts typically are ones that have no story line associated with them. What does the chart mean? You go figure it out!
  15. Burying the lead (the potentially most interesting story element) so only audience members who invest significant time will ever have a chance to stumble across it. Everyone focuses on some headline number while the action is just a little bit below the surface and eager to see the light of day
  16. Absence of comparisons of the result to useful baseline values
  17. Working exclusively with the raw metrics as they arrive from their providers and missing out on opportunities to combine metrics to create calculated values that enhance the storytelling potential
  18. Heavy emphasis on working with aggregated metrics (e.g headline numbers) and not showing whether the same patterns hold up under a variety of disaggregation approaches
  19. Using widely varying raw metric values when a carefully selected simple moving average would have revealed greater insight
  20. Overly tiny graphics that fail to take advantage of the full screen real estate available and make key elements more difficult to read and understand
What weaknesses would you love to see corrected?

Friday, July 20, 2007

S&P 500 - Comparing nominal vs inflation adjusted performance


Hat tip again to Barry Ritholtz for this nice chart.

It's kind of interesting that almost all other economic metrics get adjusted (normalized) for inflation (e.g. GDP and hourly wages) but that we don't apply the same scaling adjustment to our stock market indices.

The long time scale for this chart makes it even more interesting. Note the devastation of the 1970s and how the inflation adjusted value has not yet recovered to its year 2000 peak.

Saturday, June 9, 2007

Applying Trend Analysis Principles with Brilliant Effect

Buying a camera at a fair price is not particularly earth-shaking activity, especially compared to trying to figure out whether our actions in Iraq are helping or hurting.

Nevertheless, here is a simple and striking example of the power of applying the essential principles of trend analysis to the task.

Pricescan.com did a brilliant job on this in my opinion.

The red trend line represents the high price, the blue the average price, and the green the low price. Each tick mark on the X axis represents one week's time and the chart covers the period from 9/11/2006 through 6/4/2007

What did pricescan.com do right
  1. they identified the most important factors (in this case the minimum, average, maximum price for the Canon PowerShot AS710 IS camera.
  2. they collected the raw data each week of the price of this item from a range of sources
  3. rather than showing the raw data, they created calculated values of High, Average, Low price for each period
  4. They selected a reasonable reporting rate that fit with the data (1 week in this case) and the resulting trend lines are relatively smooth while still giving us enough data points to have confidence in our understanding of the trends we see developing. A total of approximately 38 data points are plotted for each factor.
  5. their Y axis scaling fits the data and makes it possible to see the trends in all three indicators that they displayed. The scale values are also easy to read.
  6. they are reporting their data in near real time. The most recent data point is only 5 days ago.
  7. They showed the entire time period ( I am guessing from product introduction right up through last Monday)
And of course, they visualized this data for us rather than telling us about it or showing us a table of 100+ numbers.

Armed with this easy to read chart, anyone interested in purchasing the Canon PowerShot AS710 camera in the next week or so will know whether the offering price is within a reasonable range and can then get on to evaluating the other factors that might impact their buying decision.

This example stands in stark contrast to the most approaches to other important areas of our lives as exemplified in yesterday's Iraq Forecast post. There are no mushy metrics or imprecise quantification or flowery metaphors. There's no postponing the moment of truth cop-outs saying we don't know exactly what the future will bring. Of course we don't know exactly. We never do.

They don't say: "we can't really tell you whether the price of this item is going to become more affordable by September".

There's just the relevant facts that help deal with the specific situation.

My two cents: the better we learn how to apply this kind of approach to the most important problems in our lives, the quicker we will begin to gain control of what's happening.

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.


Friday, April 13, 2007

Chart of the Day - www.chartoftheday.com

Here's another nice chart from Chart of the Day - www.chartoftheday.com

On the plus side we have the complete time range and the use of the derived value of the inflation adjusted DOW as the variable to watch rather than the Headline raw DJIA value. In my view, the inflation adjusted number really should be the Dow value that we watch for the same reasons that we use inflation adjusted numbers everywhere else.

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.

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.

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.