1:"$Sreact.fragment"
2:I[10156,[],""]
3:I[6746,[],""]
4:I[76837,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","104","static/chunks/104-e8a10a728f64230d.js","3374","static/chunks/3374-cffcb39c106cc278.js","6344","static/chunks/6344-f0148458c0499269.js","2043","static/chunks/2043-cb8fa44c52a8f8b9.js","9559","static/chunks/app/(frontend)/layout-42f64306bd0733c5.js"],"default"]
5:I[32043,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","104","static/chunks/104-e8a10a728f64230d.js","3374","static/chunks/3374-cffcb39c106cc278.js","6344","static/chunks/6344-f0148458c0499269.js","2043","static/chunks/2043-cb8fa44c52a8f8b9.js","9559","static/chunks/app/(frontend)/layout-42f64306bd0733c5.js"],"default"]
6:I[67821,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","6956","static/chunks/66a6e935-aee5d3cb85c323ac.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","9858","static/chunks/9858-f1918ded0530ca69.js","609","static/chunks/609-95e41ae6a69b88b2.js","2456","static/chunks/2456-94cb89c116d69dd0.js","994","static/chunks/994-2c56ebb2d663b523.js","6472","static/chunks/6472-2ee935ddbae5821a.js","3349","static/chunks/app/(frontend)/calculators/%5Bcategory%5D/%5Bslug%5D/page-70bb6ad84377852d.js"],""]
1a:I[14600,[],"default",1]
:HL["/_next/static/media/849c382dee069680-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
:HL["/_next/static/media/e4af272ccee01ff0-s.p.woff2","font",{"crossOrigin":"","type":"font/woff2"}]
:HL["/_next/static/css/60d9b09af57ce3c6.css","style"]
:HL["/_next/static/css/9c59f2e83b7f05d1.css","style"]
0:{"P":null,"c":["","calculators","statistics","chi-square-calculator.rsc"],"q":"","i":false,"f":[[["",{"children":["(frontend)",{"children":["calculators",{"children":[["category","statistics","d",null],{"children":[["slug","chi-square-calculator","d",null],{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",16]}],[["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[[["$","title",null,{"children":"404: This page could not be found."}],["$","div",null,{"style":{"fontFamily":"system-ui,\"Segoe UI\",Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\"","height":"100vh","textAlign":"center","display":"flex","flexDirection":"column","alignItems":"center","justifyContent":"center"},"children":["$","div",null,{"children":[["$","style",null,{"dangerouslySetInnerHTML":{"__html":"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}"}}],["$","h1",null,{"className":"next-error-h1","style":{"display":"inline-block","margin":"0 20px 0 0","padding":"0 23px 0 0","fontSize":24,"fontWeight":500,"verticalAlign":"top","lineHeight":"49px"},"children":404}],["$","div",null,{"style":{"display":"inline-block"},"children":["$","h2",null,{"style":{"fontSize":14,"fontWeight":400,"lineHeight":"49px","margin":0},"children":"This page could not be found."}]}]]}]}]],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":[["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/60d9b09af57ce3c6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/9c59f2e83b7f05d1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","html",null,{"lang":"en","data-scroll-behavior":"smooth","children":[["$","body",null,{"className":"bg-white antialiased dark:bg-mist-950 __variable_f367f3 __variable_008b00","suppressHydrationWarning":true,"children":[["$","div",null,{"className":"flex min-h-screen flex-col justify-between","children":[["$","$L4",null,{}],["$","$L5",null,{"children":["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","main",null,{"className":"isolate overflow-clip","children":["$","section",null,{"className":"py-16","children":["$","div",null,{"className":"mx-auto w-full max-w-2xl px-6 md:max-w-3xl lg:max-w-7xl lg:px-10 flex flex-col items-center gap-6","children":[["$","h1",null,{"className":"font-display text-5xl/12 tracking-tight text-balance sm:text-[5rem]/20 text-mist-950 dark:text-white max-w-5xl text-center","children":"Page not found"}],["$","div",null,{"className":"text-lg/8 text-mist-700 dark:text-mist-400 max-w-xl text-center","children":["$","p",null,{"children":"Sorry, the page you were looking for could not be found."}]}],["$","$L6",null,{"href":"/","className":"inline-flex items-center gap-2 text-sm/7 font-medium text-mist-950 dark:text-white","children":["Go back home ",["$","svg",null,{"width":13,"height":7,"viewBox":"0 0 13 7","fill":"none","strokeWidth":1,"role":"image","className":"inline-block","children":[["$","path",null,{"d":"M12.5049 3.49512L0.504883 3.49512","stroke":"currentColor","strokeLinecap":"round","strokeLinejoin":"round"}],["$","path",null,{"d":"M9.5 6.5L12.5 3.5L9.5 0.5","stroke":"currentColor","strokeLinecap":"round","strokeLinejoin":"round"}]]}]]}]]}]}]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]}],["$","footer",null,{"children":["$","div",null,{"className":"bg-mist-950/2.5 py-16 text-mist-950 dark:bg-white/5 dark:text-white","children":["$","div",null,{"className":"mx-auto w-full max-w-2xl px-6 md:max-w-3xl lg:max-w-7xl lg:px-10 flex flex-col gap-12","children":[["$","div",null,{"className":"flex flex-col items-start justify-between gap-6 sm:flex-row","children":[["$","div",null,{"className":"flex flex-col items-start gap-2","children":[["$","$L6",null,{"href":"/","children":["$","svg",null,{"className":"h-5 w-auto","xmlns":"http://www.w3.org/2000/svg","width":742,"height":68,"viewBox":"0 0 742 68","fill":"none","children":[["$","path",null,{"fill":"#161616","d":"M129.5 41.4c0-13 10.5-23.4 23.4-23.4 12.9 0 23.3 10.4 23.3 23.4v22.7h-11.8v-4.8c-1.4 3-6.3 5.5-11.5 5.5-12.9 0-23.4-10.4-23.4-23.4Zm35 0c0-6.7-4.8-11.9-11.5-11.9s-11.7 5.2-11.7 11.9 5 11.9 11.7 11.9c6.7 0 11.5-5.2 11.5-11.9ZM181.2 41.4c0-13 10.4-23.4 23.4-23.4 13 0 19.8 7.2 22.5 16.9h-12.5c-2-3.3-5.5-5.4-9.9-5.4-6.7 0-11.7 5.2-11.7 11.9s5 11.9 11.7 11.9c6.7 0 7.4-2 9.5-5H227c-2.9 9.6-11.8 16.5-22.4 16.5-10.6 0-23.4-10.4-23.4-23.4ZM248.3 30.3v12.4c0 7.3 2.4 10.2 8.2 10.2v11.5c-11.6 0-19.9-6.4-19.9-21.7V30.3h-6.7V18.8h6.6V1.1h11.8v17.7h8.3v11.5H248.3ZM274 18.7h-11.8V64H274V18.7ZM277.8 18.7h12.3l10.3 29.8 10.4-29.8h12.3L306.2 64h-11.8l-16.8-45.3h.2ZM345.8 18c11.2 0 23.2 8 23.7 22.4 0 2.1 0 4.1-.4 5.6h-33.6c1.1 4.5 5.1 7.3 10.3 7.3 5.2 0 6.3-1.5 7.8-2.6h14c-3.6 8.3-11.9 14.1-21.5 14.1s-23.4-10.4-23.4-23.3 10-23.5 23-23.5h.1Zm11 18.6c-1.8-4.3-6.2-7.1-10.7-7.1-4.5 0-8.9 2.8-10.7 7.1h21.4Z"}],"$L7","$L8","$L9","$La","$Lb","$Lc"]}]}],"$Ld"]}],"$Le"]}],"$Lf","$L10"]}]}]}]]}],"$L11","$L12"]}],"$L13"]}]]}],{"children":["$L14",{"children":["$L15",{"children":["$L16",{"children":["$L17",{},null,false,null]},null,false,"$@18"]},null,false,"$@18"]},null,false,"$@18"]},null,false,null]},null,false,"$@18"],"$L19",false]],"m":"$undefined","G":["$1a",[]],"S":true,"h":null,"b":"qKrY2dUw1szY2xJfsSyIe"}
1c:I[14245,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","104","static/chunks/104-e8a10a728f64230d.js","3374","static/chunks/3374-cffcb39c106cc278.js","6344","static/chunks/6344-f0148458c0499269.js","2043","static/chunks/2043-cb8fa44c52a8f8b9.js","9559","static/chunks/app/(frontend)/layout-42f64306bd0733c5.js"],"Button"]
22:I[46726,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","104","static/chunks/104-e8a10a728f64230d.js","3374","static/chunks/3374-cffcb39c106cc278.js","6344","static/chunks/6344-f0148458c0499269.js","2043","static/chunks/2043-cb8fa44c52a8f8b9.js","9559","static/chunks/app/(frontend)/layout-42f64306bd0733c5.js"],"default"]
23:I[19592,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","6956","static/chunks/66a6e935-aee5d3cb85c323ac.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","9858","static/chunks/9858-f1918ded0530ca69.js","609","static/chunks/609-95e41ae6a69b88b2.js","6344","static/chunks/6344-f0148458c0499269.js","2456","static/chunks/2456-94cb89c116d69dd0.js","994","static/chunks/994-2c56ebb2d663b523.js","6472","static/chunks/6472-2ee935ddbae5821a.js","2018","static/chunks/app/(frontend)/%5B...slug%5D/page-dcf70230194846a1.js"],""]
24:I[79066,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","6956","static/chunks/66a6e935-aee5d3cb85c323ac.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","9858","static/chunks/9858-f1918ded0530ca69.js","609","static/chunks/609-95e41ae6a69b88b2.js","6344","static/chunks/6344-f0148458c0499269.js","2456","static/chunks/2456-94cb89c116d69dd0.js","994","static/chunks/994-2c56ebb2d663b523.js","6472","static/chunks/6472-2ee935ddbae5821a.js","2018","static/chunks/app/(frontend)/%5B...slug%5D/page-dcf70230194846a1.js"],"GoogleTagManager"]
26:I[85305,[],"OutletBoundary"]
27:"$Sreact.suspense"
2a:I[85305,[],"ViewportBoundary"]
2c:I[85305,[],"MetadataBoundary"]
1b:T5a9,M373.9 41.4c0-13 10.5-23.4 23.4-23.4 12.9 0 16.9 5.3 20.6 12.8h-6.3c-3.2-4.4-8.2-7.3-14.2-7.3-10 0-17.7 7.9-17.7 17.9 0 10 7.9 17.9 17.7 17.9 9.8 0 11.1-3 14.2-7.3h6.4c-3.7 7.6-11.6 12.9-20.8 12.9-9.2 0-23.4-10.4-23.4-23.4l.1-.1ZM422.7 41.4c0-13 10.5-23.4 23.4-23.4 12.9 0 23.3 10.4 23.3 23.4v22.7h-5.8v-9.7c-3 6-9.8 10.4-17.5 10.4-12.9 0-23.4-10.4-23.4-23.4Zm41 0c0-10-7.5-17.9-17.5-17.9s-17.7 7.9-17.7 17.9c0 10 7.9 17.9 17.7 17.9 9.8 0 17.5-7.9 17.5-17.9ZM475.7 64.1V.7h5.8v63.4h-5.8ZM486.5 41.4c0-13 10.5-23.4 23.4-23.4 12.9 0 16.9 5.3 20.6 12.8h-6.3c-3.2-4.4-8.2-7.3-14.2-7.3-10 0-17.7 7.9-17.7 17.9 0 10 7.9 17.9 17.7 17.9 9.8 0 11.1-3 14.2-7.3h6.4c-3.7 7.6-11.6 12.9-20.8 12.9-9.2 0-23.4-10.4-23.4-23.4l.1-.1ZM575.6 18.7v23.8c0 15.2-8.3 22.2-19.9 22.2-11.6 0-19.9-7-19.9-22.2V18.7h5.8v23.8c0 11.3 5.7 16.7 14.1 16.7 8.4 0 14.1-5.3 14.1-16.7V18.7h5.8ZM581.9 64.1V.7h5.8v63.4h-5.8ZM592.7 41.4c0-13 10.5-23.4 23.4-23.4 12.9 0 23.3 10.4 23.3 23.4v22.7h-5.8v-9.7c-3 6-9.8 10.4-17.5 10.4-12.9 0-23.4-10.4-23.4-23.4Zm41 0c0-10-7.5-17.9-17.5-17.9s-17.7 7.9-17.7 17.9c0 10 7.9 17.9 17.7 17.9 9.8 0 17.5-7.9 17.5-17.9ZM652.5 24.3v18.2c0 10.1 4.4 15.1 11.4 16.2v5.6c-10.2-1-17.2-7.8-17.2-21.7V24.2h-6.8v-5.5h6.8V4.4h5.8v14.3h11.4v5.5h-11.4v.1ZM712 41.4c0 13-10.4 23.4-23.4 23.4-13 0-23.4-10.4-23.4-23.4 0-13 10.5-23.4 23.4-23.4 12.9 0 23.4 10.4 23.4 23.4Zm-41 0c0 10 7.9 17.9 17.7 17.9 9.8 0 17.5-7.9 17.5-17.9 0-10-7.5-17.9-17.5-17.9S671 31.4 671 41.4Z7:["$","path",null,{"fill":"#262626","d":"$1b"}]
8:["$","path",null,{"fill":"#09C269","d":"M274 1.1h-11.8v11.8H274V1.1Z"}]
9:["$","path",null,{"fill":"#161616","d":"M248.2 1.1v17.6L236.4 1.1h11.8Z"}]
a:["$","path",null,{"fill":"#09C269","d":"M65.2 47.1c-4.1-5.4-2.8-11.8-4.4-18-1.1-4.2-3.1-8.2-5.8-11.6-.7-.9-1.5-1.8-2.3-2.6-5.6-5.6-13.3-9-21.8-9C13.1 5.9-1.1 21 .2 39c1.3 18 13 26.9 27.9 28.2 9.6.8 18.4-2.8 24.6-9l-.4-.4c-3-3.8-5.1-8-6.3-12.6-3.3 5.7-9.7 9.4-16.8 8.7-8.1-.8-14.7-7.3-15.6-15.3-.9-8 7-19.4 17.3-19.4S43 22.7 46 27.9c2.6 4.6 2 9.6 3 14.6.9 4.8 2.9 9.3 6 13.2 5.6 7.1 14.3 11.6 24 11.6h30.8V55.2H82.1c-6.3 0-12.4-2.7-16.4-7.5-.2-.2-.4-.5-.6-.7l.1.1Z"}]
b:["$","path",null,{"fill":"#09C269","d":"M64 27.9c3-5.2 8.6-8.8 15.1-8.8 9.6 0 17.4 7.8 17.4 17.4h13.4c0-17-13.8-30.8-30.8-30.8s-16.2 3.5-21.8 9.1l.4.5c3 3.8 5.1 8 6.3 12.6Z"}]
c:["$","path",null,{"fill":"#262626","d":"M717.3 40.6c0-15.5 7.9-22.6 19.1-22.6h1.4v5.7h-1.4c-7.8 0-13.1 5.4-13.1 16.9v24.2h-6V40.6Z"}]
d:["$","p",null,{"className":"text-sm text-mist-600 dark:text-mist-400","children":"Interactive calculators that convert visitors into leads."}]
e:["$","$L1c",null,{"el":"a","href":"https://app.activecalculator.com/auth/signup","appearance":"default","label":"Get started free","data-umami-event":"click-cta-footer","data-umami-event-location":"footer"}]
f:["$","nav",null,{"className":"grid grid-cols-2 gap-6 text-sm/7 md:grid-cols-4","children":[["$","div","Use Cases",{"children":[["$","h3",null,{"children":"Use Cases"}],["$","ul",null,{"role":"list","className":"mt-2 flex flex-col gap-2","children":[["$","li","E-Commerce & Retail",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/templates/category/e-commerce","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"E-Commerce & Retail"}]}],["$","li","Finance",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/templates/category/finance","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Finance"}]}],["$","li","Unit Conversion",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/templates/category/unit-conversion","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Unit Conversion"}]}],["$","li","Price Quote",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/templates/category/price-quote","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Price Quote"}]}]]}],[["$","div","Industries",{"className":"mt-6","children":[["$","h3",null,{"children":"Industries"}],["$","ul",null,{"role":"list","className":"mt-2 flex flex-col gap-2","children":[["$","li","Screen Printing",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/industries/screen-printing","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Screen Printing"}]}],["$","li","Mortgage Brokers",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/industries/mortgage-brokers","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Mortgage Brokers"}]}],["$","li","Solar Energy",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/industries/solar-energy","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Solar Energy"}]}]]}]]}]]]}],["$","div","Templates",{"children":[["$","h3",null,{"children":"Templates"}],["$","ul",null,{"role":"list","className":"mt-2 flex flex-col gap-2","children":[["$","li","Ad Spend ROI Calculator",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/templates/ad-spend-roi-calculator","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Ad Spend ROI Calculator"}]}],["$","li","Amortization Payment Calculator Canada",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/templates/amortization-payment-calculator-canada","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Amortization Payment Calculator Canada"}]}],["$","li","Amortization Calculator",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/templates/amortization-calculator","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Amortization Calculator"}]}],["$","li","Balloon Loan Calculator Lead Gen",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/templates/balloon-loan-calculator-lead-gen","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Balloon Loan Calculator Lead Gen"}]}]]}],"$undefined"]}],["$","div","Product",{"children":[["$","h3",null,{"children":"Product"}],["$","ul",null,{"role":"list","className":"mt-2 flex flex-col gap-2","children":[["$","li","Templates",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/templates","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Templates"}]}],["$","li","Calculators",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/calculators","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Calculators"}]}],["$","li","Pricing",{"className":"text-mist-700 dark:text-mist-400","children":"$L1d"}],"$L1e","$L1f","$L20"]}],"$undefined"]}],"$L21"]}]
10:["$","div",null,{"className":"flex flex-col items-start justify-between gap-4 border-t border-mist-950/10 pt-8 text-sm/7 sm:flex-row sm:items-center dark:border-white/10","children":[["$","div",null,{"className":"flex flex-wrap items-center gap-x-4 gap-y-1 text-mist-600 dark:text-mist-500","children":[["$","span",null,{"children":["© ",2026," ActiveCalculator."]}],[["$","$L6","Privacy Policy",{"href":"/privacy","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Privacy Policy"}],["$","$L6","Terms of Service",{"href":"/terms","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Terms of Service"}]]]}],["$","div",null,{"className":"flex items-center gap-4","children":[["$","a","X",{"href":"https://twitter.com/activecalculator","target":"_blank","rel":"noopener noreferrer","aria-label":"X","data-umami-event":"click-social","data-umami-event-location":"footer","data-umami-event-target":"x","className":"text-mist-600 transition-colors *:size-5 hover:text-mist-950 dark:text-mist-500 dark:hover:text-white","children":["$","svg",null,{"width":24,"height":24,"viewBox":"0 0 24 24","fill":"currentColor","role":"image","className":"inline-block","children":["$","path",null,{"d":"M13.6833 10.6218L20.2401 3H18.6864L12.9931 9.61788L8.44583 3H3.20117L10.0775 13.0074L3.20117 21H4.75501L10.7673 14.0113L15.5695 21H20.8141L13.6833 10.6218ZM11.5551 13.0956L10.8584 12.0991L5.31488 4.16971H7.7015L12.1752 10.5689L12.8719 11.5655L18.6871 19.8835H16.3005L11.5551 13.0956Z"}]}]}],["$","a","LinkedIn",{"href":"https://linkedin.com/company/activecalculator","target":"_blank","rel":"noopener noreferrer","aria-label":"LinkedIn","data-umami-event":"click-social","data-umami-event-location":"footer","data-umami-event-target":"linkedin","className":"text-mist-600 transition-colors *:size-5 hover:text-mist-950 dark:text-mist-500 dark:hover:text-white","children":["$","svg",null,{"width":24,"height":24,"viewBox":"0 0 24 24","fill":"currentColor","role":"image","className":"inline-block","children":["$","path",null,{"d":"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"}]}]}],["$","a","YouTube",{"href":"https://youtube.com/@activecalculator","target":"_blank","rel":"noopener noreferrer","aria-label":"YouTube","data-umami-event":"click-social","data-umami-event-location":"footer","data-umami-event-target":"youtube","className":"text-mist-600 transition-colors *:size-5 hover:text-mist-950 dark:text-mist-500 dark:hover:text-white","children":["$","svg",null,{"width":24,"height":24,"viewBox":"0 0 24 24","fill":"currentColor","role":"image","className":"inline-block","children":["$","path",null,{"fillRule":"evenodd","d":"M19.812 5.418c.861.23 1.538.907 1.768 1.768C21.998 8.746 22 12 22 12s0 3.255-.418 4.814a2.504 2.504 0 0 1-1.768 1.768c-1.56.419-7.814.419-7.814.419s-6.255 0-7.814-.419a2.505 2.505 0 0 1-1.768-1.768C2 15.255 2 12 2 12s0-3.255.417-4.814a2.507 2.507 0 0 1 1.768-1.768C5.744 5 11.998 5 11.998 5s6.255 0 7.814.418ZM15.194 12 10 15V9l5.194 3Z","clipRule":"evenodd"}]}]}]]}]]}]
11:["$","$L22",null,{}]
12:["$","$L23",null,{"defer":true,"src":"https://analytics.selvo.co/script.js","data-website-id":"20975f57-f91a-4d7f-a72e-bc1f75a733ed","strategy":"afterInteractive"}]
13:["$","$L24",null,{"gtmId":"GTM-N55KJQ5L"}]
14:["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}]
15:["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}]
16:["$","$1","c",{"children":[null,["$","$L2",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L3",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}]
17:["$","$1","c",{"children":["$L25",null,["$","$L26",null,{"children":["$","$27",null,{"name":"Next.MetadataOutlet","children":"$@28"}]}]]}]
29:[]
18:"$W29"
19:["$","$1","h",{"children":[null,["$","$L2a",null,{"children":"$L2b"}],["$","div",null,{"hidden":true,"children":["$","$L2c",null,{"children":["$","$27",null,{"name":"Next.Metadata","children":"$L2d"}]}]}],["$","meta",null,{"name":"next-size-adjust","content":""}]]}]
1d:["$","$L6",null,{"href":"/pricing","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Pricing"}]
1e:["$","li","Help",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/help","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Help"}]}]
1f:["$","li","API",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"https://docs.activecalculator.com/api-reference","target":"_blank","rel":"noopener noreferrer","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"API"}]}]
20:["$","li","Embed SDK JS",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"https://docs.activecalculator.com/sdks/embed-sdk/overview","target":"_blank","rel":"noopener noreferrer","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Embed SDK JS"}]}]
21:["$","div","Resources",{"children":[["$","h3",null,{"children":"Resources"}],["$","ul",null,{"role":"list","className":"mt-2 flex flex-col gap-2","children":[["$","li","Terms",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/terms","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Terms"}]}],["$","li","Privacy",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/privacy","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Privacy"}]}],["$","li","Book a Call",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/demo","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Book a Call"}]}],["$","li","Contact",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"/contact","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Contact"}]}],["$","li","Selvo",{"className":"text-mist-700 dark:text-mist-400","children":["$","$L6",null,{"href":"https://selvo.co","target":"_blank","rel":"noopener noreferrer","className":"transition-colors hover:text-mist-950 dark:hover:text-white","children":"Selvo"}]}]]}],"$undefined"]}]
2b:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","meta","2",{"name":"theme-color","content":"#fff"}]]
2e:Tfcb,{"@type":"FAQPage","mainEntity":[{"name":"Does this calculator give me a p-value?","@type":"Question","acceptedAnswer":{"@type":"Answer","text":"No — it returns a single chi-square term. A p-value requires the full test statistic (summed across all categories) and your degrees of freedom, then a chi-square distribution lookup."}},{"name":"What are degrees of freedom?","@type":"Question","acceptedAnswer":{"@type":"Answer","text":"For a goodness-of-fit test, it's the number of categories minus 1. For a contingency table (test of independence), it's (rows − 1) × (columns − 1). Degrees of freedom tell the chi-square distribution how spread out the statistic should be by chance alone."}},{"name":"Why divide by the expected value?","@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Dividing by E keeps contributions comparable across categories of different sizes. A gap of 10 means one thing when you expected 10 and something very different when you expected 1,000. Scaling by E reflects that."}},{"name":"Why is the difference squared?","@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Squaring makes every term positive — so overestimates and underestimates both count as deviations — and it gives larger gaps disproportionately more weight, which matches how \"surprising\" data actually feels."}},{"name":"Can chi-square be negative?","@type":"Question","acceptedAnswer":{"@type":"Answer","text":"No. The numerator is squared and the denominator is a positive count, so every term is zero or positive."}},{"name":"What happens when the expected value is zero?","@type":"Question","acceptedAnswer":{"@type":"Answer","text":"The formula breaks — you can't divide by zero. Chi-square tests require reasonably large expected counts: a common rule of thumb is that at least 80% of expected counts should be 5 or more, and none should be below 1. If yours are too small, combine adjacent categories or switch to Fisher's exact test."}},{"name":"Do observed and expected both have to be whole numbers?","@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Observed counts are whole numbers because they're actual tallies. Expected values usually aren't — 65 die rolls means 10.833... expected per face. That's fine; the formula handles non-integer expected values without any adjustment."}},{"name":"What's the difference between a goodness-of-fit test and a test of independence?","@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Goodness-of-fit compares one observed distribution to an expected distribution (\"is this die fair?\"). Test of independence compares observed counts in a two-way table to what you'd expect if two variables were unrelated (\"does treatment type depend on age group?\"). Both use the same per-cell formula — only the degrees-of-freedom calculation differs."}},{"name":"How big does chi-square need to be for significance?","@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Depends on your degrees of freedom and significance level. With df = 1 at α = 0.05, the critical value is 3.84. With df = 4 it's 9.49; with df = 10 it's 18.31. See the critical-values table above for common values."}},{"name":"Why does my textbook use χ² for the statistic and the distribution?","@type":"Question","acceptedAnswer":{"@type":"Answer","text":"Because they're the same thing. The test statistic is called chi-square because, under the null hypothesis, its sampling distribution follows the chi-square distribution with the appropriate degrees of freedom. That's what makes the critical-value lookup work."}},{"name":"What if my observed count is much larger than expected — is there a \"too significant\"?","@type":"Question","acceptedAnswer":{"@type":"Answer","text":"There isn't a ceiling, but extremely large single-term values (say, above 20–30 when others are tiny) often point to a data-entry error, a miscalculated expected value, or a category that shouldn't have been included. Worth double-checking before writing up results."}}]}25:[["$","script",null,{"dangerouslySetInnerHTML":{"__html":"{\"@context\":\"https://schema.org\",\"@type\":\"BreadcrumbList\",\"itemListElement\":[{\"name\":\"Home\",\"@type\":\"ListItem\",\"item\":\"https://activecalculator.com\",\"position\":1},{\"name\":\"Calculators\",\"@type\":\"ListItem\",\"item\":\"https://activecalculator.com/calculators\",\"position\":2},{\"name\":\"Statistics & Data Analysis\",\"@type\":\"ListItem\",\"item\":\"https://activecalculator.com/calculators/statistics\",\"position\":3},{\"name\":\"Chi-Square Calculator\",\"@type\":\"ListItem\",\"item\":\"https://activecalculator.com/calculators/statistics/chi-square-calculator\",\"position\":4}]}"},"type":"application/ld+json"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"{\"@context\":\"https://schema.org\",\"@type\":\"Article\",\"name\":\"Chi-Square Calculator\",\"dateModified\":\"2026-04-14T06:32:23.827Z\",\"description\":\"Quickly calculate the chi-square contribution for any observed and expected value. Clear formula, worked examples, and critical values for interpreting results.\",\"author\":{\"name\":\"ActiveCalculator\",\"@type\":\"Organization\"},\"datePublished\":\"2026-04-14T06:24:42.396Z\",\"headline\":\"Chi-Square Calculator\",\"image\":\"https://activecalculator.com/api/og/calculator?title=Chi-Square%20Calculator\",\"mainEntityOfPage\":{\"@id\":\"https://activecalculator.com/calculators/statistics/chi-square-calculator\",\"@type\":\"WebPage\"},\"publisher\":{\"name\":\"ActiveCalculator\",\"@type\":\"Organization\",\"logo\":{\"@type\":\"ImageObject\",\"height\":112,\"url\":\"https://activecalculator.com/logo.png\",\"width\":112}},\"keywords\":\"Chi-Square Calculator, tool, Statistics & Data Analysis, Statistics & Data Analysis calculator\",\"url\":\"https://activecalculator.com/calculators/statistics/chi-square-calculator\"}"},"type":"application/ld+json"}],["$","script",null,{"dangerouslySetInnerHTML":{"__html":"$2e"},"type":"application/ld+json"}],"$L2f"]
30:I[65569,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","6956","static/chunks/66a6e935-aee5d3cb85c323ac.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","9858","static/chunks/9858-f1918ded0530ca69.js","609","static/chunks/609-95e41ae6a69b88b2.js","2456","static/chunks/2456-94cb89c116d69dd0.js","994","static/chunks/994-2c56ebb2d663b523.js","6472","static/chunks/6472-2ee935ddbae5821a.js","3349","static/chunks/app/(frontend)/calculators/%5Bcategory%5D/%5Bslug%5D/page-70bb6ad84377852d.js"],"JumplistProvider"]
31:I[52456,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","6956","static/chunks/66a6e935-aee5d3cb85c323ac.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","9858","static/chunks/9858-f1918ded0530ca69.js","609","static/chunks/609-95e41ae6a69b88b2.js","2456","static/chunks/2456-94cb89c116d69dd0.js","994","static/chunks/994-2c56ebb2d663b523.js","6472","static/chunks/6472-2ee935ddbae5821a.js","3349","static/chunks/app/(frontend)/calculators/%5Bcategory%5D/%5Bslug%5D/page-70bb6ad84377852d.js"],"RichText"]
32:I[52924,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","6956","static/chunks/66a6e935-aee5d3cb85c323ac.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","9858","static/chunks/9858-f1918ded0530ca69.js","609","static/chunks/609-95e41ae6a69b88b2.js","2456","static/chunks/2456-94cb89c116d69dd0.js","994","static/chunks/994-2c56ebb2d663b523.js","6472","static/chunks/6472-2ee935ddbae5821a.js","3349","static/chunks/app/(frontend)/calculators/%5Bcategory%5D/%5Bslug%5D/page-70bb6ad84377852d.js"],"ShareButtons"]
33:I[56472,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","6956","static/chunks/66a6e935-aee5d3cb85c323ac.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","9858","static/chunks/9858-f1918ded0530ca69.js","609","static/chunks/609-95e41ae6a69b88b2.js","2456","static/chunks/2456-94cb89c116d69dd0.js","994","static/chunks/994-2c56ebb2d663b523.js","6472","static/chunks/6472-2ee935ddbae5821a.js","3349","static/chunks/app/(frontend)/calculators/%5Bcategory%5D/%5Bslug%5D/page-70bb6ad84377852d.js"],"RenderBlocks"]
2f:["$","div",null,{"className":"min-h-screen bg-white","children":["$","$L30",null,{"children":["$","div",null,{"className":"py-10 lg:py-12 container","children":[["$","div",null,{"className":"mb-6","children":["$","div",null,{"className":"flex items-center flex-wrap gap-1 text-mist-600","children":[["$","$L6",null,{"className":"typo-small font-medium hover:text-blue-600 transition-colors duration-200","href":"/calculators","children":"Calculators"}],["$","svg",null,{"className":"text-mist-600","fill":"none","height":"16","stroke":"currentColor","strokeLinecap":"round","strokeLinejoin":"round","strokeWidth":"2","viewBox":"0 0 24 24","width":"16","xmlns":"http://www.w3.org/2000/svg","children":["$","polyline",null,{"points":"9 18 15 12 9 6"}]}],["$","$L6",null,{"className":"typo-small font-medium hover:text-blue-600 transition-colors duration-200","href":"/calculators/statistics","children":"Statistics & Data Analysis"}]]}]}],["$","div",null,{"className":"mb-8","children":[["$","h1",null,{"className":"typo-title mb-4 text-mist-950","children":"Chi-Square Calculator"}],["$","div",null,{"className":"text-mist-600 typo-normal max-w-2xl mb-4","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Calculate the chi-square contribution for any observed and expected value using χ² = (O − E)² / E. Includes worked examples, critical-value table, and guidance on combining terms into a full test statistic.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}],["$","div",null,{"className":"flex mt-4","children":["$","$L32",null,{"variant":"full","title":"Chi-Square Calculator"}]}]]}],false,["$","div",null,{"className":"grid grid-cols-1 lg:grid-cols-6 gap-8","children":[["$","div",null,{"className":"lg:col-span-4","children":[["$","div",null,{"className":"bg-white rounded-lg shadow-sm p-8 mb-6","children":["$","$L33",null,{"blocks":[{"blockType":"blogContent","blogContentFields":{"settings":{"background":"default","paddingTop":"medium","paddingBottom":"medium"},"richText":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"This calculator returns the chi-square contribution for a single observed and expected value using Karl Pearson's original formula: χ² = (observed − expected)² / expected. Enter two numbers, get the one piece of the chi-square statistic that corresponds to that category.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Most chi-square tools on the internet ask you to dump in a whole grid of numbers and hand back a single summary. That's fine when you already know what you're doing. But when you're learning the test, debugging a homework answer, or trying to figure out ","type":"text","version":1},{"detail":0,"format":2,"mode":"normal","style":"","text":"which","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" category is pulling the overall result — what you actually want is to see the formula work on one row at a time. That's what this calculator does.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Below you'll find the concept in plain English, worked examples from real statistics problems, a critical-values table for interpreting the summed total, and answers to the questions students and researchers ask most often.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"What Chi-Square Actually Measures","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h2"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"A chi-square term answers one question: ","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"how surprising is this observation, given what we expected?","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Three pieces do the work:","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Observed (O)","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" — the count you actually recorded","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Expected (E)","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" — the count predicted by your null hypothesis, theory, or reference distribution","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":2},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"(O − E)² / E","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" — squares the gap (so overestimates and underestimates both count), then scales it by what was expected (so being off by 10 matters more when you expected 5 than when you expected 500)","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":3}],"direction":null,"format":"","indent":0,"type":"list","version":1,"listType":"bullet","start":1,"tag":"ul"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"The bigger the result, the further that single observation sits from what the model predicted, in standardized terms. Close to zero means the category matched expectation. A large value means that category is doing heavy lifting in your overall test statistic.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"This single-term view is more than a teaching device. When a full chi-square test comes back significant, researchers routinely look at the per-category contributions to find ","type":"text","version":1},{"detail":0,"format":2,"mode":"normal","style":"","text":"where","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" the deviation lives. That's the second job this calculator is good for.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"How to Use This Calculator","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h2"},{"children":[{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Enter your observed value.","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" The count you actually recorded — rolls that landed on six, survey respondents who picked option A, plants with purple flowers.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Enter your expected value.","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" The count predicted by your null hypothesis or model. For 60 rolls of a fair die, you'd expect 10 per face.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":2},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Read the χ² value.","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" The calculator returns (O − E)² / E — the chi-square contribution for that single category.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":3}],"direction":null,"format":"","indent":0,"type":"list","version":1,"listType":"number","start":1,"tag":"ol"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"For a full test across multiple categories, run the calculator once per category and add the results. The total is your chi-square test statistic, which you compare against the critical value for your degrees of freedom (see the table further down).","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Worked Examples","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h2"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Example 1: Is the Die Fair?","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h3"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"You roll a die 60 times and land 15 sixes. Under a fair-die hypothesis, you'd expect 10.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Observed = 15, Expected = 10","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"(15 − 10)² / 10 = 25 / 10 = ","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"2.5","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":2}],"direction":null,"format":"","indent":0,"type":"list","version":1,"listType":"bullet","start":1,"tag":"ul"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"That's the chi-square contribution for \"sixes.\" Repeat for the other five faces and sum the six values — if the total exceeds 11.07 (the critical value at df = 5, α = 0.05), you have evidence the die isn't fair.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Example 2: Survey Shift","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h3"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"You expected 50 respondents to pick \"very satisfied\" based on last year's benchmark. This year, 32 did.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Observed = 32, Expected = 50","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"(32 − 50)² / 50 = 324 / 50 = ","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"6.48","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":2}],"direction":null,"format":"","indent":0,"type":"list","version":1,"listType":"bullet","start":1,"tag":"ul"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"A contribution of 6.48 is substantial. On its own it's not a test result — you'd still need the other satisfaction categories and a degrees-of-freedom lookup — but it tells you immediately that \"very satisfied\" is where the pattern shifted hardest.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Example 3: Mendelian Genetics","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h3"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"In a monohybrid cross, you expect 75 purple-flowered plants out of 100. You count 78.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Observed = 78, Expected = 75","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"(78 − 75)² / 75 = 9 / 75 = ","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"0.12","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":2}],"direction":null,"format":"","indent":0,"type":"list","version":1,"listType":"bullet","start":1,"tag":"ul"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Tiny contribution — the observation sits right on top of the Mendelian prediction. Across all categories, totals this small are the hallmark of a theory your data can't distinguish from.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Example 4: Quality-Control Inspection","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h3"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"A factory expects 2% defective units in a batch of 500 — that's 10 expected defectives. The inspector finds 22.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Observed = 22, Expected = 10","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"(22 − 10)² / 10 = 144 / 10 = ","type":"text","version":1},{"detail":0,"format":1,"mode":"normal","style":"","text":"14.4","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":2}],"direction":null,"format":"","indent":0,"type":"list","version":1,"listType":"bullet","start":1,"tag":"ul"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"A single-term value of 14.4 is a loud signal. Even before combining with the \"non-defective\" category, this tells you the batch isn't behaving like the historical baseline.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Combining Terms Into a Full Chi-Square Statistic","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h2"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"A full chi-square test sums one term per category:","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"χ² = Σ [(Oᵢ − Eᵢ)² / Eᵢ]","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"The Σ just means \"add them all up.\" For four categories you'd:","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Calculate (O − E)² / E for category 1","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Do the same for categories 2, 3, and 4","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":2},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Add the four results","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":3}],"direction":null,"format":"","indent":0,"type":"list","version":1,"listType":"number","start":1,"tag":"ol"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"That sum is your test statistic. Compare it to the critical value for your degrees of freedom (number of categories − 1 for goodness-of-fit; (rows − 1) × (columns − 1) for a contingency table).","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Critical Values at α = 0.05","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h3"},{"type":"table","children":[{"type":"tablerow","children":[{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"Degrees of Freedom","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":1,"rowSpan":1},{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"Critical Value","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":1,"rowSpan":1}],"direction":"ltr","format":"","indent":0,"version":1},{"type":"tablerow","children":[{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"1","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1},{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"3.84","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1}],"direction":"ltr","format":"","indent":0,"version":1},{"type":"tablerow","children":[{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"2","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1},{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"5.99","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1}],"direction":"ltr","format":"","indent":0,"version":1},{"type":"tablerow","children":[{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"3","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1},{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"7.81","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1}],"direction":"ltr","format":"","indent":0,"version":1},{"type":"tablerow","children":[{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"4","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1},{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"9.49","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1}],"direction":"ltr","format":"","indent":0,"version":1},{"type":"tablerow","children":[{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"5","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1},{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"11.07","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1}],"direction":"ltr","format":"","indent":0,"version":1},{"type":"tablerow","children":[{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"6","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1},{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"12.59","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1}],"direction":"ltr","format":"","indent":0,"version":1},{"type":"tablerow","children":[{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"8","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1},{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"15.51","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1}],"direction":"ltr","format":"","indent":0,"version":1},{"type":"tablerow","children":[{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"10","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1},{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"18.31","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1}],"direction":"ltr","format":"","indent":0,"version":1},{"type":"tablerow","children":[{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"15","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1},{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"25.00","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1}],"direction":"ltr","format":"","indent":0,"version":1},{"type":"tablerow","children":[{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"20","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1},{"type":"tablecell","children":[{"type":"paragraph","children":[{"type":"text","text":"31.41","format":0,"style":"","detail":0,"mode":"normal","version":1}],"direction":"ltr","format":"","indent":0,"textFormat":0,"textStyle":"","version":1}],"direction":"ltr","format":"","indent":0,"version":1,"backgroundColor":null,"colSpan":1,"headerState":0,"rowSpan":1}],"direction":"ltr","format":"","indent":0,"version":1}],"direction":"ltr","format":"","indent":0,"version":1},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"If your summed chi-square exceeds the critical value for your df, you reject the null hypothesis at the 5% level. For stricter tests use α = 0.01, which raises the bar (for df = 1, the 0.01 critical value is 6.63).","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Interpreting a Single Term","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h2"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"On its own, a per-category value isn't a significance test — that job belongs to the sum. But as a diagnostic it's genuinely useful:","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Near zero (below ~1):","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" observation sits close to expectation","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Moderate (roughly 1–4):","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" meaningful deviation, worth noting","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":2},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Large (above ~4):","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" this category is pulling hard on your overall statistic — investigate it","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":3}],"direction":null,"format":"","indent":0,"type":"list","version":1,"listType":"bullet","start":1,"tag":"ul"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"A practical rule: after a significant full test, scan the per-term values and focus attention on the largest two or three. Those are the categories where your observed data disagrees most with your model — and usually the ones worth writing about.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"When Per-Term Values Matter Most","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h2"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"There are three situations where calculating one chi-square term at a time isn't just convenient — it's the right tool:","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Learning the formula.","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" Running a grid-based calculator hides the mechanics. Doing it term by term builds real intuition for why squaring matters, why division by E matters, and what makes a contribution \"big.\"","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Post-hoc analysis.","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" When a full chi-square test rejects the null, per-term values tell you which categories drove the rejection. Reporting \"χ² = 24.3, p < .001, with the bulk of the deviation concentrated in categories A and D\" is far more informative than reporting just the summary.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":2},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Checking hand calculations.","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" Textbook problems and exam answers are graded term by term. Verifying each contribution individually catches arithmetic mistakes that a summary-only tool would bury.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":3}],"direction":null,"format":"","indent":0,"type":"list","version":1,"listType":"number","start":1,"tag":"ol"},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Technical Notes","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"heading","version":1,"tag":"h2"},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Formula:","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" χ² = (observed − expected)² / expected","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"This is one component of the full test statistic χ² = Σ [(Oᵢ − Eᵢ)² / Eᵢ], summed across all categories in your data.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Assumptions:","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Observations are independent","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":1},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Data are counts (frequencies), not percentages or proportions","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":2},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Expected counts are generally 5 or larger per category","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":3},{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Categories are mutually exclusive","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"listitem","version":1,"value":4}],"direction":null,"format":"","indent":0,"type":"list","version":1,"listType":"bullet","start":1,"tag":"ul"},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"When to use a different test:","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" If expected counts are very small, use Fisher's exact test. If your data are continuous, use a t-test or ANOVA. If you're comparing two proportions directly, a z-test for proportions is often simpler.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""},{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Historical note:","type":"text","version":1},{"detail":0,"format":0,"mode":"normal","style":"","text":" The chi-square test was introduced by Karl Pearson in 1900 and is one of the oldest tools in inferential statistics. Despite its age, it remains the default test for categorical count data in fields ranging from genetics to market research — because the logic is transparent and the math is easy to verify by hand, one term at a time.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}},"id":"69ddddaa87f33a000403bdcf"}]}]}],"$L34"]}],"$L35"]}]]}]}]}]
3b:I[51318,["9310","static/chunks/f8d55a4d-f82e876c81147bfd.js","6956","static/chunks/66a6e935-aee5d3cb85c323ac.js","7821","static/chunks/7821-fecf606f47f1f58d.js","8963","static/chunks/8963-69c253eec8d741c5.js","9858","static/chunks/9858-f1918ded0530ca69.js","609","static/chunks/609-95e41ae6a69b88b2.js","2456","static/chunks/2456-94cb89c116d69dd0.js","994","static/chunks/994-2c56ebb2d663b523.js","6472","static/chunks/6472-2ee935ddbae5821a.js","3349","static/chunks/app/(frontend)/calculators/%5Bcategory%5D/%5Bslug%5D/page-70bb6ad84377852d.js"],"Calculator"]
3e:I[62540,[],"IconMark"]
34:["$","div",null,{"className":"bg-white rounded-lg shadow-sm p-8","children":[["$","h2",null,{"className":"typo-large mb-6 text-mist-950","children":"Frequently Asked Questions"}],["$","div",null,{"className":"space-y-6","children":[["$","div","0",{"className":"pb-6 last:pb-0","children":[["$","h3",null,{"className":"text-lg font-medium text-mist-950 mb-3","children":"Does this calculator give me a p-value?"}],["$","div",null,{"className":"prose max-w-none text-mist-600","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"No — it returns a single chi-square term. A p-value requires the full test statistic (summed across all categories) and your degrees of freedom, then a chi-square distribution lookup.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}]]}],["$","div","1",{"className":"pb-6 last:pb-0","children":[["$","h3",null,{"className":"text-lg font-medium text-mist-950 mb-3","children":"What are degrees of freedom?"}],["$","div",null,{"className":"prose max-w-none text-mist-600","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"For a goodness-of-fit test, it's the number of categories minus 1. For a contingency table (test of independence), it's (rows − 1) × (columns − 1). Degrees of freedom tell the chi-square distribution how spread out the statistic should be by chance alone.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}]]}],["$","div","2",{"className":"pb-6 last:pb-0","children":[["$","h3",null,{"className":"text-lg font-medium text-mist-950 mb-3","children":"Why divide by the expected value?"}],["$","div",null,{"className":"prose max-w-none text-mist-600","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Dividing by E keeps contributions comparable across categories of different sizes. A gap of 10 means one thing when you expected 10 and something very different when you expected 1,000. Scaling by E reflects that.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}]]}],["$","div","3",{"className":"pb-6 last:pb-0","children":[["$","h3",null,{"className":"text-lg font-medium text-mist-950 mb-3","children":"Why is the difference squared?"}],["$","div",null,{"className":"prose max-w-none text-mist-600","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Squaring makes every term positive — so overestimates and underestimates both count as deviations — and it gives larger gaps disproportionately more weight, which matches how \"surprising\" data actually feels.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}]]}],["$","div","4",{"className":"pb-6 last:pb-0","children":[["$","h3",null,{"className":"text-lg font-medium text-mist-950 mb-3","children":"Can chi-square be negative?"}],["$","div",null,{"className":"prose max-w-none text-mist-600","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"No. The numerator is squared and the denominator is a positive count, so every term is zero or positive.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}]]}],["$","div","5",{"className":"pb-6 last:pb-0","children":[["$","h3",null,{"className":"text-lg font-medium text-mist-950 mb-3","children":"What happens when the expected value is zero?"}],["$","div",null,{"className":"prose max-w-none text-mist-600","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"The formula breaks — you can't divide by zero. Chi-square tests require reasonably large expected counts: a common rule of thumb is that at least 80% of expected counts should be 5 or more, and none should be below 1. If yours are too small, combine adjacent categories or switch to Fisher's exact test.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}]]}],"$L36","$L37","$L38","$L39","$L3a"]}]]}]
35:["$","div",null,{"className":"lg:col-span-2","children":[["$","div",null,{"className":"sticky top-24 mb-6 max-h-[calc(100vh-6rem)] overflow-y-auto space-y-4","children":[["$","$L3b",null,{"className":"rounded-xl shadow-sm","id":"cmnxc6eux0000la045oz6ugj0"}],["$","div",null,{"className":"bg-white rounded-lg shadow-sm p-4","children":["$","nav",null,{"aria-label":"Table of contents","children":[["$","h2",null,{"className":"text-lg font-display font-normal mb-4 text-mist-900","children":"Table of Contents"}],["$","ul",null,{"className":"space-y-2.5","children":[["$","li","what-chi-square-actually-measures",{"className":"","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#what-chi-square-actually-measures","children":"What Chi-Square Actually Measures"}]}],["$","li","how-to-use-this-calculator",{"className":"","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#how-to-use-this-calculator","children":"How to Use This Calculator"}]}],["$","li","worked-examples",{"className":"","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#worked-examples","children":"Worked Examples"}]}],["$","li","example-1-is-the-die-fair",{"className":"ml-3","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#example-1-is-the-die-fair","children":"Example 1: Is the Die Fair?"}]}],["$","li","example-2-survey-shift",{"className":"ml-3","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#example-2-survey-shift","children":"Example 2: Survey Shift"}]}],["$","li","example-3-mendelian-genetics",{"className":"ml-3","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#example-3-mendelian-genetics","children":"Example 3: Mendelian Genetics"}]}],["$","li","example-4-quality-control-inspection",{"className":"ml-3","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#example-4-quality-control-inspection","children":"Example 4: Quality-Control Inspection"}]}],["$","li","combining-terms-into-a-full-chi-square-statistic",{"className":"","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#combining-terms-into-a-full-chi-square-statistic","children":"Combining Terms Into a Full Chi-Square Statistic"}]}],["$","li","critical-values-at-005",{"className":"ml-3","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#critical-values-at-005","children":"Critical Values at α = 0.05"}]}],["$","li","interpreting-a-single-term",{"className":"","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#interpreting-a-single-term","children":"Interpreting a Single Term"}]}],["$","li","when-per-term-values-matter-most",{"className":"","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#when-per-term-values-matter-most","children":"When Per-Term Values Matter Most"}]}],"$L3c"]}]]}]}]]}],"$L3d"]}]
28:null
2d:[["$","title","0",{"children":"Chi-Square Calculator — Compute χ² Contribution Instantly"}],["$","meta","1",{"name":"description","content":"Quickly calculate the chi-square contribution for any observed and expected value. Clear formula, worked examples, and critical values for interpreting results."}],["$","link","2",{"rel":"canonical","href":"https://activecalculator.com/calculators/statistics/chi-square-calculator"}],["$","meta","3",{"property":"og:title","content":"Chi-Square Calculator — Compute χ² Contribution Instantly"}],["$","meta","4",{"property":"og:description","content":"Quickly calculate the chi-square contribution for any observed and expected value. Clear formula, worked examples, and critical values for interpreting results."}],["$","meta","5",{"property":"og:url","content":"https://activecalculator.com/calculators/statistics/chi-square-calculator"}],["$","meta","6",{"property":"og:site_name","content":"ActiveCalculator"}],["$","meta","7",{"property":"og:locale","content":"en_US"}],["$","meta","8",{"property":"og:image","content":"https://activecalculator.com/api/og/calculator?title=Chi-Square%20Calculator"}],["$","meta","9",{"property":"og:image:width","content":"1200"}],["$","meta","10",{"property":"og:image:height","content":"630"}],["$","meta","11",{"property":"og:image:alt","content":"Chi-Square Calculator — Compute χ² Contribution Instantly"}],["$","meta","12",{"property":"og:type","content":"website"}],["$","meta","13",{"name":"twitter:card","content":"summary_large_image"}],["$","meta","14",{"name":"twitter:site","content":"@activecalculator"}],["$","meta","15",{"name":"twitter:creator","content":"@activecalculator"}],["$","meta","16",{"name":"twitter:title","content":"Chi-Square Calculator — Compute χ² Contribution Instantly"}],["$","meta","17",{"name":"twitter:description","content":"Quickly calculate the chi-square contribution for any observed and expected value. Clear formula, worked examples, and critical values for interpreting results."}],["$","meta","18",{"name":"twitter:image","content":"https://activecalculator.com/api/og/calculator?title=Chi-Square%20Calculator"}],["$","link","19",{"rel":"icon","href":"/favicon.ico?756f06c5b2066fec","type":"image/x-icon","sizes":"48x48"}],["$","$L3e","20",{}]]
36:["$","div","6",{"className":"pb-6 last:pb-0","children":[["$","h3",null,{"className":"text-lg font-medium text-mist-950 mb-3","children":"Do observed and expected both have to be whole numbers?"}],["$","div",null,{"className":"prose max-w-none text-mist-600","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Observed counts are whole numbers because they're actual tallies. Expected values usually aren't — 65 die rolls means 10.833... expected per face. That's fine; the formula handles non-integer expected values without any adjustment.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}]]}]
37:["$","div","7",{"className":"pb-6 last:pb-0","children":[["$","h3",null,{"className":"text-lg font-medium text-mist-950 mb-3","children":"What's the difference between a goodness-of-fit test and a test of independence?"}],["$","div",null,{"className":"prose max-w-none text-mist-600","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Goodness-of-fit compares one observed distribution to an expected distribution (\"is this die fair?\"). Test of independence compares observed counts in a two-way table to what you'd expect if two variables were unrelated (\"does treatment type depend on age group?\"). Both use the same per-cell formula — only the degrees-of-freedom calculation differs.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}]]}]
38:["$","div","8",{"className":"pb-6 last:pb-0","children":[["$","h3",null,{"className":"text-lg font-medium text-mist-950 mb-3","children":"How big does chi-square need to be for significance?"}],["$","div",null,{"className":"prose max-w-none text-mist-600","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Depends on your degrees of freedom and significance level. With df = 1 at α = 0.05, the critical value is 3.84. With df = 4 it's 9.49; with df = 10 it's 18.31. See the critical-values table above for common values.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}]]}]
39:["$","div","9",{"className":"pb-6 last:pb-0","children":[["$","h3",null,{"className":"text-lg font-medium text-mist-950 mb-3","children":"Why does my textbook use χ² for the statistic and the distribution?"}],["$","div",null,{"className":"prose max-w-none text-mist-600","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"Because they're the same thing. The test statistic is called chi-square because, under the null hypothesis, its sampling distribution follows the chi-square distribution with the appropriate degrees of freedom. That's what makes the critical-value lookup work.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}]]}]
3a:["$","div","10",{"className":"pb-6 last:pb-0","children":[["$","h3",null,{"className":"text-lg font-medium text-mist-950 mb-3","children":"What if my observed count is much larger than expected — is there a \"too significant\"?"}],["$","div",null,{"className":"prose max-w-none text-mist-600","children":["$","$L31",null,{"content":{"root":{"children":[{"children":[{"detail":0,"format":0,"mode":"normal","style":"","text":"There isn't a ceiling, but extremely large single-term values (say, above 20–30 when others are tiny) often point to a data-entry error, a miscalculated expected value, or a category that shouldn't have been included. Worth double-checking before writing up results.","type":"text","version":1}],"direction":null,"format":"","indent":0,"type":"paragraph","version":1,"textFormat":0,"textStyle":""}],"direction":null,"format":"","indent":0,"type":"root","version":1}}}]}]]}]
3c:["$","li","technical-notes",{"className":"","children":["$","$L6",null,{"className":"block py-1 text-mist-600 hover:text-mist-900 hover:underline transition-colors leading-relaxed text-sm no-underline","href":"#technical-notes","children":"Technical Notes"}]}]
3d:["$","div",null,{"className":"space-y-6","children":false}]
