1.1 Sample Space ================ :bolditalic:`Key Terms` :bolditalic:`Experiment(隨機試驗)` A process that gives an uncertain result. :bolditalic:`Outcome(結果)` One possible result of an experiment. :bolditalic:`Sample point(樣本點)` One individual outcome in a sample space. :bolditalic:`Sample space(樣本空間)` The set of all possible outcomes. We usually use the symbol :math:`S`. 1.1.2 Learning Outcomes ----------------------- After completing this section, students should be able to: - explain experiment, outcome, sample point, and sample space in simple words; - write the sample space for a simple experiment; - explain why the same experiment can have different sample spaces; - use a tree diagram to list outcomes systematically; - describe a large or infinite sample space using a rule. 1.1.3 Sample Space ------------------ Probability starts with a simple question: What can happen? An **experiment** is a process with an uncertain result. One possible result is called an **outcome**. The **sample space** is the set of **all possible outcomes** of the experiment. .. note:: **Sample space :math:`S`:** the set of all possible outcomes. The main connection is: Experiment -> Outcome -> Sample Space Each individual outcome in the sample space is called a **sample point**. For example, if .. math:: S = \{1,2,3,4,5,6\}, then :math:`4` is one sample point, and we can write .. math:: 4 \in S. 1.1.4 Example 1: Rolling One Die -------------------------------- **Experiment:** Roll one six-sided die one time. The possible outcomes are .. math:: 1,2,3,4,5,6. Therefore, the sample space is .. math:: S = \{1,2,3,4,5,6\}. There are six sample points in this sample space. The important idea is that the sample space must include **all possible outcomes**. 1.1.5 Same Experiment, Different Sample Space --------------------------------------------- Suppose we roll one die. If we record the exact number on the top face, the sample space is .. math:: S_1 = \{1,2,3,4,5,6\}. Now suppose we roll the same die, but we record only whether the result is odd or even. Then the sample space is .. math:: S_2 = \{\text{odd},\text{even}\}. The experiment is the same, but the information we record is different. The sample space therefore depends on the result that we choose to record. The same physical experiment can lead to different, equally valid sample spaces. .. image:: ../_static/figures/probability/figure_1_1_1_same_experiment_different_sample_spaces.png :width: 82% :align: center :alt: One die roll represented by two different sample spaces, one recording the exact face and one recording only odd or even. .. note:: The sample space depends on **what we record**. The first sample space gives more information than the second one. For example, if we know that the die shows 4, we also know that the result is even. However, if we only know that the result is even, we do not know whether the die shows 2, 4, or 6. 1.1.6 Ways to Describe a Sample Space ------------------------------------- For a small sample space, we can list all possible outcomes. For a process with several steps, a tree diagram can help us list the outcomes in a systematic way. For a large or infinite sample space, it is often better to describe the possible values using a rule. 1.1.7 Example 2: Tossing a Coin Twice ------------------------------------- **Experiment:** Toss one coin two times. A tree diagram helps us list all possible outcomes. At each toss, the process branches according to whether the result is heads or tails. Following a path from the starting point to an endpoint gives one complete sample point. .. image:: ../_static/figures/probability/figure_1_1_2_two_coin_toss_tree.png :width: 88% :align: center :alt: Tree diagram for two coin tosses showing the four sample points HH, HT, TH, and TT. Therefore, .. math:: S = \{HH,HT,TH,TT\}. For example, ``HT`` means heads on the first toss and tails on the second toss. .. note:: A **tree diagram** is a systematic way to list possible outcomes. It helps us check that no possible outcome is missing. 1.1.8 Example 3: A Large or Infinite Sample Space ------------------------------------------------- Suppose :math:`X` represents the lifetime of an object. A lifetime cannot be negative. The possible values are all nonnegative values. Because there are infinitely many possible values, we do not list them one by one. Instead, we write .. math:: S = \{x \mid x \geq 0\}. Here, the symbol :math:`\mid` means ``such that.`` So the expression means: :math:`S` is the set of all values :math:`x` such that :math:`x` is greater than or equal to 0. This gives two common ways to describe a sample space: .. list-table:: :header-rows: 1 :widths: 30 30 40 * - Type - Method - Example * - Finite and simple - List the outcomes - :math:`S=\{1,2,3,4,5,6\}` * - Large or infinite - Describe the possible values - :math:`S=\{x\mid x\geq0\}` 1.1.9 A Simple Method --------------------- When you need to describe a sample space, ask these questions: 1. What is the experiment? 2. What result are we recording? 3. What are **all** possible outcomes? 4. Is the sample space small enough to list? 5. If the process has several steps, would a tree diagram help? 6. If the sample space is large or infinite, can we describe it using a rule? The goal is always the same: Describe all possible outcomes clearly. 1.1.10 Common Mistakes ---------------------- A common mistake is to leave out a possible outcome. For two coin tosses, .. math:: S = \{HH,HT,TH,TT\} is complete. Writing only :math:`\{HH,HT,TT\}` is not correct because ``TH`` is missing. Another mistake is to forget what is being recorded. For one die roll, .. math:: \{1,2,3,4,5,6\} and .. math:: \{\text{odd},\text{even}\} can both be correct sample spaces. They answer different questions about the same experiment. A third mistake is to try to list every value in a large or infinite sample space. In this case, a rule is usually clearer. 1.1.11 Summary -------------- An **experiment** is a process with an uncertain result. An **outcome** is one possible result. A **sample point** is one individual outcome in the sample space. A **sample space** contains all possible outcomes. The main connection is: Experiment -> Outcome -> Sample Space For a small sample space, we can list the outcomes. For a process with several steps, a tree diagram can help us list the outcomes systematically. For a large or infinite sample space, we can describe the possible values using a rule. .. note:: **Main idea:** A sample space must describe **all possible outcomes**. .. 1.1.12 Short Review Questions .. ----------------------------- .. 1. What is an experiment? .. 2. What is an outcome? .. 3. What is a sample point? .. 4. What is a sample space? .. 5. Write the sample space for rolling one die. .. 6. A die is rolled, but only odd or even is recorded. What is the sample space? .. 7. Write the sample space for tossing one coin two times. .. 8. What is the purpose of a tree diagram? .. 9. What does :math:`S=\{x\mid x\geq0\}` mean?