知识卡片
联合分布描述同时发生
联合分布描述多个变量同时取某组值的概率或密度。书中X有三个值、Y有两个值,其离散联合表有六个格子,全部格子质量和为1。联合表包含相关结构,但本身没有声明谁造成谁。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
- · 概率生成建模入门
原书出处 · 1 处
- · 查看原书依据
The DiscreteFactor object can represent joint distributions as well. Listing 2.2 Modeling a joint distribution in pgmpy joint = DiscreteFactor( variables=['X', 'Y'], #1 cardinality=[3, 2], #2 values=[.25, .20, .20, .10, .15, .10], #3 state_names= { 'X': ['1', '2', '3'], #3 'Y': ['0', '1'] #3 } ) print(joint) #4 #1 Now we have two variables instead of one. #2 X has 3 outcomes, Y has 2.
参考来源
- 位置:《Causal AI》第02章《概率生成建模入门》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Causal AI/_epub-src/OEBPS/Text/chapter-2.xhtml)
- 结论依据:摘录中关于联合分布描述同时发生的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。
- 原始内容:The DiscreteFactor object can represent joint distributions as well. Listing 2.2 Modeling a joint distribution in pgmpy joint = DiscreteFactor( variables=['X', 'Y'], #1 cardinality=[3, 2], #2 values=[.25, .20, .20, .10, .15, .10], #3 state_names= { 'X': ['1', '2', '3'], #3 'Y': ['0', '1'] #3 } ) print(joint) #4 #1 Now we have two variables instead of one. #2 X has 3 outcomes, Y has 2.