Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

Pages: **1**

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,685

Have finished Chi-Square Test and Chi-Square Calculator

Please cast your eyes over them both, and let me know any errors or improvements so visitors get the best possible experience.

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

**Online**

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 109,606

Hi MIF;

Your examples work out and the page is good but I have a question:

This test only works for categorical data (data in categories), such as Gender {Men, Women} or color {Red, Yellow, Green, Blue} etc, but not numerical data such as height or weight.

I have used chi square on other than categorical data, for instance, testing the validity of a die by rolling it 6000 times and counting up the number of times 1 to 6 comes up. Say that the answer looks like this,{900,1100,1200,1000,900,900} you can calculate a p value for this to see whether or not this result could be by chance or not. So, does the quote still apply to n x 1 data? Would you consider my data as categorical?

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

**ganesh****Administrator**- Registered: 2005-06-28
- Posts: 25,075

Hi MathsIsFun,

The pages Chi-Square Test and Chi-Square Calculator are well made! Thanks!

It is no good to try to stop knowledge from going forward. Ignorance is never better than knowledge - Enrico Fermi.

Nothing is better than reading and gaining more and more knowledge - Stephen William Hawking.

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,685

Thanks guys!

bobbym - did you compare {900,1100,1200,1000,900,900} to {1000,1000,1000,1000,1000,1000} ? Otherwise Chi-square is 0 (and DF 0 also)

If so I get a Chi-square of 38.7332 and p = 2.68247e-7 , which is quite cool as it shows that to be a very expected result.

So, we can agree here to give them honorary categories of test1 to test6 and random vs boring.

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

**Online**

**bobbym****bumpkin**- From: Bumpkinland
- Registered: 2009-04-12
- Posts: 109,606

Hi MIF;

Yes, I would compare them to {1000,1000,1000,1000,1000,1000}. Thanks for the explanation.

**In mathematics, you don't understand things. You just get used to them.****If it ain't broke, fix it until it is.**** Always satisfy the Prime Directive of getting the right answer above all else.**

Offline

**mathaholic****Member**- From: Earth
- Registered: 2012-11-29
- Posts: 3,251

That was kind of nosebloodening (hard for me to understand). But... Thanks for the info!

Mathaholic | 10th most active poster | Maker of the 350,000th post | Person | rrr's classmate

Offline

Pages: **1**