'Defund the NSA': a little R code for following the money

Introduction

The 'Defund the NSA' amendment by Rep. Justin Amash came up for a vote on July 24, 2013 and failed. The specifics are here. The issue can be put simply: a No vote was a vote to continue the expansion of the surveillance state, and a Yes vote was a vote to curb the US government's ability to spy on Americans. The relative merits of either position are not the concern of this article.

On July 26, Wired ran a story accompanied by a summarized data set which showed that the No votes came from people who received a lot more money, on average, from the security-industrial complex. The authors of the analysis, an organization called MapLight, made the complete data set – with specific donors, amounts, time stamps and recipients – available in .csv here.

Daniel G. Newman, MapLight's president, quoted in the story, outlined the potential conflict of interests nicely: American citizens might like their privacy, but defense and security industry donors want to do business with the surveillance state; representatives are supposed to represent constituents, but their campaign cash comes from donors.

Was the defeat of the Amash amendment bought with money? The finding that Wired reported is clear enough: the bar chart in the middle of the article shows that No votes came from people who collected more than twice, on average, what people who voted Yes did. However, averages do not tell the whole story.

A pair of density plots shows that both No and Yes votes came from large numbers of people who received little money from the security-industrial complex, and that there were a few large recipients on both sides:

plot of chunk cleanUp

The quantity of interest

Suppose that the amount received from defense and security industry donors can help approximate how likely the conflict of interests is, and which way it cuts: better-funded representatives who voted No risk ill-representing their privacy-minded constituents, while better-funded representatives who voted Yes risk losing money from their defense and security industry donors.

Now suppose also that we only care about the risk of ill-representation to voters who wanted a Yes on the Amash amendment: the people who would prefer to curb the ability of the NSA to spy on Americans wholesale. I do not know who these people are. I do know that they do not include the President of the United States, because he is on the record for having wanted a No.

Now: a positive difference in funding between No votes and Yes votes, since the funding comes from an industry that wants a No, should be indicative of the risk of ill-representation to voters who want a Yes. This is because the security-industrial complex will get a No for free from voters who want a No, but it will have to help out the campaigns of representatives whose constituencies might listen to challengers who propose a Yes.

Just to make it extra clear: the sign and size of the funding gap is not a method for exposing evidence of ill-representation. It is simply a measure of its risk. In other words, I won't show you a smoking gun. I am just suggesting where to look if you're trying to find one.

So, with the above clarifications out of the way, I have two questions. First, which of the two parties is more likely to please its defense and security industry donors at the expense of its privacy-minded constituents, nationally? And second, how about my home state of North Carolina?

The statistical test

One way to tell whether the Yes and No groups within each party are significantly different in how much they collected from industry donors is to use a non-parametric test that compares medians: the Wilcoxon rank sum test (also known as the Mann-Whitney U test). This works at the national level. For North Carolina, the counts of representatives are small enough that they will have to speak for themselves.

I am proposing a non-parameteric test because, as you can see in the density plot above, you can hardly assume that donations from the security-industrial complex are normally distributed across US representatives. Non-parametric tests do not require distributional assumptions, with the added advantage for this exercise that they have somewhat lower power as a result. In other words, I may miss some differences in funding, so my exercise can't be accused of stacking the deck in favor of finding them.

My code and data set are available on request. You may use them to look up your own state representatives.

The going rate for a No, by party

To the extent that No votes were for sale, Republicans charged more on average. The mean and standard deviation of amounts collected from the security-industrial complex in the No camp are tabulated below:

##                      Mean   St.dev.
## Voted.No.All         41,635 55,677 
## Voted.No.Republicans 48,452 61,815 
## Voted.No.Democrats   30,630 42,068

There is no significant difference in the amounts collected between the two parties on the Yes side:

##                       Mean   St.dev.
## Voted.Yes.All         18,765 25,248 
## Voted.Yes.Republicans 17,501 22,345 
## Voted.Yes.Democrats   19,836 27,523

How about intra-party differences between the Yes and No camps?

Republican No votes came in sufficient numbers to defeat the Amash amendment, but at a price:

##       Votes  Mean   St.dev
## R.Yes     94 17,501 22,345
## R.No     134 48,452 61,815

The difference between the two sides' takes from the security-industrial complex is gaping on the Republican side. You will not be surprised, then, to see that it is statistically significant. Below are the Wilcoxon test results:

## 
##  Wilcoxon rank sum test with continuity correction
## 
## data:  d$Amount by d$Vote
## W = 9085, p-value = 1.316e-08
## alternative hypothesis: true location shift is not equal to 0

Now it may well be that every Republican representative voted with his or her constituents' wishes in mind: those who voted Yes would have represented small-government types, while those who voted No presumably came from districts with security-hawk majorities; but that would leave the wide difference in funding unexplained. After all, the industry that wants a No will get it for free if that's also what the voters want. Why help out where no help is needed?

The president's Democratic friends – those who voted No on the Amash amendment, in line with his wishes – appear to be representing constituencies who are okay with wholesale spying on principle. They may look like they're out to please their industry donors if you only consider the averages, but the difference is not large enough to clear the Wilcoxon test hurdle:

##       Votes  Mean   St.dev
## D.Yes    111 19,836 27,523
## D.No      83 30,630 42,068
## 
##  Wilcoxon rank sum test with continuity correction
## 
## data:  d$Amount by d$Vote
## W = 5094, p-value = 0.2074
## alternative hypothesis: true location shift is not equal to 0

So, at the national level the Republicans look like they have a higher risk to be pleasing their donors at the expense of their privacy-minded constituents' preferences. The Democrats all seem to be representing their constituencies fairly: if you liked the Amash amendment, voted Democratic, and your representative voted No, you have no reason to suspect that your man (or woman) was bought. You may simply be living among the wrong kind of Democrats.

How about North Carolina?

The North Carolina Republicans who support Big Brother do it basically for free, having collected a mere $5,200 on average from defense and security industry donors:

##               Mean   Median St.dev. Votes 
## R.Voted.No.US 48,452 28,450 61,815     134
## R.Voted.No.NC  5,200  3,000  4,192       5

But boy, do North Carolina Democrats compensate for it:

##               Mean   Median St.dev. Votes 
## D.Voted.No.US 30,630 12,700 42,068      83
## D.Voted.No.NC 65,491 67,850 30,880       3

An average of $65,491 in defense and security industry contributions is a lot of money. I wonder who got how much?

##                     Name Party District Amount Vote
##    Douglas Mike McIntyre     D     NC-7 95,124   No
##              David Price     D     NC-4 67,850   No
##  George G.K. Butterfield     D     NC-1 33,500   No

Are there any US representatives from North Carolina who would rather not have our government spy on us? Yes, there are. Mostly they are Republicans:

##             Name Party District Amount Vote
##     Walter Jones     R     NC-3 36,000  Yes
##  Patrick McHenry     R    NC-10  4,000  Yes
##     Mark Meadows     R    NC-11  1,000  Yes
##         Mel Watt     D    NC-12  9,000  Yes

I expect that Mr. Walter Jones will have heard by now from his donors. By contrast, Mr. Mel Watt, the lone Democratic Yes voter, makes the security and defense industry's support for his fellow North Carolina Democrats look particularly inspired.

The North Carolina picture is the opposite of the national one: here Democrats are the ones who appear to be at higher risk of pleasing their donors at the expense of their constituents. The funding gap is much wider as well: compare $65,491 on average for a No versus $9,000 for a Yes among North Carolina Democrats, to $48,452 for a No versus $17,501 for a Yes, on average, among Republicans nationally.

For Mr. McIntyre, a Blue Dog Democrat, this may not be a problem. His take from the security-industrial complex may very well match the hawkish preferences of his constituency. But I expect that Mr. Price will have some explaining to do when he meets with his progressive voters in the Research Triangle next time.