
A fisheries estimator from the 1890s, tested on 294 CUAD contracts, landed within 2 points of true recall for most agents with a 10% hand audit. The post How to Estimate the Recall of AI Agents with Capture-Recapture appeared first on Towards Data Science .
A fisheries estimator from the 1890s, tested on 294 CUAD contracts, landed within 2 points of true recall for most agents with a 10% hand audit.
Prefer us on GoogleSharePhoto by Irina Iriser on UnsplashI really like conifer trees. I like to walk in the forests and see the needles and cones.
You might be wondering why you're reading about this in an article about AI agents?
The story is that I moved to another country and wanted to find places where I could really enjoy walking among pine trees, but I couldn't find an easy way to do it, because this kind of walk isn't very popular there. So I started to build a map of conifer forests as a side project, something for people like me. The plan was to take the official forest inventory, find the named places inside it, and put them on a map. I thought the naming part would take an evening but in reality it took me a few days, and many, many tokens, just to figure out how to find and combine the data I wanted.
Names came from two sources: OpenStreetMap, which is drawn by volunteers, and the Ordnance Survey, the national mapping agency. My assumption was that between the two of them they would list nearly every named conifer forest in the country, so I just merged them and moved on.
Together they found 1,515 forests of 100 hectares or more. OpenStreetMap had 1,052 of them, Ordnance Survey had 1,190, and 727 were on both maps. Out of curiosity I put those three numbers into a calculation that fisheries scientists have used since the 1890s, and it said there should be about 1,722 forests, which means both maps together had missed around 207 of them, roughly 12%.
I was surprised, and a bit suspicious, because nobody has seen those 207 forests. How can a calculation know they exist?
Learn this step by step with the interactive AI Engineer roadmap.
Imagine you want to know how many fish live in a lake, but you can't drain it 🎣. You catch 100 fish, mark each one with a small tag and let them go, and a week later you catch 100 again. If 20 of the second catch carry a tag, your first catch was about a fifth of the lake, so the lake holds about 500 fish.
This is called capture-recapture. The Danish biologist C. G. J. Petersen used it on young plaice in the 1890s, Frederick Lincoln used it for North American ducks in 1930, and in 1951 Douglas Chapman added a small correction so it behaves better when the overlap is small.
Two maps work the same way as two catches. Each map is one net, the forests that appear on both maps are the recaptured fish, and the size of the overlap tells you how complete each map is and therefore how many forests neither of them caught.
def chapman(n1, n2, m, z=1.96): """Estimate the total from two independent catches. n1, n2: items found by each source; m: items found by both.""" N = (n1 + 1) * (n2 + 1) / (m + 1) - 1 var = (n1 + 1) * (n2 + 1) * (n1 - m) * (n2 - m) / ((m + 1) ** 2 * (m + 2)) return N, N - z * var ** 0.5, N + z * var ** 0.5N, lo, hi = chapman(n1=1052, n2=1190, m=727)For the forests this gives an estimate of 1,722, with a 95% interval from 1,678 to 1,765.
There's one big assumption behind all of this: the two sources need to be independent. In other words, a forest appearing on the first map shouldn't make it any more or less likely to appear on the second.
The first is the famous-forest problem. Some forests are on every map. If certain forests are easier for both sources to find, the overlap becomes too large and the estimate gets pushed down. In that situation, 12% is only a floor; the real gap could be larger.
The other possibility is that the two maps specialise in different things. Volunteers might gravitate towards parks and nature reserves, while a national survey might be more likely to include working plantation blocks. If each source is good at finding a different kind of forest, the overlap gets smaller and the estimate goes in the other direction, becoming too high.
Towards Data Science - Medium
Original Reporting Source
Explore features, ratings, and alternatives from our 19,000+ AI tools catalog.

AssistLoop's AI chatbots slash response times by 70% and boost satisfaction, scaling support for e-commerce and SaaS without extra hires.

Design professional websites effortlessly with AI.
Hypertxt.ai is an AI-powered SEO content writing tool that helps create high-quality, optimized content for improved search engine rankings. It offers various features to streamline the content creation process, from keyword research to content optimization and plagiarism checks.