Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHDERUPTENFRES

Elysia Tools

Navigation

Data Analysis

Contingency Table Chi-Square Fisher Exact Cramér V Tutor

· Last updated:2026-08-17

Step-by-step independence testing for 2×2 / R×C contingency tables: Pearson χ², Yates, G-test, Fisher exact, effect sizes, adjusted residuals, Cochran rule and optional Chapman estimate.

Details

What this tool helps you do

χ² = Σ(O−E)²/E; Yates for 2×2; G = 2ΣO·ln(O/E); p via regularized incomplete gamma; Fisher via lgamma hypergeometric with SciPy two-tailed convention; Cramér's V / phi / C; Haberman residuals; BH-FDR note; Chapman N̂ for 2×2 mark-recapture.

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Data Analysis
Input types
textarea, select, number, checkbox
Output type
html
Sample coverage
4
API ready
Yes

Overview

Analyze 2×2 or R×C contingency tables with Pearson chi-square, Yates correction, G-test, Fisher's exact test, effect sizes, and adjusted residuals. Enter observed counts by row to receive step-by-step independence testing and guidance for small expected frequencies.

When to use

  • Test whether two categorical variables are statistically independent.
  • Use Fisher's exact test when a 2×2 table contains small expected counts.
  • Measure association strength and identify cells that contribute most to a table-level result.

How it works

  1. 1Enter the contingency table with rows on separate lines and values separated by commas, spaces, or tabs.
  2. 2The tool calculates expected counts, Pearson χ², degrees of freedom, p-value, and the G-test.

Use cases

  • Compare outcomes across treatment groups, survey categories, or demographic segments.
  • Evaluate small-sample categorical experiments where exact testing is more appropriate than an asymptotic chi-square result.
  • Inspect adjusted residuals to locate the cells behind a significant association.

Examples

1. Test a balanced 2×2 table

Research analyst

Background

An analyst wants to test whether two binary categories are independent in a table with balanced diagonal and off-diagonal counts.

Problem

Determine statistical significance and summarize the strength and cell-level pattern of association.

How to use

Enter `30, 20` on the first line and `20, 30` on the second line. Leave Yates correction on Auto, set α to 0.05, and leave Chapman disabled.

{"table":"30, 20\n20, 30","yates":"auto","alpha":0.05,"chapman":false}

Outcome

The result is χ² = 4 with p = 0.0455, significant at α = 0.05. Yates χ² is 3.24, the G-test is 4.0271, Cramér's V is 0.2, and adjusted residuals are ±2.

FAQ

What table formats are supported?

The tool accepts 2×2 and R×C tables, with rows on separate lines and cells separated by commas, spaces, or tabs.

When is Fisher's exact test recommended?

It is recommended for 2×2 tables when expected counts are small and the chi-square approximation may be unreliable.

What does the significance level α control?

Alpha sets the threshold for judging statistical significance, with a default of 0.05.

What does Cramér's V measure?

Cramér's V summarizes the strength of association between categorical variables.

What is the Chapman estimate used for?

The optional Chapman estimate provides a 2×2 mark-recapture population estimate using N̂ = (a+1)(b+1)/(c+1) − 1.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Java

Android Image Processing Java Samples

Android Java image processing examples including reading/saving images, scaling, and format conversion

Kotlin

Android Image Processing Kotlin Samples

Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

Python

Web Image Processing Python Samples

Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion

Rust

Web Image Processing Rust Samples

Web Rust image processing examples including image read/save, scaling, and format conversion

Data Analysis

Nemenyi Critical-Difference & Friedman Rank Plotter

Friedman and Iman-Davenport tests with exact p-values, average ranks, the Nemenyi critical difference and the classic CD diagram with cliques — plus an optional Bonferroni-Dunn overlay against a control model.

Data Analysis

Kanban Cycle Time & Throughput Coach

Import created→started→resolved timestamps from CSV (Jira-style or simple) and get flow metrics the way agile coaches read them: lead/cycle time percentiles, WIP age, throughput per day/week/month, a cumulative flow diagram and a Little's Law consistency check.

Data Analysis

Kurtosis Analyzer

Analyze data kurtosis to measure the "tailedness" of distribution and detect heavy-tailed or light-tailed patterns

Data Analysis

Train/Test Split with Stratification

Class-stratified train/validation/test split or stratified k-fold for CSV/JSON datasets — seeded, reproducible, with distribution reports, leakage checks, SMOTE preview and CSV export.

  • 3For 2×2 tables, choose whether Yates continuity correction is applied automatically, always, or never.
  • 4Review Fisher's exact result, effect sizes, adjusted residuals, Cochran guidance, and the optional Chapman estimate when applicable.
  • 2. Use Fisher's exact test for small counts

    Experimental researcher

    Background

    A tea-tasting experiment produces the 2×2 table [[3,1],[1,3]], giving an expected count of 2 in every cell.

    Problem

    Assess independence without relying only on a chi-square approximation that may be unsuitable for small expected counts.

    How to use

    Enter `3, 1` on the first line and `1, 3` on the second line. Keep Yates correction on Auto, use α = 0.05, and leave Chapman disabled.

    {"table":"3, 1\n1, 3","yates":"auto","alpha":0.05,"chapman":false}

    Outcome

    The Cochran rule flags the small expected counts. Pearson χ² = 2 with p = 0.1573, while Fisher's two-tailed p = 0.4857, providing no evidence against independence.