概率相加

概率相加

P(A or B) = P(A) + P(B) - P(A and B)

文氏图

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'''
+-----------------------------------------+
| |
| /----------------\ |
| | | |
| | A | |
| | /--------------------\ |
| | | A | | |
| | | and | B | |
| | | B | | |
| | | | | |
| \----------|-----/ | |
| | | |
| | | |
| \--------------------/ |
| |
+-----------------------------------------+

'''
坚持原创技术分享,您的支持将鼓励我继续创作!