Beyond Market Intelligence/towards data science

towards data science

The data science world moves fast, and this section tracks the signals that matter. You will find hands-on Python case studies, from A/B testing on Cookie Cats data to mapping a decade of USGS earthquakes, alongside rigorous model comparisons like DuckDB 2.0 versus Polars 2.0 on 335 million records. AI agents appear constantly: how to govern their skills with plugins, build MCP servers that leave orchestration to the host, or limit damage with five guardrails tested in 0.68 seconds. The limits of LLMs surface too, whether they are small models betting 82% on an 11th coin flip or RAG systems that ace textbook questions but score zero on fresh research. Expect practical frameworks, retry logic for multi-agent workflows, business translations for analytics engineering, and confidence scores that let AI handle 72.8% of queries at 98% accuracy. This is where theory meets production, and the evidence is always in the code.

Towards Data Science

When Audio Fakes Go Unnoticed, Detection Tradeoffs Demand a New Approach

A one-in-five forgery rate flips which AI detector you should trust. On a balanced 1,000-clip test, the older model wins once a missed fake costs over three units, but the newer, more accurate video detector missed twice as many audio fakes. That tradeoff demands a fresh approach, not a single metric. For deeper coverage on AI's evolving reach, see how Soket AI's $200M push targets a trillion-parameter model.

Towards Data Science

Build a Smarter RAG Pipeline with 24 Days of Expert Guidance

Keyword search isn't dead, it's the foundation. Our 24-day enterprise RAG advent calendar walks AI engineers through parsing, retrieval, validated generation, and controlled agents, starting with why keyword search still matters. Each day builds a smarter pipeline. For a deeper look at how data drives real decisions, explore our related case study on retention analysis with synthetic Cookie Cats data.

Towards Data Science

From Data to Decision: A Case Study in Retention Analysis

A single 0.82-point retention drop might not sound dramatic, but in an A/B test it can determine whether a feature ships or sinks. This case study walks through the full analytical pipeline, SRM checks, outlier removal, bootstrap intervals, and power analysis, on synthetic Cookie Cats data. It's a grounded example of turning raw numbers into a clear decision. For another look at how models handle real-world complexity, see our piece on how two AI models perform in real coding environments.

Towards Data Science

How a 40-Neuron Network Reveals When Features Group Together

A 40-neuron absolute-value network grouped related features at 2.2 times chance in one synthetic world, at chance in another, and below chance in a third. That's not a bug, it's a direct test of how superposition and clean neurons compete when resources are tight. The results challenge tidy assumptions about feature grouping. For a hands-on look at how models behave under pressure, see our related piece on two AI models in real coding environments.

Towards Data Science

How Two AI Models Perform in Real Coding Environments

Google's SWE-sweep benchmark reveals a striking gap: Neon scored 39% in Antigravity, while Sol managed just 8.3% in Codex. Two hands-on builds show how each model's architecture shapes real coding performance. The results challenge assumptions about which AI is truly production-ready. For context on why simpler approaches sometimes outperform complex models, see our related coverage of TimesFM 2.5 in "When Complex Models Fall Short: Simpler Baselines Win on Wikipedia Traffic."

Towards Data Science

When Complex Models Fall Short: Simpler Baselines Win on Wikipedia Traffic

A weekday average outperformed SARIMAX and LightGBM on Buckethead's Wikipedia traffic, a result that challenges the assumption that more complex models are always better. TimesFM 2.5 and Chronos-2 also beat the baseline, but the simplicity of a weekly mean is worth noting. It is a practical reminder that sophistication does not guarantee accuracy. For deeper exploration of AI decision models, our guide to 10 GitHub repos offers a natural next step.

Towards Data Science

Testing If Your LLM Tracks State or Just Reads the Last Line

Nine deployment histories, a Python replay, and a four-variant prompt with an UNKNOWN option reveal whether your release assistant actually tracks state or just parses the last line. This is a practical test, not a theoretical one. We like that. It gives teams a concrete way to verify agent reasoning depth before trusting it with real workflows. For builders exploring similar efficiency gains, our piece on speculative decoding shows how draft models accelerate tool calls, but caching remains essential for sustained performance.

Towards Data Science

Speculative decoding speeds tool calls, but agents still need caching to gain

Speculative decoding can speed up tool calls by up to 1.7x, but here's the catch: agent loops without caching actually ran 6% slower in benchmarks with Qwen3 and Llama on llama.cpp. That makes caching the real bottleneck for practical agent performance. For teams building multi-tool integrations, our related piece on Code Mode shows how deeper architectural choices can slash costs 120x, another reminder that speed gains require holistic thinking, not just clever inference tricks.

Towards Data Science

Code Mode Slashes Costs 120x for Multi-Tool AI Agents

If you're running multi-tool AI agents with many MCP integrations, the math is finally clear: Code Mode slashes costs 120x and finishes 18x faster on 100-item fan-outs. There's a trade-off, single lookups are less reliable, but for bulk work, the crossover arrives at just 16 tools. That's a threshold worth knowing. For more on what models actually learn versus memorize, our test using two short Python functions and a free Colab GPU can tell you in about half an hour.

Towards Data Science

A simple Python test reveals if an LLM actually learned or just memorized

A simple Python test can reveal whether an LLM actually learned or just memorized its benchmark. Two short functions and a free Colab GPU score a model in about half an hour. A z-score above three merits a closer look; a near-zero score is more of a shrug. This is practical, accessible evaluation, no hype, just insight. For deeper context on how AI lifts scores while masking true understanding, see our related piece "AI Lifts Task Scores but Masks Gaps in True Understanding."

Towards Data Science

AI Lifts Task Scores but Masks Gaps in True Understanding

Consultants gained 49 points on a coding task with AI assistance, while apprentices also improved their comprehension scores. That sounds like a win. But the real story is more troubling: the score jump masked a persistent gap in true understanding. Assisted work and genuine expertise need separate names, because they are not the same thing. For more on what keeps you irreplaceable when AI handles the boilerplate, see our piece on *Your Irreplaceable Skills When AI Handles the Spreadsheet Grunt Work*.

Towards Data Science

Mapping a Decade of Earthquakes with Python and AI-Driven Analysis

Ten years of earthquakes, 2.5 magnitude and above, pulled straight from the USGS API. This project cleans the data in Pandas, then maps, clusters, and flags anomalies using Cartopy, Folium, and DBSCAN. It's a practical look at how AI-driven analysis can reveal patterns hidden in millions of seismic events. For a deeper dive into data performance, see our head-to-head between Polars 2.0 and DuckDB 2.0 on 335 million records.

Towards Data Science

Five tests, 335 million records, and one clear data winner emerges

Three years after a tie, the rematch delivers a decisive verdict. DuckDB 2.0 and Polars 2.0 went head to head across five real-world tests on datasets reaching 335 million records. One clear winner emerged, and it wasn't close, a 14x gap separated them on a critical task. This is the kind of benchmark that actually matters for daily work. For more on where data tools are heading, our coverage of AI assistants still stumbling on meaningful tasks offers useful context.

Towards Data Science

When AI Judges Disagree, Human Insight Still Leads the Panel

When AI judges disagree, human insight still leads the panel. Han and Kim's Chatbot Arena data put GPT-6 Luna and Claude Haiku 4.5 to the test as a panel of judges. Haiku alone matched human users on 22 of 23 clear matchups. A second LLM judge hit 87.5% precision but left 21 of 33 calls for people to decide. That gap isn't a bug, it's a reminder that the best AI tools empower, not replace, human judgment.

Towards Data Science

Design smarter agent workflows by mapping retry logic before writing code

A failed agent doesn't have to mean a failed workflow. Mapping retry logic before writing code, using a Mermaid blueprint, Python dataclasses, and a simple retryable flag, lets you decide upfront when an agent tries again and when the task escalates to a person. This is practical design, not theoretical planning. For deeper coverage on building trust in non-deterministic systems, see our piece on Building Trust in AI Drafts with Engineering Precision.

Towards Data Science

A single neuron and shot data reveal how Bayesian AI rethinks football models

A single neuron, trained on shot data from StatsBomb, becomes a Bayesian expected-goals model. No hidden layers, no black-box architecture. Just Gaussian weights, the reparameterisation trick, and Monte Carlo sampling. It's a clean demonstration that Bayesian AI doesn't require complexity to rethink football analytics. For analysts who want to see how probability reshapes prediction, this is the proof. And if you're also exploring how customer value becomes actionable, our piece "From CLV Metric to Daily Decision" pairs well with this thinking.

Towards Data Science

Why Machine-Verified Proofs Still Need Human Explanation

A machine can verify a proof in milliseconds, yet the Four Color Theorem remained controversial for decades after its computer-checked completion. OpenAI's October 2026 claims only reinforce the same lesson: verification is not understanding. Without human explanation, a proof is just output. Michael Stiefel's conversation with Zhou Yu on dynamic simulations makes a parallel point, AI agents reveal their true behavior only when tested, not when they describe themselves.

Towards Data Science

How to test any chatbot's vocabulary with a birthday paradox

Run a question 300 times through any chatbot, count how many different answers you get, and the birthday paradox reveals the true size of its vocabulary. The math is simple: a few lines of Python do the work. A small LLM, it turns out, picks from roughly 6 words out of 40. That is a striking constraint for a tool marketed as generative. For a deeper look at what AI can and cannot explain, see our piece on why machine-verified proofs still need human explanation.

Towards Data Science

Beyond a 90% Cache Hit Rate: What Latency Reveals About AI Prompts

A 90% cache hit rate sounds impressive until you look at what latency actually reveals. A 2026 preprint found lower 99th-percentile but higher median time to first token, meaning most users wait longer even if the worst cases improve. Request hit rate, token reuse, and latency tell different stories about attention work. For deeper coverage, explore how we treat AI agents as junior teammates to rethink analytics workflows.

Towards Data Science

Treat AI agents as junior teammates to rethink your analytics workflow

Treat AI agents as junior teammates rather than tools, and you'll naturally move up the abstraction ladder, owning problem framing, model evaluation, and business partnership instead of wrestling with syntax. This perspective rethinks analytics workflows for data scientists who want to focus on what matters. For a deeper look at how isolated environments can support these agents, our coverage of Google's Agent Compute Engine offers a practical companion piece.

Towards Data Science

Explore Supply Chain Analytics with Claude Code in Five-Minute Case Studies

Five minutes. That is all it takes to bridge the gap between data scientists and planners. These case studies pair operational context with documented code, turning a problem statement into a shared learning experience. For anyone feeling constrained by traditional analytics training, this approach empowers both sides to discover solutions together. For deeper context on building decision models, explore how we turned an LLM into a faster decision engine, it complements this workflow naturally.

Towards Data Science

OLS Hides Salary Data: Recover Hidden Effects With Tobit Models

A simulated salary survey reveals a hard truth about hidden data: OLS shrinks a $5k-per-year effect to just $3.2k. That's not a modeling failure, it's a structural one, caused by censored observations. This post rebuilds Tobit and truncated likelihoods from scratch to recover the true signal. It's a practical, code-driven guide for anyone who suspects their spreadsheets or regressions are hiding more than they show. For another take on practical modeling, explore what four simple models reveal about bike-share forecasting.

Towards Data Science

From Student Interviews to Logistic Regression: A Credit Risk Scoring Model

Two years of interviewing master's students, distilled into one logistic regression model. That is the practical origin of this credit risk scoring system. The author walks through every step, from handling missing values and VIF checks to evaluating AUC and Gini, turning academic conversations into a deployable tool. It is a grounded, methodical approach that shows how real-world data science often begins with listening. For a deeper look at how confidence scores shape decision-making, see our piece on Smart Routing and Confidence Scores.

Towards Data Science

How Smart Routing and Confidence Scores Let AI Handle the Easy Queries First

A 0.9 confidence cutoff lets Cloudflare's System One model handle the easy queries, routing only the tougher cases to a larger, slower LLM like Luna. This isn't about replacing human judgment; it's about using AI where it's most reliable. Clairic achieved 98% accuracy on 72.8% of questions with this approach. For a deeper look at building faster AI decision engines, our piece on turning an LLM into a faster decision engine is a natural next step.