概率论快速学习03:概率公理补充
原创地址: http://www.cnblogs.com/Alandre/ (泥沙砖瓦浆木匠),需要转载的,保留下! Thanks
“应注意到一个析取命题的对立命题是由该析取命题各部分的对立内容构成的一个合取命题” ——奥卡姆的威廉著,《逻辑学论文》
Written In The Font
I like maths when i was young,but I need to record them. So I am writing with some demos of Python
Content
If two events, A and B are independent then the joint probability is
For example, if two coins are flipped the chance of both being heads is
In Python
A = set([1,2,3,4,5]) B = set([2,4,3,5,6]) C = set([4,6,7,4,2,1]) print(A & B & C)
Output:
{2, 4} |
# & find the objects the same in Set
If either event A or event B or both events occur on a single performance of an experiment this is called the union of the events A and B denoted as:
.
If two events are mutually exclusive then the probability of either occurring is
For example, the chance of rolling a 1 or 2 on a six-sided die is
In Python
A = set([1,2,3,4,5]) B = set([2,4,3,5,6]) C = set([4,6,7,4,2,1]) print(A | B | C)
Output:
{1, 2, 3, 4, 5, 6, 7} |
# | find all the objects the set has
If the events are not mutually exclusive then
Proved
For example:
Let’s use Python to show u an example about devil's bones (骰子,不是 魔鬼的骨头哈)
A = set([1,2,3,4,5,6]) # the all results of devil's bones B = set([2,4,3]) # the A event results C = set([4,6]) # the B event results P_B = 1/2 P_C = 1/3 D = B | C print(D) P_D = 2/3 print(P_D == (P_B+P_C - 1/6))
Output:
{2, 3, 4, 6} |
Let me show u some others :
If u r tired , please have a tea , or look far to make u feel better.If u r ok, Go on!
Conditional probability is the probability of some event A, given the occurrence of some other event B. Conditional probability is written:
,
Some authors, such as De Finetti, prefer to introduce conditional probability as an axiom of probability:
①
Given two events A and B from the sigma-field of a probability space with P(B) > 0, the conditional probability of A given Bis defined as the quotient of the probability of the joint of events A and B, and the probability of B:
②
the ①② expressions are the same. Maybe u can remember one , the other will be easy to be coverted.So I am going to tell an excemple to let u remmeber it(them):
“the phone has a power supply (B), the phone can be used to call others(A).”
One → : When the phone has a full power supply , u can call others.
Two →P(B): has a power supply
Three = One + Two → U can call others about your love with others.
do u remember it?
Editor's Note
“路漫漫其修远兮,吾将上下而求索”
The Next
cya soon. We meet a big mess called The total probability and Bayes .
The total probability
Bayes (Thomas, 1702-1761,) ;
if u wanna talk with me , add the follow:
相关文章
- Echarts学习:Django快速集成Echarts
- V-rep学习笔记:串口操作
- FairyGUI学习
- 通过这些示例快速学习Java lambda语法
- 概率论快速学习04:概率公理 全概率 贝叶斯 事件独立性
- 概率论快速学习01:计数
- Python快速学习07:文本文件的操作
- Python快速学习03:运算 & 缩进和选择
- 【学习总结】快速上手Linux玩转典型应用-第7章-WebServer安装和配置讲解
- Scala - 快速学习08 - 函数式编程:高阶函数
- 学习DBCC CHECKIDENT
- 快速学习MySQL SQL语句
- 【学习总结】快速上手Linux玩转典型应用-第6章-linux常用命令讲解
- Scala - 快速学习08 - 函数式编程:高阶函数
- Javascript Mvc学习杂记2
- 机器学习笔记:常用数据集之scikit-learn生成分类和聚类数据集
- Opencv学习笔记 快速色彩转移
- paddlepaddle 14 迁移学习-图像分类实战一 基于paddle2(paddle.hub)实现动态图的迁移学习
- 阿里工作7年,肝到P8就剩这份学习笔记了,已助10个朋友拿到offer
- AutoJs学习-快速删除联系人
- 十年阿里程序员:10个阶段完成python学习计划任务,有教程哦
- vim操作学习
- pygame学习笔记(3)——时间、事件、文字
- 编程是否需要从小就开始学习
- 初学者如何快速的学习黑客技术?需要掌握哪些黑客技术?
- 强化学习笔记:Sutton-Book第三章习题解答(Ex1~Ex16)
- 深度学习笔记:利用预训练模型之特征提取训练小数据集上的图像分类器
- 快速入门大数据与机器学习基础专栏
- CrossOver零知识学习2 —— 进一步了解
- 使用MindSpore20.0的API快速实现深度学习模型之数据变换