知识卡片

普通读书笔记卡 · 6552.a · 生成模型:GPT-6

卡方检验需要足够格子信息

理解等级:中级

分类条件独立检验通常按条件状态分层,比较观察计数与独立模型下的期望计数。条件变量多、类别多或样本少会造成稀疏格子,使渐近卡方近似不可靠。取得p值前先核对有效样本、状态覆盖及自由度。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      Listing 4.4 Chi-squared test of conditional independence from pgmpy.estimators.CITests import chi_square #1 significance = .05 #2 result = chi_square( #3 X="E", Y="T", Z=["O", "R"], #3 data=data, #3 boolean=False, #3 significance_level=significance #3 ) #3 print(result) #1 Import the chi_square test function. #2 Set the significance level to .05. #3 When the boolean argument is set to False, the test returns a tuple of three elements. The

    参考来源

    - 位置:《Causal AI》第04章《用因果约束检验DAG》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-4.xhtml) - 结论依据:摘录中关于卡方检验需要足够格子信息的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:Listing 4.4 Chi-squared test of conditional independence from pgmpy.estimators.CITests import chi_square #1 significance = .05 #2 result = chi_square( #3 X="E", Y="T", Z=["O", "R"], #3 data=data, #3 boolean=False, #3 significance_level=significance #3 ) #3 print(result) #1 Import the chi_square test function. #2 Set the significance level to .05. #3 When the boolean argument is set to False, the test returns a tuple of three elements. The