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

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.

> Canonical page: https://test.elysiatools.com/en/tools/contingency-table-chi-square-fisher-exact-cramer-v-tutor

- **Category:** Data Analysis

- **Keywords:** chi square, fisher exact, contingency table, cramers v, yates, g test, adjusted residual

## Overview

χ² = Σ(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.

## Inputs

- **Contingency table (rows on lines, cells comma/space/tab-separated)** (textarea): 30, 20 20, 30
- **Yates continuity correction** (select)
- **Significance level α** (number)
- **Chapman capture-recapture estimate (2×2)** (checkbox): For 2×2 mark-recapture data: N̂ = (a+1)(b+1)/(c+1) − 1.

## 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

- Enter the contingency table with rows on separate lines and values separated by commas, spaces, or tabs.
- The tool calculates expected counts, Pearson χ², degrees of freedom, p-value, and the G-test.
- For 2×2 tables, choose whether Yates continuity correction is applied automatically, always, or never.
- Review Fisher's exact result, effect sizes, adjusted residuals, Cochran guidance, and the optional Chapman estimate when applicable.

## 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.

## Frequently asked questions

### 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.

## Related tools

- [Nemenyi Critical-Difference & Friedman Rank Plotter](https://test.elysiatools.com/en/tools/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.
- [Kanban Cycle Time & Throughput Coach](https://test.elysiatools.com/en/tools/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.
- [Kurtosis Analyzer](https://test.elysiatools.com/en/tools/kurtosis-analyzer): Analyze data kurtosis to measure the "tailedness" of distribution and detect heavy-tailed or light-tailed patterns
- [Train/Test Split with Stratification](https://test.elysiatools.com/en/tools/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.
- [AI Domain Name Idea Generator](https://test.elysiatools.com/en/tools/ai-domain-name-idea-generator): Generate up to 10 creative domain names with AI and filter out already-registered ones via DNS + RDAP.
- [APNG IDAT/fdAT Chunk, Streaming Deflate Replay and Disposal Method Frame-Timing Analyzer](https://test.elysiatools.com/en/tools/apng-idat-fdat-chunk-streaming-deflate-replay-and-disposal-method-analyzer): Upload a PNG or APNG and audit the whole animation structure: PNG signature and per-chunk CRC32 checks, IHDR bit depth / color type / interlace, acTL placement and declared frame counts, every fcTL (region bounds inside the canvas, normalized delay fractions, dispose_op none/background/previous, blend_op source/over), the shared fcTL+fdAT sequence-number contract from 0, per-frame replay of the IDAT/fdAT deflate streams with exact decompressed-size verification, and disposal-semantics audit — first-frame PREVIOUS treated as BACKGROUND, zero-delay frames, loop counts, fps and compression ratios.
- [Hearing Safety Checker](https://test.elysiatools.com/en/tools/audio-hearing-safety-checker): Estimate your listening-exposure risk against NIOSH (85 dBA/8h, 3 dB exchange), OSHA (90 dBA/8h, 5 dB) and WHO-ITU H.870 weekly allowance — enter level, duration and sessions, or upload the audio you listen to for measured duration and loudness.
- [BLS Boneh–Lynn–Shacham Threshold Signature Aggregation + Distributed Key Generation Simulator](https://test.elysiatools.com/en/tools/bls-boneh-lynn-shacham-threshold-signature-aggregation-distributed-key-gen-simulator): Simulate BLS12-381 BLS signatures end to end: Joint-Feldman DKG ceremonies, t-of-n threshold signing with Lagrange interpolation, the rogue-key attack and its proof-of-possession defense, and Ethereum 2 attestation aggregation.

## Samples

- [Android Image Processing Java Samples](https://test.elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://test.elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion
- [Web Image Processing Python Samples](https://test.elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing Rust Samples](https://test.elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion
