Cursor vs Copilot Adopters: Odds Ratios in 12 Steps, 75 Min Stack Overflow's 2026 Developer Survey, published October 6, 2026, reports Cursor at 25.5% and GitHub Copilot at 58.7% among coding agents and assistants used in the past year, while an independent count by Stackness of the public survey files puts Copilot at 61.3% and Claude Code at 68.4% among the 11,739 respondents who answered the coding-agent question. The two Copilot figures from the same survey year differ by 2.6 points, a gap neither page explains, and the survey's valid responses fell to 30,903 in 2026 from 49,009 in 2025. The analysis argues that differing denominators, question wording, a shrinking self-selected sample and population drift drive the disagreement, and proposes fitting one logistic regression per tool on the same respondents to read odds ratios and bootstrap the Cursor-minus-Copilot gap. Two Stack Overflow figures describe Cursor and GitHub Copilot, and they do not measure the same thing. The 2025 results put Cursor at 17.9% of all respondents on the technology page, while Copilot reached about 68% among people who use out-of-the-box AI assistants, as Stack Overflow’s own look back at the 2025 findings https://stackoverflow.blog/2026/09/30/getting-ready-for-2026-results-a-look-back-on-developer-survey-findings recounts. Line those two numbers up and Copilot appears to win by a mile. Compare them on a shared base and the picture can change a lot, but the headline figures alone cannot tell you by how much. The question got more pressing on October 6, 2026, when Stack Overflow published its 2026 Developer Survey https://stackoverflow.co/company/press/archive/stack-overflow-annual-developer-survey-ai-trust-conditional . Its AI data page reports Cursor at 25.5% and GitHub Copilot at 58.7% among coding agents and assistants used in the past year. An independent count from Stackness on the public survey files https://stackness.dev/blog/stack-overflow-developer-survey-2026-tool-changes-year-over-year reports Copilot at 61.3% and Claude Code at 68.4% among the 11,739 people who answered the coding-agent question. Two Copilot figures from the same survey year differ by 2.6 points, and neither page explains the gap. A single share per tool is a headline. The better question is who adopts each tool: freelancers or enterprise staff, juniors or veterans, web developers or data people. That is a regression problem, and about 380 lines of Python can answer it. Where earlier work on this site covered margin of error with Wilson intervals https://shattered.io/cursor-vs-copilot-margin-of-error-wilson-interval-12-steps-2026/ and built a share-claim linter https://shattered.io/cursor-vs-copilot-share-claim-linter-python-12-steps-2026/ , the project below goes one level deeper. It fits one logistic regression per tool on the same respondents, reads the odds ratios, tests the Cursor-minus-Copilot gap with a bootstrap, and converts everything to percentage points a manager can read. 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 Why Cursor vs Copilot Share Numbers Disagree Four mechanics produce most of the disagreement, and each one shows up in the survey files if you look for it. The first is the denominator. A share is a count divided by a base, and the base changes with the question. Cursor sits in the development-environment list in the 2025 data. Copilot sits in an AI-tool list that only some respondents see. Divide each by its own base and you compare two different crowds. In the 2026 files, Stackness counts 13,120 people who answered the editor question and 11,739 who answered the coding-agent question, out of 30,903 valid responses. Those bases differ by 1,381 people before you even ask who they are. The second is wording. An editor you tick as used is not the same claim as an assistant you used in the past year. A developer can have Cursor installed, never open it, and still tick the box. The same developer can pay for Copilot through an employer and tick it without choosing it. The third is the sample itself. Stackness reports 30,903 valid responses in 2026 against 49,009 in 2025, and 65.5% of the 14,347 people who answered the closing length question called the survey too long. A shrinking, self-selected sample moves shares even when nothing changes in the real world. The fourth is population drift inside the sample. If the 2026 respondents skew toward people who enjoy long surveys, they may skew toward early adopters. The survey selection bias tipping point https://shattered.io/cursor-vs-copilot-survey-selection-bias-tipping-point-12-steps-2026/ on this site shows how large that skew must be to flip a conclusion. Regression does not fix selection, but it does show whether a tool’s popularity concentrates in one corner of the sample, which tells you how nervous to be. The table below comes from the synthetic file the project generates in Step 3, so every number is planted by design and none describes real developers. It shows why base choice matters even in a toy case. | Measure synthetic file | Cursor | GitHub Copilot | |---|---|---| | Share on own denominator | 17.9% | 49.9% | | Share on common base answered both questions | 17.4% base 4,998 | Not listed | | Shift from switching base | -0.5 points | +0.3 points | The shifts look small here because the fixture drops answers at random. Real surveys gate questions by earlier answers, so the shift can be far larger. The point of the tutorial is to make the base explicit and to let the data show what a different base does. Prerequisites and Versions The project runs on a laptop and needs no GPU or account. It does need a recent Python and four libraries. Here is the exact stack the examples ran on, plus the minimum versions the code relies on. - Python: 3.12 or newer the output below came from 3.12.3 . The code uses str | None type syntax and built-in generics, so 3.10 is the practical floor. - pandas: 2.2 or newer run on 3.1.1 . The code avoids object dtype assumptions so it works with the newer string dtype. - NumPy: a recent release run on 2.5.5 . - statsmodels: a recent release for Logit and get margeff . - SciPy: a recent release, which statsmodels needs. - pytest: 8.0 or newer for the test suite. - Disk and memory: about 1 GB free disk and 2 GB of free RAM. The public survey CSV loads in well under that. - Time: 70 to 75 minutes end to end, including the download. You also need working comfort with pandas groupby , a rough idea of what a logistic regression predicts, and a shell. If odds ratios are new to you, Step 8 explains them with the synthetic output, and the section on reading results later in the article restates the rule in one sentence. One scope note before the build. The survey measures what respondents say they use, not what the vendors ship or sell. Cursor’s pricing and Copilot’s billing both changed in 2026, and the tools gained newer models, so a survey answer from an earlier period describes an earlier product. The market share audit https://shattered.io/cursor-vs-github-copilot-market-share-audit-12-steps-2026/ on this site covers how to word a share claim so it survives that gap. This project assumes you have already decided which survey year you are analyzing, and it works the same way on the 2025 and 2026 files. Phase 1: Project Setup and Data Steps 1 to 3 The first phase gets an isolated environment, the real survey files, and a synthetic fixture you can test against without touching real data. Step 1: Create the project and install dependencies Make a folder, a virtual environment, and a requirements file. Keeping the environment local to the project means the statsmodels version you test with is the one you ship with. mkdir adopter-odds && cd adopter-odds python3 -m venv .venv source .venv/bin/activate Windows: .venv\Scripts\activate mkdir adopter odds tests data out Save this as requirements.txt in the project root. pandas =2.2 numpy =1.26 statsmodels =0.14 scipy =1.11 pytest =8.0 python pip install -r requirements.txt python -c "import pandas, statsmodels; print pandas. version , statsmodels. version " The last line should print two version numbers. On the machine used for this article it printed the following. 3.1.1 0.15.0 If the import fails, the virtual environment is not active. Check that your prompt shows .venv and rerun the install. Step 2: Get the survey files and check the license Stack Overflow hosts each year’s results on survey.stackoverflow.co with a download link for the anonymized CSV. Download the file for the year you want, unzip it, and put the main responses file in data/ as survey results public.csv . The data is released under the Open Database License, so keep the attribution in any report you publish. The download also includes a schema file that maps column names to the question text. Read the question text for every column you plan to use. It is the cheapest way to avoid the denominator mistake described above, and the pandas walkthrough of the Stack Overflow survey https://shattered.io/cursor-vs-copilot-stack-overflow-survey-pandas-12-steps-2026/ on this site shows a lighter first pass over the same files if you want a warm-up. Open the CSV header once and note three things: how the age, organization size and experience columns are labeled, which columns mention AI tools, and which one lists development environments. The fixture in Step 3 uses the names Age , OrgSize , WorkExp and DevType , which mirror older public files, so compare them with your header and edit the candidate lists at the top of features.py if they differ. The exact 2026 headers could not be confirmed while writing this, which is why Step 4 discovers the tool columns by scanning cell contents instead of trusting a hardcoded name. Step 3: Generate a synthetic fixture with planted effects Real data cannot tell you whether your code is right, because you do not know the true answer. A synthetic file can. The generator below plants known effects, so a correct pipeline must recover them. It also reproduces the structural trap from the real surveys: Cursor lives in an editor question and Copilot lives in an AI-agent question that fewer people answer. """Write a SYNTHETIC survey file with planted effects. Not real survey data.""" import numpy as np import pandas as pd rng = np.random.default rng 2026 N = 8000 ages = "18-24 years old", "25-34 years old", "35-44 years old", "45-54 years old", "55+ years old" age = rng.choice ages, N, p= 0.14, 0.38, 0.28, 0.14, 0.06 orgs = "Just me - I am a freelancer", "2 to 9 employees", "20 to 99 employees", "1,000 to 4,999 employees", "10,000 or more employees" org = rng.choice orgs, N, p= 0.10, 0.12, 0.25, 0.25, 0.28 exp = np.clip rng.gamma 2.2, 4.2, N .round , 0, 50 roles = rng.choice "Developer, full-stack", "Developer, back-end", "Data scientist", "DevOps specialist", "Developer, front-end" , N, p= 0.35, 0.25, 0.12, 0.12, 0.16 z cur = -1.55 + 0.55 age == "18-24 years old" + 0.35 age == "25-34 years old" - 0.45 age == "55+ years old" + 0.55 org == "2 to 9 employees" + 0.40 org == "Just me - I am a freelancer" - 0.60 org == "10,000 or more employees" - 0.03 exp + 0.30 roles == "Developer, front-end" z cop = -0.35 - 0.20 age == "18-24 years old" + 0.10 age == "45-54 years old" - 0.45 org == "2 to 9 employees" + 0.70 org == "10,000 or more employees" + 0.35 org == "1,000 to 4,999 employees" + 0.01 exp + 0.25 roles == "DevOps specialist" use cur = rng.random N < 1 / 1 + np.exp -z cur use cop = rng.random N < 1 / 1 + np.exp -z cop editors = np.where use cur, "Visual Studio Code;Cursor", "Visual Studio Code" agents answer = rng.random N < 0.68 agents = np.where use cop, "GitHub Copilot;ChatGPT", "ChatGPT" df = pd.DataFrame { "Age": age, "OrgSize": org, "WorkExp": exp, "DevType": roles, "DevEnvs": np.where rng.random N < 0.92, editors, None , "AIAgents": np.where agents answer, agents, None , } df.to csv "data/synthetic survey.csv", index=False print f"wrote data/synthetic survey.csv with {len df :,} rows" Run it from the project root. python make fixture.py wrote data/synthetic survey.csv with 8,000 rows The planted truth is simple. Cursor adoption rises for young people, freelancers and tiny companies, and falls for people at 10,000-plus-employee firms and for the most experienced. Copilot adoption runs the other way, with a strong lift at the largest companies. Every number in the output sections that follow comes from this file, so treat them as a test of the method and not as a finding about developers. Phase 2: Finding the Right Columns Steps 4 and 5 Phase 2 is where most real analyses go wrong. It decides which respondents count as adopters and which count as not asked. Step 4: Discover the Cursor and Copilot columns Hardcoding a column name breaks the moment the survey renames it. Scanning cell contents survives renames. The module splits multi-select cells on semicolons and compares whole tokens, so a respondent who typed Cursor Tab in some free-text cell does not count as a Cursor user, and Cursor does not match inside a longer name. python """Find which survey columns hold Cursor and Copilot answers.""" import numpy as np import pandas as pd ALIASES = { "cursor": {"cursor"}, "copilot": {"github copilot"}, } def tokens series: pd.Series - pd.Series: """Split semicolon-separated multi-select cells into lowercase token lists.""" return series.dropna .astype str .str.lower .str.split r"\s ;\s ", regex=True def has token series: pd.Series, aliases: set str - pd.Series: """True/False for answered cells, NaN where the cell is empty.""" out = pd.Series np.nan, index=series.index, dtype="float64" toks = tokens series out.loc toks.index = toks.map lambda t: float bool aliases & set t return out def find tool columns df: pd.DataFrame, tool: str, min hits: int = 20 - dict str, int : """Return {column: respondents listing the tool}, most hits first.""" aliases = ALIASES tool hits = {} for col in df.columns: if not pd.api.types.is string dtype df col or pd.api.types.is object dtype df col : continue n = int has token df col , aliases .fillna 0 .sum The function find tool columns returns each candidate column with its hit count, sorted by hits. When a tool appears in several columns, such as an editor list and an agent list, you decide which question you are measuring. The CLI prints the candidates and picks the top one, and you can override it with --cursor-cols and --copilot-cols . Run the discovery on the fixture. python python - <<'EOF' import pandas as pd from adopter odds.columns import find tool columns df = pd.read csv "data/synthetic survey.csv" print find tool columns df, "cursor" print find tool columns df, "copilot" EOF {'DevEnvs': 1313} {'AIAgents': 2715} Step 5: Build respondent-level flags with honest denominators The flag function is the most important function in the project. It returns three states: 1 if the respondent listed the tool, 0 if they answered at least one of the tool’s columns without listing it, and missing if they never saw the question. Treating blank as zero is the classic error. A person who skipped the AI-agent question did not say they avoid Copilot, they said nothing. hits col = n return dict sorted hits.items , key=lambda kv: -kv 1 def tool flag df: pd.DataFrame, columns: list str , aliases: set str - pd.Series: """1 = listed the tool, 0 = answered a question but did not list it, NaN = never saw it.""" per col = pd.concat has token df c , aliases for c in columns , axis=1 answered = per col.notna .any axis=1 used = per col.fillna 0 .max axis=1 return used.where answered Once you have both flags, intersect them. The common base is every respondent who answered both questions, and it is the only population on which a Cursor-versus-Copilot comparison means anything. The CLI prints the naive shares first and the common-base shares second, so you see what the base choice does to each number. naive shares: each tool on its own denominator cursor 17.9% 95% CI 17.0% to 18.8% k=1,313 base=7,337 copilot 49.9% 95% CI 48.6% to 51.3% k=2,715 base=5,438 common base 4,998 respondents answered both questions common-base shares cursor 17.4% 95% CI 16.3% to 18.4% k=868 base=4,998 copilot 50.2% 95% CI 48.8% to 51.6% k=2,509 base=4,998 The common base keeps only the 4,998 respondents who answered both questions, so you give up part of your sample to get an honest comparison. On a survey where only a third of respondents see the AI-agent question, that price can be steep. The trade is worth it, because a smaller clean sample beats a larger muddled one, and the confidence intervals widen visibly to show the cost. Phase 3: Features and the Design Matrix Steps 6 and 7 Regression needs predictors. The goal here is a short list of segments that a reader can interpret, not a kitchen-sink model. Step 6: Engineer segment features Four features cover the questions people actually ask: age band, organization size, years of professional experience, and a coarse role group. Each starts as messy survey text and ends as a clean category. python """Turn raw survey columns into a small set of segment features.""" import numpy as np import pandas as pd AGE COLS = "Age" ORG COLS = "OrgSize" EXP COLS = "WorkExp", "YearsCodePro" ROLE COLS = "DevType" def first col df: pd.DataFrame, candidates: list str - str | None: return next c for c in candidates if c in df.columns , None def to years series: pd.Series - pd.Series: s = series.astype str .str.strip s = s.replace {"Less than 1 year": "0.5", "More than 50 years": "51", "nan": np.nan} return pd.to numeric s, errors="coerce" def exp bucket years: pd.Series - pd.Series: bins = -0.01, 2, 5, 10, 20, 100 labels = "0-2 yrs", "3-5 yrs", "6-10 yrs", "11-20 yrs", "21+ yrs" return pd.cut years, bins=bins, labels=labels .astype "object" def role group series: pd.Series - pd.Series: low = series.astype str .str.lower out = pd.Series "other", index=series.index, dtype="object" out low.str.contains "front-end|full-stack|web", regex=True = "web" out low.str.contains "data|machine learning|scientist", regex=True = "data ml" out series.isna = np.nan return out def lump rare series: pd.Series, min n: int - pd.Series: """Merge levels with fewer than min n rows into 'Other' so dummies stay estimable.""" counts = series.value counts rare = counts counts < min n .index return series.where ~series.isin rare , "Other" def build features df: pd.DataFrame, min n: int = 100 - pd.DataFrame: feats = {} age = first col df, AGE COLS org = first col df, ORG COLS exp = first col df, EXP COLS role = first col df, ROLE COLS if age: feats "age" = lump rare df age .where df age .notna , min n if org: feats "org" = lump rare df org .where df org .notna , min n if exp: feats "exp" = exp bucket to years df exp if role: feats "role" = role group df role if not feats: raise ValueError "None of Age, OrgSize, WorkExp/YearsCodePro, DevType found in the file" return pd.DataFrame feats, index=df.index Three details deserve attention. The to years helper converts the survey’s text answers, such as a label for under one year, into numbers before bucketing. The role group helper reduces a multi-select job-title cell to three buckets with a transparent keyword rule, which you can audit in ten seconds. The lump rare helper merges levels with fewer than min n rows into an Other level, which prevents the perfect-separation failures covered in the troubleshooting section. If you plan to weight the sample by country or role mix, the survey raking walkthrough https://shattered.io/cursor-vs-copilot-survey-raking-reweight-python-12-steps-2026/ shows how to build those weights, and you can feed them into the model later as frequency weights. Step 7: Build the design matrix and choose baselines Logistic regression needs numbers. The design matrix function creates one 0/1 column per category level and drops the most common level of each feature as the baseline. Every odds ratio the model reports is relative to that baseline, so the baseline choice changes how the output reads. php def design matrix feats: pd.DataFrame - pd.DataFrame: """One dummy per level, dropping the most common level of each feature as the baseline.""" parts = for col in feats.columns: s = feats col base = s.value counts .idxmax d = pd.get dummies s, prefix=col, prefix sep="=", dtype=float d = d.drop columns=f"{col}={base}" d.attrs "baseline" = base parts.append d X = pd.concat parts, axis=1 X.attrs "baselines" = {c: feats c .value counts .idxmax for c in feats.columns} return X On the fixture, the baselines come out as follows: age 25 to 34, organization size 10,000 or more employees, experience 6 to 10 years, and role web. The design has 14 dummy columns and 4,998 rows. A bigger company baseline matters for the Copilot results later, because Copilot’s planted lift sits at that exact baseline. An odds ratio below one for tiny companies on Copilot means they are less likely than the enterprise baseline, not that tiny companies reject the tool. Phase 4: Logistic Regression and Odds Ratios Steps 8 and 9 The core of the project fits two models on identical rows and then asks whether their coefficients differ. Step 8: Fit the logistic regressions and read odds ratios The fit logit function adds a constant, fits statsmodels Logit , and raises a readable error on perfect separation or non-convergence. The odds table function exponentiates the coefficients and their confidence limits, which turns log-odds into odds ratios. """Logistic regressions, odds ratios, marginal effects and a bootstrap difference test.""" import numpy as np import pandas as pd import statsmodels.api as sm from statsmodels.tools.sm exceptions import PerfectSeparationError def fit logit y: pd.Series, X: pd.DataFrame : Xc = sm.add constant X, has constant="add" try: res = sm.Logit y, Xc .fit disp=0, maxiter=200 except PerfectSeparationError as exc: raise ValueError "Perfect separation: merge or drop a sparse level" from exc if not res.mle retvals.get "converged", False : raise ValueError "Logit did not converge" return res def odds table res - pd.DataFrame: ci = res.conf int out = pd.DataFrame { "odds ratio": np.exp res.params , "ci low": np.exp ci 0 , "ci high": np.exp ci 1 , "p": res.pvalues, } return out.drop index="const" An odds ratio of 1 means no difference from the baseline. An odds ratio of 2 means the odds of adoption double. Odds are not probabilities, and the distinction matters. At a baseline adoption of 17%, doubling the odds takes the probability to about 29%, not 34%. The next step converts to percentage points so nobody has to do that arithmetic. On the fixture, the Cursor model recovers the planted structure. People at two-to-nine-person firms show a clearly higher odds ratio against the enterprise baseline, as do freelancers, while people with 21 or more years of experience show a lower one. The Copilot model shows the mirror image, with a lower ratio for tiny firms and a higher one for the most experienced. Step 9: Test the Cursor-minus-Copilot gap with a bootstrap Two sets of odds ratios do not tell you whether the tools differ on a segment. Both are noisy, and they come from the same respondents, so they are correlated. A bootstrap handles both problems. It resamples respondents with replacement, refits both models on every resample, and records the difference between the two log-odds coefficients. The 2.5th and 97.5th percentiles of those differences form a confidence interval on the gap. php def bootstrap gap y a, y b, X, n boot=300, seed=7 - pd.DataFrame: """Percentile CI for log OR tool A - log OR tool B per term, resampling respondents.""" rng = np.random.default rng seed n = len X draws = for in range n boot : idx = rng.integers 0, n, n Xb, ya, yb = X.iloc idx , y a.iloc idx , y b.iloc idx try: ra, rb = fit logit ya, Xb , fit logit yb, Xb except ValueError: continue draws.append ra.params - rb.params .drop "const" if len draws < n boot 0.9: raise RuntimeError f"Only {len draws } of {n boot} bootstrap fits converged" d = pd.DataFrame draws return pd.DataFrame { "log gap": d.mean , "gap low": d.quantile 0.025 , "gap high": d.quantile 0.975 , "n fits": len d , } Resampling whole respondents, rather than resampling each model separately, preserves the correlation between the two outcomes. That is the reason this beats a quick z-test on two published coefficients. The function also refuses to report if fewer than 90% of the fits converge, since a bootstrap built from the lucky subset would understate uncertainty. The gap table needs careful reading. The columns gap low and gap high are on the log-odds scale. Exponentiate them to get a ratio of odds ratios. For the two-to-nine-person firms, the whole gap interval sits above zero, which means the Cursor odds ratio is larger than the Copilot one. When the interval excludes zero, the tools genuinely differ on that segment in the sample. Phase 5: Marginal Effects, Report and Tests Steps 10 to 12 The last phase makes the results readable, wires up a command line, and locks the behavior with tests. Step 10: Convert to marginal effects in percentage points Managers do not think in odds ratios. They think in points. The average marginal effect answers a question like this: if everyone in the sample moved from the baseline segment to this one, how many percentage points would adoption change on average? Statsmodels computes it with get margeff , and the dummy=True flag makes it treat 0/1 columns as discrete jumps instead of derivatives. php def marginal effects res - pd.DataFrame: me = res.get margeff at="overall", method="dydx", dummy=True .summary frame me = me.rename columns={"dy/dx": "pp change", "Conf. Int. Low": "pp low", "Cont. Int. Hi.": "pp high"} keep = c for c in "pp change", "pp low", "pp high" if c in me.columns return me keep 100 On the fixture, moving from the enterprise baseline to a two-to-nine-person firm raises Cursor adoption by 19.0 points and lowers Copilot adoption by 25.8 points. Those numbers are planted, so they only prove the method works. On real data, this is the table you would put in a slide. Step 11: Write the report and wire up the CLI The report module computes Wilson intervals for the shares, merges the odds ratios with the bootstrap gaps, and writes a Markdown table. The CLI ties every step together. python import numpy as np import pandas as pd def wilson k: int, n: int, z: float = 1.96 - tuple float, float, float : p = k / n d = 1 + z z / n centre = p + z z / 2 n / d half = z np.sqrt p 1 - p / n + z z / 4 n n / d return p, centre - half, centre + half def share line name: str, flag: pd.Series - str: base = int flag.notna .sum k = int flag.sum p, lo, hi = wilson k, base return f"{name:<8} {p:6.1%} 95% CI {lo:5.1%} to {hi:5.1%} k={k:,} base={base:,}" def combine or a: pd.DataFrame, or b: pd.DataFrame, gap: pd.DataFrame, names= "cursor", "copilot" - pd.DataFrame: a, b = names t = pd.DataFrame { f"OR {a}": or a "odds ratio" , f"OR {b}": or b "odds ratio" , "gap low": gap "gap low" , "gap high": gap "gap high" , } t "gap signif" = t "gap low" 0 | t "gap high" < 0 return t.round 2 def to markdown t: pd.DataFrame - str: cols = "term" + list t.columns lines = "| " + " | ".join cols + " |", "|" + "---|" len cols for term, row in t.iterrows : lines.append "| " + " | ".join str term + str v for v in row.values + " |" return "\n".join lines python import argparse from pathlib import Path import pandas as pd from .columns import ALIASES, find tool columns, tool flag from .features import build features, design matrix from .model import bootstrap gap, fit logit, marginal effects, odds table from .report import combine, share line, to markdown def pick columns df, tool, override : if override: return override found = find tool columns df, tool if not found: raise SystemExit f"No column mentions {tool}. Pass --{tool}-cols explicitly." print f" columns {tool}: candidates {found}" best = next iter found print f" columns {tool}: using {best r} override with --{tool}-cols " return best def main argv=None : ap = argparse.ArgumentParser prog="adopter odds" ap.add argument "csv" ap.add argument "--cursor-cols", nargs=" " ap.add argument "--copilot-cols", nargs=" " ap.add argument "--boot", type=int, default=300 ap.add argument "--min-level", type=int, default=100 ap.add argument "--out", default="out" a = ap.parse args argv df = pd.read csv a.csv, low memory=False print f" load {len df :,} rows, {df.shape 1 } columns" cur cols = pick columns df, "cursor", a.cursor cols cop cols = pick columns df, "copilot", a.copilot cols cur = tool flag df, cur cols, ALIASES "cursor" cop = tool flag df, cop cols, ALIASES "copilot" print "\n naive shares: each tool on its own denominator " print share line "cursor", cur print share line "copilot", cop both = cur.notna & cop.notna print f"\n common base {int both.sum :,} respondents answered both questions" feats = build features df.loc both , a.min level .dropna keep = feats.index y cur, y cop = cur.loc keep , cop.loc keep print " common-base shares " print share line "cursor", y cur print share line "copilot", y cop X = design matrix feats print f" design {len X :,} rows, {X.shape 1 } dummies, baselines {X.attrs 'baselines' }" res cur, res cop = fit logit y cur, X , fit logit y cop, X or cur, or cop = odds table res cur , odds table res cop print f"\n bootstrap {a.boot} resamples" gap = bootstrap gap y cur, y cop, X, n boot=a.boot table = combine or cur, or cop, gap print table.to string me cur, me cop = marginal effects res cur , marginal effects res cop pp = pd.DataFrame {"cursor pp": me cur "pp change" , "copilot pp": me cop "pp change" } .round 1 print "\n average marginal effects, percentage points " print pp.to string out = Path a.out out.mkdir exist ok=True table.to csv out / "odds ratios.csv" pp.to csv out / "marginal effects.csv" out / "report.md" .write text to markdown table + "\n" print f"\n write {out}/odds ratios.csv, marginal effects.csv, report.md" if name == " main ": main The main .py file is a two-line shim so python -m adopter odds works. python from .cli import main main Run the full pipeline on the fixture. The 300-resample bootstrap took about 9.6 seconds of wall time on the test machine for 4,998 rows. python -m adopter odds data/synthetic survey.csv --boot 300 The run prints the table below and writes odds ratios.csv , marginal effects.csv and report.md into out/ . bootstrap 300 resamples OR cursor OR copilot gap low gap high gap signif age=18-24 years old 1.08 0.84 -0.01 0.54 False age=35-44 years old 0.64 1.09 -0.74 -0.32 True age=45-54 years old 0.77 1.19 -0.72 -0.16 True age=55+ years old 0.57 0.75 -0.64 0.13 False org=1,000 to 4,999 employees 1.90 0.68 0.77 1.33 True org=2 to 9 employees 2.98 0.32 1.91 2.58 True org=20 to 99 employees 1.79 0.56 0.88 1.45 True org=Just me - I am a freelancer 2.66 0.48 1.37 2.10 True exp=0-2 yrs 1.21 0.93 -0.05 0.58 False exp=11-20 yrs 0.96 1.16 -0.45 0.05 False exp=21+ yrs 0.50 1.44 -1.49 -0.59 True exp=3-5 yrs 1.11 0.97 -0.10 0.38 False role=data ml 1.02 1.11 -0.37 0.19 False role=other 1.05 1.08 -0.25 0.17 False average marginal effects, percentage points cursor pp copilot pp age=18-24 years old 1.1 -4.3 age=35-44 years old -5.9 2.1 age=45-54 years old -3.5 4.1 age=55+ years old -6.6 -7.0 org=1,000 to 4,999 employees 9.8 -9.2 org=2 to 9 employees 19.0 -25.8 org=20 to 99 employees 8.8 -13.8 org=Just me - I am a freelancer 16.9 -17.3 exp=0-2 yrs 2.8 -1.8 exp=11-20 yrs -0.5 3.6 exp=21+ yrs -7.8 8.6 exp=3-5 yrs 1.5 -0.8 role=data ml 0.3 2.6 role=other 0.7 1.9 Step 12: Add tests and run on the real file Tests turn the planted truth into a safety net. They check that token matching is exact, that blank answers stay missing, that column discovery finds both tools, that the model recovers planted signs, and that the bootstrap runs. python import numpy as np import pandas as pd import pytest from adopter odds.columns import ALIASES, find tool columns, has token, tool flag from adopter odds.features import build features, design matrix from adopter odds.model import bootstrap gap, fit logit, odds table @pytest.fixture scope="module" def df : return pd.read csv "data/synthetic survey.csv" def test token match is exact : s = pd.Series "Visual Studio Code;Cursor", "Cursor Tab", None, "Zed" out = has token s, ALIASES "cursor" assert out.tolist 0 == 1.0 and out.tolist 1 == 0.0 assert np.isnan out.iloc 2 def test blank is not zero : d = pd.DataFrame {"a": "GitHub Copilot", "ChatGPT", None } f = tool flag d, "a" , ALIASES "copilot" assert f.tolist :2 == 1.0, 0.0 and np.isnan f.iloc 2 def test discovery finds both tools df : assert "DevEnvs" in find tool columns df, "cursor" assert "AIAgents" in find tool columns df, "copilot" def test recovers planted signs df : cur = tool flag df, "DevEnvs" , ALIASES "cursor" cop = tool flag df, "AIAgents" , ALIASES "copilot" both = cur.notna & cop.notna feats = build features df.loc both , 100 .dropna X = design matrix feats or cur = odds table fit logit cur.loc feats.index , X or cop = odds table fit logit cop.loc feats.index , X assert or cur.loc "age=55+ years old", "odds ratio" < 0.7 assert or cur.loc "org=2 to 9 employees", "odds ratio" 1.5 assert or cop.loc "org=2 to 9 employees", "odds ratio" < 0.7 def test bootstrap runs df : cur = tool flag df, "DevEnvs" , ALIASES "cursor" cop = tool flag df, "AIAgents" , ALIASES "copilot" both = cur.notna & cop.notna feats = build features df.loc both , 100 .dropna X = design matrix feats gap = bootstrap gap cur.loc feats.index , cop.loc feats.index , X, n boot=20 assert {"log gap", "gap low", "gap high"} <= set gap.columns python -m pytest -q ..... 100% 5 passed in 2.68s Notice the assertions use age 55-plus and the two-to-nine-person level, not age 18 to 24. The first draft of the test asserted a high odds ratio for the youngest group and failed, because the baseline is the 25 to 34 band, which already carries a planted lift. The planted gap between 18-24 and 25-34 is small, so a modest sample estimate was honest. A test that fought the baseline logic was wrong, not the code. That small failure is the best argument for testing against planted effects. Now point the tool at the real file. If you downloaded a 2025 or 2026 CSV, run the following and read the columns lines first. python -m adopter odds data/survey results public.csv --boot 300 If the discovery picks a column you did not intend, override it. Running the same command on both survey years gives you two odds-ratio tables, and the survey drift decomposition https://shattered.io/cursor-vs-copilot-survey-drift-duckdb-decomposition-12-steps-2026/ on this site shows how to separate real movement from changes in who answered. What Changed Since the Survey: Plans, Billing and Models Survey answers describe a tool as it stood when the respondent answered. Both products have moved since, and the segments your regression finds should be read against that backdrop. Copilot is the larger shift on the billing side. GitHub moved all Copilot plans to usage-based billing on June 1, 2026, with monthly GitHub AI Credits where one credit equals $0.01, according to GitHub’s models and pricing documentation https://docs.github.com/en/copilot/reference/copilot-billing/models-and-pricing?ref=cms.ondi.jp and its April 27 announcement. The individual lineup is now Free, Pro, Pro+ and Max, and the organization plans are Business and Enterprise. Cursor reshaped its own ladder. Its current individual tiers run from Free through Plus, Premium, Super and Ultra, and annual billing is listed at $80, $300, $1,000 and $2,000 for the four paid tiers. Cursor is the product of Anysphere, whose company site https://anysphere.inc/ still presents it as the main offering. Teams start at $30 per user per month, and Enterprise is custom-priced. | Tier | Cursor monthly | GitHub Copilot monthly | |---|---|---| | Free | $0 | $0 | | Entry paid | Plus, $8 | Pro, $10 | | Mid paid | Premium, $30 | Pro+, $39 | | High paid | Super, $100 | Max, $100 | | Top individual | Ultra, $200 | No higher individual tier listed | | Team or organization | Teams, from $30 per user | Business, $19 per granted seat | | Enterprise | Custom | Enterprise, $39 per granted seat | Included usage also differs in structure. Copilot Pro includes $10 of base credits plus $5 of flex usage, for $15 in total. Pro+ includes $39 plus $31 for $70, and Max includes $100 plus $100 for $200. Cursor’s Premium tier is marked as its most popular plan on the pricing page. The model lists moved too. GitHub’s changelog records OpenAI’s GPT-6.2 Astra and GPT-6.2 Sol reaching general availability in Copilot on November 17, 2026, along with Microsoft’s MAI Code 2 and MAI Code 2 Flash. Gemini 4 Neon followed on November 18. Cursor’s release notes list Claude Opus 5.5 and Claude Sonnet 5.5 among the models now available. None of this appears in a survey that asked about the past year, which is one more reason to treat shares as a snapshot of respondent behavior rather than a scoreboard. Pricing structure also bears on how you read the enterprise segment in your regression. GitHub’s November changelog says licensed GitHub Enterprise Cloud users can receive Copilot access at $0. If many of your enterprise-sized respondents get Copilot bundled with their platform license, a high Copilot odds ratio at that size reflects procurement as much as preference. The Copilot usage audit comparing Cursor installs and seats https://shattered.io/github-copilot-usage-audit-cursor-installs-seats-12-steps-2026/ on this site shows how to separate paid seats from active use when you have internal data. How to Read the Output Without Fooling Yourself The pipeline prints a lot of numbers. Five rules keep the interpretation honest, and the table after them works as a quick reference for each column. First, read odds ratios against the baseline the tool printed. The design line lists the baseline for each feature. An odds ratio for freelancers means freelancers versus the enterprise baseline, not freelancers versus everyone. Second, use percentage points for anything that leaves the data team. The marginal effects table answers the question executives ask, which is how many more or fewer people in this segment use the tool. Third, look at the gap interval before you claim a difference. If gap low and gap high straddle zero, the sample does not support saying Cursor and Copilot differ on that segment. On the fixture, age 18 to 24 shows a gap interval that just touches zero, so no claim is warranted. Fourth, remember that 14 terms get tested at once. At a 0.05 threshold, you expect about 0.7 false positives across 14 independent terms 14 times 0.05 . A single borderline segment should make you cautious, while a pattern across related segments, such as every organization-size band moving the same direction, deserves more trust. Fifth, keep the word association in every sentence. A regression on survey answers shows that two traits travel together. It does not show that company size causes tool choice. | Output column | Scale | How to read it | |---|---|---| | OR cursor , OR copilot | Ratio of odds | 1 means no difference from baseline, 2 doubles the odds | | gap low , gap high | Log-odds difference | Exponentiate for a ratio of odds ratios, zero inside means no clear gap | | gap signif | True or False | True when the interval excludes zero | | cursor pp , copilot pp | Percentage points | Average change in adoption versus the baseline segment | | base in share lines | Respondent count | The denominator, always check it before quoting a share | Overlap also matters. Many developers use both tools, so the two outcomes are not exclusive. The Jaccard and lift overlap analysis https://shattered.io/cursor-vs-copilot-survey-overlap-jaccard-lift-12-steps-2026/ on this site quantifies how often the two co-occur, and the advanced section below shows how to model the four combinations directly. Common Pitfalls Most failures in this kind of project come from a short list of mistakes. Each one produces output that looks plausible, which is what makes them dangerous. Treating blank answers as zero. A respondent who never saw the AI-agent question is not a non-user. Coding blanks as zero drags the Copilot share down and inflates the apparent Cursor lead. The three-state flag in Step 5 exists to prevent this. If you simplify it, keep the missing state. Substring matching on tool names. A search for cursor inside free text can match unrelated words, and a loose match on copilot catches Microsoft Copilot, which Stack Overflow lists separately from GitHub Copilot in the 2025 results. Use exact tokens. The alias sets in columns.py hold only cursor and github copilot for that reason. Forgetting the baseline. The model’s reference group changes every odds ratio. If 25 to 34 is your baseline and it already carries a lift, then 18 to 24 can look unremarkable even though both bands sit far above the oldest group. Always print the baselines, and consider setting them explicitly when you compare years. Chasing a lone significant segment. With 14 terms in the table, one flagged row is weak evidence. Prefer patterns, and consider a Bonferroni-style cutoff of 0.05 divided by 14 when you need a conservative call. Confusing odds ratios with probability ratios. An odds ratio does not mean the same multiple of the adoption rate. At a 17% base rate, tripling the odds gives roughly 38%, about 2.2 times the rate. Quote percentage points to avoid the trap. Comparing columns across years without checking the question. A tool can move from one survey list to another between years, so any chart that follows its editor share can show it disappearing. Cursor and Copilot can shift lists the same way. Before you compare 2025 and 2026 odds ratios, confirm that each tool sits in a comparable question both years. The year-over-year drift analysis separates real movement from question changes. Reading survey share as market share. None of the sources checked for this article provide a directly comparable market-share figure for Cursor versus Copilot. A survey of Stack Overflow’s audience tells you about that audience. Say so in the sentence. Troubleshooting These ten failures account for most of the questions you will hit when you run the tool on a real file. Each entry gives the symptom, the cause and the fix. 1. No column mentions cursor . The scan found fewer than 20 exact-token hits in any column. Check that you loaded the responses file and not the schema file, then open the header and find the editor or AI-tool column by hand. Pass it with --cursor-cols ColumnName . If the tool is listed under a different label, add the label to ALIASES in columns.py . 2. The common base is tiny. If only a few hundred rows answered both questions, the two tools sit in questions with little overlap. Pass several columns to --cursor-cols or --copilot-cols so the flag counts anyone who answered at least one. If the base is still small, fit each tool on its own base and say so in the report. 3. ValueError: Perfect separation . A level has so few rows that it predicts the outcome perfectly. Raise --min-level so rare levels merge into Other , or drop the feature. 4. LinAlgError: Singular matrix . Two dummy columns are identical or one is all zeros. This happens when a feature has a single level after filtering. Print X.nunique and drop constant columns. 5. Logit did not converge . Usually a sparse level again. Raise maxiter , lump rare levels, or standardize numeric inputs if you added any. If it persists, try the regularized fit in the advanced section. 6. The bootstrap takes too long. Each resample fits two logistic models. On the fixture, 300 resamples took about 9.6 seconds of wall time for 4,998 rows, and a full survey file will take longer. Use --boot 50 while developing and --boot 500 for the final run. 7. KeyError: 'Cont. Int. Hi.' or a similar column name. Statsmodels labels its marginal-effects frame columns with its own spelling, and a newer release may change it. Print me.columns inside marginal effects and update the rename map. 8. Encoding errors on Windows. Add encoding="utf-8" to the read csv call, or pass encoding errors="replace" if the file has stray bytes. 9. A .str accessor error. On older pandas, .str fails on columns that are not strings. The module guards with is string dtype . If you pass a custom column, cast it with astype str first and restore missing values afterward. 10. A test fails with KeyError: 'age=18-24 years old' . The level was lumped into Other or the baseline absorbed it. Print odds table ... .index to see the surviving names and update the assertion. Advanced Tips Once the basic run works, five extensions add real analytical power without much code. Model the four combinations. Cursor and Copilot overlap, so a single outcome per tool hides multi-homing. Code each respondent as 0 for neither, 1 for Cursor only, 2 for Copilot only and 3 for both, then fit a multinomial logit. python import statsmodels.api as sm code = cur.loc feats.index 1 + cop.loc feats.index 2 .astype int mn = sm.MNLogit code, sm.add constant X .fit disp=0 print mn.summary On the synthetic fixture the four groups neither, Cursor only, Copilot only and both all have enough people, so the model has enough data in each cell. Real surveys can have thin cells, so check the counts first. Add weights. If you build post-stratification weights, pass them as frequency weights through a binomial GLM. The raking approach from Step 6 builds them. w = pd.Series 1.0, index=X.index replace with your weights res = sm.GLM y, sm.add constant X , family=sm.families.Binomial , freq weights=w .fit Regularize when levels are sparse. An L1 penalty shrinks unstable coefficients toward zero and avoids separation errors. reg = sm.Logit y, sm.add constant X .fit regularized method="l1", alpha=2.0, disp=0 Note that penalized coefficients are biased by design, so use them to screen features, not to report final odds ratios. On the fixture, the penalized odds ratio for two-to-nine-person firms came out at 2.70 against the unpenalized 2.98. Test interactions. Age and organization size may interact. A freelancer in their twenties and a freelancer in their fifties may behave differently. Build a combined feature, feats "age org" = feats "age" + " | " + feats "org" , and run the design matrix on it. Expect many sparse cells, which brings you back to lumping. Pool the years with an interaction. Stack the 2025 and 2026 files, add a year dummy, and interact it with each segment. A significant interaction means the segment’s relationship with a tool changed between waves. Only do this after you confirm the question wording matches, per the pitfalls above. For a wider view of tools in this category, the software coverage hub https://shattered.io/category/software/ collects the related comparisons and tutorials. FAQ Does the Stack Overflow survey measure market share? No. It measures what its respondents report using, and that audience is self-selected. Stack Overflow’s own 2025 numbers pair a 17.9% Cursor figure drawn from all respondents with a roughly 68% Copilot figure drawn from AI-assistant users, which are different bases. Treat shares as adoption among respondents and quote the base every time. Which survey year should I analyze in November 2026? The 2026 Developer Survey, published October 6, 2026, is the latest. Use the 2025 file when you need the earlier wave for a year-over-year comparison, and label it as historical. The tool runs the same way on both files as long as the columns are found. Why do two sources show different Copilot numbers for 2026? One page reports Copilot at 58.7% among coding agents and assistants used in the past year, while Stackness reports 61.3% among 11,739 coding-agent answerers using its own counts. The sources do not explain the difference. Plausible causes include base, question wording and exclusion rules, which is exactly what Steps 4 and 5 make visible. Run the tool on the raw file to see which base reproduces which number. Do I need the real survey files to learn the method? No. The synthetic fixture lets you verify every step offline, and the tests prove the pipeline recovers planted effects. Move to the real file once the tests pass, and read the discovered columns before trusting any number. What does an odds ratio of 2 mean? The odds of adoption double relative to the baseline segment. Odds differ from probabilities, so a doubling at a 17% base rate lifts the probability to about 29%. Use the marginal-effects table for percentage points. Can I add other tools such as Claude Code or Codex? Yes. Add an alias set to ALIASES in columns.py , run discovery, and add a third flag. Check which list each tool sits in, because a tool can change lists between survey years. Why bootstrap instead of comparing the two confidence intervals by eye? Both models use the same respondents, so their estimates are correlated. Two overlapping intervals do not prove equality, and two separate ones do not prove a difference. Resampling respondents and refitting both models gives a direct interval on the gap.