Random experiments and sample spaces · Mathematics… | StemPy Lab
Course 23.1·Lesson 1 of 3
Random experiments and sample spaces
A random experiment is an action whose result cannot be told in advance, though every possible result can be listed. The list of all results is the sample space. Once you can write it for coins, dice, cards and a bag of balls, with or without putting back, every probability question becomes a counting question.
about 30 min1 simulation1 practice question1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.
Lesson 1 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
What you will be able to do
say what a random experiment, an outcome and a sample space are;
write and count the sample space of coins, dice and cards;
count the outcomes of drawing from a bag with replacement, without replacement and together.
The toss before the game
Before a game, a referee tosses a coin. Nobody can say whether it will show a head or a tail. But everybody can say what it might show: a head or a tail, and nothing else.
That is the whole idea of this lesson. We cannot predict one result. We can list all of them.
Words we need
A random experiment is an action that can be repeated under the same conditions, where each time one result from a known list occurs, and the result cannot be told in advance.
Each possible result is an outcome.
The set of all outcomes is the sample space, written S. The number of outcomes is n(S).
For one toss of a coin, S={H,T} and n(S)=2. For one throw of a die, S={1,2,3,4,5,6} and n(S)=6.
Most of the time in this chapter we use equally likely outcomes. That means a fair coin, a fair die, a well-shuffled pack of cards, and balls that are alike in size and weight. Then no outcome is favoured over another.
More than one thing at a time
A coin tossed three times is one experiment with a longer list. We write each outcome as a string, in the order of the tosses:
S={HHH,HHT,HTH,HTT,THH,THT,TTH,TTT}.
So n(S)=8. Each toss has 2 results, and the results multiply: 2×2×2=8. This is the multiplication principle from the chapter on permutations and combinations.
For two dice, an outcome is a pair (x,y). The first number is the first die, and the second number is the second die. There are 6×6=36 pairs, and (2,5) is a different outcome from (5,2).
A six by six grid of the 36 outcomes of throwing two dice. The first die runs along the bottom from 1 to 6 and the second die up the side from 1 to 6. Each square shows its pair of numbers. The six squares on the diagonal that runs from the top left to the bottom right, where the two numbers add up to 7, are shaded orange.
A trap. Suppose the two dice look exactly alike. A student may say that only 21 pairs are possible, because (2,5) and (5,2) look the same. The 21 pairs are real, but they are not equally likely. The pair (2,5) can happen in two ways and the pair (3,3) in one way. To keep every outcome equally likely, always think of the dice as the first die and the second die, and use the 36 ordered pairs.
Cards
An ordinary pack has 52 cards. There are four suits: spades and clubs are black, hearts and diamonds are red. Each suit has 13 cards: ace, 2 to 10, jack, queen and king. The jack, queen and king are the face cards, so a pack holds 12 face cards. Drawing one card gives a sample space of 52 outcomes.
A bag of balls
A bag holds a red ball R, a green ball G and a blue ball B. Two balls are taken out. How many outcomes are there? The answer depends on how you take them out.
With replacement. Take a ball, note it, put it back, then take again. Any ball can come both times. The outcomes are ordered pairs, and n(S)=3×3=9.
Without replacement, one after the other. The first ball is not put back. The outcomes are still ordered pairs, but a ball cannot repeat. So n(S)=3×2=6.
Two taken together. Order does not matter, because nobody sees which came first. The outcomes are pairs without order: {R,G}, {R,B}, {G,B}. So n(S)=23×2=3.
A tree diagram for taking two balls, one after the other without putting the first back, from a bag with a red, a green and a blue ball. Three branches start at the left, one for each first ball. Two branches leave each of them, one for each remaining ball. The six end points are the ordered pairs RG, RB, GR, GB, BR and BG.
In general, drawing r balls from n different balls gives nr outcomes with replacement, n(n−1)⋯(n−r+1) in order without replacement, and that number divided by r! when the order is ignored. Do you see nPr and nCr from the Class 11 chapter on permutations and combinations? They are the same counts.
A worked example
A coin is tossed and then a die is thrown. Write the sample space and count the outcomes in which the coin shows a head and the die shows a number greater than 4.
The sample space. Pair each result of the coin with each result of the die: H1,H2,…,H6,T1,T2,…,T6. So n(S)=2×6=12.
The outcomes we want. The coin shows H and the die shows 5 or 6. They are H5 and H6.
The count. There are 2 such outcomes out of 12.
Practise with new numbers
Try it in Python
The program lists the sample spaces from this lesson and counts them. The last lines show why we do not use the 21 pairs of two identical dice.
Common mistakes
Treating (2,5) and (5,2) as one outcome. The two dice are the first and the second die. The pairs are ordered.
Counting "number of heads" as the outcome. For three tosses, "2 heads" is not one outcome. It is the three outcomes HHT, HTH and THH.
Adding where we should multiply. Three tosses give 2×2×2 outcomes, not 2+2+2.
Using the wrong draw. "With replacement", "without replacement" and "together" give different sample spaces. Read the words of the question.
Remember these
The sample space S is the set of all outcomes, and n(S) is how many there are.
Independent steps multiply: three tosses give 23=8 and two dice give 62=36.
A pack has 52 cards: four suits of 13, with 12 face cards.
A draw of r from n: nr with replacement, nPr in order without replacement, nCr together.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
How many outcomes does the sample space have when a coin is tossed four times?
A bag holds 4 different balls. Two are taken out together. How many outcomes are there?
A die is thrown and then a card is drawn from a pack. How many outcomes are in the sample space?
A student says that two dice have 21 outcomes. What is wrong with using these 21 pairs?
List the outcomes of tossing three coins in which exactly two show heads.
References
NCERT, Mathematics for Class XI (earlier edition), Probability, section on random experiments and the sample space.
OpenStax, Introductory Statistics, Chapter 3, section on terminology.
Enroll free in Sample Spaces and Events
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.