Pearson chi-squared test (χ2): differences?

  • Context: Undergrad 
  • Thread starter Thread starter Drudge
  • Start date Start date
  • Tags Tags
    Chi-squared Test
Click For Summary
SUMMARY

The discussion focuses on the differences between the Pearson chi-squared tests: the "test for fit of a distribution" and the "test of independence." Key distinctions include how theoretical values are counted and the calculation of degrees of freedom. The example provided illustrates a scenario where a sample's distribution is compared to theoretical values, emphasizing the importance of selecting the appropriate test based on the stated theoretical distribution. The conclusion is that the choice of test significantly impacts the analysis, contingent on the specifics of the distribution in question.

PREREQUISITES
  • Understanding of Pearson chi-squared tests
  • Knowledge of degrees of freedom in statistical tests
  • Familiarity with theoretical distributions
  • Basic statistical analysis skills
NEXT STEPS
  • Study the differences between "test for fit of a distribution" and "test of independence" in detail
  • Learn how to calculate degrees of freedom for various statistical tests
  • Explore different types of theoretical distributions, particularly non-normal distributions
  • Practice applying chi-squared tests using statistical software like R or Python's SciPy library
USEFUL FOR

Statisticians, data analysts, and students in statistics courses who need to understand the application and implications of different chi-squared tests in hypothesis testing.

Drudge
Messages
30
Reaction score
0
So, as far as I know, there are two χ2-tests: "test for fit of a distribution" & "Test of independence"

How big of a mistake is it to use the one instead of the other in an exam for example (of course all exams are all different to some degree, but generally)?

The only differences I can really find out is how each test counts the theoretical value(s) and the way in which the degrees of freedom are counted

For example a problem might be as follows:
a random sample from population X is, as a function of age, distributed as follows

10-20
5
21-30
4
31-40
3
40-41
9

And the equivalent theoretical values are: 6, 5, 4, 5

Question:

"Does the sample represent the theoretical distribution?"

So, you would use a "test for fit of distribution", but how much of a difference is it to use a "test of independence"?
 
Physics news on Phys.org
Drudge said:
So, you would use a "test for fit of distribution", but how much of a difference is it to use a "test of independence"?

That would depend on what theoretical distribution was stated in the problem.
 
Stephen Tashi said:
That would depend on what theoretical distribution was stated in the problem.

Non normal distribution.
 
"Non-normal" is not a specific distribution. If you really want to know "how much" difference it would make you must be specific about the distribution - and if you are specific then you can calculate the difference yourself.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 23 ·
Replies
23
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K