Sunday, 1 February 2015

What chance for an LNP government in Qld?

As of end of counting Election Night, there were still about 600,000 pre-poll votes to count, out of a total of 2.7million (no reference - just something I heard a couple of times).  That's more than 22% still to go, plus any postal votes not yet in (as of 8pm Sunday night, ABC states that 75.1% are counted)  Is that significant?  Could they make a difference to the overall outcome?

And while the result has been awful for the LNP relative to their last outing, the actual voting so far is pretty even, effectively a 2PP of 50%.  In theory, this should mean that either party should be in with a chance to form government, given the support of the independents.  In reality, all the independents took a No Asset Sales position into the election, and so it seems unlikely that they would support the LNP without some serious policy backflips (which, from politicians, we couldn't rule out).

Assumptions

All that aside, I'm a little curious as to what chance the LNP still have of forming government in their own right.  So let's have a bit of a look at it mathematically.  First, some assumptions.
  • No independent supports the LNP, so they need 45 seats in their own right.
  • The LNP keeps any seat in which they currently lead (might look at this later)
  • To win each extra seat in which the LNP is currently just behind, LNP needs 50.01% of the total vote (votes already counted plus pre poll votes)
  • Each electorate is treated as a 2 candidate competition, so the voter's choice is simply LNP or ALP.  This is effectively the case in most seats as the 2PP is LNP v ALP in almost all cases.
  • There are still 6,742 (600,000 divided by 89 seats) votes still to count in each electorate, which could make a difference to the outcome. This is probably the weakest assumption as this will vary from seat to seat, but will do for a first attempt.
 Again, as of 8pm tonight, the ABC election website gives the LNP 39 seats, and the ALP 43.  So this means that the LNP need another 6 extra seats in their own right in order to keep government. 

Methodology

What I intend to do is to look at the 6 most marginal seats currently trending to the ALP, and determine the likelihood of the remaining 6,742 flowing adequately to the LNP to allow them to win each of those seats, given the assumptions above.

The Maths

I'm going to use a little bit of binomial statistics to determine the likelihood of the LNP getting enough votes in the prepolls to make a difference.  I'll explain how this works in more detail in another post, but binomial statistics is really just high school stats.  Nothing too fancy.  In fact, we can use an online calculator to do the grunt work for us.  We just need to know three values first.

  • The first is n, the number of trials in each test.  In this case, we'll make n = 6,742, the number of extra votes that we're going to count.
  • The second is p, the likelihood of success in each trial, or in this case, the likelihood of a vote for the LNP.  In our assumption we stated that we need a success of 50.01%, or in decimal, p = 0.5001
  • The third is x, the number of successes that we are looking for for an LNP win.  This will vary from seat to seat.  I will calculate this as 3,362 (half of the remaining 6742 votes) plus the number of votes the LNP is behind.
Plugging these three numbers into the online calculator mentioned above will give us a calculation for the likelihood of the LNP winning the seat from the current situation.

The Seats

It shouldn't come as a surprise that there are actually quite a few seats currently given to the ALP that are reasonably marginal.  I've also calculated the Vote Deficit, ie, how many extra votes the LNP candidate would need on a 2PP basis to overtake the ALP candidate. The eight most marginal seats are, in order

Seat                  Margin (to ALP)    Vote Deficit (from ABC election website)
Ferny Grove     1.3%                           578
Springwood      1.6%                           785
Bundaberg        1.9%                           816
Pumicestone     2.0%                          1063
Mt Coo-tha       2.9%                          1149
Mundingburra   2.9%                         1170
Maryborough    3.0%                         1200
Barron River     3.2%                         1757

Throwing the n, p & x values for each seat at the online calculator gives

Seat                  x (3362+Vote Deficit)   Cumulative Probability (P (X >=x))
Ferny Grove     3940                              <0.000001, or < 0.0001%

Obviously for the other seats there is less chance than this.  So unless there is some mechanism that makes pre-poll voters more likely to vote LNP than other voters, then it's pretty clear the LNP is unlikely to get any more seats .

Using the same mathematics, you can show that Whitsundays is now pretty safe for the LNP, even with a lead of only 84 votes.  With the votes left to count, there is only a 5% chance that it could swing to the ALP.

Monday, 7 July 2014

What the research says - Plain Packaging

Below is a short list of the current research (from 2014) on the success or otherwise of Plain Packaging of tobacco in Australia.  I do not intend in this blog to make any sort of value judgements or analysis of the articles below, other than to include only reports that are publicly available for all to read.  The data used in each report is not generally publicly available, but the methods by which that data is obtained is described in each case.

The order in which they are listed is simply the order in which I have come across the reports.  In some cases, reports were found through references form previous reports.  If you should come across other reports that you feel should validly be included here, then feel free to let me know in the comments below.

Ashok Kaul and Michael Wolf (2014), The (Possible) Effect of Plain Packaging on the Smoking Prevalence of Minors in Australia: A Trend Analysis

Ashok Kaul and Michael Wolf (2014), The (Possible) Effect of Plain Packaging on Smoking Prevalence in Australia: A Trend Analysis

Laverty, Watt, Arnott & Hopkinson (2014)Standardised packaging and tobacco-industry-funded research

Chantler (2014),  Plain Packaging Review :Independent Review into standardised packaging of tobacco

Jane M Young, Ingrid Stacey, Timothy A Dobbins, Sally Dunlop, Anita L Dessaix and David C Currow(2014), Association between tobacco plain packaging and Quitline calls: a population-based, interrupted time-series analysis

Tuesday, 17 June 2014

Khaki is the New Black

There's been a lot of chatter on twitter and the net in the past week regarding the effectiveness (or not) of Plain Packaging for cigarettes in Australia.  As best as I can tell, it started with the publication of a report in the Australian by Christian Kerr purporting to show that not only was plain packaging ineffective in reducing smoking rates, they had in fact gone up!  The report claims an increase in 0.3% in the number of cigarettes sold in 2013 compared to 2012 (when PP started).  Not much, and certainly less than population growth, but this is against a slide of 15.6% of quantity sales over the previous four years

Whoops.  Is it possible that plain packaging has actually reversed the long term trend in reduced smoking rates?

Of course, one of the main source for the article is an unreleased report from InfoView, compiled on behalf of the tobacco industry, which makes it a little hard to verify.  There are other (unreferenced) sources listed as well, although most of them could be said to have an interest in continued healthy sales of tobacco, so what are we to make of all this?

The report was jumped on straight away by "Australia's Leading Economist & Speaker" (his own words), Stephen Koukoulas in a blog entry in which he explains that there is no possible way in which cigarette sales have gone up since plain packaging was introduced.  To back this up, he wasn't using dodgy, unpublished statistics from the tobacco industry. No.  Nothing short of the ABS (Australian Bureau of Statistics) for him.  Unimpeachable.  And he's right on that score.  The ABS cannot be said to be carrying a torch for anyone - impartial and independent.

Here's his helpful tweet referencing the document (he doesn't reference it in his blog), and here's a link to the relevant table from the ABS.  (The actual page linked to is here)
It's actually row 12 in the Excel spreadsheet you want.  Click the link in row 12 and it takes you to a set of data (in Column C) that measures 'volume' of tobacco sales in Australia quarterly from September 1959 to the present.  You can see that it rises steadily to peak in the early 80s, and then starts to drop off again.

Sems an open and shut case.  Tobacco volumes are down!  An Stephen Koukoulas self-righteously jeers at The Australian for being so transparent in just making up shit to make the Gillard government look bad (it might be worth pointing out here that The Kouk was, at one stage, the economic advisor to PM Gillard).

At some point, Judith Sloan from the Australian weighs in, TheKouk then has a go at her, Jack the Insider has his say, and even the dearly departed Dr Craig Emerson, PhD (Economics) has to put his two cents in (on twitter, 16 June 2014)



Except the ABS data doesn't show actually quantities of tobacco sold.  It uses a measure called Chain Volume Measures (the ABS explains it here - how's your maths?).

This is where the analysis gets interesting.  

Chain Volume attempts to measure the volume of a good (where volume is defined as price times quantity) bought by Australians each year, taking out distorting factors like inflation or CPI, changes in price from year to year and so on.  For most products, where the price for all individual items in a category roughly rise or fall at the same rate, Chain Volume does a pretty good job of measuring 'Volume' of a product sold in a quarter.  The ABS article shows a series of calculations, and I have recreated Table 5 in Excel*, using the formulae in the article linked above.

It clearly shows that the Chain Value Estimate increasing as time goes on, as both quantity sold and price increase.  This is a pretty normal situation for most goods in an economy that is growing.  Note in the above table that there is a clear preference for Apples over Oranges, probably because they're cheaper.

But cigarettes are different.  Brand is everything!  People tend to buy not so much on price, but on 'flavour' and other unquantifiable properties.  Cheap cigarettes sell in fairly low quantities (ok, I haven't got a reference for this, but hang in there.)  Let's be honest, this argument was a big selling point for Plain Packaging in the first place. Take away the brand and people won't want to keep smoking.  Apparently cigarettes in Plain Packaging taste worse anyway.

But what if instead of giving up or reducing, they switch to cheaper ciggies?  I mean, if there's no Brand allegiance, and they're going to taste worse anyway, why not save a few quid?  And with a price saving of up to $7 a pack for the cheapies, what's to lose?

So, I fiddled with the Excel table above, and plugged in some values** modelling two cigarette brands, where the premium brand had the most sales, despite quite a large price difference in Period 0.  Suddenly in Period 2, this switches over, with the bulk of purchases now coming form the cheaper brand.  I have also built in first a decrease of total quantity sold from Period 0 to Period 1, and then a slight overall increase, in line with the data from Christian Kerr and Jack the Insider.  It's interesting to see the results. (I've also extended the model by an extra Period)

The model shows, as per the ABS data, a drop in the Chain Value Estimate (in yellow) across all three years, while at the same time, an increase in actual consumption (in green).

Now, I'm not suggesting that this is actually what has happened, merely showing that there are circumstances in which this can happen.  However, with various bits of data around the country showing increases in quantities sold, increases in the number of smokers, and a decrease in the Chain Value (ie money spent on cigarettes), this model would go a long way to explaining all the disparate and seemingly contradictory data surrounding Plain Packaging and smoking rates.

In Summary

  • Smoking rates have been dropping for a long time, primarily due to price signals and public health campaigns.
  • Plain Packaging was introduced in Dec 2012 in order to reduce smoking rates further.
  • There appears to be some evidence that since PP was introduced, smoking rates have not fallen at the same rate as previously, and may even have increased slightly, despite Australians spending less on tobacco.
It seems at this point in time, the best case scenario for PP is that it has had no effect on smoking rates.  We really need more time and data to tell for sure.






*Here's a screen shot showing the formulae I used, for anyone that wants to play around with it or verify my maths.


**The values have not come from any research on actual sales in Australia.  They were chosen to model a situation where the price profile of a group of products made a significant and unusual change, to show a weakness in the Chain Volume Measure model used by the ABS.  I believe that the way I have used the model reflects the behaviour of smokers following the introduction of Plain Packaging.

Sunday, 1 June 2014

Are you worried about Fukushima?

I was asked a question on twitter today by a rare breed - an articulate tweeter, interested in actual debate.

The question was in relation to alternate energy, after I had suggested that Nuclear power as a more environmentally friendly alternative to both fossil fuels and off-grid solar PV cells.  The question was:

You're concerned about battery leaks with solar yet ok with nuclear?

And my response was absolutely! Let's think about the environmental risk posed by off-grid storage in term of the Fukushima nuclear disaster. Obviously Fukushima was, and remains, an environmental catastrophe. There is no denying that the effects of the breakdown can be measured across the breadth of the Pacific Ocean, and radiation levels remain high in Fukushima itself.

But lets run a hypothetical - what if, instead of the nuclear power plants at Fukushima, we had a distributed network of off-grid, PV cells. Off grid, because the suggestion was to use batteries as storage to allow for base-load delivery. Yes, there are other ways to store power for base-load, but the question related to batteries, so bear with me.

So lets do some sums.

The Fukushima power plants were rated at a total of 6.7GW of power. Let's assume that this was replaced with the equivalent amount of solar cells on houses, plus battery storage to provide for a week's energy (for times when there is significant cloud cover and so on). To provide 6.7GW of power for a week, a total of 6.7x10^9 x 24hours/day x 7days Wh of energy, or 66x10^9Ah of battery storage.

In our distributed network, this could be provided by a number of 110Ah batteries in each residence, 600 million batteries in total! The particular batteries I've used for this calculation each contain approximately 28kg of lead, and 7L of acid (there's a little bit of guestimation from me on this).

In total then, our earthquake and tsunami would have left 16.8 millions tonnes of waste lead, and 4,200 million litres of acid potentially spread over the land and in the ocean. These, too are catastrophic figures, and would represent a pretty severe environmental disaster in their own right.

Is it possible to figure out which one is worse? The radioactive waste, or the massive amounts of lead or acid? Possibly. Both would certainly leave long-lasting environmental impacts for years to come, and require a mammoth clean up effort to make the land liveable again. The analysis of which one is 'better' could take considerable time.

One point to take from this though is that no form of energy is really clean and safe. There are risks for any source of energy. The above event is a catastrophic event, but imagine a distributed installation of 600 million lead-acid batteries, with the responsibility for maintenance being shared by millions of people. There is bound to be some leakage, irresponsible disposal and environmental damage somewhere. By comparison, the nuclear power station is maintained by a team of highly trained people with government oversight. What is better - a low likelihood of a huge catastrophe, or almost certain localised environmental degradation that goes unnoticed and unmeasured?

Rather than decide "Nuclear is bad' or 'Nuclear will save us', perhaps a more sober analysis and understanding of the risks of each type of energy is a more realistic sort of debate to have. All energy sources have their risks, all will have an impact on the environment. Which will have the least, and which can be most effectively managed, and how is it managed, are much better questions to ask.

Saturday, 4 May 2013

Bliss is a $10k Mortgage

There's been a lot of chatter on twitter recently about net government debt being quite small internationally, and at 10%, that is indeed correct.

Judtith Sloan is keen to point out that it's not just the quantity of debt that matters, but the quality.  That is, what that debt has bought, which is also correct (think credit card debt vs a mortgage).  I won't go in to that debate here.

While the debt debate continues, a much more interesting meme has appeared - the comaprison of government debt to an average householders mortgage, and it is that that I would like to dig in to a bit, as it seems to have gained more traction than either of the ideas above.

Here's a typical example of an infographic showing this (courtesy of the ACTU)
 
 
As far as analogies are concerned, its got some real flaws.  Let's dig in to it.
 

1. Net Debt vs Gross Debt

The most obvious thing here is that someone who has a $10,000 mortgage also owns a house. That is, their assets are going to be much larger than their debts, by a significant amount. The government debt is net debt, that is, it is not offset by assets. Perhaps a better analogy would be the fellow on $100k a year with a $10k credit card debt (but see below).
 
On top of that, the government isn't even spending within their income.  A further improvement of the analogy would be the fellow on $100k, with a $10k credit card debt, and spends more than he earns each month.  Even still, I'm not happy with this analogy as the government is not a person.

2. Government Income

GDP is NOT the government income.  It is the estimated total value of goods and services produced by the nation over a year.  The government's income is much less than that, something in the order of 24% of GDP.  A better comparison for our debt, then, would be10% of (24% of GDP), which is closer to 58% of the government's income each year.
 

3. Household Income

There's a bit of a fudge here, too.  Unlike the government, the average household has to pay tax, which reduces the money available to pay back loans, living expenses etc.  It's hard to determine exactly how much tax without knowing the mix of incomes that makes up the $100k, but a single person earning $100k, would pay approximately $26,500 in income tax and Medicare levy, leaving $73,500.
 

A Nice Little Mortgage

Still, a mortgage equal to 58% of $73,500, (about $43,000) would be the envy of most people.  But is even this anolgy reasonable?
 
The underlying assumption in the argument presented by the ACTU (and others) is that mortgages and government debt can actually be compared on a like for like basis.  How well does that assumption stack up?
 

An Average Mortgage

The typical new Aussie household mortgage these days can be anything up to 7 times the (pre-tax) income of a household, historically quite a large mortgage, and can be difficult to manage.  Let's consider a more typical 3.5 times (pre-tax) income.
 
By implying that a mortgage and government debt are comparable, those making the comparison are implying that a net government debt of 3.5 times the government's income of 24% of GDP is quite an acceptable level.
 
Putting this calculation in terms of debt as a % of GDP, we come to 84% of GDP, close to the net public debt of the UK government, and more than that of the US government!
 
So, we know what the ACTU's thoughts are on this, happy to misinform for purely political reasons.
 
What about the thoughts of a senior govenrment minister , who also happens to have a PhD in Economics?  Surely we could trust them to be more honest, yes?
 
 
No.


Saturday, 16 March 2013

Don't forget that power-hungry copper

A small debate on Twitter tonight prompted discussions on the relative power consumption of the ALP's FTTH NBN and the Liberal's proposed FTTN model.  My initial thoughts were this was a do-able comparison, but certianly wasn't as simple as some make out.  The most common argument from the FTTH mob is that the local distribution cabinets use a passive splitter technology (PON - passive optical network), and so don't need power, whereas the FTTN cabinets do.  Of course, with FTTH, you still need to convert the optical signal to an electrical signal at the customer's premise, which isn't needed under FTTN.

A big thanks to Tristan (@blondgecko) who posted this link (Baliga, 2011), which is an academic paper comparing the relative power usage of different broadband network topologies


Hungry, Hungry Copper

As you could probably guess, copper is a hungry beast, and the FTTN network topology uses twice the power that FTTH uses.

To put monetary figures on it, in a per person rate, FTTN uses a whole 14W of power compared to only 7W for FTTP.  That might not sound like much, but remember that these systems tend to run 24 hrs a day, 7 days a week etc etc etc.

Do the sums, and the total dollar value of the difference in electricity usage is $12 per household.  Per year.  Certainly doesn't sound like much, but electricity prices have had a habit of increasing at a considerable rate in recent years.

With a 10% increase in power prices a year, over 25 yrs (life of fibre) gives a value of $737 per house in 2013 dollars for the extra power used by a FTTN system over the next 25 years. 
Table 1: Annual per household power cost difference between FTTN and FTTH

Compared to a perhouse cost of approximately $4000, this is a significant extra cost, but this is also not a particularly well-refined model.  While power prices are currently increasing at a high rate, that's no reason to suspect that they will continue doing so for the next 25 years.  Already we are seeing alternative power sources becoming more competitive with fossil fuels, so assuming that after another ten years, the average price increase in power is closer ot the CPI, at 3%, and the total cost difference reduces to a smidge under $500.

One further refinement is to remove the costs of power that the user pays, not the NBN (remembering that we are comparing costs between the two opposing models here).  According to Baliga, at least 65% of the power costs are borne by the final user, which leaves 35% of the $500, or about $175 difference in power costs to NBNco over 25 years.

What does this mean in practical terms?  To get best value for money for the taxpayer, if it is going to cost less than $175 to install fibre from the node to the premise then its a no brainer.  If the copper is still in good nick, and the fibre will cost more than $175 to install, stick with the copper and wear the cost of th extra electricity.

It also means that the government's (and Turnbull's) original FTTN plan, which was going to cost $4.7B, is still quite a bit cheaper than the new and improved FTTP NBN plan, even with power costs factored in.

Where to from here?

If nothing else, I hope this shows that any real economic comparison of the two models is quite complex, and simply yelling that one technology is somehow 'better' than another isn't going to change anybody's mind.

Thursday, 7 March 2013

The problem is not the syllabus

The problem is not the syllabus.

In almost 20 years of teaching senior Maths and Physics, I've had plenty of top students go on to unviersity to study Engineering and Medicine, and go on to lead fulfilling, successful careers. Only a handful have decided to become teachers. Each year, I ask the likely candidates why they don't choose teaching, and invariably money is mentioned as the main reason or a significant reason.

Over the last 20 years, I have also noticed a drop in the mathematical ability of my beginning Physics students. The students aren't any less intelligent, so what's happened? We do know there is a huge shortage of maths teachers. In fact, at my school our junior maths classes are currently being taught by PE teachers, English teachers, Home Ec teachers, anyone with a spare in their timetable. These people are all top quality teachers, but not specialists. They can teach the maths, but don't have, nor can enunciate, the broader picture.

We can debate the syllabus all we like, but if students don't have the groundwork for serious Maths and Physics, then all we are doing is bailing out a sinking boat. And if we can't attract the best people to teaching, we're not going to get better results by fiddling with the paperwork.

The problem is not the syllabus.