Ravindra BagaleCourses & study guides मराठी Track your progress

30. Statistics for Analysts

30.8 CHISQ.TEST in Brief: Comparing Conversion Rates and Counts

Example first. In a second test, 1,200 visitors saw page A and 96 placed an order (8.0%); 1,180 saw page B and 118 ordered (10.0%). B looks two points better. But these are counts (ordered / did not order), not amounts, so T.TEST is the wrong tool. CHISQ.TEST compares the observed counts with the counts you would expect if both pages converted equally. Here it returns 0.0881: above 0.05, so the difference is not yet proven.

CHISQ.TEST — in 30 seconds

What: CHISQ.TEST compares a table of observed counts with a table of expected counts and returns a p-value. For a yes/no outcome in two groups, the expected count of each cell is row total × column total ÷ grand total.

Why: Conversion, click-through, defect and survey questions are counts. CHISQ.TEST tells you whether the differences between groups are bigger than chance.

Tiny example: Observed in B2:C3, expected in F2:G3 (each =row total*column total/grand total). =CHISQ.TEST(B2:C3,F2:G3) = 0.0881, not significant at 5%.

First look at the data (before → after):

CHISQ.TEST: before and after tables, fictional Blinkit Maharashtra data

Expected result — Expected counts if both pages converted equally

Page Ordered Did not order
A 107.90 1092.10
B 106.10 1073.90

Expected result — Result

Measure Result
Conversion A 8.0%
Conversion B 10.0%
p-value 0.0881
Decision at 5% Not significant yet
Before table and formula as text

Before — Observed counts

Page Ordered Did not order
A 96 1104
B 118 1062

Formula / click path

F2: =SUM($B2:$C2)*SUM(B$2:B$3)/SUM($B$2:$C$3)   (fill to G3)
=CHISQ.TEST(B2:C3,F2:G3)

Do it step by step:

  1. Put the observed counts in B2:C3: rows A and B, columns Ordered and Did not order.
  2. In F2 type =SUM($B2:$C2)*SUM(B$2:B$3)/SUM($B$2:$C$3) and fill it to G3 for the expected counts.
  3. Check: the expected table has the same row and column totals as the observed table.
  4. In I2 type =CHISQ.TEST(B2:C3,F2:G3). Result 0.0881.
  5. Compare with 0.05: 0.0881 is larger, so the difference could be chance.
  6. Report: "B converted 10.0% vs 8.0% for A; not yet significant (p = 0.088). Continue the test."

What happens inside. For each cell Excel computes (observed − expected)² ÷ expected and adds them up. That total is the chi-square statistic, 2.9082 here. With (rows − 1) × (columns − 1) = 1 degree of freedom, the p-value is =CHISQ.DIST.RT(2.9082,1) = 0.0881, the same number CHISQ.TEST returns. To show the statistic itself in one cell: =SUMPRODUCT((B2:C3-F2:G3)^2/F2:G3).

Reading this result honestly. Not significant does not mean "A and B are the same". It means this sample is too small to tell. A difference of 2 percentage points on about 1,200 visitors per page is within normal chance variation. Roughly doubling the visitors with the same rates would make it significant, so the right decision is "keep testing", not "B failed".

Rules for CHISQ.TEST

  1. Use counts, never percentages or averages.
  2. Expected counts should be at least 5 in every cell; with smaller counts the p-value is unreliable.
  3. The two ranges must have the same shape. Bigger tables work too (for example 3 cities × 2 outcomes, df = 2).
  4. Excel's CHISQ.TEST does not apply the "Yates continuity correction". Python's scipy.stats.chi2_contingency applies it by default to 2 × 2 tables and gives a larger p-value; use correction=False in Python to match Excel.

Percentage points, not percent. 8.0% to 10.0% is +2.0 percentage points, which is a +25% relative increase. Say which one you mean; mixing them up is one of the most common report errors.

Every number on this page was computed with Excel's documented formulas and re-checked twice: in LibreOffice Calc 25.2 with the same formulas, and in Python with scipy and statsmodels.

Microsoft sources (checked 7 October 2026): CHISQ.TEST function.

Practice task (try it before you open the answer):

  1. A third page C had 1,150 visitors and 81 orders. What is its conversion rate?
  2. Build a 2 × 2 table for A vs C. Is the difference significant at 5%?
  3. In your own words, why is T.TEST the wrong tool for conversion?
Answer
  1. 81 ÷ 1,150 = 7.0%.
  2. Observed A: 96 / 1,104; C: 81 / 1,069. =CHISQ.TEST(observed,expected) = 0.3798. Not significant: A and C convert at similar rates.
  3. Each visitor either ordered or not (a count of yes/no), not an amount with an average and spread, so the test for counts, CHISQ.TEST, is the right one.

Ravindra Bagale's Tip

Before any conversion test, estimate how many visitors you need. A two-point difference needs thousands of visitors per page; deciding after a few hundred is reading tea leaves.

Loading practice tasks...

  1. Rate A (Easy): B2 ÷ D2.
  2. Rate B (Easy): B3 ÷ D3.
  3. Overall rate (Easy): Total bought ÷ total visitors.
  4. Expected buyers A (Medium): D2 × pooled rate.
  5. Expected non-buyers A (Medium): D2 × total did-not-buy ÷ all visitors.
  6. Expected table (spill) (Medium): Row totals D2:D3 × column totals of B2:C3 ÷ grand total.
  7. p-value (Hard): CHISQ.TEST of B2:C3 against the expected table, rounded to 4 decimals.
  8. Significant? (Hard): Is that p-value below 0.05? (TRUE or FALSE)
  9. Relative lift (Hard): Rate B ÷ rate A − 1, rounded to 2 decimals.
  10. Extra buyers per 1,000 (Hard): (Rate B − rate A) × 1000.