开发者:上海品职教育科技有限公司 隐私政策详情

应用版本:4.2.11(IOS)|3.2.5(安卓)APP下载

暖暖 · 2024年04月06日

df的计算

NO.PZ2023061301000027

问题如下:

Which of the following statements is correct regarding the chi-square test of

independence?

选项:

A.

The test has a one-sided rejection region.

B.

The null hypothesis is that the two groups are dependent.

C.

If there are two categories, each with three levels or groups, there are six

degrees of freedom.

解释:

A is correct. The test statistic includes squared differences between the observed

and expected values, so the test involves only one side, the right side. B is incorrect

because the null hypothesis is that the groups are independent, and C is

incorrect because with three levels of groups for the two categorical variables,

there are four degrees of freedom.

我知道公式 df=(r-1)(C-1), 可是根据题目, 不是2个categories, 每个categeires 有3个子类目, 所以 row 是2, column 是3吗, 所以算出来是2吗, 为什么解析中说是一个三行三列的表格呢, 谢谢

3 个答案

品职助教_七七 · 2024年09月12日

嗨,从没放弃的小努力你好:


@petrov

自由度的公式为(r-1)(c-1),其中r为行数(row),c为列数(column)。由于本题为三行三列,所以自由度为(3-1)(3-1)=4

----------------------------------------------
努力的时光都是限量版,加油!

petrov · 2024年09月11日

还是不懂,为什么不是2*1,c和r是指什么意思

品职助教_七七 · 2024年04月07日

嗨,努力学习的PZer你好:


C选项的意思是两个类别,每个类别都有三个子科目。由于各自都有三个子科目,所以是3×3。

基础班的例子就是这种情况。

----------------------------------------------
努力的时光都是限量版,加油!