News for hackers. Stuff that matters.
Re:Court rules drug dog barely more accurate than a coin fli... by rayiner on Friday August 07, 2015 @01:48PM (#10023836)
The article's whole analysis is fucked up because it ignores the prior probability.

> In U.S. v. Bentley, we see just how damaging the Harris decision really was. Lex, the drug dog that searched Bentley’s car, had a 93 percent alert rate. That is, when Lex was called to search a car, he alerted 93 percent of the time. He was basically a probable cause generator. His success rate was much lower, at 59 percent.

In other words, drugs were found in 55% of cars in which he was brought in.[1] The base rate for drug possession in a car is almost certainly a tiny fraction of that. So between the human judgment to bring in Lex, and Lex's sniffing, the police are able to find drugs at probabilities that are multiples of the base rate. In contrast, if you searched cars based on a coin flip (i.e. randomly), you'd expect to find drugs exactly at the base rate.

[1] Being successful > 50% of the time is pretty much the definition of probable cause.

Re:Court rules drug dog barely more accurate than a coin fli... by braythwayt on Friday August 07, 2015 @02:42PM (#10024186)
Ignoring the prior probability invalidates the argument, but it cuts both ways.

Consider a drug sniffing dog at an airport, it sniffs all carry-on bags as people go through the line to be searched. If we find drugs even 10% of the time that the dog whines, it's amazing, because the actual distribution of drugs amongst travelers is minuscule, maybe 0.01 of 1%.

But if the dog is right 55% of the time? This is excellent probable cause for a search.

But by way of contrast, consider a drug-sniffing dog that is only brought in when a human handler suspects a traveller may be carrying drugs. If the handler is very good at their job, and optimizing for success, the handler may themselves have a 55% positive-positive rate. Meaning, 55% of the people they pick are carrying drugs.

Now if the dog whines 55% of the time they are given a suspect that has a 55% chance of carrying drugs, well, that is no better than a coin flip, it's garbage.

And of course, what if the handler is amazing at picking people who might be carrying drugs? For example, what if they have access to warrentless surveillance meta-data and are using the dog as an excuse for parallel reconstruction ("Your honour, I picked this person at random, and the dog whined, so I searched them"). The handler might have a near 100% success rate of picking people carrying drugs.

Now a 55% rate of whining is truly terrible for deciding whether the dog is any good.

Re:Court rules drug dog barely more accurate than a coin fli... by Lawtonfogle on Friday August 07, 2015 @03:55PM (#10024620)
>But if the dog is right 55% of the time? This is excellent probable cause for a search.

Going back to the original case, even if we assume that every time the dog doesn't signal there wasn't drugs (so the dog never missed a drug), had the police just searched without bringing in the dog they would've had similar rates. So why isn't the police's 'I think he had drugs, can't give any good reason though' not probable cause if the success rate is nearly 55% when the expected success rate of searching everyone is under 1%?

Re:Court rules drug dog barely more accurate than a coin fli... by CPLX on Friday August 07, 2015 @02:05PM (#10023955)
Not really. You have conflated a couple things here:

There is some aggregate base rate, which is the percent of a random sample of motorists that are carrying drugs.

Then there is the rate of those who are actually carrying drugs within the a group that the police have pulled over, and suspect are carrying drugs, and have also presumably asserted their rights and refused a consensual search by the police and also do not have some other attribute (such as smell, items visible in plain view) that would provide probable cause.

You argue that "the base rate for drug possession in a car is almost certainly a tiny fraction of that" but in fact the base rate within this much narrower second group should be extremely high in comparison to the general population. And the problem is that searching that group, regardless of what you think of them, is illegal.

In order to make it legal you have to be able to show that you're going to do something specific that will provide probable cause.

Showing that the dog is anything short of a clearly reliable and accurate means of determining that a law is being violated means that the dog is not providing probable cause. A dog that alerts to drugs more 90% of the time when only 60% or so of the population in question has the drugs, has shown results that aren't sufficiently correlated to the data it is supposed to discern.

When that is true it is just a tool for violating laws that prohibit searches.

Re:Court rules drug dog barely more accurate than a coin fli... by rayiner on Friday August 07, 2015 @03:18PM (#10024412)
> Then there is the rate of those who are actually carrying drugs within the a group that the police have pulled over, and suspect are carrying drugs, and have also presumably asserted their rights and refused a consensual search by the police and also do not have some other attribute (such as smell, items visible in plain view) that would provide probable cause.

Yes, but that hurts your argument rather than helping it. The drug dog does not, by itself have to clear the probable cause hurdle. Rather, the totality of the circumstances has to yield probable cause: https://en.wikipedia.org/wiki/Illinois_v._Gates.

So say the base rate for carrying drugs is 10% in the population. The police, based on their suspicions, pull over a population of people where 40% are carrying illegal drugs. Then, the drug dog comes in, and he's barely better than a coin flip--60% correct. Out of 100 people stopped, he'll correctly identify 24 of the 40 carrying drugs, and incorrectly flag 24 of the 60 not carrying drugs. But overall the process will be right 50% of the time, versus only a 10% probability if you stopped drivers at random. That's probable cause.

Re:Court rules drug dog barely more accurate than a coin fli... by SilasX on Friday August 07, 2015 @03:52PM (#10024608)
But I thought PC couldn't count a officer's inarticulable hunch towards that "totality of the circumstances".

For example, let's say that the dog is not sufficient probable cause. Consider the cases:

1) drug dog indicates + suspect driving erratically

2) drug dog indicates + "I just have a feeling"

Am I correct that 1) might be PC but 2) could not be, no matter how accurate that officer turns out to be in practice?

(In case 2, the dog's finding more drugs than the base rate would not validate its accuracy, as the results are being pre-filtered to have a very different distribution.)

Re:Court rules drug dog barely more accurate than a coin fli... by rayiner on Friday August 07, 2015 @05:13PM (#10025050)
If they're finding drugs at several times the base rate, the officer's suspicions probably aren't an "inarticulate hunch."
Re:Court rules drug dog barely more accurate than a coin fli... by SilasX on Friday August 07, 2015 @06:00PM (#10025274)
The term I used was inarticulable, and if you are unable to articulate something (like to a judge), then that makes it inarticulable -- irrespective of how otherwise grounded it was.

So rationally, the cop's "spidey sense" is indeed evidence. The question I posed to you (and whoever's reading) was whether it counts as legal evidence. And it's my understanding that, no matter how good your spidey sense is, it does not become PC in a legal sense until it is articulable. As Thomas Moore said in A Man for All Seasons:

"The world must construe according to its wits; this court, according to the law."

Re:Court rules drug dog barely more accurate than a coin fli... by CPLX on Saturday August 08, 2015 @06:18PM (#10028807)
There's no objective way to determine a base rate here. If you argue there is what methodology are you using?
Re:Court rules drug dog barely more accurate than a coin fli... by danielweber on Friday August 07, 2015 @03:06PM (#10024347)
We need to ask what the ROC curve looks like.

https://en.wikipedia.org/wiki/Receiver_operating_characteris...

Re:Court rules drug dog barely more accurate than a coin fli... by mikeash on Friday August 07, 2015 @02:47PM (#10024219)
The numbers indicate that the increased rate is almost entirely within the human's judgment, though. If we assume that none of the cars where the dog didn't alert also didn't contain drugs, then that means that the dog was responsible for an increase from 55% to 59%. It's worse if the dog missed some cars in the 7%.

Now, what's the actual base rate? What proportion of cars on the road contain drugs? I'd wager it's well under 10%. Even if we say it's 10%, that means that the humans are taking the rate from 10% to 55%, and then the dog goes from 55% to 59%.

In other words, the dog is basically useless, except as a tool to make the searches legal. If not for the legal requirement, one could just as easily say that "between the human judgment to bring in the magic 8 ball, and the magic 8 ball itself, the police are able to find drugs at probabilities that are multiples of the base rate."

Apparently police are really good at figuring out whether cars contain drugs, but the law doesn't allow them to act on this directly. And apparently dogs are nearly useless at figuring out whether cars contain drugs, but the law allows their nearly useless indication to be used as the basis for action. This is rather backwards!

Re:Court rules drug dog barely more accurate than a coin fli... by harryh on Friday August 07, 2015 @03:00PM (#10024296)
Very well said, especially the last paragraph.

One wonders if we have the procedures we do because it gives a thin veneer of scientific respectability over a system that might otherwise appear biased, racist & otherwise distasteful even if it's statistically valuable.

Re:Court rules drug dog barely more accurate than a coin fli... by mikeash on Friday August 07, 2015 @03:03PM (#10024317)
It might even go further. I could see where a system that allows officers to search based only on their own suspicion to actually be biased, racist, and distasteful, while one where they have to call in the dog, and where they believe the dog actually gets results, might be much more evenhanded.

There does seem to be a lot of "this is 'scientific' so it's good" in law enforcement. A lot of forensic techniques are just BS, but are accepted because they're "scientific." Or look at the recent article posted to HN about how polygraphs are nonsense.

Re:Court rules drug dog barely more accurate than a coin fli... by harryh on Friday August 07, 2015 @03:06PM (#10024342)
Indeed. One is forced to wonder what the solution is to this particular problem. I do not have a good answer.
Re:Court rules drug dog barely more accurate than a coin fli... by mikeash on Friday August 07, 2015 @03:18PM (#10024417)
It's hard for me to come up with an answer, because I want to just say, "Don't search them at all, the War on Drugs is stupid anyway."

Of course, it's the job of the police and the courts to come up with an answer, so we should be able to let them do it. But it seems they can't be trusted to reason about it well.

Re:Court rules drug dog barely more accurate than a coin fli... by harryh on Friday August 07, 2015 @03:28PM (#10024473)
Well sure but that doesn't really get to the core of the problem because I could just as easily substitute "guns" for "drugs" and all the issues will stay much the same (unless you're also a 2nd amendment purist in which case I might have to struggle to come up with another example.)
Re:Court rules drug dog barely more accurate than a coin fli... by mikeash on Friday August 07, 2015 @03:51PM (#10024601)
Yep, but by then I'm working pretty hard on imagining the alternative scenario and trying to ignore the actual drugs-related scenario and I can't trust myself to think straight about it anymore.
Re:Court rules drug dog barely more accurate than a coin fli... by harryh on Friday August 07, 2015 @04:03PM (#10024660)
A man that admits his biases! I like it!
Re:Court rules drug dog barely more accurate than a coin fli... by tertius on Friday August 07, 2015 @04:15PM (#10024725)
Except that they would still only deploy the dogs on cars that meet their bias.
Re:Court rules drug dog barely more accurate than a coin fli... by mikeash on Friday August 07, 2015 @04:45PM (#10024914)
Right, but your biases still get filtered through your thought processes.

If all you need is your own suspicion, it could be easy to let one's bias against purple people run rampant, and search every purple person's car and nobody else's.

If you have to call in a dog which you believe to be effective (even if it may not be) then you may only go to that trouble when you actually have some legitimate suspicion, rather than just going based off your anti-purple racism.

Re:Court rules drug dog barely more accurate than a coin fli... by shkkmo on Friday August 07, 2015 @02:06PM (#10023959)
> [1] Being successful > 50% of the time is pretty much the definition of probable cause.

No, it isn't. 'A common definition is "a reasonable amount of suspicion, supported by circumstances sufficiently strong to justify a prudent and cautious person's belief that certain facts are probably true"' https://en.wikipedia.org/wiki/Probable_cause#cite_note-2

I would argue that if you roll a 100 sided dice, my belief that the result is over 45 is not 'prudent and cautious' but 'optimistic'.

Re:Court rules drug dog barely more accurate than a coin fli... by rayiner on Friday August 07, 2015 @02:29PM (#10024098)
But this is more like a procedure that will let you guess the number that will land > 50% of the time.
Re:Court rules drug dog barely more accurate than a coin fli... by adrusi on Friday August 07, 2015 @02:50PM (#10024236)
That's orthoganal the math at play here.

The point of that analogy was to create a situation in which someone is right 55% of the time and see how the language "prudent and cautious" feels in those circumstances.

Whether that means rolling over a certian number on a die, or rolling a specific number on a very strange weighted die is irrelevant.

Re:Court rules drug dog barely more accurate than a coin fli... by rayiner on Friday August 07, 2015 @03:02PM (#10024311)
The "someone is right 55% of the time" scenario is meaningless without considering the base rate. A 100-sided dice has a 55% chance of landing on a number greater than 45. That's the implicit base rate in the hypothetical.

Consider, instead, something like guessing whether someone has had cancer. Only 8.5% of the population has ever had it. If you can guess randomly, you'll be right about 8.5% of the time. If you can guess correctly 55% of the time, you're doing far better than random guessing.

The implicit assumption of the "probable cause" concept is that the base rate is low. I.e. only a small percentage of people have illegal contraband. If a police officer is able to guess that someone is more likely than not to have contraband (i.e. more than 50% correct), then he must be acting on some concrete clues, because he's doing far better than if he just searched people randomly.

Re:Court rules drug dog barely more accurate than a coin fli... by shkkmo on Friday August 07, 2015 @03:29PM (#10024482)
But... you are missing the point yet again. The officer's own judgement is not probable cause without specific indicators (e.g. visual evidence).

"The problem here is that invasive searches based on no more than a government official’s hunch is precisely what the Fourth Amendment is supposed to guard against."

Due to the high alert rate, we actually have a pretty good idea of the base rate of drugs in the situations that this dog is being used in (~50-60%).

The question is whether the dog is actually providing probable cause when the dog has such a high false positive rate.

The assertion of the article is specifically that drug dogs are being used and trained by police in ways that allow them to be be used as "a probable cause generator".

"The Supreme Court originally gave its imprimatur to drug dog sniffs because when used properly, the dog’s finely tuned sense of smell can detect drugs and their absence with incredible precision. But that caveat — when used properly — is critical. If a drug dog isn’t eliminating any innocent people, if it’s validating the suspicions of the police nine out of ten times resulting in searches for which up to half or more of the suspects are innocent, then descriptors such as finely tuned and incredible precision no longer apply."

Thus the base rate that we should be judging the dog against is not the base rate in the general population, but the base rate in the dog's tested sample. We need to incentivize the cultivation of higher levels of accuracy that the dogs are capable of providing.

Re:Court rules drug dog barely more accurate than a coin fli... by analyst74 on Friday August 07, 2015 @03:26PM (#10024455)
A correction for your cancer example.

Now if you take the 50% of people you guessed to be positive for test, only 4.25% will be true positives, indicating 8.5% accuracy rate; if you take the 50% people you guessed to be negative for test, 45.75% will be true negatives, indicating a 91.5% accuracy rate.

But your overall accuracy rate is 50%.

Re:Court rules drug dog barely more accurate than a coin fli... by shkkmo on Friday August 07, 2015 @02:37PM (#10024151)
Um... not at all. That procedure has 100 different possible guesses. A drug dog only has 2 possible guesses.

edit: Seriously? A downvote for this comment?

Re:Court rules drug dog barely more accurate than a coin fli... by harryh on Friday August 07, 2015 @02:50PM (#10024241)
Yes, this comment makes no sense. Your selection of a 100 sided dice was obviously just a method to discuss probability. But then you randomly jump to a statement about having 100 possible outcomes? This doesn't have anything to do with the original topic at hand.

I downvoted your comment because the argument you are attempting to make is incoherent. I'm sure that you understand what you are trying to say, but as written your comment does a poor job of expressing that point of view.

Re:Court rules drug dog barely more accurate than a coin fli... by shkkmo on Friday August 07, 2015 @03:09PM (#10024360)
> But this is more like a procedure that will let you guess the number that will land > 50% of the time.

If have a procedure for guessing the number rolled on a 100 sided die, you are choosing between 100 different possible guesses. That is nothing like a dog guessing if a person has, or does have drugs (two possible guesses). Attempting to compare the accuracy rates between those two cases is major statistical error.

I thought this difference would be obvious to most readers of HN and was thus surprised to see such a simple statistical error being made. I did not think that verbose explanation would be needed once the error was pointed out.

Re:Court rules drug dog barely more accurate than a coin fli... by adrusi on Friday August 07, 2015 @04:20PM (#10024766)
I agree with you.

But I don't think "prudent and cautious" can quite be boiled down to just a certainty of outcome. Risk/reward plays in a lot. If we take "cautious" to mean a medium degree of risk aversion, then I don't think a cautious person would risk their year's wage on the chance to double it, even with a 55% certainty of success. However, I think they would risk $10 for a 55% chance of getting $20.

So what is at stake? What's the cost of an invasion of privacy?

Because of civil asset forfeiture, the base value is however much cash happens to be in the car, assuming it's enough to be "suspicious" (how just having cash is suspicious, I don't know). Most people don't have large amounts of cash in their car, but those who do have, well, a large amount.

The other quantifiable loss to a car search is time. Based on a quick search, it seems the average hourly wage of americans is $25. Wage isn't really the best evaluation of time, but it's easy. That covers the time wasted, but not the losses due to being late to something. A car search could make someone miss an appointment, or even get fired — or nothing.

I'm going to estimate that the sum of how much the average person stands to lose to asset forfeiture and time is about $100. That's of course not even considering the emotional impact of having your privacy violated, or the potential non-legal consequences of having a car search, say having an affair exposed. I'll try to give a personal answer to that question. How much would someone have to pay me for me to be okay with them tipping of the police that I have drugs in my car? Well since I'd be able to plan for it, missing appointments and asset forfeiture are hardly a concern, but time is. I suppose someone could hire me to stand around and be bored for an hour for $40. I'd let them tip off the cops for say, $600. Since that's how much it would take to make it worth my while and not really just meet the baseline of acceptable, I'll cut off a bit from that, say $60. And then subtract the $40 for my time. Adding in the estimated tangible cost, and that's $600 again.

So let's go with $600 as the cost of an erroneous search. Now we need the value of a successful search.

It's hard to quantify (I'd argue the value is negative because of the questionable value of the war on drugs and the cost of incarceration), but for this purpose, I'll use bounties. A quick search turned up a really bullshit looking page that mentions a county police department offering $1000 cash to anyone who turns in a heroin dealer. While the value to the county is going to be higher than the bounty they offer, I'm going to assume that since this county is offering a bounty in the first place, they value it slightly higher than other municipalities. So let's go with $1000 as the value of catching a drug dealer.

Risking $600 for a 55% chance of $1000 isn't just not cautious, it's a losing game.

*

So what would I consider cautious? Risking $1000 for a 60% chance of doubling it? I'd characterize that as "cautiously optimistic". 65%? Same. 70%? Sure I'll call that "cautious". Obviously different people will have different ideas of what "cautious" means.

But by my definition, and my value estimates, I'll say the certainty required for probable cause for searching a car with drugs is 85%.

Re:Court rules drug dog barely more accurate than a coin fli... by shkkmo on Friday August 07, 2015 @04:39PM (#10024871)
This link was posted: https://news.ycombinator.com/item?id=10024503

The main gist of which is the difference between 'concrete' and 'statistical', which seems to be very different from the way many of use think about 'reasonable'.

The article certainly indicates that you don't need 85% certainty to have probable cause. While officers can have pretty high accuracy rates to their guesses, they need a 'concrete' piece of evidence to point to so they can have probably cause. Drug dogs are being used to create this concrete reason, but this has more to do with their perceived reliability than their actual effectiveness reliability.

My biggest concern with the points that this article raises is that it seems like the dogs are being trained to reliably provide probable cause rather than being trained to provide reliable probable cause.

Re:Court rules drug dog barely more accurate than a coin fli... by CamperBob2 on Friday August 07, 2015 @03:01PM (#10024306)
I don't follow you. The "prior probability" isn't just the baseline probability that a randomly chosen car will contain drugs. The drug dog is called in by an officer who believes that the specific car he's pulled over contains drugs.

So the article is correct as written. About four out of every 10 roadside searches conducted on the basis of a dog alert are groundless. This outcome is nearly indistinguishable from a coin flip conducted by the officer who has already flagged the car as a suspect vehicle.

Re:Court rules drug dog barely more accurate than a coin fli... by rndn on Friday August 07, 2015 @03:46PM (#10024583)
As other people have said, you would actually want to have a ROC chart to see the full characteristics of the dog (you are only considering its specificity at the moment). It will probably look something like this (according to the article, not much better than a coin): https://i.imgur.com/PG3Jacn.png
Re:Court rules drug dog barely more accurate than a coin fli... by CamperBob2 on Friday August 07, 2015 @03:55PM (#10024621)
That would be a fair point if the dog were given the opportunity to make both type-1 and type-2 errors. With the process behind a roadside traffic stop, we actually have no idea how often the dog would generate a false negative. We don't know its specificity in the real-world contexts where it actually matters. We just know that it is very, very sensitive... to something other than the presence of drugs.
Re:Court rules drug dog barely more accurate than a coin fli... by ethagknight on Friday August 07, 2015 @02:01PM (#10023932)
I wonder if some percentage of Lex's false positives were from vehicles that had drugs in them at one point but not during the search?
Re:Court rules drug dog barely more accurate than a coin fli... by harryh on Friday August 07, 2015 @01:54PM (#10023874)
Indeed you are completely correct.