Now that you understand what a sample space (S) and an event (E) are, let's look at how to assign a numerical value to the likelihood of an event happening. This numerical measure is called probability.
For many basic scenarios, especially those involving games of chance like flipping coins or rolling dice, we assume that all individual outcomes in the sample space are equally likely. A fair coin is just as likely to land heads as tails. A standard, fair die is equally likely to show any face from 1 to 6.
When outcomes are equally likely, calculating the probability of a specific event E is straightforward. You count the number of outcomes that constitute the event E, and you divide that by the total number of possible outcomes in the sample space S.
The probability of an event E, denoted as P(E), is calculated using the formula:
P(E)=Total number of possible outcomes in the sample space SNumber of favorable outcomes for event EWe can write this more compactly using set notation, where ∣E∣ represents the number of elements (outcomes) in event E, and ∣S∣ represents the total number of elements in the sample space S:
P(E)=∣S∣∣E∣Let's apply this. Consider the experiment of rolling a single, fair six-sided die.
Identify the Sample Space (S): The possible outcomes are the faces of the die. S={1,2,3,4,5,6}. The total number of possible outcomes is ∣S∣=6.
Define an Event (E): Let's say we're interested in the event E of rolling an even number. The outcomes that satisfy this event are E={2,4,6}. The number of outcomes favorable to event E is ∣E∣=3.
Calculate the Probability: Using the formula:
P(E)=∣S∣∣E∣=63=21So, the probability of rolling an even number is 1/2 or 0.5 or 50%.
Let's try another event: What's the probability of rolling a number greater than 4?
Consider the simpler experiment of flipping a fair coin once.
From the formula P(E)=∣E∣/∣S∣, we can see a couple of important properties:
Probability is always between 0 and 1: The number of favorable outcomes (∣E∣) can never be less than zero, and it can never be more than the total number of outcomes (∣S∣). Therefore:
0≤P(E)≤1Based on Equally Likely Outcomes: Remember, this simple formula relies heavily on the assumption that all individual outcomes in the sample space are equally likely. If you have a weighted die or a biased coin, this calculation method doesn't apply directly, and we need different approaches which we will touch upon later.
This method of calculating probabilities by counting favorable outcomes relative to the total number of outcomes forms the basis of classical probability and is a fundamental starting point for understanding more complex probability concepts.
© 2025 ApX Machine Learning