# Values of chi squared?

**URL:** <https://community.wolfram.com/t/values-of-chi-squared/5412>\
**Category:** Questions\
**Tags:** statistics-and-probability\
**Created:** [April 12, 2015, 11:44pm UTC](https://community.wolfram.com/t/values-of-chi-squared/5412 "2015-04-12T23:44:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![22padrinos](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/22padrinos/32/29645_2.png) [@22padrinos](https://community.wolfram.com/u/22padrinos)\
**Post date:** [April 12, 2015, 11:44pm UTC](https://community.wolfram.com/t/values-of-chi-squared/5412/1 "2015-04-12T23:44:50Z")

</div>

While reviewing some problems of statistics that I have already solved, I did the following questions, in a section on contingency tables call chi-square table to know if we reject the null hypothesis or not.Then call tables to obtain the value corresponding to

```
\!
\*SubsuperscriptBox[\(\[Chi]\), \(0.05, 3\), \(2\)]

```

which is 7.815, my doubt is can be calculated that value in mathematica?  
thanks in advance

---

<div class="post-metadata">

**Author:** ![jbaldwin](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jbaldwin](https://community.wolfram.com/u/jbaldwin)\
**Post date:** [April 13, 2015, 12:08am UTC](https://community.wolfram.com/t/values-of-chi-squared/5412/2 "2015-04-13T00:08:34Z")

</div>

If you look up “chisquare distribution” in the Wolfram Documentation center you’ll find the necessary functions.

```
In[6]:= alpha = 0.05
df = 3
InverseCDF[ChiSquareDistribution[df], 1 - alpha]

Out[6]= 0.05

Out[7]= 3

Out[8]= 7.81473

```

---

<div class="post-metadata">

**Author:** ![22padrinos](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/22padrinos/32/29645_2.png) [@22padrinos](https://community.wolfram.com/u/22padrinos)\
**Post date:** [April 13, 2015, 1:10am UTC](https://community.wolfram.com/t/values-of-chi-squared/5412/3 "2015-04-13T01:10:08Z")

</div>

Thank you Jim for your help to solve my question, is exactly what I needed,

---

<div class="post-metadata">

**Author:** ![jamescoll2](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jamescoll2/32/5317_2.png) [@jamescoll2](https://community.wolfram.com/u/jamescoll2)\
**Post date:** [January 8, 2022, 4:30pm UTC](https://community.wolfram.com/t/values-of-chi-squared/5412/4 "2022-01-08T16:30:04Z")

</div>

Does this work with any significance level or just 0.05? Got the same results when changed alpha to 0.01, probably doing something wrong. I am also trying to [replicate this calculator](http://statcalculators.com/critical-chi-square-value-calculator/) in Mathematica, but keep getting an error with degree of freedom calculation.

---

<div class="post-metadata">

**Author:** ![jbaldwinpsw](https://avatars.discourse-cdn.com/v4/letter/j/ee7513/32.png) [@jbaldwinpsw](https://community.wolfram.com/u/jbaldwinpsw)\
**Post date:** [January 8, 2022, 6:50pm UTC](https://community.wolfram.com/t/values-of-chi-squared/5412/5 "2022-01-08T18:50:50Z")

</div>

I get the appropriate values:

```
df = 3;

alpha = 0.01;
InverseCDF[ChiSquareDistribution[df], 1 - alpha]
(* 11.34486673014437` *)

alpha = 0.05;
InverseCDF[ChiSquareDistribution[df], 1 - alpha]
(* 7.814727903251181` *)

```

Also, there are many, many ways to mimic the calculator you reference. Here’s one way:

```
Manipulate[
 InverseCDF[ChiSquareDistribution[df], 1 - \[Alpha]], 
 {{\[Alpha], 3}, {0.001, 0.005, 0.01, 0.05}},
 {{df, 1}, 1, 120, 1, Appearance -> "Labeled"}]

```

 ![chisquarecalculator.png](https://global.discourse-cdn.com/wolfram/original/2X/b/b35b65ab865a2e2d97557883e2256202d37f2821.png)

---

<div class="post-metadata">

**Author:** ![jamescoll2](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/jamescoll2/32/5317_2.png) [@jamescoll2](https://community.wolfram.com/u/jamescoll2)\
**Post date:** [January 9, 2022, 6:18pm UTC](https://community.wolfram.com/t/values-of-chi-squared/5412/6 "2022-01-09T18:18:08Z")

</div>

Jim thank you very much. I actually refreshed and after changing the code it worked. Also appreciate the Mathematica code that works too!
