July 8, 2008

Science Department

A Sampling of Evidence

In an article about the legal defenses for a drug possession charge, Jon Katz mentions a case in which a suspect was caught with ten pills, all allegedly methadone. The state had a chemist test one of the pills to determine it was methadone, then the chemist testified that the other pills looked similar. This was enough to convict, and the decision quoted favorably an earlier ruling that

"Random sampling [of controlled dangerous substances] is generally accepted as a method of identifying the entire substance whose quantity has been measured." 

Katz argues:

The chemist had the alleged drugs available to test; it is not too much to insist that a possession with intent to distribute conviction for methadone be precluded without testing each pill, or at least over half the pills.

My prob-and-stats classes were long ago, but I'm going to try to figure out the math behind sampling a bunch of pills. I think I can get some useful results fiddling with the hypergeometric distribution function in Excel. (Although I could certainly be screwing this up.)

I believe the situation in the methadone case is similar to sampling the output of a production process and trying to set an upper limit on the defect rate, where a defect is equivalent to a pill that is not actually methadone.

For example, if our production process manufactures a batch of 1000 lightbulbs and we sample 5 random bulbs to test, and none of them are defective, can we conclude that the entire batch has no defects? What if we test 100 bulbs?  500?  999?

The short answer in all these cases is no. As long as we do not test every bulb, there is always a chance that one of the untested bulbs is defective. And there is always the chance that one of the defendant's pills is not methadone unless we test them all.

So, before we can answer questions about the scientist's methadone tests, we need to answer a policy question: How confident do we need to be in our results?

It would be easy to say we need 100% perfect confidence, but that would be hyperbole, not reality. 100% confidence implies an error rate of exactly zero, which is unrealistic. We routinely accept larger risks, such as the inherent error rate of the test for methadone or the risk of assigning a lab sample to the wrong case. We need to pick a more realistic number.

They say it's better for 10 guilty people to go free than to convict one innocent person, which kind of implies about a 90% confidence would be acceptable. Let's use that to keep the numbers simple.

So, if the scientist tests 1 pill out of a batch, and it's methadone, what percentage of the pills can he conclude are methadone with 90% confidence? Well, 1 sample is a degenerate case: He can only conclude that 10% of the pills are methadone. Since he has actually sampled 1 of the 10 pills, he already has empirical evidence that 10% of them are methadone. Statistical sampling is useless in this case.

How many samples would he need to be 90% confident that more than 90% of the pills---i.e. all of them---are methadone? He would need to sample more than 90% of them---i.e. all of them. Again, statistical sampling is useless.

The problem here is that a total population of only 10 pills is an absurd use of statistical sampling. A better use would be if you recovered a bag of 300 little glass bottles which you suspected to contain crack, and you wanted to know if your suspect had enough crack to reach the sentencing enhancement at 100 bottles.

How many straight successful tests for crack in a bottle would be necessary to ensure with 90% confidence that at least 100 of the bottles held crack? It only takes about 3. If you tested 13 straight bottles and all of them were positive for crack, you could assert with million-to-one confidence that at least 100 of the bottles in the batch were crack.

(It's important that the sampling be truly a random sample of the bottles. Merely taking the first 13 could lead to mistakes if the initial bottles differ from the others in some way.)

So what was really going on in the Williams case? Well, the court's opinion that the scientist was using random sampling is nonsense. As we've seen, random sampling of a single pill out of 10 tells him nearly nothing.

However, one of the crucial assumptions behind these statistical calculations is independence: The calculations assume that the contents of any pill (or bottle) is in no way related to the contents of any other pill (or bottle). This is often not the case in the real world. If you find an unlabled bottle of identically shaped and colored pills in your medicine cabinet, and you see that one of them has "aspirin" written on it, you can fearlessly conclude that you have a bottle of aspirin.

That works because you assume someone (the manufacturer, the pharmacist, you) put all the pills in the same bottle because they are the same kind of pills. The prosecutor in the drug case just asked the court to infer the same thing about the defendent's pills, which it did.

The court apparently made this inference based on common sense. However, the prosecution also used testimony from a police detective whom the court described as "an expert in the packaging, use, and distribution of narcotics." I'm sure he would have been willing to back up the claim that drug users and distributors don't usually mix pills.

(Lord knows, he testified to all kinds of other amazing things. It's a wonder these police drug experts aren't just allowed to testify that it would be very unusual for a young black or hispanic male to be standing on a street corner for reasons other than selling illegal drugs... Sheesh.)

In short, the scientist's sole contribution was identifying the one pill as containing methadone. The rest was inference by the fact finder, which did not involve statistics in any meaningful way.

Leave a comment


Important note: Due to a flood of spam, I've set the comment filter to mercilessly delete comments that mention the names of certain high-end designer fashion items. So don't mention anything like that if you want your comment to survive.


About this Entry

This page contains a single entry by Mark Draughn published on July 8, 2008 9:08 PM.

'Bye, Norm. was the previous entry in this blog.

The Road To Hell Is Paved With Rent-Seeking is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Find us on Facebook

Unless you request otherwise, we will assume all messages are for publication and attribution.

Red links are Not Safe For Work NSFW.

Mark

About Mark

PGP key

Visit Mark on MySpace

Ken

About Ken

Gary

About Gary

Joel

Article Syndication

Libertarian-ish

Hit & Run
Cataloguing every inch of our daily slide down the slippery slope towards a more totalitarian state.
Virgina Postrel
Author, columnist, and famous kidney doner.
The Agitator
Radley Balko, libertarian at large.
Nobody's Business
A blog about negative liberty.
Ravings of a Feral Genius
The one, the only, Jennifer.
Honest Courtesan
Notes from a retired call girl.

Bloggy Goodness

Duly Noted
Yet another Lindsay Beyerstein blog.
InstaPundit
Law professor, author, columnist, music engineer, the founding father of the blogosphere.
StrategyPage
News and commentary on all things military.
Last One Speaks
A complicated woman with simple tastes.
Ethics Alarms
Jack Marshall at large.

War on Drugs

StoptheDrugWar.org
Taking the drug war debate to the blogosphere
DrugWar Rant
More reasons every week for hating the War on Drugs.
DUI Blog
The road to hell is paved with good intentions and patrolled by Mothers Against Drunk Driving.
The D'Alliance
The Drug Policy Alliance blog.
Vigil for Lost Promise
A counterweight to the DEA's exploitive site.

Blawgs

a Public Defender
Rants, explanations, and complaints from a public defender.
Simple Justice
Rants, explanations, and complaints from a private lawyer.
Defending People
The art and science of criminal defense trial lawyering
Probable Cause
The legal blog with the really low standard of review.
Unwashed Advocate
Former Military Underdog
Indefensible
David Feige, creator of Raising the Bar and former public defender.
Koehler Law Blog
Don't be fooled by how pretty it is
Not Guilty
A lawyer in search of a clue.
Norm Pattis
Norm will fight for you!
The Legal Satyricon
Entertainment and First Amendment Law
Gamso - For the Defense
An Ohio criminal defense lawyer
Criminal Defense
It's like a criminal defense blog, but from Florida
ECILCrime
East Central Illinois criminal defense.
Underdog Blog
Criminal defense, politics, and God only knows what else.
CrimLaw
A big, goofy, ballcap-wearing prosecutor who even likes dogs. [review]
Blonde Justice
Funny stories about criminal defense.
Crime & Federalism
Legal analysis and bitching. [review]
Seeking Justice
Tom McKenna, Virginia prosecutor on a mission from God.
The Volokh Conspiracy
Smart legal experts.
D.A. Confidential
Making prosecutors seem just like normal lawyers
Crime and Consequences Blog
Because we're just not punishing people enough
Graham Lawyer Blog
Interesting writing about the law.
New York Personal Injury Law Blog
Better than you'd think from the SEO-friendly name
West Virginia Criminal Law Blog
Also better than you'd think from the SEO-friendly name
South Carolina Criminal Defense Blog
And one more that's better than you'd think from the SEO-friendly name

Geek Stuff

Schneier on Security
Smart thinking about computers and other security problems.
The Daily WTF
Crazy stories about bad things inside computer software and how they got there.
xkcd
Extremely geeky comics.
Google Blogoscoped
Smart writing about search engine technology.
The Altruist
Agony Unleashed in EVE Online.

Economics

Steven Landsburg
The Armchair Economist
Greg Mankiw's Blog
Aurhor of the most popular macroeconomics textbook
Marginal Revolution
Everything happens in the margins
Megan McArdle
Business and economics

Photography

Strobist
How to light everything in the world with speedlights
iN-PUBLiC.com
Very cool modern street photography.
Digital Photography Review
Detailed reviews of digital cameras and vicious forum debates too.
Ken Rockwell
Strong opinions about photography.
Dan Heller
Photographs and the business of photography.
Bert P. Krages II
Photography and the law.

Chicagoland

Leslie's Omnibus
I have no idea what this blog is about.
Marathon Pundit
John Ruberry runs, drives, and blogs.

Media

Eric Zorn
Possibly the Chicago Tribune's first blogger.
Miss Manners
A marvelous writer and deeper than you think.
Roger Ebert's Journal
A great writer and a useful film critic.

Resources

WolframAlpha
Data + Computation = Fun Knowledge.
Institute for Justice
A merry band of libertarian litigators.
EFF: Bloggers
The Electronic Frontier Foundation's page for bloggers.
CIA World Factbook
A brief summary about every nation.
Wikipedia
The mostly-useful encyclopedia of everything.
Current Impact Risks
It has to happen some day.

Gone But Not Forgotten

Peter McWilliams
Ain't Nobody's Business If You Do

Web Rings

Credits

Copyright  ©  2002-2011 Mark Draughn. All rights reserved.

Site developed by
Draughn Software Corporation

Powered by Movable Type 4.261
Version 4.261

Downtown Host

Social networking tags courtesy of the Sociotags for Movable Type plugin by Ole Wolf.

Chicago lakefront image by Ken Gibson.

Admin

Valid XHTML 1.0 Transitional

Valid CSS

ICRA

Statistics

Claim Your Avvo Profile