Chi-squared test : probability

180 Views Asked by At

I am trying to solve an exercise where I applied the chi-squared test.

I have already calculated the test statistic and the degrees of freedom.

At the question: "For how many degrees of freedom is the test statistic proved of significance?" we have to compute the degrees of freedom, right?

An other question is the following: "With which realization probability is this or an even greater effect to be expected when the null hypothesis is valid?"

I haven't really understood what I am supposed to do here? Could you give me a hint?

1

There are 1 best solutions below

13
On BEST ANSWER

I assume this is a chi-squared goodness-of-fit test for data in $k$ categories (treated by the test as nominal). The test statistic is $$Q = \sum_{i=1}^k \frac{(X_i = E_i)^2}{E_i},$$ where the $X_i$ are the observed counts in the categories and the $E_i$ are the expected counts (unrounded), computed from the model being fit.

Small values of $Q$ represent relative good fit to the model and large values represent bad fit. So you will reject the null hypothesis that the data match the model for sufficiently large values of $Q.$

Provided that the $E_i$ are all above 5 (some authors say most are above 3), $Q$ is approximately distributed as $\mathsf{Chisq}(\nu),$ where the number of degrees of freedom is $\nu = k - 1.$ However, if the model is given only generically, and you have to estimate $r$ parameters in order to find the $E_i,$ then $\nu = k - r = 1.$

I believe the second part of the question is asking for the critical value of the test. That is, the value $c$ such that $Q > c$ leads to rejection at a specified significance level. Knowing the significance level and $\nu,$ you can get the value $c$ appropriate for a particular test from printed tables of the chi-squared distribution or by using software.

In R statistical software, the critical value for a test at the 5% level with $\nu = 5$ is $c = 11.07.$ Here is the computation from R statistical software, perhaps you can compare it with a printed table.

qchisq(.95, 5)
## 11.0705