1. Home
  2. Explore
  3. Statistics
  4. Sample Spaces and Events

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Sample Spaces and Events

Speaker 1Speaker 2

Sample Spaces and Events

14:22
0:00-14:22
  1. Anna

    Let's begin with the basic language of probability. A sample space, usually written S, is the collection of all possible outcomes of an experiment. An event, usually labeled with a capital letter such as A or B, is any collection of outcomes from that sample space. It can contain one outcome, several outcomes, every outcome in S, or no outcomes at all.

  2. Michael

    And an event occurs when the actual outcome of the experiment is a member of that event. For example, if the experiment is rolling a die, the sample space is {1, 2, 3, 4, 5, 6}, and the event of rolling an even number is {2, 4, 6}. If the die shows 4, that event has occurred.

  3. Anna

    Because events are sets, probability relies heavily on set theory. The notation A contained in B means every outcome in A is also in B. The union, written A union B, contains outcomes in A or in B or in both. The intersection contains outcomes common to both, although in probability we often write AB and leave out the intersection symbol.

  4. Michael

    Several set relationships are especially useful. If A is contained in B, then A union B equals B. If A is contained in B and B is contained in A, then the two events are equal. Also, A intersected with B equals A whenever A is contained in B, and A union its complement equals the entire sample space.

  5. Anna

    The complement of A, written A complement, is the event containing all outcomes that are not in A. Two events are mutually exclusive, or disjoint, if they have no outcomes in common. They are exhaustive if their union is the whole sample space. A collection of events that is both mutually exclusive and exhaustive forms a partition of the sample space.

  6. Michael

    Now we can define probability. A probability assigns a number P of A to every event A. It must satisfy three axioms: probabilities are nonnegative, the probability of the entire sample space is 1, and for any sequence of mutually disjoint events, the probability of their union equals the sum of their individual probabilities.

  7. Anna

    That third axiom is called countable additivity. It applies to a finite or an infinite sequence of disjoint events. Also, a probability function is not necessarily unique for a given sample space. Any function satisfying those three axioms qualifies as a probability. Depending on the textbook, you may also see terms such as probability function or probability distribution.

  8. Michael

    From the axioms and set theory, we get several important results. The probability of the complement is P of A complement equals 1 minus P of A. The empty set has probability zero. If A is contained in B, then P of A is less than or equal to P of B, so every event's probability lies between zero and one.

  9. Anna

    For two events, the addition rule is P of A union B equals P of A plus P of B minus P of AB. We subtract the intersection because outcomes in both events would otherwise be counted twice. Another useful identity is P of A intersected with B complement equals P of A minus P of AB.

  10. Michael

    A particularly important special case occurs when the sample space is finite and all outcomes are equally likely. If n of A is the number of outcomes in event A and n of S is the total number of outcomes, then P of A equals n of A divided by n of S. This is called a simple sample space: calculating probability becomes counting favorable outcomes and dividing by total outcomes.

  11. Anna

    Why is equal likelihood essential? Because without it, simply counting outcomes would not correctly represent their probabilities. But when every outcome has the same chance, counting is enough. That idea drives many of the examples in probability.

  12. Michael

    For example, roll two fair dice and ask for the probability that their sum is 4. There are 36 equally likely ordered pairs, because each die has six possibilities. The favorable outcomes are 1 and 3, 2 and 2, and 3 and 1, so there are three. The probability is therefore 3 over 36, or 1 over 12.

  13. Anna

    Notice that the dice outcomes are ordered: rolling 1 on the first die and 3 on the second is different from rolling 3 first and 1 second. Treating the pair as ordered is why all 36 pairs are counted separately.

  14. Michael

    Consider a six-character Massachusetts license plate where each character can be one of 26 letters or 10 digits. With replacement, every position has 36 possibilities, so there are 36 to the sixth total plates. An all-digit plate has 10 possibilities in each position, or 10 to the sixth favorable plates. The probability is 10 to the sixth divided by 36 to the sixth, approximately 0.0005.

  15. Anna

    If characters cannot be reused, the count changes. There are 36 choices for the first character, 35 for the second, 34 for the third, and so on, giving 36 factorial divided by 30 factorial total plates. For an all-digit plate, the corresponding count is 10 factorial divided by 4 factorial. The resulting probability is approximately 0.0001. These are examples of sampling with replacement and without replacement.

  16. Michael

    The counting behind these examples is called combinatorics. The basic multiplication rule says that if an experiment has two parts, with m possibilities for the first and n for the second, then there are m times n possible outcomes overall. More generally, you multiply the number of choices at each stage.

  17. Anna

    When order matters, we use permutations. The number of ways to arrange n objects is n factorial. The number of ordered arrangements of little n objects selected from big N objects is N factorial divided by N minus n factorial.

  18. Michael

    When order does not matter, we use combinations. The number of unordered arrangements of n objects chosen from N objects is N factorial divided by n factorial times N minus n factorial. We write this as N choose n. Dividing by n factorial removes the duplicate orderings.

  19. Anna

    A handshake problem illustrates combinations. If nine candidates all shake hands with one another, each handshake selects two people, and the order does not matter. Therefore the number of handshakes is 9 choose 2, which is 36.

  20. Michael

    For a probability example, imagine 40 faculty members randomly assigned to 40 offices in a line. There are 40 factorial total assignments. To count assignments where Esther and one other faculty member are next to each other, tie those two people together as one unit. That gives 39 factorial arrangements, and then multiply by 2 because the two people can appear in either order. The probability is 2 times 39 factorial divided by 40 factorial.

  21. Anna

    Now consider choosing two pizza toppings from six vegetarian and five nonvegetarian toppings. Since the order of selection does not matter, there are 11 choose 2 total pairs. For one vegetarian and one nonvegetarian topping, there are 6 times 5, or 30, favorable pairs. The probability is 30 over 66.

  22. Michael

    The same idea generalizes. If we choose n toppings and want n1 vegetarian and n2 nonvegetarian toppings, the probability is the product of 6 choose n1 and 5 choose n2, divided by 11 choose n, where n equals n1 plus n2. This counting structure is the basis of the hypergeometric distribution, which applies to sampling without replacement.

  23. Anna

    Next comes independence. Events A and B are independent when P of AB equals P of A times P of B. In practical terms, knowing that one event occurred does not change the probability of the other. That practical interpretation is often more useful than memorizing the formula alone.

  24. Michael

    Independence is not the same as mutual exclusivity. For example, on one die let A be rolling a number less than 5 and B be rolling an even number. P of A is 2 thirds, P of B is 1 half, and their intersection consists of 2 and 4, so its probability is 1 third. Because 1 third equals 2 thirds times 1 half, A and B are independent, even though both refer to the same die roll.

  25. Anna

    That example warns us not to rely only on intuition. The correct intuition is: if I learn that A occurred, does that information tell me anything about whether B occurred? Also, if A and B are independent, then A and B complement are independent as well. For more than two events, independence generalizes by requiring the probability of their intersection to equal the product of their probabilities.

  26. Michael

    Suppose a basketball player makes a three-point shot with probability 0.44 and misses with probability 0.56, with shots assumed independent. The probability of missing the next three shots and making the following three is 0.56 cubed times 0.44 cubed, approximately 0.015.

  27. Anna

    If we ask instead for the probability of exactly three makes in the next six shots, the order is not specified. Each particular sequence has the same probability, but there are 6 choose 3 possible locations for the three makes. Therefore the probability is 6 choose 3 times 0.44 cubed times 0.56 cubed, approximately 0.30. This is the basis of the binomial distribution.

  28. Michael

    For at least one make in six shots, the complement is easier. The opposite event is missing all six, with probability 0.56 to the sixth. So the desired probability is 1 minus 0.56 to the sixth. This illustrates why complement rules can simplify calculations.

  29. Anna

    The equal-probability assumption for the basketball example is a modeling assumption. In real life, shot difficulty can vary, and a player's performance might not be independent from shot to shot. But the exercise deliberately assumes a constant 0.44 probability and independence so the binomial calculation applies.

  30. Michael

    Conditional probability lets us update probabilities when one event gives us information about another. The probability of A conditional on B is P of AB divided by P of B, provided P of B is greater than zero.

  31. Anna

    A helpful way to interpret that formula is to redefine the situation after learning that B occurred. The numerator keeps only the part of A that overlaps B, while the denominator treats B as the relevant sample space. We are asking: among the outcomes in B, what fraction also lie in A?

  32. Michael

    Conditional probability connects directly to independence. If A and B are independent and P of B is positive, then P of A given B equals P of A. Conversely, if learning B leaves the probability of A unchanged, then A and B are independent.

  33. Anna

    Here is an example using a partition. Suppose four candidates have probabilities of winning a party nomination, and each candidate has a specified probability of winning the general election conditional on receiving that nomination. Because the four nomination events are mutually exclusive and exhaustive, they partition the sample space.

  34. Michael

    If W is the event that the party wins the general election, then the law of total probability says P of W equals the sum, over all candidates, of P of W conditional on that candidate winning the nomination, multiplied by the probability that candidate wins the nomination. We calculate each candidate-specific joint probability and add them together.

  35. Anna

    This works because the party's general-election win can occur through exactly one of the mutually exclusive nomination events. The partition breaks one complicated probability into several conditional pieces that we know how to calculate.

  36. Michael

    Bayes' theorem reverses a conditional probability. Starting from P of AB equals P of B given A times P of A, and also equals P of A given B times P of B, we get P of A given B equals P of B given A times P of A divided by P of B.

  37. Anna

    Using the partition consisting of A and A complement, we can expand the denominator. The result is P of A given B equals P of B given A times P of A, divided by P of B given A times P of A plus P of B given A complement times P of A complement. The same idea works with a partition containing more than two events.

  38. Michael

    The power of Bayes' theorem is especially clear in medical testing. Suppose Zika affects 1 in 1,000 people in an area, so the prior probability is 0.001. A test is positive with probability 0.99 when a person has Zika, but it is also positive with probability 0.05 when the person does not have Zika.

  39. Anna

    If a woman receives a positive result, we want the probability that she actually has Zika given that positive result. Bayes' theorem uses the prior probability, the true-positive rate, and the false-positive rate. Substituting the values gives a probability below 2 percent, despite the positive test.

  40. Michael

    That may seem surprising because the test is fairly reliable. The explanation is the very low prior probability: Zika is rare in this population, so false positives among the much larger group without Zika can outnumber true positives. The test provides valuable information, but it is not perfect, so the posterior probability remains relatively low.

  41. Anna

    The same updating framework can incorporate additional information, such as symptoms or a fever. We could update sequentially as each new piece of information arrives, or use a formula that incorporates all the information at once, as long as the relevant conditional probabilities are available.

  42. Michael

    So the central progression is: describe outcomes with sample spaces and events, assign probabilities using the axioms, count when outcomes are equally likely, distinguish permutations from combinations, and then use independence or conditional probability to relate events.

  43. Anna

    And when information changes what we know, conditional probability updates the calculation. The law of total probability combines conditional cases across a partition, while Bayes' theorem reverses the direction of conditioning. Together, these ideas form a foundation for probability and for later topics such as the hypergeometric and binomial distributions.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent