Statistik topic6 events and probability

29
INTRODUCTION In this topic we will discuss about events and their probability measures. Some important aspects about events to be considered are the: occurrence of events; relationship with other events; and probability of their occurrence. An event is an occurrence that can be observed and its outcome can be recorded. Examples of events are: (a) attendance in school (b) school holidays (c) return to village (d) return to village during school holidays (e) buying stock when the price is low, etc. An occurrence of an event can be measured in two ways depending on how we address it. Let an event be “Ahmad passes the final examination”. One way to T T o o p p i i c c 6 6 Events and Probability LEARNING OUTCOMES By the end of this topic, you should be able to 1. explain the concept of event and its occurrence, 2. describe the relationship between two or more events via set’s operation, 3. calculate probability of a given event; and 4. estimate conditional probability.

description

 

Transcript of Statistik topic6 events and probability

Page 1: Statistik topic6 events and probability

INTRODUCTION

In this topic we will discuss about events and their probability measures. Some important aspects about events to be considered are the:

occurrence of events;

relationship with other events; and

probability of their occurrence.

An event is an occurrence that can be observed and its outcome can be recorded. Examples of events are:

(a) attendance in school

(b) school holidays

(c) return to village

(d) return to village during school holidays

(e) buying stock when the price is low, etc.

An occurrence of an event can be measured in two ways depending on how we address it. Let an event be “Ahmad passes the final examination”. One way to

TTooppiicc 66 Events and Probability

LEARNING OUTCOMES

By the end of this topic, you should be able to

1. explain the concept of event and its occurrence,

2. describe the relationship between two or more events via set’s operation,

3. calculate probability of a given event; and

4. estimate conditional probability.

Page 2: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 80

address it is by asking him “what is your chance to pass your final examination?”. Another way to measure the occurrence of the above event is by raising question such as “What is the probability that Ahmad can pass the final examination?”. The numerical measure for the first method is in the interval of 0% to 100% (inclusive), whereas for the second method the value is between 0 and 1. We will discuss these aspects in this topic.

EVENTS AND THEIR OCCURANCES

We can see or observe events occurring everyday or even from multimedia news. Following to the events listed in the introduction section, we may introduce following additional events:

(f) Die/pass way;

(g) Cat having horns;

(h) Wife wants to enter university if husband gets promotion;

(i) Ahmad attends English for SPM in the year 2005 at School A; and

(j) Ahmad attends English for SPM in the year 2005 at School B.

Various events mentioned earlier can fall between two extreme categories of events i.e. the impossible event on the far left hand such as “cat having horns” and the sure (or eventual to occur) event far on the right hand such as “die/pass way”. Events (a), (b), (c), and (i) are ordinary events that can occur on their own.

Events (d), (e), and (h) are examples of conditional events. The event (d) can be rewritten as going back to village if there is a school holiday comprises of event “going back to village” provided there is another event “school holiday”. This mean that the event “going back to village” can only occur after the other event “school holiday” has occurred. We call this type of event as Conditional Event. Can you explain in the same manner the event (h)? The events (i) and (j) are examples of two events that cannot occur at the same time.

6.1

Can you define two events from daily activities and try to address it by the two methods, mentioned above?

Page 3: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 81

EXPERIMENT AND SAMPLE SPACE

In the context of probability, an experiment can be considered as consisting of a sequence of trials where each trial possesses its own possible outcomes. The total outcomes of an experiment will then be the combination of trials outcomes. This set of total possible outcomes is called sample space. An event is defined as subset of sample space.

The following are Examples of experiments:

(a) throwing Malaysian Coin once,

(b) throwing an ordinary dice once,

(c) throwing Malaysian Coin twice,

(d) throwing Malaysian Coin followed by throwing an ordinary dice.

Throwing Malaysian coin is called a trial whose possible outcome is “G, which stands for Parliament Picture”, and another possible outcome is “N, which stands for the number on the coin”. Operationally for this trial, if you get ‘G’ on a throw, then you still need at least one more throw to get ‘N’ in order to complete all possible outcomes of this trial. If it happens that the second throw also obtain “G” (repeat the previous outcome) then discard the throw, and carry on another throw and so forth until you get “N”. Then all possible outcomes of this trial are {G, N}. As a set, this is also equivalent to {N, G} depending how you record the outcome of each throw.

Similarly, throwing an ordinary dice is another example of a trial whose possible outcomes are {1, 2, 3, 4, 5, 6}. The numbers 1, 2, 3, 4, 5, 6 are actually the number of dots on the respective face of the ordinary dice. So on any single throw, you may get either one of these numbers and you need at least six throws to get all possible outcomes of this trial.

In the above examples, (a) and (b) are single trial experiments; (c) is repeated trials experiment. The experiment (d) is multiple trials experiment where the

6.2

(a) Give an example of one impossible event and one very sure event. (b) Define one conditional event. (c) Give two events that cannot occur at the same time.

Page 4: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 82

first trial is “throwing a coin” follow by “throwing an ordinary dice” as the second trial.

Sample space (denoted by S) of single trial experiment is the same as the possible outcomes of the trial. Thus the sample space for experiment (a) is S = {G, N}, and for experiment (b) is S = {1, 2, 3, 4, 5, 6}. Table 6.1 bellow shows how possible outcomes are recorded according to the result of each throw. Normal rule in a set theory says that order of elements of a set is not important, therefore S1

S2 S3 S = {1, 2, 3, 4, 5, 6}.

Table 6.1

Recorder Results Recorded Per Throw Sample Space

Ahmad (8 throws), 2 repeated 6, 2, 4, 3, 5, 1 S1 = {6, 2, 4, 3, 5, 1}

Yap (10 throws),4 repeated 4, 2, 1, 3, 5, 6 S2 = {4, 2, 1, 3, 5, 6}

Samy (6 throws), no repeated 6, 5, 1, 3, 4, 2 S3 = {6, 5, 1, 3, 4, 2}

A tree diagram is commonly used to obtain sample space of repeated or multiple trials experiment. We have the following diagram for Experiment (b):

Figure 6.1

The followings are steps of drawing a tree diagram:

(a) List all possible outcomes of each trial involved

Page 5: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 83

(b) Visualise the whole operation of the experiment which comprises of first, second, third and so on of trials involved

(c) Start by drawing the first branch which represents an outcome of the first trial, it is immediately followed by a branch representing an outcome of the second trial, third trial and so on.

(d) Then go back to the original point and start to draw a branch for another outcome of the first trial, follow through for the rest of the trials involved.

To draw Figure 6.1, we know that only two branches for the first trial and the second trial. Let us draw the Branch ‘G’ of the first trial, and immediately draw Branch ‘G’, and Branch ‘N’ of the second trial. Now for step (d), go back to the origin and draw Branch ‘N’ representing the only other outcome of the first trial, it is followed immediately by Branch ‘G’ and Branch ‘N’ of the second trial.

Connection of first trial and branch of the second trial will produce combination of first trial outcomes and the second trial outcomes. Thus, we have a total collection of combined outcomes GN, GG, NG, and NN. Therefore, the sample space of this experiment is S = {GG, GN, NG, NN}. You can draw a tree diagram for experiment (d) where the first trial which is “throwing coin” has two branches, one branch for ‘G’ and one for ‘N’. The second trial which is “throwing ordinary dice” has six branches, one for each outcome 1, 2, 3, 4, 5, 6. Thus the sample space for Experiment (d) is S = {G1, G2, G3, G4, G5, G6, N1, N2, N3, N4, N5, N6}.

1. If we change the sequence of trials in Experiment (d), draw the suitable tree diagram and obtain the sample space.

2. Refering to the sample space of Experiment (c), can you interpret the outcome NG. Do you think outcome GN = NG? Explain why?

Page 6: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 84

Example 6.1

A fair Malaysian coin is tossed three consecutive times. Obtain the sample space of this experiment.

Solution

This experiment is of the type repeated trials where the trial is “tossing a fair Malaysian coin”. Actually it is an extension of Experiment (c) given above. We can extend easily Figure 6.1 to accommodate outcomes of the third toss coin. The possible sample space will be:

S = {GNG, GNN, GGG, GGN, NGN, NGG, NNN, NNG}.

As has been explained earlier, sample space S is just a universal set of all possible outcomes of an experiment. As a set, the order of its elements is immaterial. Referring to the above sample space S, one can have different arrangement of elements for the same S; probably he may record NNG first followed by the other elements. Can you draw the tree diagram to suit this outcome?

However, for each element in S, the order of items is very important because items are representing outcomes of trials in that order. For instance, the element GNG with items G, N and G has to be in that order because the first G is the outcome from the first throw, followed by item N as the outcome of the second throw and finally followed by item G the outcome of the third throw. Thus element GNG is not equivalent to element GGN in that contact.

ACTIVITY 6.1

(a) A special fair dice consists of four faces numbered 1,2,3,4 is thrown. Write down the sample space.

(b) Now the dice in (a) is thrown, followed by tossing a fair Malaysian coin. What is the category of this experiment? Write down its sample space.

Page 7: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 85

EVENT AND ITS REPRESENTATION

There are two ways of representing event either by Venn diagram or Algebraic set. For clarification purpose, both representations can be put together. Since event is a subset of the sample space S, therefore the sample space S will play the role of the universal set. This means that any event A, must be defined relative to its sample space S. Thus, if S belongs to the experiment of throwing ordinary dice, then event B = {G} is meaningless or is not defined.

Figure 6.2 below shows how Venn diagram is very useful to clarify further the algebraic set of an event. This figure depicts the sample space S = {1, 2, 3, 4, 5, 6} and its defined events A = {1, 2, 3}, B = {4, 5, 6}, and C = {1, 3, 5}. You can observe that there are some overlapping between C and A, as well as between C and B. However, A and B are not overlapping. We will discuss about these relationships between any two events later on.

Figure 6.2: Venn diagram of events A, B, C, and S

Example 6.2

Refering to the sample space of Example 6.1, define some examples of events.

Solution

The sample space is restated here as:

S = {GGG, GGN, GNG, GNN, NGG, NGN, NNG, NNN}

6.3

Page 8: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 86

Let us define the following events:

A : Throw any two consecutive pictures

B : Throw at least two pictures

C : Obtain two pictures for the last two throws

D : Obtain same items for the three throws

E : Obtain alternate items in the three throws. For the above sample space, it is better to represent the events using algebraic sets as follows:

A = {GGN, NGG}

B = {GGG, GGN, GNG, NGG}

C = {GGG, NGG}.

D = {GGG, NNN}.

E = {GNG, NGN}.

Example 6.3

Let S be the sample space of experiment throwing ordinary dice, once. Define some events from this sample space.

Solution

The sample space is given by S = {1, 2, 3, 4, 5, 6}. Let us define the following events:

A : Throws numbers less than 4

B : Throws numbers more than 3

C : Throw odd numbers

D : Throw even numbers

E : Throws numbers more than 4

F : Throws numbers less than 2

G : Throws any numbers

H : Throws no numbers.

Page 9: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 87

We can use algebraic set to clarify the elements of each event as follows: A = {1, 2, 3} B = {4, 5, 6} C = {1, 3, 5} D = {2, 4, 6} E = {5, 6} F = {1} G = {1, 2, 3, 4, 5, 6} H = , empty set.

For further clarification, Venn diagram as in Figure 6.3 below can also be drawn as follows so that we can see any relationships between them.

Figure 6.3: Venn diagram for A, B, ...., H of experiment throwing ordinary dice

ACTIVITY 6.2

Refer to the experiment in Exercise 6.1, write down elements of the following events: A: obtain numbers less than 4; B: obtain numbers 2 and above; C: obtain odd numbers; and D: obtain even numbers.

Page 10: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 88

6.3.1 Mutually Exclusive Events

(a) Involving Two Events Any two events defined from the same sample space is said to be mutually

exclusive if both of them cannot occur at the same time. It means that their algebraic sets do not overlap, or their overlapping is equal to null set. Let us go back to Example 6.3, we have A and B as mutually exclusive events; likewise events C and D.

(b) Involving Three Events Three events P, Q and R are said to be mutually exclusives if and only if the

three pairs P and Q, P and R, and Q and R are all mutually exclusives. Refering to sample space of throwing ordinary dice, let P = {1,3}, Q = {2, 4}, and R = {5, 6} where P Q = P R = Q R = , empty set. Therefore events P, Q and R are three mutually exclusive events.

6.3.2 Independent Events

Two events P and Q are said to be independent of each other if and only if the occurrence of P does not affect the occurrence of Q and vice versa.

6.3.3 Complement Event

Two events P and Q defined from the same sample space are said to be complementing each other if their union completes or forms the sample space i.e. P Q = S. Then we may write Q PC which mean Q is a complement of P. Similarly, we can write P QC. Thus we have equations P PC = S and also Q QC = S. As an example, Events A and B in Example 6.3 are complementing each other since A B = {1, 3, 5, 2, 4, 6} = S.

6.3.4 Simple Event

Simple event is an event which possess one element of the sample space. Algebraicaly it means singleton set. For S = {1, 2, 3, 4, 5, 6}, we have six simple events which are {1}, {2}, {3}, {4}, {5}, {6}. For S = {GG, GN, NG, NN}, we have four simple events which are {GG}, {GN}, {NG}, {NN}. We can observe that the union of all simple events is equal to the sample space S.

Page 11: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 89

6.3.5 Impossible Event

Relative to a given sample space S, if P does not contain any single element of S, then P is said to be an impossible event. For example, let S = {1, 2, 3, 4, 5, 6}, events P = {0}, and Q = {7} are impossible events. Similarly, if S = {GG, GN, NG, NN}, then event R = {GNG} is an impossible event.

6.3.6 Equiprobable Events

A random experiment is an experiment whereby we cannot predict its outcomes before the experiment is completed. Take the experiment of throwing ordinary dice; we cannot determine which number will come out after each trial. This is an example of random experiment, and we have therefore each simple event of the sample space S is equally probable event. In simple words, each element of S will have equal chance to occur.

6.3.7 Occurrence of Event

An event, A defined from S is said to occur if and only if an outcome of a trial is an element of A. The example below will explain the meaning of occurrence of a defined event.

Example 6.4

Let us refer back to Example 6.3 regarding to throwing of ordinary dice once and also the defined events there. Since there are six possible numbers as possible outcomes, therefore the throw or trial has to proceed untill all numbers have appeared. Outcome of each throw has to be recorded accordingly. Table 6.2 shows the recorded oucome of each throw as well as occurrence of the defined event pertaining to the recorded outcome.

Table 6.2

The Throw Outcome of the Throw Events said to be Occurred 1 6 B, D, E, G 2 5 A, D, G 3 4 B, D, G 4 3 A, C, G 5 2 C, B, E, G 6 1 A, C, F, G

Page 12: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 90

We can draw some conclusions from the table:

(i) The event G seems to occur at all throws which means G is a sure event.Since G always occurs at all situations, then G is actually the sample space of the experiment.

(ii) On the other hand, the event H does not occur at any throw to indicate that H is impossible event.

(iii) Events B, D and E can occur at the first throw i.e. the throw that produce ‘6’. However B and D both can occur at the third throw which produce outcome ‘4’. Algebraically we can say that B D E = {6}, and B D = {4}. Since their overlapping is not empty set, therefore they are non-exclusiveevents.

(iv) Events A and C seem to occur together at two different situations i.e. when obtaining ‘3’ at the fourth throw and when getting ‘1’ at the sixth throw. Thus, algebraically, we have A C = {3,1}.

(v) From the above table we can also find some mutually exclusive eventswhich cannot occur at the same time or on the same throw. Events A and D; C and D; D and F; A and E; B and F are pairs of mutually exclusive events.

ACTIVITY 6.6

Consider the experiment tossing a Malaysian coin followed by throwing a fair ordinary die. Obtain its sample space, S, then

(i) State the elements of the following events:

(a) P : Obtain G on coin and even numbers on the die, G represents picture on the coin;

(b) Q : Obtain prime numbers on the die;

(c) R : Obtain G on coin and odd numbers on die.

(d) P Q

(e) Q R(f) Only event Q to occur.

(ii) Amongst P, Q and R determine pairs of mutual exclusive events.

Page 13: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 91

6.3.8 Probability of an Event

Let E be an event defined from a given equiprobable sample space S, the probabality of occurrence of E is given by:

)()(

SinelementsofNumberEinelementsofNumber)Pr(

SnEnE

Formula 6.1

Propositions:

(a) If E is an empty set then n(E) = 0, and therefore Pr(E) = 0. Thus, any impossible event will have zero probability to occur.

(b) If E is sure event then E S, and n(E) = n(S), and therefore Pr(E) = 1. Thus for any event which is sure to occur will have probability value 1.

(c) If E is any event occuring between the above two extreme events, then the Pr(E) is lying in the interval 0<Pr(E)<1.

Thus, any event which is close to the extreme left (i.e.impossible situation), its probability value is fairly close to zero; on the other hand, if event E is close to the extreme right (i.e.sure event), then its probability value is fairly close to 1. In general, any event E will have its probability lying in the interval of

0 Pr (E) 1.

Formula 6.2

Example 6.5

Refer back to Example 6.3 and find the probability of the occurrence of events A, B, C, E, G, H.

Solution

The sample space S of the throwing an ordinary die is equiprobable which means that all simple events in S has equal probability to occur. Thus we can use Formula 6.1 to find the required probabilities as follows:

Page 14: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 92

Pr(A) = n(A)/n(S) = 3/6 = 0.5. Pr(B) = n(B)/n(S) = 3/6 = 0.5. Pr(C) = 0.5. Pr(E) = 2/6 = 1/3. Pr(G) = 6/6 = 1, and Pr(H) = 0/6 = 0.

We conclude the followings:

COMPOUND EVENTS

We have mentioned earlier that an event must be defined from a given sample space. If we have two defined events from the same sample space, then by using set operations we can construct new events which will be categorised as compound events. Consider three defined events P, Q, R, and then we have three set operations used to develop compound events as follows:

(a) Union operation, “ ”

(i) Union of two events. B compound event A = P Q. A will contain all elements in P, and elements in Q, as well as common elements in them. It is the event that P occurs, or Q occurs, (or both). For example, if P = {1,2,3,4}, Q = {3, 4,5}, then A = P Q = {1,2,3,4,5}.

(ii) Union of three events, A compound event B = P Q R which will contain elements in P, in Q and in R, as well as elements in common to them. It is the event that P occurs or Q occurs or R occurs; or P and Q,

6.4

Probability of each event is lying in the interval between 0 and 1,

H is an impossible event,

G is a sure event,

Pr(A) + Pr(B) = 1, this proves that A and B are complement events whereby A B = S.

ACTIVITY 6.4

A box contains 5 red balls and 3 blue balls. A ball is randomly taken out from the box and its colour recorded before returning back to the box. Find the probability of obtaining a:(a) red ball; (b) blue ball.

Page 15: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 93

P and R, or Q and R (or all of them) ocuurs. For example, if P = {1,2,3,4}, Q = {3,4,5}, and R = {4,5,6}, then B = P Q R = {1,2,3,4,5,6}.

(b) Overlapping operation, “ ”

(i) The compound event C = Q P contains elements in common in them. It is the event that occurs that if Q occurs and R occurs. For example, if P = {1,2,3}, Q = {3, 4,5}, then C = P Q = {3}.

(ii) The compound event D = P Q R contains elements in common to three of them. This means the event that occurs when all three of them occur at the same time. For example, if P = {1,2,3,4}, Q = {3, 4,5}, and R = {4,5,6}, then D = P Q R = {4}.

(c) To conclude, event B in (a) (ii) will contain events P Q R = {4},P Q ={3,4}, P R = {4}, Q R = {4,5}, P alone = {1,2}, Q alone =

R alone = {6}.

6.4.1 Probability of Compound Event

We have the following rules to obtain the probability of compound events.

(a) Compound by union operation, ‘ ’

Let P, Q and R be any three events defined from a given sample space S, then

(i)

)Pr()Pr()Pr()Pr( QPQPQP

Formula 6.3

(ii) If P and Q are mutual exclusive events, then

)Pr()Pr()Pr( QPQP

Formula 6.3(a)

(iii)

)Pr()Pr()Pr()Pr()Pr()Pr()()Pr( RQPRQRPQPRQPPRQP

Formula 6.4

Page 16: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 94

(iv) If P, Q and R mutual exclusive events, then

)Pr()Pr()Pr()Pr( RQPRQP

Formula 6.4(a)

(b) Compound events by ‘ ’

Let P, and Q be any two events defined from a given sample space S, then:

(i)

)()()Pr(

SnQPnQP

Formula 6.5

(ii)

)Pr()Pr()Pr( PQPQP , where PQ is conditional event, see later.

Formula 6.5(a)

(iii) If P, and Q are independent events, then

Pr ( ) Pr( ) Pr( )P Q P Q

Formula 6.5(b)

(c) Complement eventsIf Qc is the complement of event Q and they are defined from the same S, then:

)Pr(1)Pr(;1)Pr()Pr()Pr(

,

QQSQQ

SQQ

c

c

c

Formula 6.6

Page 17: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 95

Example 6.6

Refer back to the Example 6.3, and find the probability of the following compound events:

(a) B C,

(b) B D

Solution

(a) From the defined events, we have B C = {5}, and B D = {4,6}, then the Formula 3.1, Formula 3.3 and Formula 3.5 give:

31

62)(and,

61)(

21

63)(

21

63)(,

21

63

)()()(

CBPrCBPr

DPr

CPrSnBnBPr

Then by using Formula 3.3

65

61

21

21)( CBPr

Page 18: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 96

TREE DIAGRAM AND CONDITIONAL PROBABILITY

A Tree diagram is usually used to resolve the followings:

(a) analyse a given experiment in the context of its operation and presenting the trials in the proper sequence as they should be occurring in the real situation. In other words, tree diagram should represent the actual operation of an experiment.

(b) the correct tree diagram plays an important role of getting a correct combination of trials outcomes to generate sample space, especially for repeated trial and multiple trials experiments.

(c) shows appropriate probability values at each branch with a pair branch has a total probability equal to 1.

(d) depicts outcomes of each trial as well as conditional events.

Consider a tree diagram in Figure 6.4 below. We should be able to read and interpret the diagram and try to imagine the operation aspect of the experiment represented by the diagram. We may try the following way:

6.5

ACTIVITY 6.5

1. A fair Malaysian coin is tossed, and immediately followed by tossing a fair four faces die marked 1,2,3,4. Obtain sample space and events.

(a) A: Picture and even numbers appear; B: Number on coin and odd numbers on die; C: Numbers 3 and above appear on die.

(b) A C, B C.

2. Which of the events A, B and C are mutually exclusive?

3. Obtain probabilities of A, C and (A C).

Page 19: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 97

Figure 6.4: Example of a tree diagram

(i) The diagram shows that the first trial produce outcomes either {M}, or {K} where {M} has probability 3/20 to occur.

(ii) After getting {M} it is immediately follow by the second trial which produce either {W}, or {V} where {W} has probability 7/15 to occur.

(iii) Similarly, the first trial may produce outcome {K}, and it is immediately followed by second trial which produces either {V} with probability 8/15, or {W}.

(iv) From observations (i) and (ii) we can understand that the experiment represented by the diagram is possibly of the category multiple trials.

(v) Event {M}, or {K} are called unconditional events, they can occur on their own. However, events {W} and {V} are conditional events. This means that {W} can occur conditionally in two situations:

after the outcome {M} and in probability language we term this conditional W as W|M,

after the outcome {K} and in probability language we term this conditional W as W|K,

We can explain in a similar way for conditional event V. In general we conclude that outcomes of the second trial are conditional events which means they occur after the outcomes of the first trial. Similarly, the outcomes of the third trial are conditional based on the outcomes of the second trial, and so forth.

Page 20: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 98

(vi) The combinations of branches will produce the required combinations of outcomes. Thus the events combinations are: {MW}, {MV}, {KV}, {KW}. The sample space of the experiment is S = {MW, MB, KB, KW}.

(vii) As for probability, we have the rule that sum of probability of a pair branches is equal to 1. Thus,

Pr(M) + Pr(K) = 1, and Pr(K) = 1 – 3/20 = 17/20.

Pr(W|M) + Pr(V|M) = 1, and Pr(V|M) = 1 – 7/15 = 8/15.

Pr(V|K) + Pr(W|K) = 1, and Pr(W|K) = 1 – 8/15 = 7/15.

(viii) So for the whole experiment the probability of all simple events in S are given by

Pr(MW) = Pr(M) Pr(W|M) = 3/20 7/15 = 7/100.

Pr(MV) = Pr(M) Pr(V|M) = 3/20 8/15 = 6/75.

Pr(KV) = Pr(K) Pr(V|K) = 17/20 8/15 = 34/75.

Pr(KW) = Pr(K) Pr(W|K) = 17/20 7/15 = 119/300.

You can verify that

Pr(S) = Pr(MW)+ Pr(MV)+ Pr(KV)+ Pr(KW) = 1.

By looking at the above sample space S, we should now understand that the event MW actually means the event M W. Therefore in probability language we should write Pr(MW) as Pr(M W) and we have the following relationship:

Pr(M W) = Pr(M) x Pr(W|M)

From the above relationship we can have the general formula of conditionalprobability for conditional event as follows:

Let P and Q are two defined events from the same sample space S, then the probability of conditional event Q|P is given by:

)Pr( PQ)Pr(

)Pr(P

PQ

Formula 6.7

Page 21: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 99

Since Q P = P Q, therefore we also have

)Pr( QP)Pr(

)Pr(Q

PQ

Formula 6.7(a)

Example 6.7

We refer back to Example 6.3, find the conditional probability of the conditional event E|B.

Solution

From Formula 6.7, we have

)Pr( BE)Pr(

)Pr(B

BE

Thus we need to find the compound event E B, and its probability; as well as the Pr(B). From the given information in Example 6.3, we have B = {4,5,6}, and E = {5, 6}; therefore E B = {5, 6}:

Pr(B) = n(B)/n(S) = 3/6 = 0.5;

Pr(E B) = n(E B)/n(S) = 2/6 = 1/3.

Pr(E B) = (1/3)/(1/2) = 2/3.

ACTIVITY 6.6

Given two boxes containing oranges as follows:

Box A contains 10 oranges including 4 bad oranges.

Box B contains 6 oranges including 1 bad orange.

One of the above boxes is selected randomly and an orange is randomly taken out from it. What is the probability that the taken orange is a bad one?

Page 22: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 100

6.5.1 Bayes Teorem

Let us go back to the tree diagram given in Figure 6.4. The sequence of trials shows that V always happened after M or after K has had happened. This means we are talking about conditional event V|M or V|K. Now, supposing V is the outcome of the experiment, therefore either simple events {MV} or {KV} of the sample space are said to happen or in short X is said to happen where X = {MV, KV}. In this situation, we are actually not sure either V in {MV} or V in {KV}. Thus we can raise several questions on probabilities of conditional events as follows:

(a) What is the probability of event X|M?

(b) What is the probability of event X|K?

(c) Given ‘V’, what is the probability that it is ‘after’ M? or equivalently to say what is the probability of event M|X to occur?,

(d) Given ‘V’, what is the probability that it is ‘after’ K? or equivalently to say what is the probability of event K|X to occur?

We can use Formula 6.7 to answer question (a) as follows:

Pr(X M) = )Pr()Pr(

)Pr()Pr()Pr(})Pr({

)Pr()Pr( MV

MMMV

MMV

MMX ,

It is the probability value at the branch MV. The answer for question (b) can be obtained in a similar way. So, it is very straight forward for these two conditional events, but it is not so for questions (c) and (d), and we need Teorem Bayes as derived below.

Let us partition exhaustively the sample space S into two mutual exclusive events M and K. Here the word exhaustive is to mean K M = S. Further, let X be a compound event generated from the same experiment.

Page 23: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 101

Figure 6.5 As can be seen from Figure 6.5 above, we can have the following facts:

As shown above, Pr (X|M) and Pr (X|K) are considerd known or can be calculated directly. Then, we have the following Bayes Theorem for two partitions:

(i)

Pr (M X) =)Pr(

)Pr()Pr()Pr(})Pr({

)Pr()Pr(

XMMV

XMV

XXM ,

Formula 6.8

(ii)

Pr (K X) =)Pr(

)Pr()Pr()Pr(})Pr({

)Pr()Pr(

XKKV

XKV

XXK ,

Formula 6.8(a) where Pr( ) Pr ,

Pr Pr

Pr Pr Pr Pr

x MV KV

MV KV

M V M K V K

X S; X can possibly overlap with M to give (X M) = {MV,KV} M = {MV};X is also possible to overlap with K to give (X K) ={MV, KV} K = {KV};We can write X = (X M) (X K) = {MV, KV}; and (X M) (X K) = .

Page 24: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 102

Therefore to use the above theorem, we require all probabilities of the R.H.S (right hand side) of the equality sign of each formula. We can extend the idea of partitioning exhaustively the sample space S to three exclusive events M, K and N. Then we have the following Bayes Theorem for three partitions:

We can use the same idea and write:

S = (X M) (X K) (X N), and

X = (X M) (X K) (X N) = {MV, KV, NV}

We tend to find probability of conditional events K|X, M|X, N|X by the following formulas:

(i) Pr (M X) =)Pr(

)Pr()Pr()Pr(})Pr({

)Pr()Pr(

XMMV

XMV

XXM ,

(ii) Pr (K X) =)Pr(

)Pr()Pr()Pr(})Pr({

)Pr()Pr(

XKKV

XKV

XXK ,

(iii) Pr (N X) =)Pr(

)Pr()Pr()Pr(})Pr({

)Pr()Pr(

XNNV

XNV

XXN ,

Formula 6.8(b)

Where

Pr(X) = Pr{MV, KV, NV} = Pr(MV) + Pr(KV) + Pr(NV) = Pr(M) Pr(V|M) + Pr(K) x Pr(V|K) + Pr(N) x Pr(V|N)

Example 6.8

Let us go back to the tree diagram given in Figure 6.4. Find the probability Pr (M|X), and Pr (K|X), where X = {MV, KV}.

Page 25: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 103

Solution

Pr(M) = 3/20; Pr(K) = 17/20; Pr (V M) = 8/15 ; Pr (V K) = 8/15 ; andX = {MV, KV}, and

Pr(X) = Pr(MV) + Pr(KV) = Pr(M) Pr (V M) + Pr(K) Pr (V K) = (3/20)(8/15) + (17/20)(8/15) = (40/75) = 8/15.

From Formula 6.8, we have

Pr (M X) = 20/315/8

)15/8)(20/3()Pr(

)Pr()Pr()Pr(

)Pr(X

MMVX

XM ,

and

From Formula 6.8a, we have

Pr (K X) = 20/1715/8

)20/17)(15/8()Pr(

)Pr()Pr()Pr(

)Pr(X

KKVX

XK .

ACTIVITY 6.7

1. Refer to the information given in Exercise 6.6. If it is found that the taken orange is bad, what is the probability the orange is from Box A?

2. Given three coloured jars containing items as follows:

Red Jar: Containing 3 gold coins, and 6 silver coins;

Green Jar: Containing 4 gold coins, and 2 silver coins;

Blue Jar: Containing 2 gold coins, and 8 silver coins;

A jar is selected at random from the above three and a coin is taken out randomly.

(a) Construct a tree diagram representing this experiment andobtain its sample space;

(b) If the selected coin is of gold type, find the probability that this coin is taken from the Red Jar.

Page 26: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 104

6.5.2 Probability of Independent Events

An event P is said to be independent of another event Q if its occurrence does not affect in any manner the occurrence of event Q and vice versa. In simple term, it means that the occurrence of P has nothing to do with the chance of Q to happen. If we try to conditioning Q on P, the chance of Q to happen still remains the same. Thus, algebraically we can write the following:

(a) If event P is independent of event Q, then

)Pr()Pr( QPQ , or )Pr()Pr( PQP

Formula 6.9 Formula 6.9(a)

(b) The multiplication rule of two independent events becomes:

)Pr()Pr()Pr()Pr()Pr( QPPQPQP

Formula 6.9(b)

(c) The three events P, Q, and R are said to be independent if and only if the following three conditions are true:

(i) )Pr()Pr()Pr( QPQP ,

(ii) )Pr()Pr()Pr( RPRP ,

(iii) )Pr()Pr()Pr( RQRQ .

Formula 6.10

(d) The multiplication rule of three independent events becomes:

)Pr()Pr()Pr()Pr( RQPRQP

Formula 6.10(a)

Page 27: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 105

Example 6.9

Try to recall Example 6.1, whereby Malaysian coin is tossed three consecutive times. Let us define the following events:

A: obtain picture on the first toss;

B: obtain picture on the second toss;

C: obtain two conescutive pictures;

(a) find the probabilities of the events A, B, and C;

(b) find the probabilities of the compound events A B, A C, B C;

(c) determine whether each pair of A&B, A&C, and B&C is independent; and

(d) whether the three events A, B, and C are intradependent.

SolutionThe sample space of the experiment as well as the the events concerned are as follows:

(i) S = {GGG, GGN, GNG, GNN, NGG, NGN, NNG, NNN}

It is an equiprobable sample space meaning its simple event such as {GNG}has equal probability of (1/2)(1/2)(1/2) = 1/8.

(ii) A = {GGG, GGN, GNG, GNN}, B ={GGG, GGN, NGG, NGN}, and C = {GGN, NGG}

(a) Pr(A) = (1/8) + (1/8)+(1/8)+(1/8) = 1/2; Pr(B) = (1/8) + (1/8)+(1/8)+(1/8) = 1/2; Pr(C) = (1/8) + (1/8) = 1/4 (b) A B = { GGG, GGN }, A C = {GGN}, B C = {GGN, NGG } Pr (A B) = (1/8) + (1/8) = 1/4 = (1/2)(1/2) = Pr(A) Pr(B); Pr (A C) = 1/8 = (1/2)(1/4) = Pr(A) Pr(C) ; Pr (B C) = (1/8) + (1/8) = 1/4 (1/2) (1/4) = Pr(B) Pr(C) .

(c) A&B are independent because Pr(A B) = Pr(A) Pr(B); A&C are independent because Pr (A C) = Pr (A) Pr(C); B&C are NOT independent because Pr (B C) Pr (B) Pr(C);

Page 28: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 106

(d) Since all conditions in Formula 3.11 are not fulfilled, therefore A, B, and C are not intradependent.

You can enhance your understanding of the above concepts by doing the following exercises.

ACTIVITY 6.8

1. Determine the probability of the following events: (a) obtaining G in the experiment of throwing three Malaysian

coins together. (b) obtaining red ball in an experiment of taking out randomly a

ball from a jar containing 5 blue balls, 4 red balls and 6 green balls.

(c) A group of students consists of 12 male students and 24 female students. A 50% of each subgroup by sex is considered undercategory high students. A student is selected randomly from the group is found to be Male student or category high students. What is the probability of occurance of this event?

2. An experiment is throwing a red dice and a green dice together.(a) obtain its sample space, S. (b) write down the elements of the following events: P: Getting a sum of eleven or more, the numbers appeared on

both die; Q: Getting number 5 on green dice; R: Number 5 appears on at least one of the die. (c) from the defined events in (b), obtain the probability of the

following conditional events: (i) P|Q. (ii) P|R.

3. Let P and Q be two events defined from the same sample space S. Given that Pr(P) =3/4, Pr(Q) =3/8, and Pr(P Q) =1/4, find the probabilities of the following events:(i) Pc ,(ii) Qc,(iii) Pc Q c,(iv) P c Q c,(v) P Q c,

Page 29: Statistik topic6 events and probability

TOPIC 6 EVENTS AND PROBABILITY 107

A given experiment can be classified into three categories:

(a) Single trial experiment;

(b) Repeated trial experiment; and

(c) Multiple trial experiment.

Once the category is identified, a tree diagram may be used to depict the operation of the experiment and hence determine the sample space S. With the reference of a given sample space S, events can be defined as a subset of S. The probabilities of defined events can normally be calculated. Various types of events are given such as mutual exclusive event, impossible event, sure events, as well as conditional events. The compound events are derived from the defined events through union, intersection and negation operations of set. A Venn diagram or algebraic set is normally used to represent these events. Their probabilities can be found using additive and multiplicative rules. The formulas of theorem base are given for two exhaustive partition events as well as three exhaustive partition events.