Cursor vs Copilot Survey Bias: 12 Steps, 75 Min Stack Overflow's 2026 developer survey found 7,196 of the 12,255 respondents who answered its coding-agent question had used GitHub Copilot in the past year (58.7%), versus 3,127 for Cursor (25.5%), but only 39.7% of the 30,903 valid responses answered that optional question at all. A Shattered.io analysis argues the wide Copilot lead is robust to sampling error yet still vulnerable to non-response and coverage bias, and proposes a sensitivity analysis — a tipping-point calculation, worst-case bounds for skippers, and a simulation of how often plausible selection bias flips the ranking — rather than a margin of error alone. The survey, fielded June 23 to August 5, 2026 across 169 countries, also showed Claude Code leading the used list at 65.5% and OpenAI Codex third at 29.5%, with multi-select answers summing well past 100%. According to Stack Overflow’s published 2026 results, 7,196 of the 12,255 developers who answered its coding-agent question https://survey.stackoverflow.co/2026/ai/data/ai-code-agent.md said they had used GitHub Copilot in the past year 58.7% , against 3,127 for Cursor 25.5% . With a lead that wide, the sampling error is a rounding footnote. The harder question is whether the people who answered look like developers in general. Most Cursor vs Copilot threads quote a margin of error, declare the lead real, and stop there. A margin of error only measures the noise from drawing a finite sample. It says nothing about who chose to take the survey, who skipped the question, or which tool’s users answer more eagerly. In the 2026 data, a large share of the 30,903 valid responses did not answer the coding-agent question at all. You can put numbers on that doubt. Ask how lopsided the response pattern would have to be to erase the lead, then compare the answer with what you find believable. Sampling error is the easy half, and a Wilson interval and margin-of-error walkthrough https://shattered.io/cursor-vs-copilot-margin-of-error-wilson-interval-12-steps-2026/ for this same survey handles it in depth. Here it gets two steps. The rest goes to bias: a tipping-point calculation, worst-case bounds for the people who skipped, and a simulation run that counts how often plausible selection bias flips the ranking. Don't miss new tech stories on Google Add Shattered once in the Google app and our stories show up in your news suggestions. Add now https://www.google.com/preferences/source?hl=en&q=https%3A%2F%2Fshattered.io%2F What the Cursor vs Copilot Survey Gap Measures and What It Cannot Start with the estimand, because it decides everything downstream. The published table reports the share of respondents, among those who answered the question, who ticked each tool. It does not report the share of developers, the share of paid seats, or the share of revenue. Stack Overflow frames the figures as survey results, not a randomized market census, and that wording matters more than any decimal place. The question itself is a multi-select list of 33 coding agents and assistants, asked two ways. The first version asks which tools a respondent used in the past year. The second asks which they want to use in the next six months. The page marks the question optional, so skipping it costs a respondent nothing. Because each person can tick several tools, the shares add up to far more than 100%. Claude Code tops the used list at 65.5%, Copilot sits second, OpenAI Codex third at 29.5%, and Cursor fourth. Fieldwork ran from June 23 to August 5, 2026. Stack Overflow’s methodology page reports 39,266 rows recorded in that window, of which 30,903 were marked valid, drawn from 169 countries. Only 39.7% of the valid responses 12,255 answered the coding-agent question. That fraction is the single most important number for a bias check, and it almost never appears in the headline. Four kinds of error can separate a survey share from the truth: - Sampling error: random variation from using a finite sample. It shrinks as the sample grows. - Coverage error: the people who could see the survey differ from the target population. A survey promoted on one developer site misses developers who never visit it. - Non-response: invited people who skip the survey or a question differ from those who answer. - Measurement error: respondents misremember, or read a tool name differently than the authors meant. Only the first has a formula everyone agrees on. The other three need assumptions, and the honest way to handle an assumption you cannot check is to vary it and watch the conclusion. That is a sensitivity analysis, and it is what this project implements. Share of respondents is also a different thing from paid seats. A market share audit https://shattered.io/cursor-vs-github-copilot-market-share-audit-12-steps-2026/ that combines survey data with seat exports treats that gap directly, and the two approaches complement each other. A survey tells you what a self-selected group says it uses. Seat exports tell you what a company pays for. Neither alone is market share. Prerequisites and Tested Versions Everything runs on a laptop and needs no API keys. The commands below assume Linux or macOS. On Windows, swap the activation line for the PowerShell one shown in Step 2. Budget about 75 minutes, most of it reading outputs rather than typing. | Component | Version tested | Role in the project | |---|---|---| | Python | 3.12.3 | Interpreter for the project code | | NumPy | 2.5.5 | Random draws for the bootstrap and the simulation run | | SciPy | Not listed | Normal, beta and binomial distributions for the intervals | | pytest | 9.2.0 | Test runner for the 14 checks in Step 12 | | Shell | bash or zsh | Project setup and the run commands | Pin a stable interpreter for statistical work and skip alpha builds, since a pre-release can change numeric behavior between snapshots. If you are creating a fresh environment, start on a currently supported Python release. You also need the survey counts from the published results page, and a rough idea of how large a selection bias you consider believable, because Step 10 asks you to commit to a number. If your audience demands a single share, the analysis below will not give you one. That is deliberate. Steps 1 to 3: Frame the Claim, Create the Project, Encode the Data Step 1: Write the claim as a testable sentence Vague claims survive any amount of analysis. Write the claim so a number can contradict it. Two versions matter here. The narrow claim says that among respondents who answered, Copilot users outnumber Cursor users. The broad claim says the same about developers in general. The data support the narrow claim directly. The broad claim needs an assumption about how respondents differ from everyone else. Define the selection odds ratio, written k for each tool. It is the odds of answering for a tool’s users divided by the odds of answering for non-users. If k equals 1, the survey is unbiased for that tool. If k equals 2, the tool’s users are twice as likely, in odds terms, to end up in the sample. The relationship between true and observed odds for a tool is simple: observed odds equal true odds multiplied by k. For the ranking, only one comparison matters. The observed Copilot lead disappears when the selection ratio between the two tools equals the ratio of their observed odds. Step 6 computes that threshold. If the threshold sits far above any selection bias you can imagine, the ranking survives. If it sits close to a plausible value, the ranking is fragile. Step 2: Create the project and the environment Create the folder, a virtual environment, and the package skeleton: mkdir survey-moe && cd survey-moe python3 -m venv .venv source .venv/bin/activate Windows PowerShell: .venv\Scripts\Activate.ps1 mkdir data moe tests touch moe/ init .py printf 'numpy =1.26\nscipy =1.11\npytest =8\n' requirements.txt pip install -r requirements.txt python -c "import numpy, scipy; print numpy. version , scipy. version " The last line should print the library versions you installed. On the test machine it printed this: 2.5.5 1.18.1 If the import line fails with a missing module, the activation step did not take effect. Re-run the source line and check that your prompt shows .venv . Step 3: Encode the survey counts with provenance Store counts, never percentages. Wilson intervals, bootstrap draws and the tipping point all start from integer counts, and a percentage rounded to one decimal can hide a 6-respondent difference at this sample size. Put the source address in the file so the next person can check it against the live page: { "source": "Stack Overflow Developer Survey 2026, AI coding agents AICodeAgent ", "url": "https://survey.stackoverflow.co/2026/ai/data/ai-code-agent", "n question": 12255, "n valid responses": 30903, "used": {"GitHub Copilot": 7196, "Cursor": 3127}, "want": {"GitHub Copilot": 2404, "Cursor": 1436} } Save it as data/so2026 ai agents.json . The want block holds the counts for the six-month intent question, which has the same denominator of 12,255. If you have the respondent-level file instead of the published tables, a pandas walkthrough for the same survey https://shattered.io/cursor-vs-copilot-stack-overflow-survey-pandas-12-steps-2026/ shows how to load it and flag each tool. For this project the published counts are enough, because every method below works from aggregates. Steps 4 and 5: Measure the Sampling Error First Step 4: Add Wilson, Wald and Clopper-Pearson intervals Sampling error comes first so you can set it aside. Create moe/intervals.py with three interval methods. Wilson is the one to use in reports. Wald is included only so you can see where it breaks, and the third is an exact method that is the conservative option. python from math import sqrt from scipy.stats import beta, norm def z conf: float - float: return float norm.ppf 1 - 1 - conf / 2 def wald x: int, n: int, conf: float = 0.95 - tuple float, float : p, z = x / n, z conf h = z sqrt p 1 - p / n return max 0.0, p - h , min 1.0, p + h def wilson x: int, n: int, conf: float = 0.95 - tuple float, float : p, z = x / n, z conf z2 = z z denom = 1 + z2 / n centre = p + z2 / 2 n / denom half = z sqrt p 1 - p / n + z2 / 4 n n / denom return max 0.0, centre - half , min 1.0, centre + half def clopper pearson x: int, n: int, conf: float = 0.95 - tuple float, float : a = 1 - conf / 2 lo = 0.0 if x == 0 else float beta.ppf a, x, n - x + 1 hi = 1.0 if x == n else float beta.ppf 1 - a, x + 1, n - x return lo, hi METHODS = {"wald": wald, "wilson": wilson, "clopper pearson": clopper pearson} Then add moe/coverage.py , which answers the question every analyst should ask about an interval: how often does it actually contain the truth? It sums the binomial probability over every possible outcome, so there is no simulation noise: python from scipy.stats import binom from .intervals import METHODS def exact coverage method: str, n: int, p: float, conf: float = 0.95 - float: """Probability that the interval contains the true p, summed over every possible x.""" fn = METHODS method total = 0.0 for x in range n + 1 : lo, hi = fn x, n, conf if lo <= p <= hi: total += float binom.pmf x, n, p return total Finally, create baseline.py in the project root to run both: python import json from pathlib import Path from moe.coverage import exact coverage from moe.intervals import METHODS d = json.loads Path "data/so2026 ai agents.json" .read text n = d "n question" for tool in "GitHub Copilot", "Cursor" : x = d "used" tool for name, fn in METHODS.items : lo, hi = fn x, n print f"{tool:15s} {name:16s} {100 lo:6.2f}% to {100 hi:6.2f}%" print "\nexact coverage of a nominal 95% interval, n=50" for p in 0.02, 0.05, 0.10, 0.25 : cov = " ".join f"{m}={exact coverage m, 50, p :.3f}" for m in METHODS print f"true p={p:.2f} {cov}" Run python baseline.py and compare your output with this: GitHub Copilot wald 57.85% to 59.59% GitHub Copilot wilson 57.84% to 59.59% GitHub Copilot clopper pearson 57.84% to 59.59% Cursor wald 24.74% to 26.29% Cursor wilson 24.75% to 26.30% Cursor clopper pearson 24.75% to 26.30% exact coverage of a nominal 95% interval, n=50 true p=0.02 wald=0.635 wilson=0.922 clopper pearson=0.982 true p=0.05 wald=0.920 wilson=0.962 clopper pearson=0.988 true p=0.10 wald=0.879 wilson=0.970 clopper pearson=0.970 true p=0.25 wald=0.941 wilson=0.952 clopper pearson=0.967 Two lessons sit in that output. At 12,255 respondents, the three methods agree to within 0.01 points, so the choice looks cosmetic. At 50 respondents with a true share of 2%, the Wald interval captures the truth far less often than the 95% it claims. Survey segments get that small fast. A single country, a single job title, or a single company size can leave you with 50 respondents, and Wald fails exactly where analysts are most tempted to slice. Use Wilson everywhere and the problem never arises. Step 5: Bound the gap across every possible overlap The gap between two shares from the same respondents is not a comparison of two independent samples. The same person can tick both tools, and the published table does not say how many did. You can still bound the problem. The number of respondents who used both tools cannot go below zero or below the sum of the two counts minus the sample size, and it cannot exceed the smaller count. For the used question, that range runs from 0 to 3,127. Create moe/overlap.py to enumerate the four cells of the 2×2 table for any overlap you choose: php def frechet bounds x1: int, x2: int, n: int - tuple int, int : """Smallest and largest possible count of respondents who picked both tools.""" return max 0, x1 + x2 - n , min x1, x2 def cells x1: int, x2: int, n: int, both: int - dict str, int : lo, hi = frechet bounds x1, x2, n if not lo <= both <= hi: raise ValueError f"both={both} is impossible, must be in {lo}, {hi} " return {"both": both, "only1": x1 - both, "only2": x2 - both, "neither": n - x1 - x2 + both} def independence overlap x1: int, x2: int, n: int - int: return round x1 x2 / n Two more modules finish the baseline. moe/difference.py holds the Newcombe hybrid interval for a gap between two shares, which treats the samples as independent and therefore errs on the cautious side when the real overlap is positive: python from math import sqrt from .intervals import wilson def newcombe independent x1: int, n1: int, x2: int, n2: int, conf: float = 0.95 : p1, p2 = x1 / n1, x2 / n2 l1, u1 = wilson x1, n1, conf l2, u2 = wilson x2, n2, conf d = p1 - p2 lo = d - sqrt p1 - l1 2 + u2 - p2 2 hi = d + sqrt u1 - p1 2 + p2 - l2 2 return d, lo, hi moe/bootstrap.py runs a paired bootstrap. Resampling n respondents with replacement from a table of four cells is exactly a multinomial draw over those cells, so you skip building a 12,255-row array and each run takes a fraction of a second: python import numpy as np def paired bootstrap c: dict str, int , reps: int = 20 000, conf: float = 0.95, seed: int = 2026 : """Resampling n respondents with replacement from a 2x2 table is a multinomial draw.""" n = sum c.values probs = np.array c "both" , c "only1" , c "only2" , c "neither" , dtype=float / n draws = np.random.default rng seed .multinomial n, probs, size=reps p1 = draws :, 0 + draws :, 1 / n p2 = draws :, 0 + draws :, 2 / n a = 1 - conf / 2 q = 100 a, 100 1 - a return { "diff": tuple float v for v in np.percentile p1 - p2, q , "ratio": tuple float v for v in np.percentile p1 / p2, q , } Now start run all.py . This file grows through Step 9, and you append each block to the end of it. Begin with the imports, the data load and the first block: python import json from pathlib import Path from moe.bootstrap import paired bootstrap from moe.difference import newcombe independent from moe.overlap import cells, frechet bounds, independence overlap d = json.loads Path "data/so2026 ai agents.json" .read text n, nv = d "n question" , d "n valid responses" print "== Step 4/5: sampling error is small" for metric in "used", "want" : cp, cu = d metric "GitHub Copilot" , d metric "Cursor" , lo, hi = newcombe independent cp, n, cu, n dd = cp - cu / n lo b, hi b = frechet bounds cp, cu, n r lo = paired bootstrap cells cp, cu, n, lo b r hi = paired bootstrap cells cp, cu, n, hi b print f"{metric:5s} gap {100 dd:5.2f} pts | Newcombe {100 lo:5.2f} to {100 hi:5.2f} | " f"bootstrap over overlap range {100 min r lo 'diff' 0 , r hi 'diff' 0 :5.2f} to " f"{100 max r lo 'diff' 1 , r hi 'diff' 1 :5.2f}" Run python run all.py and the first block prints: == Step 4/5: sampling error is small used gap 33.20 pts | Newcombe 32.03 to 34.36 | bootstrap over overlap range 31.69 to 34.71 want gap 7.90 pts | Newcombe 6.99 to 8.80 | bootstrap over overlap range 6.93 to 8.89 Read those lines carefully. Sampling error is real and small. Nothing in the random-draw part of the analysis threatens either ranking, which is exactly why the remaining steps matter. If the survey is wrong, it is wrong for a reason a confidence interval cannot see. An overlap and lift analysis https://shattered.io/cursor-vs-copilot-survey-overlap-jaccard-lift-12-steps-2026/ can pin the 0-to-3,127 range down further when you hold the respondent-level file. Step 6: Compute the Tipping Point for the Selection Odds Ratio The tipping point answers one question. How much more eager would the leader’s users have to be, relative to the trailer’s users, for the observed gap to vanish? The algebra from Step 1 gives a closed form. Take each tool’s observed odds, which is share divided by one minus share, and divide the leader’s by the trailer’s. That ratio is the selection odds ratio at which the true shares are equal. Anything larger flips the ranking. Create moe/sensitivity.py and start it with the imports that all four of the next steps need, followed by the first two functions: python from math import log import numpy as np from scipy.stats import norm def odds p: float - float: return p / 1 - p def tipping point p lead: float, p trail: float - float: """Selection odds ratio leader's users vs trailer's users that erases the lead.""" return odds p lead / odds p trail Add the import to the top of run all.py with the other imports, and append the second block to the bottom: python from moe.sensitivity import tipping point print "\n== Step 6: tipping point" tips = {} for metric in "used", "want" : cp, cu = d metric "GitHub Copilot" , d metric "Cursor" tips metric = tipping point cp / n, cu / n print f"{metric:5s} selection odds ratio that erases the lead: {tips metric :.2f}" Running it prints two numbers: == Step 6: tipping point used selection odds ratio that erases the lead: 4.15 want selection odds ratio that erases the lead: 1.84 The two metrics behave very differently. For the used question, Copilot’s users would need to answer at far higher odds than Cursor’s users before the observed lead turned into a tie. For the want question, a much smaller difference in response odds would erase the lead. A response pattern that lopsided is not exotic. Two groups answering at noticeably different odds happens in plenty of ordinary surveys. Direction matters too. Only one direction of bias threatens the lead. If Cursor’s users are more eager than Copilot’s, which is a natural worry because enthusiasts of a newer tool often show up eagerly in surveys, the observed Cursor share is inflated and the true gap is wider than reported. The lead shrinks only if Copilot’s users over-answer. Employer-provided seats, a large installed base on a major code host, and a long product history all make a Copilot-heavy sample easy to imagine, but you should state the direction you believe instead of assuming it away. What counts as believable is a judgment call, not a statistical fact. The default in this project treats a selection odds ratio of 2 as the edge of believable. Step 11 turns that into a command-line flag, so if you hold a different belief you can change one number and watch the verdict move. A reweighting approach such as raking against a target mix https://shattered.io/cursor-vs-copilot-survey-raking-reweight-python-12-steps-2026/ corrects skew you can measure, like job title or country. It cannot see skew that correlates with tool choice itself, and that is the skew a tipping point is built to probe. Steps 7 and 8: Bound and Stress-Test the Skippers Step 7: Bound the Share With Item Non-Response The valid respondents who skipped the coding-agent question are the largest unknown in the file. Worst-case bounds ask what the share across all valid respondents could be if you assume nothing about those skippers. If none of them used a tool, the share is the counted users divided by 30,903. If every one of them did, the share is the counted users plus all the skippers, divided by 30,903. Append this function to moe/sensitivity.py : python def nonresponse bounds x: int, n answered: int, n valid: int : """Worst-case share across all valid respondents if skippers are unconstrained.""" return x / n valid, x + n valid - n answered / n valid Then update the import line in run all.py to from moe.sensitivity import nonresponse bounds, tipping point and append the third block: print "\n== Step 7: item non-response bounds all valid responses " for name in "GitHub Copilot", "Cursor" : lo, hi = nonresponse bounds d "used" name , n, nv print f"{name:15s} {100 lo:5.1f}% to {100 hi:5.1f}%" print f"answered the question: {100 n/nv:.1f}% of valid responses, skipped: {nv-n:,}" The output: == Step 7: item non-response bounds all valid responses GitHub Copilot 23.3% to 83.6% Cursor 10.1% to 70.5% answered the question: 39.7% of valid responses, skipped: 18,648 The two intervals overlap almost completely. Copilot could sit anywhere across a very wide range of valid respondents, and so could Cursor. Taken alone, the data cannot rank the tools across the whole valid sample. Statisticians call this partial identification, and the bounds are deliberately extreme because they assume nothing. Do not read those bounds as a forecast. Nobody believes all the skippers use Cursor and none use Copilot. The bounds prove something narrower and more useful: the published lead rests on an assumption about the skippers, not on the data alone. Your report should say which assumption. The most natural one holds that skippers resemble answerers, or that they use coding tools less often than answerers. Under either version the ranking survives. The next step quantifies how far from that assumption you would have to go. The bounds also warn against a common misuse. Quoting 58.7% as the share of developers who use Copilot silently applies the skippers’ share as equal to the answerers’ share. Quoting 58.7% as the share of respondents who answered, and naming the 39.7% response fraction, applies no such assumption. The two sentences differ by a clause, and the clause is where the honesty lives. A share claim linter https://shattered.io/cursor-vs-copilot-share-claim-linter-python-12-steps-2026/ can flag that kind of denominator slip automatically. Step 8: Find What the Skippers Would Have to Look Like Worst-case bounds are too blunt to guide a decision, so replace them with a grid. Assume the skippers use Copilot at some rate and Cursor at some other rate, then recompute the full-sample shares and check who leads. The break-even gap has a clean closed form: the answerers’ lead in counts, divided by the number of skippers. That is the usage-rate gap among skippers that exactly cancels the lead. Append two functions to moe/sensitivity.py : python def skipper gap needed x lead: int, x trail: int, n answered: int, n valid: int - float: """Usage-rate gap among skippers trailer minus leader that flips the full-sample ranking.""" return x lead - x trail / n valid - n answered def skipper grid x c: int, x u: int, n answered: int, n valid: int, rates= 0.0, 0.1, 0.2, 0.3, 0.4, 0.5 : skippers = n valid - n answered rows = for s c in rates: row = for s u in rates: p c = x c + skippers s c / n valid p u = x u + skippers s u / n valid row.append "Cursor" if p u p c else "Copilot" rows.append s c, row return rows Widen the import in run all.py again from moe.sensitivity import nonresponse bounds, skipper gap needed, skipper grid, tipping point and append the fourth block: print "\n== Step 8: what skippers would have to look like" need = skipper gap needed d "used" "GitHub Copilot" , d "used" "Cursor" , n, nv print f"Cursor usage among skippers must beat Copilot's by {100 need:.1f} points" print "rows = Copilot rate among skippers, cols = Cursor rate among skippers" rates = 0.0, 0.1, 0.2, 0.3, 0.4, 0.5 print " " + " ".join f"{int r 100 : 3d}% " for r in rates for s c, row in skipper grid d "used" "GitHub Copilot" , d "used" "Cursor" , n, nv : print f"{int s c 100 : 3d}% " + " ".join f"{c:7s}" for c in row Expected output: == Step 8: what skippers would have to look like Cursor usage among skippers must beat Copilot's by 21.8 points rows = Copilot rate among skippers, cols = Cursor rate among skippers 0% 10% 20% 30% 40% 50% 0% Copilot Copilot Copilot Cursor Cursor Cursor 10% Copilot Copilot Copilot Copilot Cursor Cursor 20% Copilot Copilot Copilot Copilot Copilot Cursor 30% Copilot Copilot Copilot Copilot Copilot Copilot 40% Copilot Copilot Copilot Copilot Copilot Copilot 50% Copilot Copilot Copilot Copilot Copilot Copilot The grid shows the flip region as a thin triangle in the upper right. For Cursor to lead across all valid respondents, its usage rate among the skippers must beat Copilot’s by 21.8 points. A skipper pool where 30% use Cursor and none use Copilot flips the result. A pool where 10% use Copilot and 30% use Cursor does not, because the 20-point gap falls short of the 21.8 threshold. Judge those cells against what you know about people who skip an optional question. Respondents often skip because the question does not apply to them, which suggests skippers use coding tools less than answerers do. Nothing in the survey proves that, so state it as an assumption. Even so, a gap of nearly 22 points favoring the trailing tool is a stretch for any story you can tell without extra evidence. For the want metric the same arithmetic gives about 5.2 points, which matches the fragility the tipping point showed in Step 6. Step 9: Run a Probabilistic Bias Analysis A single tipping point treats the selection odds ratio as a number you either believe or reject. A probabilistic bias analysis treats it as a quantity you are unsure about and puts a distribution on it. Draw the log of the selection ratio from a normal distribution with mean mu and spread sigma, then count how often the draw lands at or beyond the tipping point. A mean of zero means you expect no net bias. A positive mean means you lean toward the leader’s users over-answering. Because the log ratio is normal, the flip probability also has a closed form, and the code reports both so you can check the simulation against the math. Append the last function to moe/sensitivity.py : python def flip probability tip: float, mu: float, sigma: float, draws: int = 200 000, seed: int = 7 : """Log selection odds ratio ~ Normal mu, sigma . Returns simulated, closed-form flip odds.""" delta = np.random.default rng seed .normal mu, sigma, draws simulated = float np.mean delta = log tip closed = float 1 - norm.cdf log tip - mu / sigma return simulated, closed Add from math import exp and flip probability to the imports in run all.py , then append the fifth block: print "\n== Step 9: probabilistic bias analysis, P ranking flips " for metric in "used", "want" : print metric for mu in 0.0, 0.3 : for sigma in 0.25, 0.5, 0.75, 1.0 : sim, closed = flip probability tips metric , mu, sigma print f" mean OR {exp mu :.2f} sigma {sigma:.2f} P flip sim {sim:.4f} closed {closed:.4f}" The output: == Step 9: probabilistic bias analysis, P ranking flips used mean OR 1.00 sigma 0.25 P flip sim 0.0000 closed 0.0000 mean OR 1.00 sigma 0.50 P flip sim 0.0022 closed 0.0022 mean OR 1.00 sigma 0.75 P flip sim 0.0289 closed 0.0288 mean OR 1.00 sigma 1.00 P flip sim 0.0771 closed 0.0773 mean OR 1.35 sigma 0.25 P flip sim 0.0000 closed 0.0000 mean OR 1.35 sigma 0.50 P flip sim 0.0122 closed 0.0123 mean OR 1.35 sigma 0.75 P flip sim 0.0669 closed 0.0670 mean OR 1.35 sigma 1.00 P flip sim 0.1308 closed 0.1306 want mean OR 1.00 sigma 0.25 P flip sim 0.0074 closed 0.0074 mean OR 1.00 sigma 0.50 P flip sim 0.1118 closed 0.1116 mean OR 1.00 sigma 0.75 P flip sim 0.2086 closed 0.2084 mean OR 1.00 sigma 1.00 P flip sim 0.2710 closed 0.2713 mean OR 1.35 sigma 0.25 P flip sim 0.1085 closed 0.1082 mean OR 1.35 sigma 0.50 P flip sim 0.2680 closed 0.2683 mean OR 1.35 sigma 0.75 P flip sim 0.3402 closed 0.3402 mean OR 1.35 sigma 1.00 P flip sim 0.3785 closed 0.3787 Sigma controls how wide your uncertainty is. With sigma at 0.5, you believe the selection ratio stays fairly close to one about 95% of the time. At 0.75 the range stretches noticeably wider. At 1.0 it becomes wide enough that few analysts would defend it. Read the used block first. With no average bias and a sigma of 0.5, the chance that selection bias flips the used ranking is very small. It rises as sigma grows. Leaning the mean toward Copilot over-answering raises those chances further. The used lead survives all but the most pessimistic settings. Now read the want block. With no average bias and a sigma of 0.5, the chance of a flip is about 11%. At 0.75 it climbs past 20%, and at 1.0 it reaches 27%. With a mild lean toward Copilot, a sigma of 0.5 produces a flip in roughly 27% of draws. Roughly one plausible draw in four overturns a 7.9-point lead that looked solid under sampling error alone. The simulated and closed-form columns agree to within a few thousandths. Steps 10 to 12: Verdict Labels, a CLI and Tests Step 10: Turn the tipping point into a verdict A number nobody interprets gets ignored. Add a small function to moe/sensitivity.py that converts a tipping point into one of three labels. It compares the tipping point with the largest selection odds ratio you consider believable, then demands a margin of safety: php def verdict tip: float, plausible max: float = 2.0 - str: if tip = 2 plausible max: return "ROBUST" if tip = plausible max: return "MODERATE" return "FRAGILE" The factor of two is a convention you can change, not a law. It exists because your belief about plausible bias is itself uncertain, so a tipping point that only barely clears your limit should not earn the strongest label. | Label | Rule | What to write in a report | |---|---|---| | ROBUST | Tipping point at or above twice your plausible maximum | State the lead and say that selection bias large enough to erase it is hard to defend | | MODERATE | Tipping point at or above the plausible maximum but below twice that | State the lead, name the bias that would erase it, and say you cannot rule it out | | FRAGILE | Tipping point below your plausible maximum | Report the lead as suggestive only, and avoid ranking language in headlines | Step 11: Wrap the checks in a command-line tool A tool that prints one verdict per metric is something a colleague will run before quoting a share in a deck. Create cli.py in the project root: python import argparse import json from pathlib import Path from moe.sensitivity import nonresponse bounds, skipper gap needed, tipping point, verdict def main - None: ap = argparse.ArgumentParser description="Tipping-point check for a two-tool survey lead" ap.add argument "--data", default="data/so2026 ai agents.json" ap.add argument "--plausible-max", type=float, default=2.0, help="largest selection odds ratio you consider believable" args = ap.parse args d = json.loads Path args.data .read text n, nv = d "n question" , d "n valid responses" for metric in "used", "want" : a, b = d metric "GitHub Copilot" , d metric "Cursor" tip = tipping point a / n, b / n print f" {metric} lead {100 a-b /n:.1f} pts, tipping OR {tip:.2f}, " f"verdict {verdict tip, args.plausible max }" a, b = d "used" "GitHub Copilot" , d "used" "Cursor" print f"skipper gap needed: {100 skipper gap needed a, b, n, nv :.1f} pts" lo, hi = nonresponse bounds b, n, nv print f"Cursor worst-case bounds: {100 lo:.1f}% to {100 hi:.1f}%" if name == " main ": main Run it with the default, then with a more generous belief about selection bias: bash $ python cli.py used lead 33.2 pts, tipping OR 4.15, verdict ROBUST want lead 7.9 pts, tipping OR 1.84, verdict FRAGILE skipper gap needed: 21.8 pts Cursor worst-case bounds: 10.1% to 70.5% $ python cli.py --plausible-max 3 used lead 33.2 pts, tipping OR 4.15, verdict MODERATE want lead 7.9 pts, tipping OR 1.84, verdict FRAGILE skipper gap needed: 21.8 pts Cursor worst-case bounds: 10.1% to 70.5% Raising the believable limit from 2 to 3 downgrades the used verdict from ROBUST to MODERATE and leaves the want verdict where it was. That sensitivity of the label to your own assumption is the point of the exercise. If a reader disagrees with your plausible maximum, they can rerun the tool with theirs. Step 12: Pin the behavior with tests Statistical code fails silently. A sign error in the tipping point still prints a number. Tests catch it. Create tests/test intervals.py with known reference values for the interval functions, the coverage claim and the overlap rules: python import pytest from moe.bootstrap import paired bootstrap from moe.coverage import exact coverage from moe.intervals import clopper pearson, wald, wilson from moe.overlap import cells, frechet bounds def test wilson known values : lo, hi = wilson 5, 10 assert lo == pytest.approx 0.2366, abs=1e-4 assert hi == pytest.approx 0.7634, abs=1e-4 def test clopper pearson known values : lo, hi = clopper pearson 5, 10 assert lo == pytest.approx 0.1871, abs=1e-4 assert hi == pytest.approx 0.8129, abs=1e-4 def test wilson never leaves unit interval at zero : lo, hi = wilson 0, 30 assert lo == 0.0 and 0 < hi < 0.2 def test wald collapses at zero : assert wald 0, 30 == 0.0, 0.0 def test wilson beats wald on coverage for small samples : assert exact coverage "wilson", 50, 0.02 exact coverage "wald", 50, 0.02 + 0.2 def test frechet bounds and cells sum to n : lo, hi = frechet bounds 7196, 3127, 12255 assert lo, hi == 0, 3127 c = cells 7196, 3127, 12255, 1836 assert sum c.values == 12255 def test impossible overlap raises : with pytest.raises ValueError : cells 7196, 3127, 12255, 3128 def test bootstrap is seeded : c = cells 7196, 3127, 12255, 1836 assert paired bootstrap c, reps=2000 == paired bootstrap c, reps=2000 Then create tests/test sensitivity.py for the bias functions: python import pytest from moe.sensitivity import flip probability, nonresponse bounds, odds, skipper gap needed, skipper grid, tipping point, verdict N, NV = 12255, 30903 CP, CU = 7196, 3127 def test tipping point equals odds ratio : assert tipping point CP / N, CU / N == pytest.approx odds CP / N / odds CU / N assert tipping point CP / N, CU / N == pytest.approx 4.15, abs=0.01 def test tipping point is one for equal shares : assert tipping point 0.3, 0.3 == pytest.approx 1.0 def test bounds contain observed share and widen with skippers : lo, hi = nonresponse bounds CU, N, NV assert lo < CU / N < hi assert nonresponse bounds CU, NV, NV == CU / NV, CU / NV def test skipper gap matches grid boundary : gap = skipper gap needed CP, CU, N, NV assert gap == pytest.approx 0.218, abs=0.001 rows = dict skipper grid CP, CU, N, NV, rates= 0.0, 0.3 assert rows 0.0 == "Copilot", "Cursor" def test flip probability simulation matches closed form : sim, closed = flip probability 1.84, 0.0, 0.5 assert sim == pytest.approx closed, abs=0.005 def test verdict labels : assert verdict 4.15 == "ROBUST" assert verdict 2.5 == "MODERATE" assert verdict 1.84 == "FRAGILE" Run the suite from the project root: bash $ python -m pytest -q .............. 100% 14 passed in 1.03s Fourteen passing tests mean the intervals match textbook values, the overlap guard rejects impossible counts, the bootstrap is reproducible, and the bias functions agree with their closed forms. Treat a red test as a stop sign. A wrong tipping point is worse than none, because it arrives with a verdict attached. Reading the Results: Used Is Robust, Want Is Fragile Put the five analyses side by side and the picture is consistent. Sampling error moves the used gap only slightly. The tipping point says Copilot’s users would need to answer at far higher odds than Cursor’s users to erase the used lead. The skipper grid says Cursor’s rate among skippers would have to beat Copilot’s by a wide margin. The simulation says bias rarely flips the ranking at a sigma of 0.5. Every lens agrees that Copilot’s lead on past-year use among respondents is solid. The want metric tells a different story. The lead is small, the tipping point is low, and the simulated flip chance at a sigma of 0.5 is far higher than for the used question. A real chance of a reversed ranking under mild uncertainty is not a result to build a headline on. The want question also mixes two groups. It counts developers who already use a tool and want to keep using it, together with developers who have never tried it. A crude ratio of the published want counts to the used counts differs between the two tools. Because the same respondents produced both answers and the overlap is unknown, treat that gap as a prompt for a respondent-level check, not a finding. Choose the right tool for each question you face: | Method | Question it answers | Extra data needed | Where it breaks | |---|---|---|---| | Wilson interval | How much random noise is in one share? | None | Says nothing about who answered | | Paired bootstrap | How much noise is in a gap or ratio? | Overlap, or a bound on it | Same blind spot as the interval | | Tipping point | How lopsided must selection be to erase the lead? | None | Needs your own view of what is believable | | Non-response bounds | What can the data prove with no assumptions? | Count of valid respondents | Bounds are too wide to guide decisions | | Skipper grid | What would skippers have to look like? | Count of valid respondents | Assumes skippers share one usage rate per tool | | Probabilistic bias analysis | How often does plausible bias flip the ranking? | A distribution for selection | The distribution is your opinion, stated openly | If the real decision is which tool a team should adopt, skip the survey and run a benchmark of Cursor against GitHub Copilot on your own repositories https://shattered.io/benchmark-cursor-vs-github-copilot-2026/ . A survey describes other people, and a benchmark describes your code. A report written from this project should end with two or three plain sentences. Keep them short, state the denominator, and give the tipping point instead of a bare margin of error. The skeleton below shows the shape using this survey: Among respondents who answered the coding-agent question, Copilot users outnumbered Cursor users by 33.2 points, with sampling error near one point. Selection would have to favor Copilot users by an odds ratio of 4.15 to erase that lead. The six-month intent gap of 7.9 points is fragile: an odds ratio of 1.84 erases it. What a Mid-2026 Snapshot Cannot Say About Today’s Tools The survey’s fieldwork closed on August 5, 2026, and both products have moved since. GitHub’s changelog reportedly lists GPT-6.2 Astra and GPT-6.2 Sol, along with MAI Code 2 and MAI Code 2 Flash, as new Copilot options on November 17, with Gemini 4 Neon following within days. GitHub’s individual-plan documentation describes usage-based billing with monthly AI credits https://docs.github.com/en/copilot/concepts/billing-and-usage/individuals/billing , a structure that sits on top of the plan prices. A survey fielded in June and July cannot reflect any of that. Cursor’s maker, Anysphere https://anysphere.co/ , has shifted too. According to Cursor’s documentation, the older request-based pricing is now labeled legacy https://cursor.com/docs/account/pricing/request-based-legacy.md , and accounts migrate to usage-based pricing at renewal. Cursor’s own model documentation reportedly lists Claude Haiku 5.5 as a newly added option on November 19. Pricing changes of that kind can move who tries a tool, and none of that movement can show up in a survey that closed months earlier. Two lessons follow for anyone who cites the survey. First, the question asked whether respondents had used a tool at any point in the past year, so a developer who tried Cursor once in January counts the same as a developer who lives in it daily. The survey measures reach, not depth. Second, a share of respondents is a lagging indicator. A pricing and limits comparison of Claude Code, Cursor and Copilot https://shattered.io/claude-code-vs-cursor-vs-github-copilot-pricing-limits-2026/ will tell you more about what a team should buy this quarter than a survey from the summer. Common Pitfalls These mistakes appear again and again in Cursor vs Copilot threads, and each one has a one-line fix. - Reporting a respondent share as a developer share. The denominator is the people who answered the question, not the profession. Say so in the sentence. - Adding up a multi-select list. Shares across tools add up to far more than 100% because one person can tick several, so never present them as slices of one pie. - Reading want as a retention score. It mixes current users who want to continue with non-users who are curious, and the two cannot be separated from the published table. - Using Wald intervals on segments. Coverage collapses below a few hundred respondents, as the Step 4 output shows, and slices of this survey get that small quickly. - Choosing sigma after seeing the result. Fix your plausible maximum and your sigma before running the simulation step, or its output becomes a way to launder a conclusion you already held. - Treating the flip probability as the chance the survey is wrong. It is the chance under your stated distribution for selection bias, nothing more, and it ignores coverage and measurement error. - Mixing survey years. A 2025 share and a 2026 share come from different samples and different tool lists, so a change between them is not a trend until the questions match. - Dropping the direction. A tipping point is symmetric on paper but one-sided in practice, because bias in the leader’s favor widens the gap and only bias against the leader narrows it. Troubleshooting: 10 Failures and Their Fixes 1. ModuleNotFoundError: No module named ‘moe’. You ran the script from outside the project root, or moe/ init .py does not exist. Change into the project folder and confirm the empty file is there. 2. ModuleNotFoundError: No module named ‘scipy’ or numpy . The virtual environment is not active. Re-run the source .venv/bin/activate line and install the requirements again. 3. ImportError: cannot import name ‘flip probability’. You widened the import in run all.py before appending the function to moe/sensitivity.py . Add the function first, or remove the name from the import until you reach Step 9. 4. ZeroDivisionError inside odds . A share of exactly 0 or 1 makes the odds undefined. For tiny segments, use a Wilson bound as the share, or skip the tipping point and report only the interval. 5. ValueError: both=… is impossible. The overlap you passed falls outside the bounds for those counts. Check that both tools use the same denominator and that you did not paste a percentage where a count belongs. 6. TypeError: ‘type’ object is not subscriptable. The annotations such as tuple float, float need Python 3.9 or newer. Upgrade the interpreter. 7. Bootstrap intervals change on every run. You removed the seed or passed a different one. The function defaults to a fixed seed, so identical inputs give identical outputs. 8. Simulated and closed-form flip probabilities disagree by more than half a point. Either the draw count is too low, or you passed a variance where sigma belongs. Raise draws and check that sigma is a standard deviation. 9. The coverage test is slow. Exact coverage loops over every possible outcome, which is trivial at 50 respondents and sluggish at 12,255. Keep coverage checks at small n, as the baseline script does. 10. The skipper grid prints misaligned columns. The f-string widths assume the labels Cursor and Copilot. If you rename a label, widen the format spec to match, and keep the trailing spaces in the header line. Advanced Tips Run the tipping point per segment. Loop over country, role or experience band using the respondent-level file, and compute the tipping point for each slice with Wilson intervals around the shares. A lead that is robust overall but fragile in one segment tells you where to be careful about generalizing. Calibrate the selection ratio against something external. If you can measure Copilot seats or Cursor licenses in your own company, compare the share in your internal data with the survey share for people in similar roles. The gap gives you an empirical estimate of selection for one corner of the market, and measured behavior beats self-reported habit as a reference point. Replace the normal prior with a lopsided one. If you believe selection can only favor one tool, draw the log ratio from a half-normal distribution so the simulation never generates the direction you consider impossible. Model correlated selection. Respondents who answer eagerly about one tool probably answer eagerly about the other. A bivariate normal on the two log ratios, with positive correlation, shrinks the spread of their difference, which is the quantity that matters for ranking. Track waves over time. Once you have a second survey year with matching questions, a trend has its own tipping point, and an adoption funnel built across survey waves https://shattered.io/cursor-vs-copilot-adoption-funnel-duckdb-12-steps-2026/ is a reasonable place to hold the yearly counts. Add each new wave to the data file as another block rather than overwriting the old one. Fail loudly in automation. Make cli.py exit with a non-zero status when any verdict is FRAGILE and wire it into the script that builds your weekly report, so a fragile lead can never reach a slide without somebody noticing. More developer-tool how-tos like this one sit in the coding and dev tools section https://shattered.io/category/software/ . The Complete Project The project is small enough to hold in your head. Every file below appears in the steps above, and run all.py is the first block from Step 5 plus the blocks from Steps 6 to 9, in order, with the imports gathered at the top once the last block is in: survey-moe/ requirements.txt baseline.py run all.py cli.py data/ so2026 ai agents.json moe/ init .py intervals.py coverage.py overlap.py difference.py bootstrap.py sensitivity.py tests/ test intervals.py test sensitivity.py Run order from a clean checkout: python3 -m venv .venv && source .venv/bin/activate pip install -r requirements.txt python baseline.py Step 4: intervals and exact coverage python run all.py Steps 5 to 9: gap, tipping point, bounds, grid, Monte Carlo python cli.py Steps 10 and 11: verdicts python -m pytest -q Step 12: 14 tests To reuse the project on another pair of tools or another survey, change only the data file. Keep the keys used and want , update the counts and the source address, and rename the two tool keys if you swap products. If the new survey has no skipper count, drop Steps 7 and 8 and keep the tipping point and the probabilistic analysis, which need only the answered-question denominator. FAQ Does a bigger sample size fix selection bias? No. A larger sample shrinks sampling error and leaves selection bias exactly where it was. A million self-selected responses can be precisely wrong, which is why the tipping point ignores sample size once the intervals are narrow. What is a selection odds ratio in plain terms? It compares how likely a tool’s users were to end up in the survey with how likely non-users were. A value of 1 means no distortion. A value of 2 means the tool’s users showed up at double the odds. The project asks how large that distortion must be to erase a lead. Is the 95% confidence interval wrong for a survey like this? It is correct for what it measures, which is random sampling noise under the assumption of a simple random sample. A voluntary survey is not one, so the interval understates total uncertainty. Report it alongside the bias checks, not instead of them. Why use Wilson instead of the normal approximation? Wilson keeps its stated coverage at small samples and near 0% or 100%, where the normal approximation can miss badly or return impossible bounds. At large samples the two agree, so there is no cost to using Wilson everywhere. How do I pick a plausible maximum for the selection ratio? State a number before you run the analysis and defend it in one sentence. Two is a sensible default for topical surveys. Then rerun with a stricter and a looser value so readers can see how the verdict changes. The sensitivity of the label to your choice is part of the finding. Can this tell me which tool has more market share? No. It tells you how fragile a survey lead is. Market share needs a defined market, such as paid seats or revenue, and survey respondents are not that. Use the survey as one input next to usage logs, license counts and your own measurements. Do the results change if I reweight the survey first? They can. Reweighting corrects imbalances you can measure, and the tipping point then applies to the weighted shares. Weighting never removes selection tied to the tools themselves, so run the bias analysis after reweighting and report both versions.