Learn practical skills, build real-world projects, and advance your career
!pip install jovian --upgrade --quiet
import jovian
[jovian] Attempting to save notebook.. [jovian] Updating notebook "samantha-roberts/probability-homework" on https://jovian.ai [jovian] Uploading notebook.. [jovian] Uploading additional files... [jovian] Committed successfully! https://jovian.ai/samantha-roberts/probability-homework

this is a test -- trying to understand how jovian commit works

Mutually Exclusive Events

Given two events AA and BB, we know that

P(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B)

In some cases, P(AB)P(A \cap B) is 00 e.g. if we roll a fair die and A & B represent the conditions "getting a 2" and "getting a 3" respectively, then condition ABA \cap B represents the condition "getting a 2 and a 3", which is impossible.

If P(AB)P(A \cap B) is 0, then AA & BB are said to be mutually exclusive, and it follows that

P(AB)=P(A)+P(B)P(A \cup B) = P(A) + P(B)