Showing posts with label Probability. Show all posts
Showing posts with label Probability. Show all posts

Wednesday, January 10, 2018

Probability (for parents/teachers)

Roll of a single die:

A die is generally understood to be a cube with 6 faces labeled with the numbers 1, 2, 3, 4, 5, 6. Rolls of a die are considered to be independent and each face is considered to have equal probability for a fair die, namely:

P[X=1] = 1/6
P[X=2] = 1/6
P[X=3] = 1/6
P[X=4] = 1/6
P[X=5] = 1/6
P[X=6] = 1/6

For a single roll of a single die, only a single outcome is possible. For example, the probability that a single die thrown lands on a 3 and on a 6 in the same toss is 0 (these two events are said to be mutually exclusive because they can’t both happen at the same time). To understand rolls of two or more dice, we have to introduce the set of all possible outcomes, namely:

Die 1
Die 2
1
1
1
2
1
3
1
4
1
5
1
6
2
1
2
2
2
3
2
4
2
5
2
6
3
1
3
2
3
3
3
4
3
5
3
6
4
1
4
2
4
3
4
4
4
5
4
6
5
1
5
2
5
3
5
4
5
5
5
6
6
1
6
2
6
3
6
4
6
5
6
6

Here we understand that we have 36 possibilities (6 outcomes per die, crossed to make 36 possibilities). We can reasonable make statements about probability of specific events, for example:

Probability that the two faces are equal = 6 events / 36 possible events = 1/6
Probability that two faces are unequal = 30 events / 36 possible events = 5/6

These events can be counted based on our space of events defined above. Counting rules exist to make identification of event spaces and probabilities of events easier, but these rules typically require middle to high school math to apply. More advanced students may be able to understand the axioms of probability.

Considering the extension to 3 or more dice, we can reasonably use induction to enumerate our event space. We can use some straightforward calculations to find a couple of probabilities of interest. The total number of outcomes and probabilities for the lab events for various dice counts follows:

Dice
Outcomes
Count of half or more dice landing same face
P(half or more dice landing same face)
Count of all dice same face
P(all dice same face)
1
6
2
36
36
1
6
1/6
3
216
6
1/36
4
1296
216
1/6
6
1/216
5
7776
6
1/1296
6
46656
1296
1/36
6
1/7776


For six dice, to determine total possible outcomes: 6 possibilities for die 1 * 6 possibilities for die 2 * 6 possibilities for die 3 * 6 possibilities for die 4 * 6 possibilities for die 5 * 6 possibilities for die 6 = 46656 total events possible

For half or more dice to land on same face: 6 possibilities for die 1 * 1 possibility for die 2 * 1 possibility for die 3 * 6 possibilities for die 4 * 6 possibilities for die 5 * 6 possibilities for die 6 = 1296 events where this combination occurs. Consider that the independence of events allows us to interchange dice freely without loss of generality (we could say dice 1,2,3 need to land on same face the same way we could say dice 4, 3, and 6 need to land on same face. The assignment of the labels 1-6 is arbitrary).

Considering a single throw, with probability 1 out of 36 we would expect half or more of 6 dice to land on the same face. This is 216 times more likely than all dice landing on the same face. For repeated events, the probability of an event occurring 0 or more times would be governed by a binomial distribution with probability p. Considering a process of independent throws of 6 dice, here are expectations for the number of throws that meet the event criteria above for 6 dice (i.e. out of the number of throws, what is the probability of the event occurring in one or more throws?).
throws
p.half
p.all
1
2.78%
0.01%
2
5.48%
0.03%
3
8.10%
0.04%
4
10.66%
0.05%
5
13.14%
0.06%
6
15.55%
0.08%
7
17.90%
0.09%
8
20.18%
0.10%
9
22.39%
0.12%
10
24.55%
0.13%
25
50.55%
0.32%
50
75.55%
0.64%
75
87.91%
0.96%
100
94.02%
1.28%
200
99.64%
2.54%
500
100.00%
6.23%
1000
100.00%
12.07%
5000
100.00%
47.43%
10000
100.00%
72.37%
100000
100.00%
100.00%
1000000
100.00%
100.00%

Remember that the throws are independent, so a single realization of the process could have wildly different outcomes (it’s also worth noting that there is no force that would cause the long run expectation to correct to the probabilities presented above [i.e. with low probability these events might not actually happen given the number of throws above]. Another example of this phenomenon is the possibility of a significant differential in heads or tails appearing with repeated coin flips. Realizations of random processes are not guaranteed to match expectations. This difference is understood to be a fundamental failure for the “martingale” strategy for repeated wagers on independent events).

Students who carry out the experiment with 6 dice would find that they never (or almost never) see all dice land on the same face during a single throw of all dice. They might find a significantly larger number of occurrences (after repeated throws) of finding 3 or more dice land on the same face.

A useful mental exercise is to connect the probabilities of events such as dice throws, coin flips, and card draws to real world events. For example, how many dice would need to land on the same face to have an equivalent probability to being hit by lightning? How many dice to have an equivalent probability to making a basketball shot throwing backwards from half-court?

The next step is to consider other combinations of events and rules that govern those events (ex. what is the probability of 3 out of 6 dice landing on the same face, but having no single die land on a 4? This possibility happens to be 5 * 1 * 1 * 5 * 5 * 5 = 625 / 46656 ~ 1.3%). Students should also recognize that event spaces increase geometrically and not linearly (i.e. the change in outcomes for 3 dice instead of 2 is not the same as going to 6 from 5). Probability is used in almost every scientific field (particularly when connecting the fields of probability and statistics).

Probability problems occur frequently when considering wagers. Consider the following: “Mom wants me to load the dishwasher tonight, but I don’t really want to do it. She has offered to let me throw 6 dice and if they land on the same face, I don’t have to load the dishwasher. If two or more faces come up, I have to load the dishwasher for 2 weeks straight. Which outcome should I accept: a sure outcome of loading the dishwasher for one night, a 1/7776 chance of not having to load the dishwasher tonight, or a 7775/7776 chance (read “nearly sure”) chance of having to load the dishwasher for the next two weeks.” The rational choice is left to the reader/student to determine.

After considering event spaces with independent events (ex. independent dice throws), students can start to consider dependent events and conditional probability. For most introductory probability topics the mathematics are well settled, but many areas of inference are still undergoing heavy research (ex. search space for games such as Chess).

Monday, January 8, 2018

Probability


Probability, the study of how likely something is to occur. We may not know it but probability to used everyday by all sorts of people trying to determine if an event is likely to happen. Think about your favorite toy, the company that made it used probability to determine how likely that toy is to break within a week of you starting to play with it or within a month or even a year. Probability is also used to determine how long a traffic light should be by asking how many cars are likely to build up at the light over this period of time during this portion of the day. All scientific fields use some form of probability to do their work and today we will learn a little more about what probability is.

Experiment Title:

Determining which event is more likely

Objective:

The objective of this experiment is to learn about basic probability or how likely an event is to happen through testing using six dice and seeing which is more likely 3 faces all the same or 6 faces all the same.

Background on Probability:

Pretend you have a coin and flip it. Almost always one of two things will happen: the coin will land on the "heads" side or the "tails" side. For a "fair" coin, we might say that there is an equal chance of a single throw resulting in a "heads" or a "tails". Although we cannot predict a second throw (or third, fourth, fifth, etc...), we can talk about what we might see and which events we might see more. The chances of seeing a particular event (out of all events we are interested in) can be described by a number called a probability. For a "fair" coin, we would say that there is a one in two chance of seeing a "head" and a one in two chance of seeing a "tails" given the throw of a single coin. This is the same as saing there is a 50% chance of a "heads" and a 50% chance of a "tails" if we toss the coin again.

Now pretend we have two coins, what might happen when we throw them at the same time? We can quickly write the possibilities:

-                  Both coins land on heads
-                  Both coins land on tails
-                  Coin 1 lands on heads and coin 2 lands on tails
-                  Coin 1 lands on tails and coin 1 lands on heads

We have four events, each with an equal chance of happening. With two coins, each outcome has a probability of one in four of occurring. If we were to throw two fair coins multiple times we would expect, over the long run, to see each outcome roughly an equal number of times. 

Probabilities have many more uses than coins. We might be interested in any number of questions:

-                  What is the chance it will rain today?
-                  What is the chance that a particular team will win a soccer game?
-                  If I randomly guess on a multiple choice question, what are the chances of getting it right?
-                  How many of my classmates will be absent from school tomorrow?
-                  What are the chances that a first grader, selected at random, will weigh between 50 and 55 pounds?

These questions have two similarities: All talk about uncertain events in the future and all can be defined in terms of events that may occur (and complementary events that will not occur if the event in question occurs). What are some questions that you are interested in?

Often we will not be able to come up with an exact probability of an event occurring, but may talk about a probability compared to an event that we can define a probability for. This is sometimes called subjective probability. We might even revise the questions over time based on new information. For example:

-                  Which is more likely: throwing 3 fair coins and getting three heads or that it will rain today?
-                  Which is more likely: Team A wins the soccer match or throwing a single die and rolling a six?
-                  Which is more likely: Guessing a test question correctly or throwing two coins and both landing on heads?
-                  Which is more likely: 3 or more classmates being absent tomorrow or throwing two dice and having them land on the same face?
-                  Which is more likely: a random first grader weighs between 50 and 55 pounds or a single coin thrown lands on heads?

Materials

-                  6 dice
-                  Pencil
-                  lab notebook
-                  Optional: cup to shake dice in before throwing

Method

Prepare Experiment


  1. Make a prediction about which event is more likely: All 6 dice show the same number when rolled or 3 or more dice have the same number
  2. Decide how many times to roll the dice. A smaller number of times may lead to more errors while a large number of throws will take more time, but provide more certainty.
  3. In your lab notebook, mark an area to tally the number of rolls, tally when 3 or more dice have the same number, and tally for when all 6 dice have the same number

Run Experiment

1.      Roll he dice and tally when each event occurs

Analyze Data

Which event occurred the most? Does this make sense? Why or why not?

Conclusions

Some events occur high a higher (or lower) chance than others. This can often be shown with math or experimentally.

Make It Your Own

Which other events might be of interest? Could different combinations of events lead to different results (say throwing one or more coins and one or more dice at the same time)?

Extension Activities to do at home

Probability is useful every day for determining which events are likely to occur and which are not. In this experiment, we talked briefly about the probability of one or more independent events. Probability encompasses a lot more than independent events. To learn more, consider researching the following topics, with your parents’ permission and help in finding good sites on the subject:
-                  Joint probability for dependent and independent events
-                  Conditional probability
-                  Frequentist probability
-                  Bayesian probability