Showing posts with label politics. Show all posts
Showing posts with label politics. Show all posts

Tuesday, June 09, 2020

Judging Trump's Presidency

Early 2017 I gave some metrics here that could be used to judge Trump's presidency a success on his own terms. Dues to the pandemic I do not think it is fair to judge from 2020 on. But how did he do in the previous three years?
The metrics were

1. Better healthcare. Cover Everybody, cost less and have lower deducables

Didn't happen
'In 2018, 8.5 percent of people, or 27.5 million, did not have health insurance at any point during the year. The uninsured rate and number of uninsured increased from 2017 (7.9 percent or 25.6 million).The percentage of people with health insurance coverage for all or part of 2018 was 91.5 percent, lower than the rate in 2017 (92.1 percent).' 


2. More GDP Growth. 'If Trump can deliver an average of more than 3% over his 4 years in office I think an impartial observer would agree the economy has done well.'

Didn't happen



3. A balanced Budget.
Didn't happen
"The budget deficit increased from $779 billion in FY2018 to $984 billion FY2019, up $205 billion or 26%. The budget deficit increased from $666 billion in FY2017 to $779 billion in FY2018, an increase of $113 billion or 17.0%.[10] The 2019 deficit was an estimated 4.7% GDP, up from 3.9% GDP in 2018 and 3.5% GDP in 2017. The historical average deficit is 2.9% GDP" 
4. Infrastructure improvements are a big part of Trumps promise. These are measured here
Didn't happen
2018 US was 14th in the world in world bank LPI rank. Infrastructure score 4.05
2016 US was 10th in the world. Infrastructure score 4.15

On none of the four metrics declared in January 2017 has Trump's presidency succeeded in, in the time before the pandemic.

Friday, January 13, 2017

Irish Election Spending 2016

In the Irish election 2016 who paid the most for each vote and for each seat?
8394832.89 total spending (report here) Electorate: 3305110 so €2.50 was spent on each vote. That is under half what is spend on a US presidential vote.
On a per seat and per vote basis

And on a Per Seat Basis


Party,"Votes,1st pref.",Seats,Spending
Fine Gael,544140,50,2768881.50
Fianna Fáil,519356,44,1687916.29
Sinn Féin,295319,23,650190.38
Labour Party,140898,7,1083718.38
AAA–PBP,84168,6,266942.48
Ind 4 Change,31365,4,51669.18
Social Dem,64094,3,190586.93
Green Party,57999,2,146792.27
and the r package code is

data <-  read.csv("spending.csv", header=TRUE)
datat <- mutate(data, perV = Spending/Votes.1st.pref., perS= Spending/Seats)

q<-  ggplot(data=datat, aes(x=Party, y=perV, fill=Party)) + geom_bar(stat="identity") +      scale_fill_manual(values=c("#E5E500", "#66BB66", "#6699FF", "#99CC33", "#FFC0CB","#CC0000", "#008800", "#752F8B"))
q <-q + theme(axis.text.x = element_text(angle = 90, hjust = 1))
q <-q + theme(legend.position="none")
q <-q + labs(title = "General Election Spending 2016")
q <-q + labs(y = "Euros Per Vote")

q<-  ggplot(data=datat, aes(x=Party, y=perS, fill=Party)) + geom_bar(stat="identity") +      scale_fill_manual(values=c("#E5E500", "#66BB66", "#6699FF", "#99CC33", "#FFC0CB","#CC0000", "#008800", "#752F8B"))
q <-q + theme(axis.text.x = element_text(angle = 90, hjust = 1))
q <-q + theme(legend.position="none")
q <-q + labs(title = "General Election Spending 2016")
q <-q + labs(y = "Euros Per Seat")




Monday, March 23, 2015

Areas of Ireland that have only ever had white male TDs

There is a great map on the mirror website in the article 'The UK map of white male power' of constituencies in the UK that have only ever had white male MPs

I thought it would be interesting to see what the same map would look for Ireland. The wikipedia page for Irish Women TD's is here, from it I took the list of constituencies that have been represented by Female TDs.

Ireland has not had many non white TDs. Moosajee Bhamjee is the first non white TD as far as I know. Leo Varadkar's father is Indian. And I am probably missing many more but historical demographics suggest non white Irish politicians were rare. We had a low immigrant population until recently. To keep the graph comparable to the UK one I keep the same not 'white male' filter. Please correct me with anyone I am missing.

Taking distinct constituencies from the Female TD's wikipedia page. And a map of Irish constituencies now from here. I coloured in the constituencies I could find female TDs for in green.


For some old constituencies, like Cork Mid, I could not work out where they were. One ex-constituency Limerick City–Lmk East had a female deputy, Kathleen O'Callaghan in 1921. I took the map of where this constituency used to cover when she represented it and turned that area in the east part of Limerick-West green.
Map of Limerick City–Lmk East in 1921

Another Dublin North has completely changed its location. When Margaret Collins-O'Driscoll represented it in 1923 it covered what is now Dublin North-East. So this area is also coloured green.


The constituencies I could not find a female TD for were: Cork South-West, Limerick West and Louth. The constituencies wikipedia listed as having had a female TD are Carlow–Kilkenny, Cavan–Monaghan, Clare, Clare–Galway South,  Cork East, Cork Mid, Cork North–Central, Cork North–East, Cork North–West, Cork South–Central, Donegal North–East,   Donegal South–West,   Dublin Ballyfermot, Dublin Central, Dublin County Mid, Dublin Mid, Dublin North, Dublin North–Central,   Dublin North–West,   Dublin South, Dublin South–Central,   Dublin South–East,   Dublin South–West, Dublin St Patrick's, Dublin West, Dún Laoghaire, Galway West,   Kildare North,   Laois–Offaly,   Limerick City–Limerick East,   Limerick East, Longford–Westmeath,   Meath East,   Monaghan, Roscommon, Roscommon–Leitrim,   Sligo–Leitrim,   Tipperary North,   Tipperary South, Waterford,   Waterford County,   Westmeath,   Wexford, Wicklow .

This map looks more diverse than the UK one to me. But the proportional representation system Ireland has means we have larger constituencies with a few Members of Parliament in each. This means the same proportion of non white male Members of Parliament should cover a bigger area.
I will update this map with any corrections people give me in the comments.

Wednesday, February 04, 2015

Irish Alcohol Consumption in 2020

Drink blitz sees bottle of wine rise to €9 minimum 'Irish people still drink an annual 11.6 litres of pure alcohol per capita, 20pc lower than at the turn of the last decade. The aim is to bring down Ireland's consumption of alcohol to the OECD average of 9.1 litres in five years' time.'

What would Irish alcohol consumption be if current trends continue? Knowing this the effectiveness of new measures can be estimated.

The OECD figures are here. I put them in a .csv here.The WHO figures for alcohol consumption are here I loaded the data in R Package

datavar <- read.csv("OECDAlco.csv")

attach(datavar)

plot(Date,Value,

     main="Ireland Alcohol Consumption")
Which looks like this

Looking at that graph alcohol consumption rose from the first year we have data for 1960 until about 2000 and then started dropping. So if the trend since 2000 continued what would alcohol consumption be in 2020?

'Irish people still drink an annual 11.6 litres' I would like to see the source for this figure. We drank 11.6 litres in 2012 according to the OECD. I cannot find OECD figures for 2014. In 2004 we drank 13.6L the claimed 20pc reduction of this is 10.9L, not 11.6L. Whereas the 14.3L we drank in 2002 with a 20pc reduction would now be 11.4. This means it really looks to me like the Independent were measuring alcohol usage up to 2012.

Taking the data since 2000 until 2012.

newdata <- datavar[ which(datavar$Date > 1999), ]

detach(datavar)

attach(newdata)

plot(Date,Value,

     main="Ireland Alcohol Consumption")

cor(Date,Value)

The correlation between year and alcohol consumption since 2000 is [1] -0.9274126. It look like there is a close relationship between the year and the amount of alcohol consumed in that time. Picking 2000, near the peak of alcohol consumption, as the starting date for analysis is arguable. But 2002 was the start of this visible trend in reduced alcohol consumption.

Now I ran a linear regression to predict based on this data alcohol consumption in 2015 and 2020.

> linearModelVar <- lm(Value ~ Date, newdata)
> linearModelVar$coefficients[[2]]*2015+linearModelVar$coefficients[[1]]
[1] 10.42143
> linearModelVar$coefficients[[2]]*2020+linearModelVar$coefficients[[1]]
[1] 9.023077
> 
This means based on data from 2000-2012 we would expect people to drink 10.4 litres this year. Reducing to drinking 9 litres in 2020. So with current trends Irish alcohol consumption will be lower than 'the aim is to bring down Ireland's consumption of alcohol to the OECD average of 9.1 litres in five years'.

There could be something else that is going to alter the trend. One obvious one would be a glut of young adults. People in their 20 drink more than older people. If there are a higher proportion of youths about then the alcohol consumption will rise all else being equal. So will there be a higher proportion of people in their 20s in 5 years time?

The population pyramids projections for Ireland are here. Looking at these there seems to have been a higher proportion of young adults in 2010 than there will be in 2020 which would imply lower alcohol consumption

it would be interesting to see the data and the model that the prediction of Irish alcohol consumption are based on. And to see how minimum alcohol pricing changes the results of these models. But without seeing those models it looks like the Government strategy is promising current trends to continue in response to a new law.

Wednesday, December 19, 2012

Cystic Fibrosis Improved Screening

In the first post I claimed that like Tay-Sachs in Israel Cystic Fibrosis could be drastically reduced with some relatively inexpensive genetic testing. In the second further analysis suggested that such genetic screening of the Irish population would pay for itself several times over. In this post I want to see if some form of targeted screening could be shown to be as cost effective as currently implemented screening.

Currently there is free screening for people who has relatives with CF and their partners. I assume they include second cousin as a relative. Based on this paper and some consanguinity calculations I calculate that an Irish couple with one of their second cousins has CF have about twice the chance of having a child with CF as the general population. This means you can be tested for free currently if you have about a 1 in 700 chance of having a child with cystic fibrosis whereas the general population with a 1 in 1444 chance. If a test can be focused the test so that it is twice as good as random screening that should be enough by current standards to be rolled out.

How could a non random screening be made this focused?

1. Geographic area. Some areas of the country might be more likely to have CF carriers than others. Targeting screening in these areas might make it twice as effective. The Cystic Fibrosis Registry of Ireland annual report 2010 gives numbers for Irish counties. 4 counties do not have their numbers listed but I have estimated these based on their population.

This map is based on the figures of people with CF found in the registry. This could be a biased sample or people could have moved. A better measure would be babies born with CF in each county.

Number of people with CF in each county might be useful for deciding how to allocate some treatment resources. What % of people have CF is more interesting for screening though. To work this out we first need the numbers found in each county.

The number of people with CF in the registry per ten thousand people is

I can send anyone who wants them full sized versions of these maps or the r package code I used to generate them. The code I used is below

library(RColorBrewer)
library(sp)
con <- url("http://gadm.org/data/rda/IRL_adm1.RData")
close(con)
people<-read.csv('cases.csv', sep=',', header=TRUE)
pops = cut(people$cases,breaks=c(0,2,10,20,30,40,50,70,150,300))
myPalette<-brewer.pal(9,"Purples")
spplot(gadm, "pops", col.regions=myPalette, main="Cystic Fibrosis Cases Per County",
       lwd=.4, col="black")
dev.print(file="CFIrl.jpeg", device=jpeg, width=600)
dev.off()
population<-read.csv('countypopths.csv', sep=',', header=TRUE)
pops = cut(population$population,breaks=c(0,20,40,60,70,80,100,160,400,1300))

myPalette<-brewer.pal(9,"Greens")
spplot(gadm, "pops", col.regions=myPalette, main="Population in thousands",
       lwd=.4, col="black")
dev.print(file="PopIrl.jpeg", device=jpeg, width=600)       
dev.off()

gadm$cfpop <- people$cases/(population$population/10)
cfpop = cut(gadm$cfpop,breaks=c(0,0.5,1,1.5,2,2.5,3,3.5))
gadm$cfpop <- as.factor(cfpop)

myPalette<-brewer.pal(7,"Blues")
spplot(gadm, "cfpop", col.regions=myPalette, main="CF/Population Irish Counties",
       lwd=.4, col="black")
dev.print(file="CFperPopIrl.jpeg", device=jpeg, width=600)       
dev.off() 
If this result was replicated in a more complete analysis just picking the darker counties could get you the two times amplification needed to have a test as strong as the currently paid for ones.

2. Pick certain ethnic minorities. Some groups have higher levels of CF than the average population. For example travellers have higher levels of some disorders. 'disorders, including Phenylketonuria and Cystic fibrosis, that are found in virtually all Irish communities and probably are no more common among Travellers than in the general Irish population. The second are disorders, including Galactosaemia, Glutaric Acidaemia Type I, Hurler’s Syndrome, Fanconi’s Anaemia and Type II/III Osteogenesis Imperfecta, that are found at much higher frequencies in the Traveller community than the general Irish population'. 'There is no proactive screening of the Traveller population no more than there is proactive screening of the non-traveller Irish population'. I do not think deliberate screening of one ethnic group, unless that group themselves organise it, is a good idea. Singling out one ethnic group for screening risks stigmatising its members and reminds many of the horror of eugenics.

3. Certain disorders seem to cluster with CF. 'In 1936, Guido Fanconi published a paper describing a connection between celiac disease, cystic fibrosis of the pancreas, and bronchiectasis'. Ireland also has the highest rate of celiac disease in the world (about 1 in 100). If CF and celiac disease or some other observable characteristic are also correlated in Ireland testing people with celiac disease in their family could also provide amplification of a test.

4. Screening parents undergoing IVF. HARI was the first clinic in Ireland to offer IVF and it currently receives up to 800 enquiries a year specifically about the procedure. It carries out over 1,350 cycles of IVF treatment annually and over 3,500 babies have been born as a result. The Merrion Clinic carries out up to 500 cycles of IVF per year, while last year, SIMS carried out 1,063 cycles." IVf is roughly 33% effective per cycle so this means about 1000 children are born through IVF from these three Irish clinics here each year. Screening of these parents would prevent roughly one CF case per year. Screening people who use IVF does not prevent many cases. It can be used by people who know they are CF carriers to avoid having a child with CF though.

Concerns about the privacy and security of a general genetic screening program of the Irish population should not be ignored. Cathal Garvey on twitter pointed out that this screening would require 'With explicit informed consent & ensuing destruction of samples, Just wary of prior shenanigans of HSE bloodspot program. i.e. it's already fashionable among governments to abuse screening programs to create 'law' enforcement databases. Without clear guarantees against that, must weigh the costs of mass DNA false incriminations vs. gains of ntnl screening prog!' I agree that any genetic screening program for Ireland would have to ensure privacy for the individual.

Screening the general population for carriers of serious genetic disorders would save money and suffering. If the level of savings are not sufficient for general screening focusing on certain locations or relatives of people who suffer from disorders that co-occur with CF could amplify the returns sufficiently to be as useful as current screenings.

Wednesday, December 12, 2012

Cystic Fibrosis Carrier Screening

In my last post Cystic Fibrosis Screening I described how Tay-Sachs had been nearly eradicated in Israel and America and did a rough calculation as to why it would be cost effective to run a similar program to screen for Cystic Fibrosis in Ireland.

In this post I am going to take a closer look at the figures involved to give more evidence that such a screening program is justified.

The Cystic Fibrosis approve of genetic carrier screening for those related to people with CF and their partners. Genetic Carrier Testing For Cystic Fibrosis. 'Carrier testing is limited to adults over the age of 16 where there is a family history of CF, or where a family member has been found to be a carrier of a CF mutation' says the lab that does the testing.

[in the UK] 'A disadvantage of cascade testing is that it will not identify the majority of carrier couples since more than 80% of affected infants are born in families without a prior history of the disease'. Testing relatives though useful only covers a small fraction of potential CF cases.

This screening of relatives is paid for out of public funds

"How much does the test cost? GP fees will apply for arranging the blood test but molecular genetic testing at NCMG and any genetic counselling you may have is a public service and therefore free of charge".

This means that CF Ireland and the health service are involved in and support CF carrier screening. This means some of the moral objections to public screening that might have existed are not present.

What would population wide screening cost? The cost of genetic screening has fallen amazingly fast. for example here is the cost of sequencing an entire genome compared to Moores law.

23andMe a private company has recently announced it will for $99 dollars. This test checks for over 200 genetic markers including some forms of cystic fibrosis. This is further confirmation that genetic screening is getting much cheaper fast and that its current cost is quite low at less than a tenth of the cost of a night in hospital.

The list price of sending a sample from every 16 year old to 23andMe each year would at present be $7.5 million. There are reasons you might not want a private company to do this but it gives a baseline cost. This $7.5 million is the lifetime cost of under 8 CF patients 'However, the lifetime medical cost of the care of a CF child in today’s dollars was estimated to be slightly >$1,000,000'. To be economical, at US prices, this screening would have to prevent 8 of the roughly 40 CF sufferers born a year. Other genetic disorders are also screened for this $99 cost including many of those listed here. None of these are as common as CF in Ireland but these other disorders should be included in a full cost benefit analysis of genetic screening for the Irish population.

This $100 dollar cost is slightly deceptive as once someone finds out they are a CF carrier there are several options available to them. These vary in cost. They can decide (or matchmakers can ensure) not to have children with another carrier. If they do decide to have children with another carrier they can use IVF techniques to ensure an embryo without CF is implanted. Many of the cost analysis of CF screening (like the Rowley et al paper) include the possibility of screening a fetus for CF and terminating the pregnancy if found. This option is not legal in Ireland. They can ignore their and their partners screening results and have a baby as normal with all the risks that entails.

These costs and the probabilities on each have been worked out for the US in the 1998 paper Prenatal screening for cystic fibrosis carriers: an economic evaluation. 'the marginal cost for prenatal CF carrier screening is estimated to be $8,290 per quality-adjusted life-year. This value compares favorably with that of many accepted medical services. The cost of prenatal CF carrier screening could fall to equal the averted costs of CF patient care if the cost of carrier testing were to fall to $100'. This QALY cost figure is used by health care economists to decide which treatments and screenings meet a cost benefit analysis. The wikipedia page on QALY describes the measue well. According to this paper screening in the US, where CF is about four times rarer, is cost effective for the general population at current screening prices.

The paper 'Economic evaluation of cystic fibrosis screening: A review of the literature' has further figures on the cost of screening. This paper is from 2008 and the figures it quotes can be from years before then. As an example of how much screening costs have dropped in that time 23andMe screening cost $999 in 2007 and is now $99 and screens for more genetic markers.

In the UK £30,000 per QALY is generally considered cost effective.

In Ireland what is the cost for a QALY? 'In Ireland, there is no fixed and generally agreed cost effectiveness threshold below which health care technologies would be considered by policy makers to be cost effective'. ’Pee-in-a-pot’ screening in third level institution/college settings may be considered cost effective if a cost effectiveness threshold in the region of €45,000 per QALY gained is used. This €45,000 per QALY gained seems to be a generally accepted figure.

There are more costs to screening than can be supped up in a € per QALY figure. Any screening will induce worry for example. Prostate, breast cancer and other screenings all also induce extra human costs not measurable in QALY though. These common screenings also have to meet these cost per QALY standards.

Given the US analysis at $8,290, screening costs having dropped drastically since then and the high rate of CF gene in the Irish population this implies to me full CF screening of the Irish population would be very cost effective.

Friday, December 07, 2012

Cystic Fibrosis Screening

Approximately 1 in 25 Ashkenazi Jews are carriers of Tay-Sachs disorder which is a really nasty genetic disorder that kills children who have inherited two copies of the Tay-Sachs variant of the gene from their parents by the age of four.

This disease does not effect many kids anymore though

of the 10 babies born in North America in 2003 with Tay-Sachs, not a single one was Jewish.

Figures from Israel paint a similar picture.

According to Prof. Joel Zlotogora, who heads the Health Ministry's Department of Community Genetics, just one baby was born with Tay-Sachs in Israel in 2003. Insofar as is known, not a single baby in Israel was born with Tay-Sachs last year,(2004)

Israel almost ten years ago pretty much eradicated a really nasty genetic disease. This has been done by screening people so that they know they are carriers. If they find out early in a relationship that their partner is also a carrier people tend to decide they are incompatable. IVF techniques allow testing of preimplantation embryos for certain genetic disease before implantation. Finally 'the general public in Israel is advised to carry out, at the expense of the state, genetic tests to diagnose the disease before the birth of the baby. In the event an unborn baby is diagnosed with Tay-Sachs, the pregnancy is usually terminated'.

The Cystic Fibrosis variant of the gene is carried by 1 in 19 Irish people. This is the highest rate in the world. CF is an unpleasant disease but not nearly as unpleasant as Tay-Sachs. It is however the most common genetic disorder in Ireland and one that is more common than Tay-Sachs, which screening eradicated nearly a decade ago.

75,554 children born in Ireland during 2009. Testing newborns would be unfair for reasons of consent but a genetic test for CF could be offered to adults. Genetic carrier test costs a bit over 100 euro (but the costs has been dropping exponentially for the last several years). Testing in bulk means this screening could come in at under 7 euro million a year. Much of the cost in testing involves collection and processing of samples. This means other less common genetic disorders could be screened for at little extra cost.

A bed in an Irish hospital costs €910 per day. This is semi private room and I believe CF rooms need to be more isolated than this. That is €332150 per year. For the 20 beds in the St Vincents unit that costs (roughly) 6.5 million per year. The cost of screening every 18 year old for CF is roughly that of running one ward in St Vincents for a year.

This cost benefit analysis of screening for CF of one ward ignores all the other medical costs involved in CF but worse it ignores the suffering of the 35-40 children (one in 1,461) born with the disorder every year. The termination of fetus' with CF would not be supported in Ireland. CF compared to Tay-Sachs is a mild disorder and Irish people have a different opinion on termination to Israeli's. But with voluntary screening CF cases would significantly reduce just from partner selection alone.

I think at least a cost benefit analysis and a debate on the morality of genetic screening of the general population should take place.

Monday, November 05, 2012

Drawing the presidential Election

Finding all the ways the electoral college votes from each state can be added up to give both candidates 269 votes turns out to be really hard. Political pundits always bring up the spectre of a drawn presidential election.

What happens if the US election ends in a draw?

If There’s an Electoral College Tie, Things Will Get Even Crazier Than You May Know

Where both candidates get 269 of the electoral college votes.

The website 270towin calculates 32 practical combinations that could result in a tie and give the probability of one of these occuring given polling data at 0.2%.

The NYtimes here claims there are 5 practical ways a tie could result.

But how many possible drawing combinations are there in total, including implausible ones?

Elections are much closer than the set of all possible wins a candidate could have. Certain states are similar so tend to vote the same way so some divisions are far more likely than others. Also by the median voter theorem two competing parties will be as similar to each other as possible to get as much of the vote as they can. Roughly the Republicans will be as near the center as they can while getting all the right wing votes and the democrats as near the center while getting all the left wing votes.

But how many total ways are there that two candidates can win 50 states and one district? That is as, ColinTheMathmo pointed out, 2^51 as each state can go to either candidate. I want to find the number of allocations in this 2^51 that give each candidate 269 electoral college votes*.

2^51 is a big number. As Matthew Saltzman said the set partition is an NP-Complete problem and a 'Complete enum at 10M/sec, would take 7 years.'

But instead of complete enum we just want to see the cases where both candidates get 269. The code here calculates this. I took some Minizinc code from Hakan Kjellerstrand who pointed out an error in my previous reading of a result that would calculate all the allocations of states that give 269 electoral votes. The code is written in Minizinc as it can calculate all answers in a way GLPK** doesn't. Hakan also kindly pointed out some inefficiencies in my program so I am linking to his code.

Here are some of the many results it output

Alaska California Delaware Florida Idaho Illinois Iowa Maine Michigan Mississippi Montana Nevada 'New York' Ohio Pennsylvania 'South Dakota' Texas Utah 
----------
Alaska California Delaware Florida Idaho Illinois Iowa Maine Michigan Mississippi Montana Nevada 'New York' Ohio Pennsylvania Texas Utah Vermont 
----------
Alaska California Delaware Florida Idaho Illinois Iowa Maine Michigan Mississippi Montana Nevada 'New York' Ohio Pennsylvania Texas Utah Wyoming 
----------
Alaska California Delaware Florida Idaho Illinois Iowa Maine Michigan Mississippi Nevada 'New York' 'North Dakota' Ohio Pennsylvania 'South Dakota' Texas Utah 
My mac is 2.16 gz and has 2 gigs of RAM so it is not a fast machine. Still after three hours of running it ground to a halt. This means I have no answer for you. If I find out how many of the state allocations result in 269 votes I will let you know.

It is interesting that these sorts of difficult NP-Complete problems pop up in real life and getting solutions for them is not always easy.

* Actually Maine and Nebraska can give out votes proportionately so the search space is even larger than this

**Just in case someone can use it here is GLPK code that will work out one answer

/* sets */
set STATES;
set NEED;

/* parameters */
param VotesTable {i in STATES, j in NEED};
param Pop {i in STATES};
param Need {j in NEED};


/* decision variables: x1: alabama, x2: , x3: , x4:  x51: Wyoming*/
      var x {i in STATES} binary >= 0;

/* objective function 
          z: sum{i in STATES} VotesTable[i,j]*x[i];
     
/* Constraints */
s.t. const{j in NEED} : sum{i in STATES} VotesTable[i,j]*x[i] == Need[j];

/* data section */
data;

set STATES :=  Alaska Delaware "District of Columbia" Montana "North Dakota" "South Dakota" Vermont Wyoming Hawaii Idaho Maine "New Hampshire" "Rhode Island" Nebraska Nevada "New Mexico" Utah "West Virginia" Arkansas Kansas Mississippi Connecticut Iowa Oklahoma Oregon Kentucky "South Carolina" Alabama Colorado Louisiana Arizona Maryland Minnesota Wisconsin Indiana Missouri Tennessee Washington Massachusetts Virginia Georgia "New Jersey" "North Carolina" Michigan Ohio Illinois Pennsylvania Florida "New York" Texas California;
set NEED := Votes;

param VotesTable: Votes:=
 Alabama 9
 Alaska 3
 Arizona 11
 Arkansas 6
 California 55
 Colorado 9
 Connecticut 7
 Delaware 3
 "District of Columbia" 3
 Florida 29
 Georgia 16
 Hawaii 4
 Idaho 4
 Illinois 20
 Indiana 11
 Iowa 6
 Kansas 6
 Kentucky 8
 Louisiana 8
 Maine 4
 Maryland 10
 Massachusetts 11
 Michigan 16
 Minnesota 10
 Mississippi 6
 Missouri 10
 Montana 3
 Nebraska 5
 Nevada 6
 "New Hampshire" 4
 "New Jersey" 14
 "New Mexico" 5
 "New York" 29
 "North Carolina" 15
 "North Dakota" 3
 Ohio 18
 Oklahoma 7
 Oregon 7
 Pennsylvania 20
 "Rhode Island" 4
 "South Carolina" 9
 "South Dakota" 3
 Tennessee 11
 Texas 38
 Utah 6
 Vermont 3
 Virginia 13
 Washington 12
 "West Virginia" 5
 Wisconsin 10
 Wyoming 3;

param Need:=
Votes        269;

end;

Friday, November 02, 2012

Becoming President with 22% of the Votes

Political pundits talk about the possibility of winning the Presidential election with less votes than your opponent. Assuming only two candidates what is the lowest percentage of votes you could get and still win the election? In the case where everyone votes this becomes an interesting question. In America some states have a higher ratio of people to electoral college votes than others. If the ones that are preferentially treated banded together a small percentage of people could decide the election.

In my last post I created a program to work out in an overly complicated way what was the least amount of land a president could be elected from in the US. In this post I want to figure out the best states to win to get you 270+ electoral college seats using the smallest number of voters.

I got the estimated population in July 2011 from the census website here. Using this data in the glpk program below and got the result shown in this map. If everyone voted and the people who get the most power in votes all voted one way then the states on the winning side would have 135936335 voters to get 270 electoral college seats. The total population is 311591917 so 43.67% of the population

The winner would win 40 districts of the 51 states+dc and lose Virginia, Georgia, New Jersey, Michigan, Ohio, Illinois, Pennsylvania, Florida, New York, Texas, California.*

Now if the candidate in these states just squeaked a win by one vote and got zero votes in all the other states that means in a two party election you could win an election, where everyone voted, with under 22% of the vote. If you think of this happening in a senate election where each state has 2 senators (and DC none) then you could control 80% of the senate with under 22% of the vote.

There are all sorts of other questions similar to this. What is the smallest block where all the states touch? What is the shortest distance between all her state capitals a winner could have? I think some analysis that included Senate and Congress seats could be interesting. If you have any ideas please comment. * Thanks to Hakan Kjellerstrand who pointed out here I had read the solution file wrong and North Carolina was not present.

/* sets */
set STATES;
set NEED;

/* parameters */
param VotesTable {i in STATES, j in NEED};
param Pop {i in STATES};
param Need {j in NEED};


/* decision variables: x1: alabama, x2: , x3: , x4:  x51: Wyoming*/
      var x {i in STATES} binary >= 0;

/* objective function */
      minimize z: sum{i in STATES} Pop[i]*x[i];

/* Constraints */
s.t. const{j in NEED} : sum{i in STATES} VotesTable[i,j]*x[i] >= Need[j];


/* data section */
data;

set STATES :=  Alaska Delaware "District of Columbia" Montana "North Dakota" "South Dakota" Vermont Wyoming Hawaii Idaho Maine "New Hampshire" "Rhode Island" Nebraska Nevada "New Mexico" Utah "West Virginia" Arkansas Kansas Mississippi Connecticut Iowa Oklahoma Oregon Kentucky "South Carolina" Alabama Colorado Louisiana Arizona Maryland Minnesota Wisconsin Indiana Missouri Tennessee Washington Massachusetts Virginia Georgia "New Jersey" "North Carolina" Michigan Ohio Illinois Pennsylvania Florida "New York" Texas California;
set NEED := Votes;

param VotesTable: Votes:=
 Alabama 9
 Alaska 3
 Arizona 11
 Arkansas 6
 California 55
 Colorado 9
 Connecticut 7
 Delaware 3
 "District of Columbia" 3
 Florida 29
 Georgia 16
 Hawaii 4
 Idaho 4
 Illinois 20
 Indiana 11
 Iowa 6
 Kansas 6
 Kentucky 8
 Louisiana 8
 Maine 4
 Maryland 10
 Massachusetts 11
 Michigan 16
 Minnesota 10
 Mississippi 6
 Missouri 10
 Montana 3
 Nebraska 5
 Nevada 6
 "New Hampshire" 4
 "New Jersey" 14
 "New Mexico" 5
 "New York" 29
 "North Carolina" 15
 "North Dakota" 3
 Ohio 18
 Oklahoma 7
 Oregon 7
 Pennsylvania 20
 "Rhode Island" 4
 "South Carolina" 9
 "South Dakota" 3
 Tennessee 11
 Texas 38
 Utah 6
 Vermont 3
 Virginia 13
 Washington 12
 "West Virginia" 5
 Wisconsin 10
 Wyoming 3;

param Pop:=
Alabama 4802740
Alaska 722718
Arizona 6482505
Arkansas 2937979
California 37691912
Colorado 5116796
Connecticut 3580709
Delaware 907135
"District of Columbia" 617996
Florida 19057542
Georgia 9815210
Hawaii 1374810
Idaho 1584985
Illinois 12869257
Indiana 6516922
Iowa 3062309
Kansas 2871238
Kentucky 4369356
Louisiana 4574836
Maine 1328188
Maryland 5828289
Massachusetts 6587536
Michigan 9876187
Minnesota 5344861
Mississippi 2978512
Missouri 6010688
Montana 998199
Nebraska 1842641
Nevada 2723322
"New Hampshire" 1318194
"New Jersey" 8821155
"New Mexico" 2082224
"New York" 19465197
"North Carolina" 9656401
"North Dakota" 683932
Ohio 11544951
Oklahoma 3791508
Oregon 3871859
Pennsylvania 12742886
"Rhode Island" 1051302
"South Carolina" 4679230
"South Dakota" 824082
Tennessee 6403353
Texas 25674681
Utah 2817222
Vermont 626431
Virginia 8096604
Washington 6830038
"West Virginia" 1855364
Wisconsin 5711767
Wyoming 568158;

param Need:=
Votes        270;

end;

What is the least amount of land that will make you President?

Matthew Yglesias in the slate calculates what he thinks is the smallest area of land a candidate could win and still win this presidential election. Densely populated states will have more electoral college votes per square kilometer and so you can win the election while winning a relatively small surface area of America.
His reasoning is 'I started with a list of states in order of population density. So you have DC, then New Jersey, then Rhode Island, then Massachusetts, and so forth. Eventually you get a set that wins you the electoral college. Except the bloc of the 18 densest states gives you 282 electoral votes—way more than you need. Eliminate Michigan, the 18th densest, and you have 266 electoral votes. So then you can round things out with little New Hampshire's four electoral votes and you have your winning map'.

I checked this allocation with the GLPK program below. I used the electoral votes listed here and the state areas listed on wikipedia This gets 270 votes with an area of 1625012km². US states + DC is an area of 9826630km² so 16.54% of the US could win an election.

The states are Delaware, District of Columbia, Hawaii, New Hampshire, Rhode Island, Connecticut, Maryland, Indiana, Massachusetts, Virginia, New Jersey, North Carolina, Ohio, Illinois, Pennsylvania, Florida, New York, California. My map is here

Matthew Yglesias' map is the same so he did find the optimal solution by hand.

/*code to find the least land area to get 270 votes. Run with 'glpsol -m election.mod -o out'
*/
/* sets */
set STATES;
set NEED;

/* parameters */
param VotesTable {i in STATES, j in NEED};
param Cost {i in STATES};
param Need {j in NEED};


/* decision variables: x1: alabama, x2: , x3: , x4:  x51: Wyoming*/
      var x {i in STATES} binary >= 0;

/* objective function */
      minimize z: sum{i in STATES} Cost[i]*x[i];

/* Constraints */
s.t. const{j in NEED} : sum{i in STATES} VotesTable[i,j]*x[i] >= Need[j];


/* data section */
data;

set STATES :=  Alaska Delaware "District of Columbia" Montana "North Dakota" "South Dakota" Vermont Wyoming Hawaii Idaho Maine "New Hampshire" "Rhode Island" Nebraska Nevada "New Mexico" Utah "West Virginia" Arkansas Kansas Mississippi Connecticut Iowa Oklahoma Oregon Kentucky "South Carolina" Alabama Colorado Louisiana Arizona Maryland Minnesota Wisconsin Indiana Missouri Tennessee Washington Massachusetts Virginia Georgia "New Jersey" "North Carolina" Michigan Ohio Illinois Pennsylvania Florida "New York" Texas California;
set NEED := Votes;

param VotesTable: Votes:=
 Alabama 9
 Alaska 3
 Arizona 11
 Arkansas 6
 California 55
 Colorado 9
 Connecticut 7
 Delaware 3
 "District of Columbia" 3
 Florida 29
 Georgia 16
 Hawaii 4
 Idaho 4
 Illinois 20
 Indiana 11
 Iowa 6
 Kansas 6
 Kentucky 8
 Louisiana 8
 Maine 4
 Maryland 10
 Massachusetts 11
 Michigan 16
 Minnesota 10
 Mississippi 6
 Missouri 10
 Montana 3
 Nebraska 5
 Nevada 6
 "New Hampshire" 4
 "New Jersey" 14
 "New Mexico" 5
 "New York" 29
 "North Carolina" 15
 "North Dakota" 3
 Ohio 18
 Oklahoma 7
 Oregon 7
 Pennsylvania 20
 "Rhode Island" 4
 "South Carolina" 9
 "South Dakota" 3
 Tennessee 11
 Texas 38
 Utah 6
 Vermont 3
 Virginia 13
 Washington 12
 "West Virginia" 5
 Wisconsin 10
 Wyoming 3;

param Cost:=
 Alabama 135765
 Alaska 1717854
 Arizona 295254
 Arkansas 137732
 California 423970
 Colorado 269601
 Connecticut 14357
 Delaware 6447
 "District of Columbia" 177
 Florida 170304
 Georgia 153909
 Hawaii 28311
 Idaho 216446
 Illinois 149998
 Indiana 94321
 Iowa 145743
 Kansas 213096
 Kentucky 104659
 Louisiana 134264
 Maine 91646
 Maryland 32133
 Massachusetts 27336
 Michigan 250494
 Minnesota 225171
 Mississippi 125434
 Missouri 180533
 Montana 380838
 Nebraska 200345
 Nevada 286351
 "New Hampshire" 24216
 "New Jersey" 22588
 "New Mexico" 314915
 "New York" 141299
 "North Carolina" 139389
 "North Dakota" 183112
 Ohio 116096
 Oklahoma 181035
 Oregon 254805
 Pennsylvania 119283
 "Rhode Island" 4002
 "South Carolina" 82932
 "South Dakota" 199731
 Tennessee 109151
 Texas 695621
 Utah 219887
 Vermont 24901
 Virginia 110785
 Washington 184665
 "West Virginia" 62755
 Wisconsin 169639
 Wyoming 253336;

param Need:=
Votes        270;

end;

Monday, July 30, 2012

Sweet Suffering Hell

GOVERNMENT health experts have ruled out banning fizzy drink vending machines in schools because they are making too much money. Instead they are recommending increased taxes on fizzy drinks in a bid to reduce consumption. ... Having ruled out banning the vending machines, the special group has suggested making sugary drinks more expensive by piling on extra taxes in the next Budget. The cost of a regular soft drink could increase by as much as 7pc.
So sugar is bad and should be taxed.
Sugar companies were among the largest beneficiaries last year of Europe's Common Agricultural Policy payments, according to statistics made public Saturday by most EU member countries. In France, in the year between October 2008 and 2009, three sugar companies received the top subsidies: Tereos (117.9 million euros/156.8 million dollars), Saint Louis Sucre (143.7 million euros) and Cristal Union (57.2 million euros). In Spain a sugar company also occupied first place, with Azucarera Ebro receiving 119.4 million euros. The world's leading sugar company Sudzucker came second in Germany's list with its 42.9 million euro subsidy, behind the dairy company Nordmilch (51,1 million euros).
So sugar is good and should be subsidised. Penn and Teller summed up the problem with "They spend our money to make soft drinks cheap. And now the same government wants more of our tax money to make soft drinks more expensive. Does anyone else think this is incredibly fucked up?"

Tuesday, April 10, 2012

The Rational Voter On Science

The myth of the rational voter is a great book by Bryan Caplan about how democracies make predictable errors because people are biased against certain beliefs. The video below gives a good synopsis of his arguments



The belief that people having incorrect beliefs will not be a problem is called "The miracle of aggregation" where people don't know much all disagree with each other and those small number of people who do know something are the ones who are left after all the noise is cancelled out. But because these beliefs are not randomly wrong but biased to one side this cancelling out doesn't happen.

He talks about the economic areas of being anti market, making work for the unemployed, anti foreigners and that people are too pessimistic and how general opinion on these issues disagrees with that of economists. You could argue that the people are right and economists wrong on these issues but generally people who are experts in a field tend to know more about it. If you disagree I am available for entirely unqualified and haphazard brain surgery if you want to put your brain where your mouth is.

But what about non economic questions? Are there scientific questions people get wrong that might result in voting based on a mistaken view of how the word works. There is a poll about scientific question that takes place across many countries called the National Science Foundation, Science and Engineering Indicators which asks what it thinks are basic science questions everyone should know the answer to.

If many people get the wrong answer about these questions, and the question is important from a policy point of view then this poll will show an area the voter is likely to be irrational about and we will get bad policy in that area.

· The center of the Earth is very hot. (True) 78.0% of Americans in 2006 got this right.
A politiician who did not believe this might have a hard problem supporting geothermal heating. But geothermal is not that big a source of energy so it would mess things up very badly.

· All radioactivity is man-made (False) 73.0% got this right.
Without realising this you might overestimate the risk man made radioactivity is going to cause. I am willing to bet the 27% of people who didn't know this might be less in favour of nuclear power stations. But I really don't know if more nuclear power is a good policy. Lovelock and Brand say it is. Unless I can prove the connection between holding the belief that all radioactivity is man made and being anti nuclear power it is a stretch to claim this false belief harms us.

· It is the father’s gene that decides whether the baby is a boy or a girl (True) 62.0% got this right
Many parents want male children and without realising this then women could get blamed as the female kids are their fault. I'm not sure what political policies would change if you did get this wrong though. Sex selective abortion seems wrong whether you understand the y chromosome or not.

If more people understood the sperms role in sex selection more sperm sorting techniques could be used. This might result in lower numbers of children in those who want to 'balance out' their families.

· Lasers work by focusing sound waves (False) 42.0%
'over 25% of the GDP of developed countries is directly based on quantum physics' someone who got this wrong would have very wrng views about something fairly fundamental to the modern economy.

· Electrons are smaller than atoms (True) 45.0%
Similar issue with understanding one of the main sources of income in a modern economy. Could someone who got this wrong really hope to decide between investing research money in on scientific field or another?

To be fair I might get this question incorrect. Electrons do not really have a size. As wikipedia says "the electron has no known substructure.[2][72] Hence, it is defined or assumed to be a point particle with a point charge and no spatial extent". This question is a bit like asking is a car smaller than hope. The question doesnt really make sense.

· Antibiotics kill viruses as well as bacteria (False) 54.0%

This one is really important. Overuse of antibiotics is making them less effective. Megan Mcardle has a great piece on the problem here.

Some people give antibiotics credit with increasing our life expectancy by about 8 years and no one thinks they have had a tiny role in our large life expectancy increase during the 20th century.

Getting antibiotics policy wrong is a really big issue and one the public get wrong. You don't hear politicians on the "If you vote for me you wont get penicillen for your earache" platform. This is an important issue probably up there with the economic ones Caplan describes in his book.

I have heard Michael Graham on Irish radio saying he doesnt care about politicians opinion on evolution because it will not effect how well they govern. The case of antibiotic resistance shows how important it might be to have politicians who accept evolution as it is in progress in this case limiting the power of one of our most important healthcare tools. I get the feeling many of these questions are actually about aligning yourself with literal interpretation of the bible rather than science knowledge.

This is one area public health campaigns are trying to explain


· The universe began with a huge explosion (True) 40.0%
This is another question I might get wrong. Calvin and Hobbes described the big bang as the 'Horrendous Space Kablooie' which might be more accurate than calling it an explosion.

I can't see this issue having a big effect on policy though. The "if i am elected I will combat the inflation of the universe" party probably won't change much.

· The continents have been moving their location for millions of years and will continue to move in the future (True) 77.0%
You might have a pretty weird view of earthquakes if you didn't believe this but again I can think of no specific policy issue you are likely to get wrong

· Human beings as we know them today, developed from earlier species of animals (True) 50.0%
What policy would someone who did not believe this get wrong? Some medical ones about the usefullness and ethics of animal testing maybe. There must be more then that though. If you can think of any specific policy people who don't know the right answer voting on would cause harm please add it in the comments.

This is a question the majority is not right on. So if there is a policy question that this deals with it could be one where those that know the correct answer are drowned out.

Not to go all Karl Popper on this but I could also argue about which of these are true/false and which are the current best theories. I think most cosmologists would put a higher probability on the big bang theory being overtaken then the heliocentric solar system one. Also there would be a higher certainty on all these theories than any of the economic ones IMHO. But that does not mean I couldn't argue with the phrasing.

Does the Earth go around the Sun or does the Sun go around the Earth? (Earth around Sun) 71.0% got this right.
I'm not sure you can say the earth goes round the sun. It move in a eliptical orbit with the sun at one foci. If a politician actually believed the sun went round the earth would it specifically result in any bad policies? As opposed to general worry about his intellect? Not any I can think of.

If you know of any other polls of the public belief about scientific questions please post them. Based on this one survey (results for other countries here) On antibiotic control policy the public is likely to support the wrong policy.

Other than economics and science are there other areas the public is probably supporting policies the vast majority of experts in the area disagree with? Public Health and Criminology experts probably disagree with policies politicians run on and people vote for. I would like to see any polls that would show this.

Friday, December 09, 2011

A Rose Named 20175 Does Not Smell as Sweet


Would we get more or less innovation without patents? The rose that holds patent no 20175 tells us how little we need patents. The plants have been patentable in America since 1930. 16% of Rose varieties are now patented but this increase in protection to rose growers has not increased the variety of rose varieties.

Launching The Innovation Renaissance by Alex Tabarrok is a short €2 book I read on the bus into work. It details as well as the perils of rose patents other hindrences that block wider innovation

The argument against patents is that they give too much protection to innovators. That in covering too much that is too easily thought of they actually hinder people coming up with new products. I have not seen a coherent argument that (non pharmaceutical) patents have too little protection. Tabarrok does a moderate anti patent argument forward in a clear convincing way though.

Next Tabarrok argues we should have more prizes for innovation. I have a major brain erection for kaggle and science innovation prizes in general. Tabarrok makes a clear case that prizes should be used when new ideas are needed.

Many of the faults in education are also well laid out. "the value of a permanent 25-point increase in scores ...would be 80 trillion" ..."A 25 point increase would bring the united states from about the level of mathematics education in Ireland and Spain to the level in Germany and Australia" How are we in Ireland worse at maths than Australia? Australia is mainly populated with Irish people, and the ones with an unhealthily active interest in sports at that. We have no excuse for the Aussies beating us in Maths. The education section gives several good pieces of advise for Ireland. Pay teachers based on their subject. Pay them on results not just years served. Sponsor college courses that result in more innovation that increases the standard of living more than some of the liberal arts that don't. While on the subject there is a very good blog on Irish education from the teachers side at anseo.

Immigration of high skilled immigrants is discussed next. Again like patents a reasonable achievable change is suggested rather than fully free immigration. I think Ireland should go moneyball on this. Find undervalued players in the market and buy them for our team (this would mean letting persecuted people live here, but it is an argument for another time).

The main thrust of the book is that innovation matters. Instead of a welfare state dividing a pie it might be worth thinking of an innovation state that constantly tried to make things better and increase the size of the pie. This would involve fighting entrenched interests "Few people lobby for innovation because almost by definition, innovation creates present losers and future winners and the present winners are by far the more politically powerful".

The optimistic view that we have in our power to create new and amazing things infuses this book. It is about fixes rather than showing how bad the innovation problem is as Cowen's The Great Stagnation does. None of the suggestions are on the extreme side and all are clearly explained. Because of this I think this book is likely to provide a blueprint for many improvements in the near future.

The Irish times has an interview with Tabarrok here

Wednesday, November 30, 2011

Syrian Parade

I've always hated fireworks. They are a boring waste of gunpowder and sky. But I love parades. Particularly crap ones with donkeys and trucks that break down and a collective shambolic happiness. The best parade I was ever at was in the Syrian town of Hama. In Hama stayed in a hostel with a parrot for a receptionist who could say "Welcome. Please wait in the tv room" in one of 6 languages depending on where he thought you were from.


Hama has a weird atmosphere. There is the contrast of really old norias on the river with the rest of the town. These ancient water wheels are in stark contrast to the rest of the city that is just 1980s concrete block apartments. Out in the countryside everything gets old again. They even have beehive huts like in Ireland

Its only when I got back did I read about the Hama Massacre
The Hama massacre (Arabic: مجزرة حماة‎) occurred in February 1982, when the Syrian army, under the orders of the President of Syria Hafez al-Assad, conducted a scorched earth policy against the town of Hama in order to quell a revolt by the Sunni Muslim community against the regime of al-Assad...
Initial diplomatic reports from western countries stated that 1,000 were killed. Subsequent estimates vary, with the lower estimates claiming that at least 10,000 Syrian citizens were killed,[4] the majority civilians, while others put the number at 20,000 (Robert Fisk), or 40,000 (Syrian Human Rights Committee).






It has the same weird cult of personality photos of Assad everywhere that the rest of Syria has. And the same bird like men that are the security agents everywhere in the world

The parade was in the town when I was there. It was something like a Saint Patricks Day Parade 30 years ago and with better weather.

What has always stuck in my mind for some reason was one group of kids form a karate club who happily marched through the town happily waving coloured flags.

I see the the news footage now from Syria of the protests and the Assad regime violent response. I worry about those kids I saw years ago. Those kids would be the perfect age now to be angry protesting. I'm scared to think what has happened to them. They are having a march in Syria right now and its not nearly as happy as the one I saw.

Friday, February 18, 2011

The Great Stagnation in Ireland

There is a new ebook by Tyler Cowen about how growth rates and progress in general has declined since 1973. There is a podcast here where he discusses the argument.

The book, is short you can read it in an evening, and published only in ebook format. It is a bit like an evening with your smart friend as he explains something rather than an economic treatise thats full of equations and aids insomnia. It is well worth the 4 dollars and few hours it takes to read.

Loads of commentators have examined various parts of the argument for stagnating progress. I even joined the argument here. I am going to try give a few datapoints that relate to Ireland that are part of the great stagnation argument here. Ireland has not been stagnating since 1973. In that time we moved from an improvished bachwards country to a modern well off one (and then slipped back somewhat again).
But there some areas where we are stagnating in similar ways, there are areas where we made similar mistakes to the Americans (and the rest of the OECD) and if we can expect a similar decline in growth here that means we should alter our expectations.

Stagnating medicine

We spend too much on medicine and do not get good value for that spending. There is a piece here by Ronan Lyons where he argues convincingly that with our age profile we should be spending a third less than what we currently do on medicine


It is generally agreed that access to the health system in Ireland is bad. If we spend more than we should and people cannot get healthcare as easily as other OECD countries do it is fair to say that Irish healthcare is not improving our quality of life the way it should be

Stagnating education

'In the past decade, funding per student has been increased in real terms by 61 per cent, yet performance has decreased by 15 per cent.

This disconcerting news was reinforced before Christmas when the international ranking of the reading, mathematics and science skills of Ireland’s 15-year-olds was published. Reading skills dropped from fifth to 17th, the sharpest drop among 39 countries, with one quarter of all 15-year-olds classified as effectively illiterate. This was more politely termed in the report as “below the level of literacy needed to participate effectively in society”.'

We are spending more and getting less on education. Literacy is one of those basic measures that is hard to fake. Anyone who leaves school illiterate is a failure of our education system. In this school education area Ireland seems to have stagnating improvement.

Expecting too high growth
One of the major conclusions of the book is that Americans expected growth to continue at previous rates and this facilitated the financial crisis. People believed house prices would go up forever without wages increasing at the same rate. When people realised that they could not afford their debts and no one was going to buy them off them the house of cards collapsed.

In Michael Lewis' Vanity Fair piece makes a similar claim that Ireland expected too much growth
'An Irish businessman named Denis O’Brien sat on the board of the Bank of Ireland in 2005, when it was faced with the astonishing growth of Anglo Irish, which was about to double in size in just two years. “I remember the C.E.O. coming in and saying, ‘We’re going to grow at 30 percent a year,’” O’Brien tells me. “I said, How the fuck are you going to do that? Banking is a 5-to-7-percent-a-year growth business at best.”'

If the financial crisis in America was aided by delusions of future growth the Irish collapse was to an even greater extent.

Expecting growth to be much higher than it will be leads you to paying too much for things. For example buying empty buildings on the grounds that NAMA will make a profit on them eventually.

Other Claims
There is a very interesting section on how the internet might entertain us but does not provide many jobs. There is a similar argument to in "An Exodus Recession?" that because we can sit at home and look at youtube essentially for free the recession both does not feel as bad but is measurably worse as people do not go out and spend money on cinemas etc that employ people.
This does not relate specifically to Ireland though I do think the internet has improved our lives in ways that are hard to measure and that probably help those who like reading and arguing more than they help the average person.

Cowen also claims that increased emphasis on scientific research could again get progress moving faster again. I was watching Bronowski's the ascent of man last night from 1973, the year Cowen claims the stagnation began. Bronowski gives a warning that the next step in mankinds progress is dependent on science and that if we don't prevent scientific progress from stagnation some other civilisation will.


Expecting growth to return now

I have heard many people running for office who claim anyone who questions that we can return to the good old days of 5%+ growth of being unpatriotic. In this narrative our debts are huge but they were in the 1980's as well ans well soon have 5%+ growth that will evaporate our debts for us.

The evidence is that once countries get as rich as we are now their quick growth from playing catchup then slows. Some of us might be able to get more productive now but not nearly the increase that happened in the 90's when we went from working on farms producing vegtables and potatoes to producing Viagra and Pentiums.

We are not going to have the growth rates we had in the 90's we like the rest of the OECD have entered a period of lower growth, what Tyler Cowen calls 'the great stagnation'. Anyone who says we should plan for Ireland growing at a rate higher then the 6.7% interest rate on the ECB/IMF loan are is trying to get you to take on billions of their debt.

The great stagnation a great short book. Though its arguments apply to America the lessons of what they Japan and other countries who developed before Ireland are important for us to learn.

Monday, May 24, 2010

Eurovision Voting Fraud

Forget hanging chads in Florida. Some really important vote rigging is about to happen.

I was investigating the Eurovision Song Contest last week as a prediction problem. No really it is an area of major research into how corruption agreements implicitly develop between countries. There are papers here, here and here.

But then I saw the odds for this year and there is something really odd happening. The odds from Paddy Power are here
Azerbaijan 11/8
Germany 4/1
Israel 9/1
So Azerbaijan a country that no one can spell is hot favorite. Which would not be too suspicious if they had ever had a song that wasn't entirely made up of goats being strangled before. The singer Safura and her Drip Drop has her obvious talents on display but is there something odd going on here?

Wikipedia says
After the conclusion of 2009 Eurovision, it was reported in Belarusian media that unknown people had allegedly paid and bribed students from Belarus to vote for Azerbaijan in the contest, and had even transported them to the Belarusian-Lithuanian border in 10 buses. The cost of this alleged action was claimed to be about 55 million rubles. They purportedly voted for Azerbaijan using Belarusian SIM cards, and then received Lithuanian cards to repeat the process. The Azerbaijani entry "Always" received 10 points from Belarus and 5 points from Lithuania.

So why does an old soviet country, with a pretty dodgy political system, that is 95% Muslim want so badly to win the worlds gayest contest? Turns out its a giant fight with Armenia. There is a war going on between them using the Eurovision as a battleground. I cannot wait till they get Johnny Logan in as a peace negotiator.

The Azerbaijan state broadcaster blocked out the voting number for the 2009 Armenian entry like some corporate logos in a rap video. Then and you can only read this in a full Borat accent "in August 2009, a number of Azerbaijanis who had voted for Armenia's entry during the 2009 Contest were summoned for questioning at the Ministry of National Security in Baku, during which they were accused of being "unpatriotic" and "a potential security threat". One of those summoned, Rovshan Nasirli, said that he was told by his interrogators that they had the names and addresses of all 43 Azerbaijanis who had voted for Armenia".

What is the cause of all this? According to the over 2000 word wiki article on the "Armenia Azerbaijan relations in the Eurovision Song Contest" it is Nagorno-Karabakh an area they both claim.

So it looks like Azerbaijan are willing to buy masses of fake simcards, bus people to other countries, bribe students and track down a few dozen people who voted the 'wrong way'. I wonder what is going to happen this time now that they seem to take the eurovision seriously?