课程: Machine Learning Foundations: Probability

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

The sum rule extended

The sum rule extended

- [Instructor] I mentioned we'd return to the sum rule, and here we are. We have seen how to calculate the sum rule when the events are mutually exclusive and it's simple and straightforward. We just have to multiply the probabilities. But what happens in cases when events aren't mutually exclusive? For example, we have a group of students. 40% of them are learning to code in Python, and 30% of them are learning to code in Java, and 12% of the students are learning both Python and Java. We want to know what is the probability that a randomly selected student is learning Python or Java? In our case, the sum rule can be represented with the following formula, P of A union B equals P of A plus P of B minus P of A intersection B. Now, as we have events A, learning Python and B, learning Java that are not mutually exclusive since the events can happen at the same time, meaning a student can be taking both a Python class and a…

内容