SShortSingh.
Back to feed

Your AI eval confidence intervals are likely too narrow due to data clustering

0
·1 views

A statistical flaw is quietly undermining many AI model evaluations: standard confidence interval formulas assume each test example is independent, but most eval datasets are not. Examples are often clustered — multiple questions from the same document, turns from the same conversation, or paraphrases of the same base case — meaning they carry overlapping rather than independent information. This clustering inflates the effective sample size, producing confidence intervals that are artificially narrow and leading teams to declare model improvements significant when they may not be. A 200-example eval drawn from 40 source documents, for instance, may be statistically worth only around 91 independent samples, making a reported margin of ±3.5 points closer to ±5.2 in reality. The recommended fix is a cluster bootstrap — resampling whole clusters rather than individual rows — which corrects for correlation without requiring manual estimation of intra-cluster statistics.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Tutorial: Hardening an AI Agent With Policy Gates, Resource Limits, and Audit Logs

A developer tutorial published on DEV Community details the third security instalment in a series on building a basic AI agent from scratch. The guide focuses on hardening the agent's tool policy gate with three layers: path scoping to prevent file access outside the project directory, a shell denylist to block dangerous commands, and an SSRF guard to stop the agent from reaching internal or private network resources. Additional measures include enforcing resource and cost limits to prevent infinite loops, scrubbing secrets from the container environment, and adding audit logging. A kill switch is also introduced, allowing any agent session to be aborted mid-flight while keeping a full record of every decision made. The work builds on earlier instalments that introduced a Docker sandbox, prompt-injection defenses, and schema validation for tool calls.

0
ProgrammingHacker News ·

Ocean Oxygen Depletion Poses Serious Threat to Earth's Stability, Study Finds

Researchers have issued a warning about the ongoing loss of oxygen in the world's oceans and its potential consequences for global stability. The study, published by scientists at Scripps Institution of Oceanography, highlights how declining underwater oxygen levels could disrupt marine ecosystems and broader Earth systems. Ocean deoxygenation is largely driven by rising water temperatures and changing circulation patterns linked to climate change. Scientists warn that without intervention, the trend could have far-reaching effects on biodiversity and the planet's overall environmental balance.

0
ProgrammingHacker News ·

Tech job offer rates drop to 12-year low, falling from 51% to 39% since 2015

Offer rates for technology sector jobs have declined significantly over the past decade, dropping from 51% to 39% since 2015. This marks the lowest level seen in 12 years, according to data published by Interview Query. The decline suggests that hiring in the tech industry has become increasingly competitive and selective. Candidates are now facing tougher odds of securing a job offer compared to a decade ago.

0
ProgrammingDEV Community ·

AWS CDK June 2026 Update: Node.js 24 Breaking Change and New Visual Tools

The AWS CDK June 2026 release, covering versions aws-cdk-lib v2.258.0–v2.260.0 and CLI v2.1126.0–v2.1128.1, introduces several notable changes and new features. A critical breaking change requires immediate action: Runtime.NODEJS_LATEST now resolves to Node.js 24.x, which drops support for callback-style Lambda handlers, meaning developers must migrate to async handlers or explicitly pin an older runtime before deploying. Two new commands have been introduced — cdk explore launches a local visual web UI for browsing synthesized Cloud Assembly templates, while the experimental cdk validate command allows validation plugins to run independently without a full deployment cycle. Performance has also improved, with token resolution now approximately 25% faster and smarter Docker build caching, making synthesis noticeably quicker for large applications. Full changelogs are available on GitHub Releases for both the CDK library and CLI.