Pages

Showing posts with label books. Show all posts
Showing posts with label books. Show all posts

Monday, June 20, 2011

Book Review: The Visual Display of Quantitative Information

 

tufte

**I’m now blogging at http://www.ianhopkinson.org.uk/, please adjust your links – this post can be found here**

“The Visual Display of Quantitative Information” by Edward R. Tufte is a classic in the field of data graphics which I’ve been meaning to read for a while, largely because the useful presentation of data in graphic form is a core requirement for a scientist who works with experimental data. This is both for ones own edification, helping to explore data, and also to communicate with an audience.

There’s been something of a resurgence in quantitative data graphics recently with the Gapminder project led by Hans Gosling, and the work of David McCandless and Nathan Yau at FlowingData.

 

The book itself is quite short but beautifully produced. It starts with a little history on the “data graphic”, by “data graphic” Tufte specifically means a drawing that is intended to transmit data about quantitative information in contrast to a diagram which might be used to illustrate a method or facilitate a calculation. On this definition data graphics developed surprisingly late, during the 18th century. Tufte cites in particular work by William Playfair, who was an engineer and political economist who is credited with the invention of line chart, bar chart and pie chart which he used to illustrate economic data. There appears to have been a fitful appearance of what might have been a data graphic in the 10th century but to be honest it more has the air of a schematic diagram.

Also referenced are the data maps of Charles Joseph Minard, the example below shows the losses suffered by Napoleon’s army in it’s 1812 Russian campaign. The tan line shows the army’s advance on Moscow, it’s width proportional to the number of men remaining. The black line shows their retreat from Moscow. Along the bottom is a graph showing the temperature of the cold Russian winter at dates along their return.

800px-MinardInterestingly adding data to maps happened before the advent of the more conventional x-y plot, for example in Edmund Halley’s map of 1686 showing trade winds and monsoons.

Next up is “graphic integrity”: how graphics can be deceptive, this effect is measured using a Lie Factor: the size of the effect shown in graphic divided by the size of the effect in data. Particularly heroic diagrams achieve Lie Factors as large as 59.4. Tufte attributes much of this not to malice but to the division of labour in a news office where graphic designers rather than the owners and explainers of the data are responsible for the design of graphics and tend to go for the aesthetically pleasing designs rather than quantitatively accurate design.

 

Tufte then introduces his core rules, based around the idea of data-ink – that proportion of the ink on a page which is concerned directly with showing quantitative data:

  • Above all else show the data
  • Maximize the data-ink ratio
  • Erase non-data-ink
  • Erase redundant date-ink
  • Revise and edit.

A result of this is that some of the elements of graph which you might consider essential, such as the plot axes, are cast aside and replaced by alternatives. For example the dash-dot plot where instead of solid axes dashes are used which show a 1-D projection of the data:

ddp

Or the range-frame plot where the axes are truncated at the limits of the data, actually to be fully Tufte the axes labels would be made at the ends of the data range, not to some rounded figure:

range

Both of these are examples are from Adam Hupp’s etframe library for Python. Another route to making Tufte-approved data graphics is by using the Protovis library which was designed very specifically with Tufte’s ideas in mind.

Tufte describes non-data-ink as “chartjunk”, several things attract his ire – in particular the moiré effect achieved by patterns of closely spaced lines used for filling areas, neither is he fond of gridlines except of the lightest sort. He doesn’t hold with colour or patterning in graphics, preferring shades of grey throughout. His argument against colour is that there is no “natural” sequence of colours which link to quantitative values.

What’s striking is that the styles recommended by Tufte are difficult to achieve with standard Office software, and even for the more advanced graphing software I use the results he seeks are not the out-of-the-box defaults and take a fair bit of arcane fiddling to reach.  Not only this, some of his advice contradicts the instructions of learned journals on the production of graphics.

Two further introductions I liked were Chernoff faces which use the human ability to discriminate faces to load a graph with meaning, and sparklines - tiny inline graphics showing how a variable varies in time without any of the usual graphing accoutrements: - in this case one I borrowed from Joe Gregorio’s BitWorking.

In the end Tufte has given me some interesting ideas on how to present data, in practice I fear his style is a little too austere for my taste.There’s a quote attributed to Blaise Pascal:

I would have written a shorter letter, but I did not have the time.

I suspect the same is true of data graphics.

Footnote

Mrs SomeBeans has been referring to Tufte as Tufty, who UK readers of a certain age will remember well.

Saturday, May 7, 2011

Lavoisier: Chemist, Biologist, Economist

Lavoisier

Recently I read Vivian Grey’s biography of Lavoisier. Although a fine book, it left me wanting more Lavoisier, so I turned to Jean-Pierre Poirier’s more substantial biography: “Lavoisier: Chemist, Biologist, Economist”. Related is my blog post on the French Académie des Sciences, of which Lavoisier was a long term member, and senior, member.

This is a much longer, denser book than that of Grey, with commonality of subject it’s unsurprising that the areas covered are similar. However, Poirier spends relatively more time discussing Lavoisier’s activities as a senior civil servant and as an economist.

The striking thing is the collection of roles that Lavoisier had: senior member of Ferme Générale (commissioned Paris wall), director of the Académie, director of the Gunpowder and Saltpeter Administration, owner and manager of his own (agricultural) farms. It’s difficult to imagine a modern equivalent, the governor of the Bank of England running a research lab? Or perhaps an MP with a minor ministerial post, running a business and a research lab? In practical terms he did experimental work for a few hours each morning and evening (6-9am, 7-10pm) and on Saturdays - having a number of assistants working with him. 

Lavoisier was wealthy, inheriting $1.8million* from relatives as an 11 year old he joined the Ferme Générale with an initial downpayment of about $3million. However, this provided an income of something like $2.4-4.8 million a year. On a trip to Strasbourg as a 24 year old, he spent $20,000 on books – which you have to respect. As the collector of taxes levied on the majority but not the nobility or clergy, the Ferme Générale was one of the institutions in the firing line when the Revolution came. Wealthy financiers, such as Lavoisier, bought stakes in these private companies, provided exclusive rights by the King, and made enormous rates of return (15-20%), at the same time serving the Kings needs rather poorly.

As for his activities in chemistry, Poirier provides a a good background to the developments going on at the time. Beyond what I have read before, it’s clear that Lavoisier does not make any of the first discoveries of for example, oxygen, carbon dioxide or nitrogen, nor of the understanding that combustion results in weight gain. But what he does do is build a coherent theory that brings all of these things together and overthrows the phlogiston theory of combustion. With Guyton de Morveau he develops a new, systematic, way of naming chemicals which is still used today and, as a side effect, embeds his ideas about combustion. It’s from this work that the first list of elements is produced. Furthermore, Lavoisier sees the applications of the idea of oxidation in explaining “chemical combustion” as entirely appropriate for understanding “biological combustion” or respiration. In a sense he sets the scheme for biochemistry which does not come to life for nearly 100 years, for want of better experimental methodology.

It’s interesting that gases are arguably the most difficult materials to work with yet it is their study, in particular understanding the components of air, which leads to an understanding of elements, and the “new chemistry”. Perhaps this is because gases are their own abstraction, there is nothing to see only things to measure.

The book also gives a useful insight into the French Revolution for someone who would not read the history for its own sake. The heart of the Revolution was a taxation system that exempted the nobility and the clergy from paying anything, and a large state debt from supporting the American War of Independence. Spending appears to have been decided by the nobility, or even just the King, with little regard as to how the money was raised. At one point Paris considered an aqueduct to bring in fresh water to all its citizens, but then decided that rebuilding the opera house was more important! The Revolution was a rather more drawn out than I appreciated with Lavoisier at the heart of the ongoing transformation at the time of his execution during the Terror, only to be lauded once again a couple of years later as Robbespierre fell from power and was executed in his turn.

On economics: Lavoisier was one of the directors of the French Discount Bank, during the Revolution he was involved in plans for a constitutional monarchy and amongst the ideas he brought forward was for what would essentially be an “Office for National Statistics”. The aim being to collect data on production and so forth across the economy in support of economic policy. This fits in with the mineral survey work he carried at the very beginning of his career and also on his work in “experimental farming”. Economic policy at the time alternating between protectionism (no wheat exports) and free-markets (wheat exports allowed), with many arguing that agriculture was the only economically productive activity.

It’s tempting to see Lavoisier’s scientific and economic programmes being linked via the idea of accounting: in chemistry the counting of amounts of material into and out of a reaction and in economics counting the cash into and out of the economy. 

Definitely a book I would recommend! It’s remarkable just how busy Lavoisier was in a range of areas, and the book also provides a handy insight into the French Revolution for those more interested in science. I wondering whether Benjamin Franklin should be my next target.

Footnote 

*These are equivalences to 1996 dollars, provided in the book, they should be treated with caution.

 

Blogger