From the course: Machine Learning Foundations: Probability
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Examples of probability - Python Tutorial
From the course: Machine Learning Foundations: Probability
Examples of probability
- [Instructor] Let's explore more advanced examples of probability that use permutations and combinations. If you have never calculated permutations and combinations before, don't worry. I'll show you step by step what I mean. Let's see our first example. What is the probability of guessing a four digit number if none of the digits are repeated? To calculate the probability, first we have to find our sample space. We have to select four unique integers and arrange them to form a number. Now to count the sample space outcome, we are going to use a permutations formula P of N R equals N factorial divided by N minus R factorial. So we have 10 possible digits. So we have P of 10, 4 equals 10 factorial divided by 10 - 4 factorial. Wait, what are these exclamation marks doing here? When a number is followed by that exclamation mark, the mathematical meaning is to multiply by every integer from the number given down to one, and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.