Author Archives: Stubborn Mule

Reduce, Re-use, Recycle

This post represents something of a milestone for the Stubborn Mule. A few months ago I passed the one year anniversary of the Mule (the first post was published on 18 May 2008). Now I have reached the 100th post. To celebrate, and in recognition of the fact that older blog posts tend to disappear under the pile of newer ones, I will take this opportunity to revisit some of these older posts.

Drivers of Australian Inflation

Back when the global financial crisis was little more than a sparkle in a sub-prime lender’s eye, outside the bond markets anyway, we were still worried about inflation. In Australia, the rate of inflation for the 12 months to March 2008  hit 4.3%, which was outside the Reserve Bank’s target range of 2-3%. Setting a pattern that was to continue, I attempted to illustrate the drivers of inflation graphically. In this case, I produced a “heatmap” (a form of “treemap”) showing the sub-categories of the Australian Consumer Price Index.

Australia and the Global Financial Crisis

A lot of the posts on the Stubborn Mule have touched on aspects of the global financial crisis, including Moody’s Colossal Bug, How Big Are Australian Banks?, AIG and DZ Bank: Dumb and Dumber and Shoots Are Greener in Australia?. But the single most popular post on the blog is Australia and the Global Financial Crisis. Written back in October 2008, not long after the collapse of Lehman Brothers, this piece aimed to explain what caused the financial crisis and why, even then, Australia seemed to be faring better than much of the rest of the world. Over the coming years there will doubtless be many millions of words written about the causes of the crisis, but in the meantime, on most days, this post still gets more hits than any other on the blog.

Olympic Medals per Capita

Another popular post, this was actually a follow up to another post which looked at the Beijing 2008 medal tally on a per capita basis and by the size of each country’s economy. The Olympics were still underway and I decided to improve the first post by having the ranking charts update live as medals were awarded. I did this with the help of the data sharing site Swivel: I wrote a little script to regularly poll the official Olympics site for medal awards, post the results to Swivel and Swivel would then update the charts embedded in the blog. A little later, I did the same thing for the Paralympics.

Sydney Petrol Prices

Back in the middle of 2008, with petrol prices soaring, there were many complaints that petrol retailers were gouging motorists with their petrol pricing. In this environment, which led to the misguided and short-lived “FuelWatch” scheme, I decided to test the relationship between crude oil prices and prices at the petrol pump. Needless to say, there was a very close relationship between the two. As oil prices fell, the sting went out of this issue, but for old time’s sake, here is an updated version of chart showing the results of my simple regression model.

Petrol Model (Sep 2009)

Regression Model of Sydney Petrol Prices (unleaded)*

I Hate Personality Tests

Written after attending a training course at work, this post was a bit of a rant about HBDI and other similar personality tests such as Myers-Briggs, which I consider to be simplistic tools designed primarily to generate revenue for the companies that produce the tests and are closer to astrology than science. I can feel my blood pressure rising again now…

The Future of Microblogging

I was something of an early adopter of the internet phenomenon that is Twitter. When I wrote this post, I had been using Twitter for a little over a year and the total number of twitter users had just passed 2 million and looked like it might be levelling out. Now Ashton Kutcher alone has more than 3.6 million followers and overall Twitter has more than 5 million users. Although many people have become more familiar with Twitter, this post still draws in readers looking to find out more about microblogging. In the post I also look at the open microblogging platform Laconica and at identi.ca, the original example of a microblog built on Laconica. While I do still use my identi.ca account, it’s hard to escape the lure of Twitter.

Why I Always Buy the Same Sandwich

Another early post, this was inspired by my reading of Dan Ariely’s excellent book “Predictably Irrational”, which is all about the fascinating field of behavioural economics. One of the subjects Ariely discusses is the phenomenon of  “self-herding”, which basically means people tend to get stuck in a rut doing the same things over and over again. In my case, I used this concept to explain why I kept buying the same sandwich. More than a year later, I still buy the same sandwich. I still plan to revisit the subject of behavioural economics at some point in the future.

So, having recycled all those electrons, I am off to start planning the next 100 posts.

* Data Sources: Sydney Petrol Prices from the Australian Automobile Association, Brent crude oil prices and A$/US$ exchange rates from Bloomberg.


Posterous: the next big thing?

A few months ago, a new site arrived on the increasingly crowded web 2.0 scene. Posterous offers a medium that fits somewhere between a blog and a microblog (the canonical example of the microblog being, of course, the juggernaut that is Twitter). Maybe it should be called a “miniblog”.

Posterous is not the only site to target the miniblog niche. Tumblr has been been around for a few years and has been reasonably successful in building a base of users who like the ability it provides to easily share photos, links and assorted random scribblings. As an obsessive early-adopter of most things web 2.0, I have a tumblr account (the “Raw Prawn” identity pre-dates the “Stubborn Mule”), but  I have not been very active there of late.

Although Posterous launched only about six months ago, it has already seen healthy growth in traffic since then and has already reached the traffic rank that tumblr had six months ago.

Posterous

Posterous.com Traffic Rank (September 2009)

Part of the reason for its success is that it is extraordinarily easy to use. There is no need to sign up or create an account, as you would on twitter, tumblr or any other web 2.0 site. Instead, simply send an email to post@posterous.com. Give it a try! Send a snippet of text or, better still, a photo, music file or a link to a youtube video and Posterous will work its magic to send back to you a link to a web page with your content that you can easily share with anyone and everyone. Here is one I prepared earlier. If you live in the US, you can also send posts via SMS from your phone.

Posterous has a raft of other features that put it on a level above tumblr. For a start, it tracks the number of times that a post has been viewed (the power user can even track traffic using Google Analytics). Also, like any good web 2.0 application, it supports tags which can easily be added, edited or deleted after creating your post. There is also an iPhone application that allows you to take a photo and immediately send it to Posterous (to be fair, tumblr has an iPhone application too).

To take full advantage of Posterous, you should “claim” your email address (ok, so at this point you are effectively signing up for the service, but you don’t have to take this step). One of the features this will allow you to access is the ability to “auto-post” to an increasing range of other sites, including Twitter, Identica, Facebook, Flickr and Delicious. Turning on these services is straightforward once you have claimed your address signed up.

What exactly auto-posting does varies with each service. In the case of Twitter, Posterous will send the title of each post with a shortened link to the post. If you auto-post to Flickr, any photos you sent to Posterous will be added to your Flickr account. If you have a blog, the chances are you can repost the entire content of your Posterous post.

Posterous also shares with tumblr and any good web 2.0 a social networking feature that allows you to subscribe to other people’s Posterous accounts. You can see posts you have subscribed to through the “My Subscriptions” link on Posterous as well as receiving regular email updates. Posterous also allows the creation of multiple miniblogs (up to three) within the one account.

Unlike Twitter, Posterous even has a business model in mind, with plans to offer premium services for a fee at some point in the future. This “freemium” service approach has already been adopted by the likes of Flickr, Dropbox and a number of other web 2.0 services. Even for users who never take up these premium services, any means of revenue generation should help the site to stick around for longer than some of the more fleeting web 2.0 sites.

I have only been experimenting with Posterous for the last couple of weeks, but with the combination of extreme ease of use, smooth handling of multiple media types and the auto-posting feature I expect that it has a bright future ahead. In the meantime, keep an eye on the Mule’s Posterous account for posts that do not quite warrant appearing here on the blog.

Posterous Tips

  • Add tags to your posts using this short-hand in your email  subject line: ((tag: food, photos)) – of course, you don’t have to use “food” or “photos”.
  • Email to twitter@posterous.com if you only want to auto-post to Twitter. Similar email addresses work for other services.
  • Email to posterous@posterous.com if you do not want to auto-post anywhere.
  • Email to private@posterous.com if you want to create a private post.
  • Type #end in the email and no subsequent text (signatures, etc) will be included in the post.
  • If you use gmail, you can use gmail’s hyperlink creator to create links in your post (you will need to be using “Rich Formatting”).

Crime Around The Corner

Observant visitors to this blog may have noticed the recent appearance of a “wiki” button at the top of the page. This links to the recently established Stubborn Mule wiki, which I plan to use as a repository of information relevant in some way to the blog. Since so many of the posts here focus on data analysis, I have started with a collection of links to useful sources of data online, particularly economics and finance data.

The latest link I have added is to the New South Wales Bureau of Crime Statistics & Research (while I did not include it in the economics and finance section, maybe it does belong there). This site includes a research data set which provides monthly crime data going back to 1995 broken down by local government (council) area and offence type.  Needless to say, the first thing I was interested to learn was the level of criminality in my own local area, particularly as I moved here only very recently.

The chart below shows the total number of crimes in the various offence categories for 2008 in my local government area of Marrickville. While I was not surprised to see theft coming in at the top of the list, there were a few oddities further down. I was initially surprised to see driving offences at the bottom of the list. My driving is, of course, impeccable but I do not know if the same is true of all of my neighbours, not to mention visitors to the area. Digging further, I discovered that from 2003 onwards*, the figures for driving offences have been zero for all areas and transport regulatory offences have leapt up. So, presumably there has been a classification change. One mystery solved.

Crime in Marrickville (III)

Marrickville Crime Count (2008)

More intriguing is blackmail and extortion. Until 2008, the highest rate this crime had reached in Marrickville was four cases per year and in three years, the figure was zero. Yet, in 2008, there were nine cases of blackmail and extortion. What lies behind this wave of blackmail around the corner? Mystery not solved.

This led me to examine other trends through time. Starting with theft, I was gratified to learn that 2008 was the lowest year for theft since these records began. I am hoping 2009 will be lower still.

Theft in Marrickville (II)

Occurrences of Theft in Marrickille

A look at prostitution also suggests the area has become more law-abiding after a significant spike in offences in 2001.

Prostitution in Marrickville (II)

Occurrences of Prostitution Offences in Marrickville

As for serious crime, Marrickville experienced three homicides in 2008. The total number of homicides in the area since 1995 is 66, putting Marrickville in a somewhat disturbing 14th place out of 155 local government areas, although these two have been reducing over recent years. For those interested in the most murderous areas in New South Wales, here is a list of the top five areas in terms of total homicides since 1995. Any country readers will note that all of these local government areas are in Sydney (the area in the table labelled “Sydney” encompasses only the central business district and some inner-city suburbs).

Area Homicides
Fairfield 242
Sydney 327
Blacktown 136
Liverpool 102
Parramatta 82

* The historical data for Marrickville is in the “Files” section of the blog.

The Muddle of Macroeconomics

I never formally studied any economics at school or university, but in the years since I have become increasingly interested in the subject. I am sure that is evident from many of the posts here on the Stubborn Mule. What I did study was mathematics and, although there can be internal debates within the subject of mathematics, in the end it is usually clear what is right and what is wrong. No such luck in economics, particularly when economists attempt to understand the working of the world from the broadest perspective: macroeconomics. The level of controversy, debate and antagonism in the field of macroeconomics is quite extraordinary.

In July, The Economist’s cover story asked what was wrong with the field of economics. The leader was accompanied by an article entitled The other-worldly philosophers, which narrowed in on macroeconomics. It quotes  Willem Buiter of the London School of Economics describing macroeconomics as a “costly waste of time”, while prominent economist Paul Krugman described most macroeconomics of the past 30 years as “spectacularly useless at best, and positively harmful at worst”. The article goes on to explore the tensions between free-market  supporting “freshwater economists” and the more interventionist “saltwater economists”. Following a detente of sorts over recent years, the global financial and economic crisis has inflamed the antagonism once more.

In the May issue of The Monthly Magazine, former banker and author of “The Two Trillion Dollar Meltdown”, Charles R Morris wrote of macroeconomics:

macroeconomics is not a science. Its methods are gross and error-prone, and its models of economic reactions bear only a distant relationship to those in the real world. The theoretical apparatus of economics – its ‘laws’ – are mostly imaginative constructs that can rarely be confirmed with any precision, and stem more often from ideologies than from careful observation.

The issue of ideology is a crucial one. Any macroeconomic theory has implications for government policy, particularly monetary and fiscal policy. Further, almost all monetary and fiscal policy, even “doing nothing” has implications for wealth transfer from one segment of society to another. All things being equal, high interest rates are bad for borrowers and good for depositors. Inflation is good for borrowers and bad for lenders (update: this is really an over-simplification: see comments below). Some policies may benefit wage earners, but create costs for businesses, others may help importers but hinder exporters. With so much real money at stake, it is no wonder that ideological biases are so significant.

Once much of this debate would have been carried to the halls of academia, only reaching the rest of us in the form of those ideas which filtered through to influence the government of the day. These days it is all readily accessible online to anyone who is interested and many of the participants engage directly with the public on their blogs. I do not pretend to have all the answers (or even very many answers), so for now I will simply list just a few of the blogs and websites I have come across in my own quest to better understand this contentious field of study.

Billy Blog

Bill Mitchell is a professor in economics at the University of Newcastle (Australia). He describes himself as a “modern monetary theorist” and focuses on the mechanics of money. On his blog, he argues forcefully that much of the thinking of mainstream macroeconomics, particular that of a neo-classical bent, has not come to terms with the implications of “fiat money” and are steeped in gold standard thinking. This position leads him to advocate strongly for the importance of government spending, particularly to support full employment, and dismiss concerns about budget deficits threatening government solvency. While this may sound Keynesian, Mitchell dislikes the The General Theory of Employment, Interest, and Money and distances himself from aspects of Keynesian thinking which can itself be caught up in misunderstandings of the mechanics of money. While Mitchell does not shy away from expressing his ideological views, he would also argue that his thinking does indeed begin with careful observation.

The Conscience of a Liberal

With the Nobel Prize for Economics in 2008 and a number of popular books under his belt, Paul Krugman is the best known of the economists in this list. Krugman’s approach to macroeconomics is more firmly in the Keynesian tradition than Mitchell’s and he has been a passionate advocate online and on television for extensive economic stimulus packages, as well as an ardent critic of much of the way that bailout of US banks was handled. Like Mitchell, Krugman dismisses concerns about escalating government debt.

Maverecon

Having been a member of theBank of England’s Monetary Policy Committee, Willem Buiter has direct experience of the real world operation of monetary policy. In his blog he criticises the whole enterprise of macroeconomics, attacking both the neo-classical and the neo-Keynsian schools of thought. Buiter has more time for “heterdox” economic thought that attempts to deal with the messier realities of the economy, such as inefficient markets, illiquidity and irrational behaviour.

Von Mises Institute

Many economists, Krugman included, dismiss the Austrian school of economics as an oddball fringe distraction from the real business of economics. However, the Austrian way of thinking has a surprisingly strong hold on the thinking of a number of people outside the economics profession. I suspect that this is due, in part, to the fact that a number of the school’s classic books such as Hazlitt’s “Economics in One Lesson”, are easily accessible to non-economists. Among the recurring themes of the Austrian school are the evils of fiat money, fractional reserve banking and the intervention of central banks in free markets. While many of their arguments that get them to these stark conclusions initially have superficial appeal, I have not found that they stand up to closer scrutiny. Presumably this is why they are not taken very seriously by most professional economists. Either that or all professional economists are either deluded fools, or swayed by vested interested or both, which I am sure would be the Austrian’s counter-argument. Indeed, another thread running through the Von Mises Institute blog and other Austrian school writings is an acrimonious tendency to ad hominem attacks on their opponents, particularly Krugman.

Econbrowser

Written by James D. Hamilton, Professor of Economics at the University of California, San Diego and Menzie Chinn, Professor of Public Affairs and Economics at the University of Wisonsin, this blog has a strong focus on data analysis, which clearly appeals to me. Nevertheless, their attitude towards government debt does show signs of the sort of gold standard thinking that Bill Mitchell criticises.

The Daily Reckoning and Money Morning

I have grouped these two blogs together as they seem to share a number of contributors and have a similar style and outlook. Many of the writers are Austrian school fellow travellers and like nothing more than a rant about the evils of fiat money, except perhaps a rant on why the banking system is a giant Ponzi scheme. I primarily visit these sites if I am looking for a bit of an adrenaline boost or an argument.

Steve Keen’s Debtwatch

Steve Keen is another iconoclastic opponent of neo-classical economics. His book Debunking Economics was an attack on the traditional underpinnings of neo-classical macroeconomics. Most of the writings on the blog focus more on his concerns about the growth in private sector debt in Australia and the US. The concerns lead him to his pessimistic view of the prospects for the Australian housing market, a view he is best known for in the mainstream press and one I have discussed elsewhere.

Photo credit: p22earl on flickr (cc licence).

How Important Is China?

Today I attended a presentation by TD Securities global strategist Stephen Koukoulas. While exploring the “green shoots” of recovery, Koukoulas made an interesting observation about China. Many observers of the Australian economy, Reserve Bank governor Glenn Stevens included, place great weight on the importance of China for Australia’s economy. But Koukoulas pointed out that, while exports to the US make up over 20% of Canada’s GDP, Australia’s exports to China only contribute 3% of GDP. In fact, the Australian Capital Territory (ACT) contributes more to GDP than China does.

As soon as I got back to my desk, I went straight to the Australian Bureau of Statistics to confirm these figures. Sure enough, merchandise exports to China for the 12 months to March 2009 were 3.1% of seasonally adjusted GDP, while the contribution of the ACT to GDP was 3.2%. So far, so good, but a historical perspective is revealing.China GDP

Australian Annual Exports to China

While the contribution of Chinese exports is still relatively small, it has been accelerating over the last few years. Over the 12 months to March 2009, Chinese exports grew by 0.8%, so they were a significant contributor to economic growth, despite the low base. Not surprisingly, China has been taking a growing share of total Australian exports over this period.

China Exports Share

China’s Share of Total Australian Exports

As for the nation’s capital (and surrounds), on current trends, it will not exceed China for very much longer.

ACT China GDP (III) ACT versus Exports to China

Of course, these figures do not disentangle volume and price effects and whether or not China’s own growth will remain strong enough to keep pushing our exports up is an interesting question. But, based on these charts, I can understand why Glenn Stevens considers China so important for an economic recovery.

Note: the code used to produce these charts is available on github.

Taking It Too Far: Verb and Adjective Clouds

I will freely admit that I am now going overboard, but commenter Lettuce All Rejoice asked what the Rudd word cloud would look like if it was broken down into nouns, verbs and adjectives. Fortunately, the Stanford Natural Language Processing Group make a statistical parser freely available for download. So, I used this to parse the speeches of Rudd and Turnbull and then filter for different parts of speech. Since the original word clouds featured nouns so prominently, I will restrict myself to verbs and adjectives here. After this I am done with word clouds. For now at least.

Wordle: Rudd VerbsRudd Verb Cloud

Wordle: Turnbull verb cloudTurnbull Verb Cloud

Wordle: Rudd Adjective CloudRudd Adjective Cloud

Wordle: Turnbull adjective cloud
Turnbull Adjective Cloud

Malcolm Turnbull’s Word Cloud

My last post looked at the favourite words of Australia’s prime minister, Kevin Rudd. In the interests of balance, I will now turn the word cloud lens onto the opposition leader, Malcolm Turnbull. Turnbull’s speeches are conveniently assembled online and the graphic below illustrates the frequency of his words from speeches made in 2009. Unlike the analysis of Rudd’s speeches, this analysis does include some speeches given in parliament.

Turnbull Word Cloud

Just like Rudd, Turnbull’s favourite word is “Government”, and “Australia” is not far behind. But from there, differences appear. The word “billion” is far more prominent, reflecting the opposition leader’s obsession with growing public debt. The appearance of “Rudd”, “Labor” and “Coalition” clearly reflect the realities of life in opposition where so much time is taken attacking the other side.

Interestingly, the word “emissions” is clearly visible in the cloud, whereas nothing relating to climate change was visible in Rudd’s cloud.

“Now” is as prominent as Rudd’s “also”. Does this reflect a constant sense of urgency from a man of little patience?

What is Kevin Saying?

Last week, Politico published an analysis of Barack Obama’s language. The words he used most often were “America”, “Health” and “Economy” (Politico included “American” in the count along with “America”). This prompts the obvious question: what are the favourite words of our own Kevin Rudd?

Fortunately, the prime minster’s website publishes transcripts of all Kevin’s public utterances (although this does not include his speeches in parliament). There is a lot there and the Stubborn Mule was lucky enough to have OldFuzz do the hard work, assembling over 400 pages of text constituting Kevin Rudd’s speeches from 2009. If he has the time and inclination, prior years may follow. And here is what it looks like as a word cloud.

Kevin Rudd word cloud

It is no surprise that, just as Barrack Obama is fond of saying “America” and “American”, so too Kevin Rudd likes to say “Australia” and “Australian”. He also throws in “Australians” reasonably frequently. It seems in keeping with his public servant mandarin style that Rudd uses the word “Government” more liberally than does Obama. While “global”, “world”, “national”,  “economy” and “economic” are all appropriately big-picture words for a prime minister to be using.

There are a few intriguing words looming from the cloud. It seems that Mr Rudd says “also” a lot. Given that this analysis is case sensitive*, we can also glean that Rudd frequently starts his sentences with the word “Building”.  It may seem fleeting strange that the word “cent” appears so prominently, but then again it is matched in size by the word “per”, so we are just seeing common use of “per cent” not some homespun wisdom about watching the small denominations of money.

So, peruse the cloud at your leisure and make of it what you will. Of course, please share your thoughts in the comment section below.

UPDATE: an abridged version of this post has appeared on The Punch.

* Here is a case-insensitive version of the word cloud.

Where Have the Fish Come From?

After reading my posts on the international arms trade, a friend thought I might be interested in some data on the international trade in fish. While I know almost as little about fish as about arms, I always welcome good data. The data in question is published by the Food and Agriculture Organization (FAO) of the United Nations. The FAO also hosts FAOStat, which looks like an interesting data repository. If I can get myself a subscription to this service, it may provide the subject matter for future posts on the Mule.

But back to the fish. The first point my correspondent made was that many fish exporters are also importers. Among the top 50 importers of fish, all but 16 countries also appear in the list of the top 50 exporters. The chart below* gives an indication of the relative scale of fish imports and exports in 2006 of the top 10 importing countries. Of these big importers, only China and Denmark export even more fish than they import.
Fish Imports and Exports

Fish Trade by the Top 10 Importers (2006)

But the real mystery my fishy correspondent alerted me to is the difference between total worldwide imports and exports of fish. According to the figures, total worldwide imports of fish amounted to US $89.6 billion while exports only amounted to US $85.9 billion. That would appear to mean that US $3.7 billion worth of fish was imported in 2006 from nowhere! While I am sure that statistics of this kind may not be too accurate, the report does report each country’s trade figures to the nearest US $1000, so it seems to be a big difference. I speculated that some countries were not admitting to exporting whale meat to Japan, but my correspondent pointed out that whales are not fish. While the US Supreme court has ruled that tomatoes are vegetables, I do not know their view on whales, and this is probably not the answer anyway. Any theories out there, readers?

At the suggestion of singingfish, I will be making available the code used to produce charts here on the Stubborn Mule. Most of the charts are produced using the R statistical package, which is free and open-source. R can be downloaded here. The data and code for the chart above is here. I will gradually add the code for charts from older posts as well.

UPDATE: I forgot to mention that my correspondent also suggested fish rain as an explanation. I, however, am not convinced. Regardless of the original source, I am sure most countries would treat fish rain as a natural bounty rather than an import.

* Tip for reading the chart: there is no label on the right hand side for the USA and no label on the left for Denmark, but following the lines should make it obvious where they would be if there was room.

The Big Arms Traders

My last post looked at the international arms trade. Taking data from SIPRI, I produced maps showing arms exports for a number of countries, including Australia and the USA. While these maps gave an indication of the spread of arms trading, it did not show which are the biggest overall importers and exporters of arms.

To remedy this, I have created two “word clouds”. The first shows arms importers. The size of the text varies with the total value of arms imported over the period 1980 to 2008 (figures are adjusted for inflation and are expressed in 1990 US dollars). The three biggest arms importers over this period were India ($58 billion), Japan ($37 billion) and Saudi Arabia ($35 billion). Australia’s imports over this period totaled $15 billion.

Arms Import Cloud

Arms Importers (1980-2008)

The word cloud for exporters is far more concentrated. Between them the USA and Russia* accounted for almost 65% of total arms exports, with exports of $60 billion and $48 billion respectively. France then comes in at a distant third with exports totaling just under $12 billion.

Arms Imports Cloud

Arms Exporters (1980-2008)

If you like the look of these word clouds, you can easily create your own. With Wordle you can create word clouds which are based on word frequency. This example is based on words used here on the Stubborn Mule (notice the prominent appearance of the word “debt”). For a bit more flexibility, IBM have a freely available Word-Cloud Generator, which can either work on word frequencies or take columns of words and numbers. It is written in java and is very easy to configure and run. I used it to produce the images in this post.

* As in the previous post, figures for the USSR and Russia have been aggregated.