Mar 18 2018

Book review: The Philosophical Breakfast Club by Laura J. Snyder

breakfastThe Philosophical Breakfast Club by Laura J. Snyder is an ensemble biography of William Whewell (pronounced: who-ell), Charles Babbage, Richard Jones and John Herschel who were all born towards the end of the 18th century and died in the later half of the 19th century. Their joint project was the professionalisation of science.

The pattern for their reform was Francis Bacon’s New Atlantis published in 1626 which fictionalised a government-funded science institution whose work was for the public good, and whose philosophical basis was the systematic collection of facts, including experimentation, from which scientific theories would be gleaned by induction. As such they follow in the footsteps of the founding fathers of the Royal Society who also took Bacon as their guiding light.

By the earl years of the 19th century the Royal Society had drifted in its purpose since its founding, it was more a gentlemen’s dining club than a scientific society with your position in society a more important factor than your scientific achievements in gaining entry.

Prior to reading this book I recognised the names of Whewell, famous for coining the term “scientist”, Herschel and Babbage – the former the son of William Herschel, the astronomer, the latter the inventor of the Difference Engine. I also knew that Herschel and Babbage had been involved in attempts to reform the Royal Society.

Richard Jones was unknown to me. His contributions were in the foundations, or at least building, of the field of economics. In particular he proposed an economics based on induction, that is to say one should go out and collect facts about the economy and from that point infer rules about the operation of economies from the data. The alternative is to hypothesis some simple rules, and elaborate the consequences of those rules – this is known as deduction. In economics Ricardo and Malthus had been early proponents of this deductive method. Jones went on to become one of the commissioners under the Tithe Commutation Act 1836 which converted the payments in kind of the old tithe system into what was effectively a local tax.

Babbage, Jones and Herschel all came from moderately wealthy backgrounds for whom the path to Cambridge University was relatively smooth. Whewell, on the other hand, was the son of a carpenter which although a respectable trade would not fund attendance at the university. Whewell was educated at a grammar school in Lancaster, his home town, as a result of being spotted by the local gentry who also smoothed his path into Cambridge. This appears to be the route by which the lower middle class entered university – chance encounters.

The four men met at Cambridge University where they formed the Philosophical Breakfast Club. It was at a time when gathering together and discussing politics was seen as borderline seditious. It was not long after the French revolution and the Great Reform Act was yet to come. They corresponded throughout the rest of their lives but there is no feeling from the book that their collaboration to change the face of science was at all formal (or even subject to an overall plan).

At Cambridge Babbage and Whewell were responsible for driving the use of Leibniz’s notation for calculus, in place of Newton’s notation to which the university had adhered for some time. Leibniz’s notation is the one in use today, generally it is seen as clearer than the Newtonian version and more amenable to extension.

Babbage post-Cambridge started work on mechanical computing, managing to extract large quantities of money from the government for this work, exceptional at the time, although he did not deliver a working device. The first Difference Engine was designed to calculate mathematical tables. The later Analytical Engine was very much like modern computers in its architecture. Neither of these devices were ever fully constructed. Babbage could best be described as a mathematician which put him into some conflict with others in the Breakfast Club since mathematics is rather more deductive than inductive in its basis. Later in his life he seems to have become involved in codebreaking, quite possibly for the government, although the evidence for this is circumstantial.

Babbage also led a ferocious attack on the Royal Society in his book Reflections on the decline of science in England. The British Association for the Advancement of Science (BAAS) followed on from this although Babbage, Herschel and Whewell did not attend its first meeting. The BAAS annual meetings became rather large, and there was muttering at the time about the attendees penchant for fine dining. Unlike the Royal Society, it was open to all, even women! I was interested to read about the foundation of my own professional society, the Royal Statistical Society. It started as a section of the British Association for the Advancement of Science where it proved contentious because it was concerned in the collection and analysis of social data which surely leads to politics. Babbage and Jones set up the London Statistical Society which was to become the Royal Statistical Society.

After Cambridge Herschel spent some time in South Africa measuring the location of stars in the southern skies, following on the family business. He became president of the Royal Astronomical Society and published several books on astronomy as well as star catalogues. As well as this he was involved in the development of photography, he was an enthusiastic chemical experimenter and appears to have guided Henry Fox Talbot in fixing his early photographic images.

Whewell remained at Cambridge University for the rest of his life, where he later became the Master of Trinity College. As well as his efforts in changing the teaching of calculus he introduced the Natural Sciences Tripos (parts of which I have taught). His publications were mainly in the history and philosophy of science. He was involved in some scientific endeavours – the measurement and analysis of the tides, for example. Although he coined the term “scientist” in 1833 it wasn’t to gain much currency until much later in the century.

Snyder identifies the period 1820-70 as one where there was a great transition in science from being a gentleman’s hobby to a (sort of) mass participation activity with at least some regard for practical application, a defined career path at least for a few and some more regular government funding.

I found The Philosophical Breakfast Club very readable. It covers a period of great transition in science in the UK, and makes a nice companion to Henrietta Heald’s biography of William Armstrong.

Feb 10 2018

Book review: William Armstrong–Magician of the North by Henrietta Heald

A return to industrial history with armstrongWilliam Armstrong: Magician of the North by Henrietta Armstrong. Armstrong was a 19th century industrialist who spent his life in the north-east of England around Newcastle. His great industrial innovation was the introduction of hydraulic power to cranes and the like. His great wealth, and honours (a knighthood and then a baronetcy) derived from his work in the invention and sale of armaments principally artillery and ships. His home, Cragside near Rothbury some 30 miles north of Newcastle upon Tyne, was the first to feature electric lighting amongst many other technical innovations.

Armstrong was a contemporary of Robert Stephenson, Isambard Kingdom Brunel and Joseph Whitworth – they were all born near the beginning of the 19th century, Armstrong dying in 1900 outlasted them all with Brunel and Robert Stephenson dying in 1859.

Armstrong was born in 1910 his parents started him on a career in the law. However, he had always been fascinated by water. This led to his realisation that the power that could be extracted from a head of water in a sealed system. A water wheel extracts energy from water falling the height of the wheel, a matter of a few metres. A sealed iron pipe, such as could now be manufactured allowed you to capture the energy from a fall of tens of metres or more. In Newcastle upon Tyne the local landscape could provide this head of pressure but with a little ingenuity the head of pressure could be created with a steam engine or other mechanical means. This energy could be used to drive all manner of machinery, Armstrong initially used it to power cranes, and lock gates, to be used in docks and the many factories springing up around the country. Ultimately his hydraulic mechanisms drove London’s Tower Bridge.

In the aftermath of the Crimean War, Armstrong switched his attention to building artillery. During the Crimean War the British artillery was found wanting in terms of accuracy, destructive power and firing rate. His innovations were to move from cannonballs to shells (shaped like bullets), and from muzzle loading to breech loading. He gave up the patents for his artillery pieces to the government but made a fair business on them. His activities with ordnance led to his knighthood and baronetcy although ultimately he withdraw from the close relationship with the British government in armaments as a result of political manoeuvrings by competitors.

The manufacture of artillery led to the manufacture of warships, which incidentally also carried the artillery. The Japanese Navy were particularly important.

He was a leading light of the Literary and Philosophical Society of Newcastle upon Tyne (Lit & Phil), and contributed to founding what is now Newcastle University. Late in his life, in 1897, he published Electric movement in air and water based on his experiments and featuring cutting-edge photographs of the phenomena he described. From a scientific point of view, Armstrong is not a name you will hear in physics classrooms (at any level) today – I don’t know if the same holds for his engineering innovations. Also late in his life he bought Bamburgh Castle, and spent a fair amount of money refurbishing it.

Magician of the North is a somewhat sympathetic view of Armstrong, along the lines of Man of Iron by Julian Glover about Thomas Telford. This contrasts with Samuel Smiles biography of George Stephenson and Rolt’s of Brunel which are much more effusive about their subjects. The Armstrong’s arms trading is discussed in some detail, it seems the company sailed somewhat close to the wind legally in supplying both sides in the American Civil War. A second blemish on Armstrong’s reputation came from industrial disputes with his, and other workers on the Tyne, asking for shorting working hours. That said, he was clearly a pillar of the Newcastle and north eastern community and highly regarded by most of the people most of the time. Many buildings in Newcastle bore his name as a result of his donations both whilst he was a live and after he died.

As usual the author of this biography bemoans the limited attention their subject has received. In the case of Armstrong they put this down to his extensive involvement in the arms trade which, never the most popular, was to fall further out of favour following the Great War. I’ve never seen a quantitative analysis of what makes the right amount of attention for figures in the history of science and technology.

William Armstrong died in 1900, after his death his company went into a slow decline. The Great War led to a distaste for the arms trade, and then came the Great Depression. With Armstrong gone there was no strong, capable leader for the company. The Armstrong name lived on in various spin off companies such as Armstrong Siddeley and various amalgamations with Whitworths and Vickers.

Jan 08 2018

Book reviews: Christmas Extravaganza!

I’ve given up writing my full length posts for my Christmas book haul which, I show below, was rather fine.This is in part a result of the type of books one gets for Christmas, and in part the conditions under which they are read – in a Christmas cake induced haze, for my part.

walking_thumb1A Philosopy of Walking by Frédéric Gros

A Philosopy of Walking by Frédéric Gros was, like the best presents, something I wouldn’t have got for myself but nevertheless enjoyed.

The book interleaves chapters on various walking related thoughts with some walking oriented biographical content. This covers Nietzsche, Rimbaud, Rousseau, Nerval, Kant and Ghandi. The predominant feeling from these biographies is a bit grim, several of the protagonists died young or after prolonged illness – Nerval committed suicide. Their walking in feels compulsive. Ghandi lived to a ripe old age but was ultimately assassinated. Kant took the same walk every day, he lived to 80 but it sounds pretty dull!

The chapter on pilgrimage struck a cord with me, I’ve been meditating for a while which often involves focusing on a mantra or physical manifestation, like breathing. Some pilgrims take a similar approach combining walking with a prayer-like mantra.

Somehow the author has missed our family favourite walking habit – humming the Imperial March from Star Wars as a rhythm to walk to along broad well-made paths in the Lake District.

The book is translated from French, I learned this on reading in a footnote that the French word témoin which I knew meant “witness” also refers to the baton in a relay race.

New views by Alastair Bonnett

new_viewsNew Views by Alastair Bonnett is a different manner of Christmas book, a coffee table book – as are the rest of the books in this post.

New Views  is a collection of world maps illustrating different data in three broad areas which could be described as physical, human and animal, and trade. The pattern is the same in  each case – a double page contains a map with key, and on the following double page is some text describing the context of the map and another, different graphic. The maps are very much on the global scale, cities may be mentioned here and there but the overwhelming impression is of the world as a whole, not individual countries.

I liked the map of lightning strikes which highlights odd areas, particularly in the east of the Democratic Republic of Congo which has the highest rate of lightning strikes in the world. The maps of amphibian and bird diversity are fun too – they map out features of the underlying geography like rivers and mountains but in different ways.

I was surprised to learn just how big an exporter of nuts the US was, I should have known this since I constant in my last job was the monthly scrape of the reports of the almond board of California for a customer. Also I learned that Brazil exports no Brazil nuts because they don’t grow there!

Sometimes the colour keys are a bit cryptic, that’s to say I couldn’t distinguish between two categories on the scale. On another map countries where there is no data are omitted completely which makes the map difficult to parse unless you have a photographic recall of the shapes of the countries of the world. I was puzzle to learn that the viper was the only poisonous snake in the United Kingdom – I always called them “adders”.

This is a creditable work of this genre.

Bird by Andrew Zuckerman

birdBird by Andrew Zuckerman is an immense book, comprised entirely of photographs of birds shown against a pure white background. There are a few words, and a pictorial index which names the birds, at the back but the main body of the text is completely wordless.

The pictures are gorgeous but I found myself wanting more having flicked through to the end of the book. The style is intentional and is contrasted with that of Audubon who included much more context in his famous paintings of birds. Technically the photographs are very good to excellent.

Zuckerman has produced a number of books in this style, I’m most interested to see his works on flowers and creatures.

Vermeer: The Complete Works by Karl Schütz

vermeerVermeer: The Complete Works by Karl Schütz. I was surprised to read that there are only 35 works attributed to Vermeer. This may be because he fell out of popularity after his death in the 17th century and interest was not revived until the 19th century.

Canaletto & the art of Venice by Rosie Razzall and Lucy Whitaker

canalettoCanaletto & the art of Venice by Rosie Razzall and Lucy Whitaker. The authors names are very discreetly displayed on this volume. I’m a fan of Canaletto – I love the almost CAD-like precision of his architectural paintings.

Dec 28 2017

Book review: Fraud analytics by B. Baesens, V. Van Vlasselaer and W. Verbeke

This next book is rather work oriented: fraud_analyticsFraud Analytics using descriptive, predictive and social network techniques: A guide to data science for fraud detection by Bart Baesens, Veronique van Vlasselaer and Wouter Verbeke.

Fraud analytics starts with an introductory chapter on the scale of the fraud problem, and some examples of types of fraud. It also provides an overview of the chapters that are to come. In the UK fraud losses stand at about £73 billion per annum, typically fraud losses are anything up to 5%. There are many types of fraud: credit card fraud, insurance fraud, healthcare fraud, click fraud, identity theft and so forth.

There then follows a chapter on data preparation, sampling and preprocessing. This includes some domain related elements such as the importance of the so-called RFM attributes: Recency, Frequency, and Monetary which are the core variables for financial transactions. Also covered are missing values and data quality which are more general issues in statistics.

The core of the book is three long chapters on descriptive statistics, predictive analysis and social networks.

Descriptive statistics concerns classical statistical techniques such as the detection of outliers using the z-score (the normalised standard deviation), through the clustering techniques such as k-means or related techniques. These clustering techniques fall into the category of unsupervised machine learning. The idea here is that fraudulent transactions are different to non-fraudulent ones, this may be a temporal separation (i.e. a change in customer behaviour may indicate that their account has been compromised and used nefariously) or it might be a snapshot across a population where fraudulent actors have different behaviour than non-fraudulent ones. Clustering techniques and outlier detection seek to identify these “different” transactions, usually for further investigation – that’s to say automated methods are used as a support for human investigators not a replacement. This means that ranking transactions for potential fraud is key. Obviously fraudsters are continually adapting their behaviour to avoid standing out, and so fraud analytics is an arms-race.

Predictive analysis is more along the lines of regression, classification and machine learning. The idea here is to develop rules for detecting fraud from training sets containing example transactions which are known to be fraudulent or not-fraudulent.Whilst not providing an in depth implementation guide Fraud Analytics gives a very good survey of the area. It discusses different machine learning algorithms, including their strengths and weaknesses particularly with regard to model “understandability”. Also covered are a wide range of model evaluation methods, and the importance of an appropriate training set. A particular issue here is that fraud is relatively uncommon so care needs to be taken in sampling training sets such that algorithms have a chance to identify fraud. These are perennial issues in machine learning and it is good to see them summarised here.

The chapter on social networks clearly presents an active area of research in fraud analytics. It is worth highlighting here that the term “social” is meant very broadly, it is only marginally about social networks like Twitter and Facebook. It is much more about networks of entities such as the claimant, the loss adjustor, the law enforcement official and the garage carrying out repairs. Also relevant are networks of companies, and their directors set up to commit corporate frauds. Network (aka graph) theory is the appropriate, efficient way to handle such systems. In this chapter, network analytic ideas such as “inbetweeness” and “centrality” are combined with machine learning involving non-network features.

The book finishes with chapters on fraud analytics in operation, and a wider view. How do you use these models in production? When do you update them? How do you update them? The wider view includes some discussion of data anonymisation prior to handing it over to data scientists. This is an important area, data protection regulations across the EU are tightening up, breaches of personal data can have serious consequences for those companies involved. Anonymisation may also provide some protection against producing biased models i.e those that discriminate unfairly against people on the basis of race, gender and economic circumstances. Although this area should attract more active concern.

A topic not covered but mentioned a couple of times is natural language processing, for example analysing the text of claims against insurance policies.

It is best to think of this book as a guide to various topics in statistics and data science as applied to the analysis of fraud. The coverage is more in the line of an overview, rather than an in depth implementation guide. It is pitched at the level of the practitioner rather than the non-expert manager. Aside from some comments at the end on label-based security access control (relating to SQL) and some screenshots from SAS products it is technology agnostic.

Occasionally the English in this book slips from being fully idiomatic, it is still fully comprehensible – it simply reads a little oddly. Not a fun read but an essentially starter if you’re interested in fraud and data science.

Dec 26 2017

Review of the year: 2017

As I finish work for the year, and we await Christmas Day, it is time for me to start writing my “Review of the year”. This is a somewhat partial view of the world, as seen through the pages of my blog which these days is almost entirely book reviews, you can see a list of my blog posts for the year here. My Goodreads account tells me I have read 32 books this year.

Linked to reading, I wrote a post on Women Writers – I’ve been making an effort to read more books written by women over the last couple of years. This has worked out really well for my fiction reading, where I’ve found some new sci-fi authors to enjoy, and some, like Ursula Le Guin who have been around a while. Le Guin’s The Left Hand of Darkness is certainly in contention for my favourite novel ever. On non-fiction I’ve not had as much success – a chunk of my non-fiction reading is in technology and the number of women published in this area is tiny. I found the acknowledgements section of books by men a useful place to find women to follow on twitter.

This year I read Pandora’s Breeches by Patricia Fara – about women in science from about 1600 to 1850. I also read Hidden Figures by Margot Lee Shetterly, about the Africa-American women who worked as “human computers” for the organisation which was to become NASA. I think this told me more about being an African-American than being a woman. I hadn’t appreciated previously the sheer effort and determination required for African-Americans to progress, changing the laws to end legally-sanctioned discrimination was simply the first step (resisted at every turn by white supremacists).

I read some fairly academic history of science too, Inventing Temperature and Leviathan and the air-pump. Inventing Temperature is about the history of the measurement of temperature. Temperature is important to most physical scientists in one way or another, perhaps more so for ones like I once was. This book covers the less-told history, and re-surfaces some of the assumptions that these days are no longer taught or certainly don’t stick in the mind.  Leviathan and the air-pump is about the foundation of the experimental method as it is (roughly) seen today. I liked these two books because they didn’t follow the “great man” narrative which is what you get from reading scientific biographies – a much more common genre in the wider history of science.

I also read a few books on the history of Chester, following on from reading about Roman Chester last year. Two things struck me in this, one was the image of post-Roman Britons living in the ruins of the Roman occupation. Evidence from this period immediately following the Roman occupation, in Chester it amounts to a thin dark layer of material in the Roman barracks which could well be pigeon droppings! The second stand out was the fact that Chester’s mint/money making operation was bigger than London’s in the 9th century. I was also interested in the “Pentice” a curious timber structure attached to the St Peter’s church by the cross in the centre of town that appears to have been Chester’s administrative centre since the medieval period (it was demolished in the early 19th century).

In news outside the world of books, we had an election in the UK, the result was a bit of a surprise but we can probably agree we are not in a great position now politically with a weak government steadfastly refusing to even countenance ending the Brexit process and an official “opposition” in the Labour Party supporting them in this.

Surprise hit of the year was the ARK exhibition of sculpture at Chester Cathedral. I wouldn’t describe myself as a connoisseur of art, particularly not sculpture but I loved this exhibition. The exhibits were scattered through the cathedral and its grounds. A life-sized ceramic horse, and three very large egg-shaped objects making a very public sign of what lay within. It turns out that sculpture works really well in an old cathedral, there are so many shapes and textures to pick up on. This picture encapsulates it for me:

On the technology front I read about Scala, I’ve also wrote a post about setting up my work PC to use Scala which requires a bit of wrangling. I read about behaviour driven testing, and the potential downsides of data science from a social point of view and game theory.

A final mention goes to Ed Yong’s “I contain multitudes”, one of the first books I read this year, which is all about the interaction between microbes and the hosts they live with – including you and me. Possibly this is my favourite book of the year, but looking down the list I don’t think there was any book I regretted reading and a fair few of them were thoroughly excellent.

No holiday post this year, we were back in Portinscale, on the outskirts of Keswick again – notable achievement: getting Thomas (5) up several peaks – starting with Cat Bells! Embarrassment prevents from writing much about my Pokemon Go obsession, in my defence I will say that it is educational for Thomas and encourages him to walk places!

Older posts «