Stats Explorer

io.github.Meador793由 GitHub 帳號 Meador793 發布v1.5.1更新於 Oct 26, 2026

Verified statistics for AI agents: guided tests, A/B tests, Tukey HSD, reports, optional Jev checks.

發布方自己的服務:Garmin & Strava for Claude and ChatGPT

已驗證STDIO僅桌面檔案與儲存資料與分析

概覽

AI 產生的概覽

本機 MCP 伺服器,對你自己電腦上的 CSV、TSV、Excel 或 Parquet 檔案執行經驗證的統計與分析,讓助理回報算出的數字而不是憑空猜測。

可以做什麼
  • 檢查資料檔案,並把請求判定為探索或假設檢定
  • 彙總與排序資料:分組總計、前 N 名、分布、信賴區間、相關性、驅動因素排序
  • 依六步引導流程做假設檢定:陳述假設、檢查前提與離散度、檢定力、執行檢定、基礎比率核查
  • 讀取 A/B 與 A/B/n 實驗結果,提供提升幅度區間、樣本比例檢查、校正後 p 值,並規劃樣本量
  • 產生圖表(直方圖、箱型圖、散佈圖、長條圖、折線圖、圓餅圖),並建立 HTML 或 Markdown 報告
  • 處理超大檔案:串流讀取、背景工作、抽樣選擇,以及可選的欄位快取
適用情境
當你希望助理針對本機表格式資料檔案回答統計或分析問題,並需要可重現、經參考案例驗證的數字而非估算時適用。既適合描述性業務問題,也適合顯著性檢定,包括 A/B 結果解讀與帶事後比較的變異數分析。
執行需求
以 stdio 在本機執行;npm 套件需要 Node.js 22 或更新版本(VS Code 擴充功能使用內建執行環境)。預設不需帳號或 API 金鑰。STATS_EXPLORER_ROOTS 指定可讀寫的資料資料夾;Claude Code 建議設定 STATS_EXPLORER_CONFIRM_VIA=chat。Jev 強制模式另需 TYPESAFE_API_KEY。
安裝前請注意
它會從允許的資料夾讀取資料檔案,並可將圖表與報告寫入工作區,請謹慎限定 STATS_EXPLORER_ROOTS。將 STATS_EXPLORER_CONFIRM_SELECTIONS 設為 off 會讓助理依自己的欄位、圖表與報告選擇直接執行。Jev 強制模式會把資料傳送給第三方 API 並需要 TYPESAFE_API_KEY;資料檢查點會把欄位名稱與文字樣本傳送給 Jev。編排模式需要 STATS_EXPLORER_APPROVAL_SECRET。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Stats Explorer,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Stats Explorer MCP

[Stats Explorer MCP: verified statistics your AI assistant calls instead of guessing numbers]

An MCP server with 18 statistics and analytics tools an AI assistant can call instead of guessing numbers, on data files of any size:

  • Tests: t-tests, z-tests, ANOVA (with a Tukey HSD post-hoc that names the groups that differ), ANCOVA, MANOVA, chi-square, Fisher's exact, binomial and correlation.
  • A/B testing: A/B and A/B/n readouts for conversion rates and revenue-type metrics (lift with intervals, sample ratio mismatch check, Holm-adjusted comparisons, Bayesian probability to beat the control, segment breakdowns), and sample-size planning.
  • Analytics: totals, averages and counts by category (top N), and "what drives X?" rankings across every column.
  • Helpers: descriptive stats, confidence intervals, power analysis, a "which test should I use?" tool, and a data-file inspector.

The tools can read a developer's CSV, TSV, Excel or Parquet files by column name, so large datasets never get pasted into the chat. Each result includes:

  • the effect size and confidence interval,
  • a plain-English interpretation,
  • warnings when an assumption looks shaky.

On top of that:

  • Correct. 43 reference cases are checked against SciPy and statsmodels on every commit, to at least 6 significant figures.
  • Guided by default. The agent first decides whether your request needs a hypothesis test or just exploration. Hypothesis tests follow the six steps of Stats Explorer's Bring it all together guide, in order.
  • You stay in control. Every column, group, chart type and report section the agent proposes is shown to you to confirm or change before anything runs.
  • Private. Runs locally over stdio. It makes no network calls and needs no API key (unless you turn on Jev's enforce mode, below). Data files are read only from your workspace folders.
  • Checked by Jev, if you want. Connect Jev, TypeSafe's fast judgment model, alongside it, and Jev independently checks the test plan and the assistant's written conclusions against the computed results. You can run it without an orchestrator, enforced by Stats Explorer itself, or under a production orchestrator that signs every decision.

The engine, the file import and the six-step guide are shared with the Stats Explorer app, so results match the app exactly.

Connect it (pick your assistant)

GitHub Copilot in VS Code: about 1 minute, nothing else to install

  1. In VS Code, open Extensions (Ctrl+Shift+X / Cmd+Shift+X), search Stats Explorer MCP, click Install.
  2. Open Copilot Chat and switch the mode dropdown to Agent.
  3. Click the tools icon in the chat box and check that Stats Explorer is listed and ticked.
  4. Open the folder that holds your data and ask a question (see Example questions).

The extension registers the server itself, using VS Code's built-in runtime, so you don't need Node.js or an mcp.json file. Confirmations appear as forms you can edit.

Claude Code (terminal or the Claude Code panel in VS Code): about 2 minutes

You need Node.js 22 or later (24 LTS recommended). In a terminal, run this once:

bash
claude mcp add -s user stats-explorer -e STATS_EXPLORER_CONFIRM_VIA=chat -- npx -y stats-explorer-mcpclaude mcp list

claude mcp list should show stats-explorer … ✓ Connected. Then start a new Claude session, because servers are loaded when a session starts. In VS Code: Ctrl+Shift+P → Developer: Reload Window, then New session. Type /mcp in the chat to see the servers the session has.

  • -s user makes it available in every folder (without it, only in the folder where you ran the command).
  • STATS_EXPLORER_CONFIRM_VIA=chat makes confirmations appear as messages in the chat, which you answer by replying. Claude Code doesn't always display form-style prompts.
  • If you have the VS Code extension installed, Stats Explorer: Copy Setup Command for Claude Code copies this command for you.

Claude Desktop, Cursor, Windsurf, Cline and other MCP clients

Add this to the client's MCP config (claude_desktop_config.json, .cursor/mcp.json, and so on), then restart the client:

json
{  "mcpServers": {    "stats-explorer": {      "command": "npx",      "args": ["-y", "stats-explorer-mcp"],      "env": { "STATS_EXPLORER_ROOTS": "/path/to/your/data", "STATS_EXPLORER_CONFIRM_VIA": "chat" }    }  }}

Requires Node.js 22 or later. STATS_EXPLORER_ROOTS is the folder (or folders) the tools may read; see Data files.

Example questions

Name the file in your message (or attach it); the assistant passes it to the tools and never pastes the data into the chat.

  • What's in sales.csv?
  • Total revenue by state in sales.csv, top 10. (group_summary)
  • What drives profit in sales.csv? (find_relationships, then follow-ups)
  • Show the distribution of order value and a box plot by segment.
  • Does average profit differ between the Consumer and Business segments? Is it significant? (six-step hypothesis test)
  • Did the new checkout page (variant B) increase conversion in experiment.csv? Break it down by device. (ab_test)
  • How many visitors do I need to detect a 10% lift on a 4% conversion rate, with 3,000 visitors a day? (ab_test_plan)
  • Does revenue differ between the three regions, and which ones? (ANOVA + Tukey HSD)
  • Make an HTML report of what we found and save it as findings.html.

The analyze, explore_data and hypothesis_test prompts (slash commands in VS Code and Claude) start the same flows.

Working with Jev (optional)

When both Stats Explorer and a Jev MCP server are connected to Claude or Copilot, they split the work. Stats Explorer computes every number, and Jev checks two things before you see a result:

  • The test plan: is this the right test, are the hypotheses right, are these the right columns?
  • The written conclusions: does every number match, is "significant" stated correctly, are there claims of cause the analysis can't support?

Stats Explorer also runs its own number and significance checks on every claim. Only claims that pass go into reports, and each report lists every check under Independent checks.

ModeSet STATS_EXPLORER_JEV toWho calls JevGood for
CooperatecooperateThe assistant, through your Jev MCP server, using packets Stats Explorer preparesWorking in Claude Code or Copilot without any orchestration tool
Enforceenforce (plus TYPESAFE_API_KEY)Stats Explorer, directly from the Jev APIChecks the assistant can't skip or alter
Orchestratedorchestrated (plus STATS_EXPLORER_APPROVAL_SECRET)Your orchestrator (LangGraph, Temporal, Step Functions and so on), which signs each decisionProduction pipelines with audit logs

Quick start with Claude Code (no orchestrator):

bash
claude mcp add -s user jev -e TYPESAFE_API_KEY=YOUR_KEY -- npx -y @jkudish/jev-mcpclaude mcp add -s user stats-explorer -e STATS_EXPLORER_JEV=cooperate -e STATS_EXPLORER_CONFIRM_VIA=chat -- npx -y stats-explorer-mcpnpx -y stats-explorer-mcp init-jev     # adds routing rules to CLAUDE.md and .github/copilot-instructions.md

Any Jev MCP server works (@jkudish/jev-mcp, jev-mcp, typesafe-mcp, …): the packets come in the shapes their tools take. In VS Code, set Stats Explorer › Jev: Mode. See docs/JEV.md for every mode and setting, the signed-approval format (with JavaScript and Python), what is sent to Jev, and the runnable orchestrator example in examples/orchestrator/.

How it works (default)

1. The agent classifies your request

Every analysis starts with start_analysis, where the agent picks a mode:

Your request sounds like…ModeWhat happens
"Does the drug change scores?", "Is A better than B?", "Is this difference significant?"hypothesis_testThe six-step workflow below
"Summarise…", "Show me the distribution of…", "Chart X by Y", "What's the average, with a CI?"exploreDescriptive tools and charts only: no hypotheses, no p-values, and no hypothesis section in the report

If it's unclear, the agent is instructed to ask you. Nothing else runs until start_analysis has been called.

2. Hypothesis tests follow the six steps, in order

Step (from the app's Learn tab)Tool
1. State your question and choose the right teststate_hypotheses: test, columns, groups, H₀/H₁, direction and α, fixed before any result is seen
2. Validate your data against the test's assumptionscheck_assumptions: shape, small skewed samples, group sizes, outliers, expected counts, ANCOVA slope equality, missing values, "who is missing from the sample?"
3. Check spreadcheck_spread: SD, IQR, coefficient of variation, outliers, variance ratio
4. Calculate power before you runpower_analysis: power for the smallest effect you care about, and the n needed for 80%
5. Run the test, then report honestlyrun_test: runs exactly what you confirmed in step 1, with the p-value, effect size, CI and verdict
6. Sanity-check rare events against base ratesbase_rate_check (PPV/NPV), or skip_step with a reason when it isn't a rare-event question

Calling a step out of order is refused with a message that names the next step. Only steps 4 and 6 can be skipped, and only with a reason that appears in the report. If step 2 shows the chosen test doesn't fit, re-stating the plan in step 1 is allowed and restarts the later steps. The app's guide calls this a principled revision, not p-hacking.

[A hypothesis-test write-up: question, hypotheses, assumption checks, power, result and verdict]

3. You confirm every selection

When the agent proposes columns, groups, a chart type or report sections:

  • Clients that support MCP forms (elicitation), such as VS Code, show you a form with the agent's choices pre-filled as dropdowns and checkboxes. Change anything, then accept or decline. Declining runs nothing.
  • Other clients get a CONFIRMATION NEEDED response listing the proposal, the alternatives and a one-time token. The agent is instructed to show you the choices and call again with the token only after you agree. A token only works for the exact selection it was issued for, so a changed selection is proposed again.

A selection you've confirmed isn't asked about twice in the same session.

4. Charts and reports

  • create_visualization: histogram, box plot, scatter (with least-squares line), bar (mean or count by category), line, and pie. These are the app's chart types. Returns an accessible SVG (light and dark mode) and can save it as .svg.
  • build_report: only when you ask for one, and containing only the sections you tick. A completed hypothesis test becomes a write-up in the app's format: the question, the hypotheses, how it was tested (with steps 2–4), what was found, the verdict and base rates. Explorations never get a hypothesis section. Saved as HTML (default) or Markdown in your workspace; existing files are not overwritten unless you say so.

[Charts: box plot, histogram, scatter with fitted line, and bar chart]

[An exploration report with summary statistics, a confidence interval and a histogram]

Images show real output on a sample dataset.

Tools

ToolPurpose
start_analysisClassify the request (hypothesis test or exploration)
inspect_data_fileColumns, types, missing values, categories and a preview of a data file
choose_testRecommend the right test for a question
state_hypotheses, check_assumptions, check_spread, power_analysis, run_test, base_rate_check, skip_stepThe six steps
describen, mean, SD, median, quartiles, range, skewness, kurtosis, shape, mean CI (optionally by group)
confidence_intervalCI for a mean (t) or a proportion (Wilson)
correlationPearson or Spearman r with CI and fitted line, without a p-value (a significance test goes through step 1)
group_summaryTotals, averages, medians, counts per category; top N (analytics)
ab_test_planVisitors and days needed for an A/B test, or the smallest lift a given sample can detect
find_relationshipsWhich columns relate most to a numeric outcome ("what drives X")
create_visualization, build_reportCharts and reports
workflow_statusWhere the current analysis is, and the saved results
large_file_plan, job_status, cancel_job, manage_cacheVery large files: read all or a sample, background jobs, kept columns

Tests available in step 1: t-test (one-sample, paired, Welch or Student), z-test (mean with known σ, proportion), one-way ANOVA (with a Tukey HSD post-hoc, plus optional Bonferroni Welch pairs), ANCOVA, MANOVA, chi-square (goodness of fit, independence), Fisher's exact, exact binomial, correlation and A/B test.

ANOVA post-hoc (Tukey HSD). Every one-way ANOVA with 3 or more groups includes Tukey's HSD (Tukey–Kramer for unequal group sizes), on in-memory and very large files alike: the difference, adjusted p-value and simultaneous interval for every pair, the significant pairs marked ★ ("B > A"), the best group and whether it beats all others, and a letter display (groups sharing a letter don't differ). Reports name the groups that differ.

A/B tests (ab_test). From inline numbers or a file with a variant column and an outcome column:

  • metric: "conversion" (converted yes/no): two-proportion z-test, with Fisher's exact p when counts are small. metric: "continuous" (revenue, time, order value): Welch's t-test.
  • Every variant against the control: absolute lift (percentage points) and relative lift, each with an interval; Cohen's h or d.
  • Sample ratio mismatch check against the planned split (expected_split): a broken assignment blocks the decision.
  • A/B/n: an omnibus test (chi-square, or ANOVA with Tukey HSD) and Holm-adjusted p-values (or Bonferroni / none).
  • Bayesian view: probability each variant beats the control, probability of being best and the expected loss of shipping it (Beta-Binomial, computed by quadrature, so the numbers are reproducible).
  • The minimum detectable effect of the test as run, an optional mde (smallest lift that matters) to judge practical significance, an optional segment_column breakdown with a Simpson's-paradox warning, and a plain decision.
  • In the guided workflow, step 2 adds the sample ratio check and step 4 sizes power in lift terms.

The server also offers the prompts analyze, hypothesis_test and explore_data, which clients such as VS Code show as slash commands.

Data files

Stats Explorer is built for tabular formats (CSV, TSV, Excel and Parquet) to run hypothesis tests or explore statistics. Files are read with the app's own import code:

  • quoted fields, embedded commas and line breaks, BOMs, and tab, semicolon or pipe separators;
  • missing values (blank, NA, N/A, null, #N/A, …) are skipped;
  • numbers are parsed strictly ("12 kg" is text, not 12), while 1,234, $12.50 and 45% still count as numbers;
  • dates become YYYY-MM-DD text;
  • duplicate column names are renamed rather than overwritten;
  • Excel serial dates are converted;
  • Parquet files compressed with Snappy, gzip, zstd, Brotli or LZ4 are all read.

There is no size limit for CSV, TSV and Parquet files; see Large files.

JSON, BSON, NDJSON and NoSQL databases (MongoDB, CouchDB, Redis connection strings, …) are document data, not tables. For these, every tool answers with that statement and suggests exporting to CSV or Parquet first (for example mongoexport --type=csv). Inline rows containing nested objects or arrays get the same answer.

Files are read only from allowed folders, and symlinks that point elsewhere are refused:

  1. STATS_EXPLORER_ROOTS, if set (separated by : on macOS/Linux, ; on Windows), otherwise
  2. the workspace roots your MCP client reports, otherwise
  3. the server's working directory.

Large files (gigabytes to terabytes)

Files up to 512 MB are loaded into compact column storage (a 190 MB, 1,000,000-row CSV loads in about 8 seconds using under 0.5 GB of memory). Larger CSV, TSV and Parquet files have no size limit. They are streamed instead, in a single pass that every tool needs:

  • One pass, fixed memory. Each tool reads only the columns it uses, in parallel pieces (one per CPU core), and keeps running totals: counts, means, variances, sums of squares and cross-products. Memory does not grow with the file: about 0.5 GB with one reader, plus about 0.2 GB per extra parallel reader. A 2.5 GB, 13-million-row CSV took 45 seconds on 1 core and 22 seconds on 2; the same data as a 340 MB Parquet file took 9 seconds.
  • Exact where it can be. t-tests, z-tests, ANOVA (with pairwise comparisons), ANCOVA, MANOVA, chi-square, Fisher's exact, Pearson correlation, means, standard deviations, skewness, kurtosis and confidence intervals are exact on every row. Groups of up to 100,000 values keep their actual values, so everything about them is exact, medians included.
  • Estimated where it must be, and labelled. Medians, quartiles, histogram bars and outlier counts of larger groups come from a KLL quantile sketch (rank error about 0.03% in testing). Spearman's ρ comes from a random sample of 100,000 pairs, and inspect_data_file's count of different values in a column, above 10,000, from HyperLogLog (within about 2%). Results that contain estimates list them in large_file.approximate and in their warnings.
  • Asked first. If reading the whole file would take more than 2 minutes, you are asked whether to read every row (exact) or a quick sample of about 1% of the rows in blocks spread across the file (fast, approximate). Clients with forms show the choice as a form; otherwise the assistant asks you and calls large_file_plan.
  • Runs in the background. A read that takes longer than 40 seconds continues as a background job; the tool answers STILL RUNNING with a job_id, and job_status returns the result when it's ready (with progress and time left meanwhile). cancel_job stops it. Clients that support MCP progress notifications see a progress bar.
  • Read once. The workflow steps share one pass: step 1 reads the file, and steps 2 to 5 reuse the totals. With your consent, the columns read can be kept on disk (8 bytes per number, 4 per text value), so later questions on them take seconds. manage_cache lists or deletes them.
  • Same rules as small files. The streaming reader applies the app's import rules exactly. It was checked against the in-memory reader on 24 edge-case files and 300 random ones, and on 228 tool calls (tests, charts and full six-step workflows) across CSV and Parquet files, split into as many as 3 parallel pieces. Line breaks inside quoted values are handled: if a split point falls inside one, the file is re-read in one piece.

Excel files are always read whole (up to about 1.9 GB); export very large workbooks to CSV or Parquet.

Configuration

VariableDefaultEffect
STATS_EXPLORER_GUIDEDonoff exposes the individual test tools (t_test, anova, …) directly, without start_analysis and the six steps
STATS_EXPLORER_CONFIRM_SELECTIONSonoff runs with the agent's column, chart and report choices without asking you
STATS_EXPLORER_ROOTSworkspaceFolders data files may be read from (and reports written to)
STATS_EXPLORER_STREAM_MB512CSV/TSV/Parquet files above this size are streamed (Parquet: by rows × columns)
STATS_EXPLORER_WORKERScores − 1Parallel readers for large files (at most 16 by default)
STATS_EXPLORER_ASK_SECONDS120Ask before a full read expected to take longer than this
STATS_EXPLORER_BACKGROUND_SECONDS40Continue as a background job after this long
STATS_EXPLORER_SAMPLE_PERCENT1Size of the quick sample
STATS_EXPLORER_CACHEaskKeep columns read from large files: ask, on or off
STATS_EXPLORER_CACHE_DIRsystem tempWhere kept columns go
STATS_EXPLORER_MAX_FILE_MBno limitRefuse files larger than this
STATS_EXPLORER_CONFIRM_VIAautochat asks for confirmations in the conversation even if the client claims to support forms (recommended for Claude Code)
STATS_EXPLORER_HIDE_LINK01 removes the one-line app link at the end of results
STATS_EXPLORER_APP_URLChanges that link
STATS_EXPLORER_JEVoffJev checks: cooperate, enforce or orchestrated. See docs/JEV.md for its other settings

Accuracy

test/reference/generate.py computes expected values with SciPy and statsmodels for 43 cases. They cover every test and alternative, Welch and Student t-tests, p-values below 1e-30, ties in Spearman, ANCOVA (Type II SS), MANOVA with 2 and 3 outcomes, and file inputs with missing values. test/reference/guided.json adds the ANCOVA slope-equality F test and the step-4 power calculations (two-sample, one-sample, proportion and correlation), checked against statsmodels. test/reference/abtest.py checks Tukey HSD (studentized range, adjusted p-values, intervals and rejections against scipy.stats.tukey_hsd and statsmodels' pairwise_tukeyhsd) and every A/B number: z, p and one-sided p (proportions_ztest), lift intervals (confint_proportions_2indep), Wilson intervals, Fisher's exact, chi-square, Holm/Bonferroni (multipletests), the sample ratio check, Welch t-tests, the Bayesian probabilities and expected loss (numerical integration in SciPy) and sample sizes (NormalIndPower). npm test runs everything through real MCP clients over stdio (with and without form support) and requires agreement to a relative error of 1e-6.

Known approximations, also stated in the results:

  • power uses the normal approximation (within about 0.01 of exact power, matching statsmodels' NormalIndPower);
  • Spearman p-values use the t approximation (as SciPy does);
  • chi-square tests use no continuity correction;
  • on very large files, medians, quartiles, histogram bars, outlier counts and Spearman's ρ are estimated (see Large files).

Limits worth knowing

  • Confirmation forms appear only in clients that support MCP elicitation. Elsewhere the token flow relies on the agent relaying the proposal to you, as the server instructs. A token can't be guessed, and it can't be reused for a different selection.
  • Which mode a request needs is decided by the agent, guided by the server's instructions. If it picks the wrong one, say so; it can start a new analysis.

Development

bash
npm installnpm test                      # reference, unit, guided-workflow and large-file testsSTATS_EXPLORER_STREAM_MB=0 npm test                               # the same, every file through the streaming pathSTATS_EXPLORER_STREAM_MB=0 STATS_EXPLORER_EXACT_CAP=3 npm test    # ... using only one-pass summariesnpm run inspect               # open the MCP Inspectornpm run reference             # regenerate reference cases (needs Python + scipy + statsmodels)npm run reference:ab          # regenerate the Tukey / A/B reference values and test/fixtures/experiment.csvnpm run jev:eval -- --dry-run # measure Jev on labeled cases (drop --dry-run and set TYPESAFE_API_KEY to call Jev)cd vscode-extension && npm install && npm test && npm run package   # build the .vsix

src/engine/ is copied from the Stats Explorer app by npm run sync-engine -- <path-to-app>: the statistics, the data import module and the Learn tab's workflow text. Fix them in the app and re-sync, so the two never drift.

License

MIT

來源:README.md,提交 d781dd3

工具

23

start_analysis

Start an analysis

Call this first for every new question. Read the user's request and choose mode: "hypothesis_test" when they want to know whether a difference, effect or relationship is real / significant / caused by something, or want to test a claim; "explore" when they want to describe, summarise, visualise, estimate or plan, without testing a claim. If the request is ambiguous, ask the user before calling. Returns the steps to follow.

輸入參數filemode必填question必填

state_hypotheses

Step 1: state the question, hypotheses and test

Step 1 of a hypothesis test. Fix the test, the data selection and H₀/H₁ BEFORE looking at results. test_arguments are the same fields the test takes (e.g. t_test: {type, file, column, group_column, group1, group2, equal_variances, mu0}; anova: {file, column, group_column}; ab_test: {metric, file, variant_column, outcome_column, control, success_value, expected_split, segment_column}; chi_square: {type, file, row_column, col_column}; correlation: {file, x_column, y_column, method}). Only use columns the user asked about. The user confirms every column/group choice, the direction and α. Calling it again later revises the plan and restarts steps 2–6.

輸入參數h0h1test必填alphaconfidencealternativetest_arguments必填confirmation_token

check_assumptions

Step 2: validate the data against the test's assumptions

Step 2. Checks shape (skew, kurtosis, small samples), group sizes, outliers, expected counts, ANCOVA slope equality and missing values for the test fixed in step 1. If an assumption fails, revising the test now (state_hypotheses again) is principled.

無需輸入參數。

check_spread

Step 3: check spread

Step 3. Standard deviation, IQR, coefficient of variation, outliers and variance ratio for the data in the plan.

無需輸入參數。

power_analysis

Step 4: calculate power / plan sample size

In a hypothesis test (step 4): power of the planned test for the smallest effect the user cares about, using the data's sample size. smallest_effect is Cohen's d for means, r for correlations, or the true proportion p₁ for proportion tests. Ask the user for it; if they don't know, pass use_conventional: true. In an exploration: give two of effect_size, n_per_group, power to plan a two-group study.

輸入參數alphapoweralternativeeffect_sizen_per_groupsmallest_effectuse_conventional

run_test

Step 5: run the test

Step 5. Runs exactly the test, columns and hypotheses the user confirmed in step 1 and returns the statistic, p-value, effect size, CI and verdict. Requires steps 1–4.

無需輸入參數。

base_rate_check

Step 6: sanity-check rare events against base rates

Step 6 (or standalone in an exploration). For rare-event questions (fraud, defects, diagnoses, churn): what share of positive flags is real (PPV). Give prevalence, sensitivity, specificity (0–1), or file + condition_column + test_column (0/1 columns). If the question is not about rare events, use skip_step 6 instead.

輸入參數fileprevalencesensitivityspecificitytest_columncondition_columnconfirmation_token

skip_step

Skip step 4 or 6 with a reason

Only steps 4 (power) and 6 (base rates) can be skipped, with a short reason that will appear in the report.

輸入參數step必填reason必填

workflow_status

Workflow status

Shows the current analysis, which of the six steps are done, and the saved results (for the report).

無需輸入參數。

ab_test_plan

A/B test sample size

Plan an A/B test: visitors needed per variant to detect the smallest lift that matters (mde) at a given power, and/or the smallest lift detectable with a given n_per_variant; days needed from daily_traffic. Conversion: baseline_rate. Continuous: baseline_sd (and baseline_mean for a relative mde). Use in an exploration (planning a future test); a running hypothesis test sizes itself in step 4.

輸入參數mdealphapowermetric必填mde_typevariantsalternativebaseline_sdbaseline_meanbaseline_ratedaily_trafficn_per_variant另有 1 個

inspect_data_file

Inspect a data file

Lists the columns of a local CSV/TSV/JSON file with their types, missing values, ranges and category values, plus a 5-row preview. Use before running tests on a file so you pass correct column and group names.

輸入參數file必填

choose_test

Choose a statistical test

Recommends which test tool to run for a research question, with the assumptions to check. Call this first when unsure.

輸入參數goal必填pairedhas_covariatemultiple_outcomesoutliers_or_ranksoutcome_is_numericknown_population_sd

describe

Descriptive statistics

n, mean, SD, median, quartiles, range, skewness, kurtosis, shape and CI for the mean, for a column the user asked about (optionally by group). The user confirms the columns first.

輸入參數filenamecolumnvaluesconfidencegroup_columnconfirmation_token

group_summary

Summary by group

Analytics-style breakdown: count, sum, mean, median, min, max or SD of a numeric column for each category of another column (e.g. total revenue by region, average order value by segment, top 10 products by profit, rows per status), sorted, top N. Without value_column it counts rows per category. Descriptive only, no p-values. The user confirms the columns first.

輸入參數topfilestatssort_bydescendinggroup_column必填value_columnconfirmation_token

confidence_interval

Confidence interval

CI for a mean (column the user asked about) or a proportion. The user confirms the column first.

輸入參數nfiletype必填columnvaluessuccessesconfidenceconfirmation_token

correlation

Correlation (descriptive)

Strength and direction of the relationship between two numeric columns (r or ρ, CI, least-squares line), WITHOUT a p-value. To test whether a relationship is significant, use a hypothesis_test analysis with test "correlation". The user confirms the columns first.

輸入參數xyfilemethodx_namey_namex_columny_columnconfidenceconfirmation_token

create_visualization

Create a chart

Creates a chart for the columns the user asked to see: histogram (column), box_plot (column, optional group_column), scatter (x_column, y_column), bar (x_column categories, optional y_column mean), line (x_column, y_column), pie (x_column categories, optional y_column sum). The user confirms the chart type and columns first. Optional save_to (.svg). Charts are kept for build_report.

輸入參數binsfile必填chart必填titlecolumnsave_tox_columny_columnoverwritegroup_columnconfirmation_token

build_report

Build a report

Builds a report from results created in this session, only when the user asks for one. include = the result ids the user wants (default: the current analysis). The user confirms the sections. A hypothesis-test write-up (question, hypotheses, how it was tested, findings, verdict, base rates) appears only for completed hypothesis tests; explorations get no hypothesis section. format html (default) or markdown; save_to writes a file in the workspace.

輸入參數titleformatincludesave_tooverwriteconfirmation_token

find_relationships

What relates to a column

For open analytics questions such as "what drives revenue?", "what is related to churn time?" or "which factors matter for score?": ranks every other column (or the ones given) by how strongly it relates to a numeric target column. Pearson r for numeric columns, correlation ratio η plus the highest/lowest group for categorical ones. Descriptive (no p-values); follow up on the top findings with group_summary, correlation, charts or a hypothesis test. Works on files of any size. Use it in an explore analysis. The user confirms the target and the columns first.

輸入參數topfile必填target必填columnsconfirmation_token

job_status

Wait for a large-file job

For a tool that answered STILL RUNNING: waits up to wait_seconds for the background job, then returns its result (the same result the tool would have returned) or its progress so far.

輸入參數job_id必填wait_seconds

cancel_job

Cancel a large-file job

Stops a background job started by a tool that answered STILL RUNNING.

輸入參數job_id必填

large_file_plan

Choose how to read a large file

Only when a tool answered LARGE FILE, and only after asking the user: record their choice for that file. choice "full" reads every row (exact results, can take a long time, runs in the background); "sample" reads about 1% of the rows in blocks spread across the file (quick, approximate). save_columns keeps the columns that are read on disk so later questions on them are fast. Then call the original tool again.

輸入參數file必填choice必填save_columns

manage_cache

Saved large-file columns

Lists or deletes the columns kept on disk from large files (see large_file_plan save_columns). action "list" or "clear" (all, or one file).

輸入參數fileaction必填

版本歷史

1
  1. v1.5.1最新Oct 25, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Stats 整合