stat 111 chapter two probability. many statistical principles and procedures are based on the...

27
STAT 111 Chapter Two Probability

Upload: imogen-carr

Post on 15-Jan-2016

227 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

STAT 111

Chapter Two

Probability

Page 2: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Probability

Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter is to define such concept and discuss some of its properties. A random experiment is an experiment in which

1. All possible outcomes of the experiment are known in advance,

2. Any performance of the experiment results in an outcome that is not known in advance,

3. The experiment can be repeated under identical conditions

Page 3: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Examples

1) Tossing a coin once or several times.

2) Obtaining blood types from a group of individuals.

3) Determining the sex of a newborn.

4) Tossing two dice.

Page 4: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Definition

Definition: The sample space of an experiment, denoted by S, is the set of all possible outcomes of that experiment.

Sample spaces are either 1. Discrete : which contains a finite number of elements , or

and infinite but countable number of elements .2. Continuous : which contains an infinite number of sample

points constituting a continuum , such as all points on a line segment or all the points in a plane .

S

Discrete Continuous(infinite)

Infinite(Countable)

Finite

Page 5: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example

Describe an appropriate sample space for the experiments below. Determine the number of elements and state whether the sample space is discrete or not.

A coin is tossed two times. محدود كان إذا العينة فراغ حساب طرق البيانية الشجرة باستخدام # أوًال

H

H

H

T

T

T

S = {HH, HT, TH, TT} n(S) = 4, discrete

Page 6: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example (continued) A coin is tossed and a dye is rolled

الديكارتي الجداء باسخدام # ثانياS = (H,T)x(1,2, ...,6)S = {(H, 1), (H, 2), (H, 3), (H, 4), (H, 5), (H, 6), (T, 1), (T, 2), (T, 3), (T, 4), (T, 5), (T, 6)}, n(s) = 2x6=12, discrete

Two numbers are selected from the set {1, 2, 3} without repetition ofdigits.

التربيعية الشبكة باستخدام # ثالثا

S = {(1,2), (1,3), (2,1), (2,3), (3,1), (3,3) } n(S) = 3x2=6, discrete

(1,2)

32

3

2

1

1

(1,3)

(3,2)

(2,1) (3,1)

(2,3)

Page 7: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

A coin is tossed until the first head appears.S = {H, TH, TTH, ...,∞), and so the coin is tossed an infinite

number of times, here ∞, refers to the case when a head never appears.

A light bulb is observed so that the length of its useful life might be recorded.

S = {(0, ∞)}, since one could not say with certainty that the bulb would have burned out by any given time => S is continuous.

Example (continued)

Page 8: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Events

Definition An event is any subset of the sample space S. An event A occurs, if the outcome of the experiment is in A.

Example Two cards are drawn, randomly with replacement from three cards carrying the number 1,3, 5. Describe the sample space, find the events

A= {sum of the two numbers is 5 }B= {sum of the numbers is at least 6}A=ΦB= {(1,5), (3, 3), (3, 5), (5,1), (5, 3), (5, 5)}

(1,3)

53

5

3

1

1

(1,5)

(5,3)

(3,1) (5,1)

(3,5)

(3,3)

(5,5)

(1,1)

Page 9: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example

Example:An experiment consists of rolling a die until a 3 appears,1) Construct a sample space for this experiment. Let 3 denotes 3

appears , let A denote 3 does not appear

S = { 3 , A 3 , AA3 , …} .

2) List the elements in E , the event that 3 appears before the fifth roll

E = { 3 , A3 , AA3 , AAA3 }

Page 10: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Some Relations from Set Theory

An event is nothing but a set, so that relationships and results from elementary set theory can be used to study events. The following concepts from set theory will be used to construct new events from given events.

1) The union of two events A and B denoted by A B and read 'A or B' is the event consisting of all outcomes which are either in A or in B or in both events, that is

A U B= {x ϵS :x ϵA or xϵ B} If A1, A2, ... are events, the union of these events, denoted, byis defined to be that event which consists of all points thatare in An for at least one value of n = 1,2, ...

1nnA

Page 11: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Some Relations from Set Theory

2) The intersection of two events A and B, denoted by A B and read 'A and B' is the event consisting of all outcomes which are in both A and B, that is,

A ∩ B={x ϵ S :x ϵ A and x ϵ B} If A1, A2, ... are events, the intersection of these events, denoted by , is

defined to be that event consisting of all points that are in all of An, n= 1 , 2 , …

3) The complement of an event A , denoted by A ( or Ac ) is the set of all outcomes in S which are not contained in A . That is

Ac = { x ϵ S : x ϵ A }

1nnA

Page 12: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Some Relations from Set Theory

Definition

When A and B have no outcomes in common (the intersection of A and B contains no outcomes,

i.e. A ∩ B= Φ), they are said to be mutually exclusive of disjoint events.

Definition A nonempty collection of subsets F of a set S is called a σ-filed of subsets of S provided the following properties hold.

Fin both are A and A then 1,2,...,n F,A If 3.

FA then FA If 2.

FS .1

1nn

1nnn

c

Page 13: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Probability

Definition A probability measure P (or simply probability) is a real-valued function

having domain F satisfying the following properties.

Axioms of Probability:

1- 0≤ P(A) ≤ 1 ϵ F2- P(S)=13- If An, n = 1,2, ..., are mutually disjoint sets in S, then

A probability space , denoted by ( S , F , P ) is a σ– field of subsets F and a probability measure P defined on S .

11 nn

nn AAP

A

Page 14: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Probability

Definition

An assignment of probability is said to be equally likely (or uniform) if each elementary event in S is assigned the same probability.

Thus if S contains n elements wi, i.e. if S = { w1, …,wn} then

Sn

An

Sin elements ofnumber

Ain elements ofnumber AP

assignment with thisn

1wP i

Page 15: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Properties of probability

In the following, some additional properties of probability measure P willbe presented. These properties follow from the definition of a probabilitymeasure.

1) P( Φ ) = 02) Let A1, A2, ..., An a collection of pairwise disjoint events in S, then

3) If A is an event in S, then P(A)=1-P(A)4) Let A and B be events in S , then P (A ) = P (A ∩ B ) + P ( A ∩ Bc) 5) Let A and B be event in S, then P(A U B ) = P(A)+ P(B) - P(A ∩ B)6) P(A U B U C) = P(A) + P(B) + P(C) - P(A ∩ B) - P(A ∩ C) - P(B ∩ C) +

P(A ∩ B∩C)7) If A B , then P ( A ) ≤ ( B )

Page 16: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example 1Example 1:If two dice are rolled what is the probability

that 1) The sum of upturned faces will equal

7?

2) The sum of upturned faces will equal 2 or 12?

3) The sum of upturned faces will be an even number or a number less than 6? Let A = {sum is even), B = {number less than 6}

6 (1,6) (2,6) (3, 6) (4, 6) (5,6) (6, 6)

5 (1,5) (2,5) (3, 5) (4,5) (5, 5) (6,5)

4 (1,4) (2,4) (3, 4) (4, 4) (5, 4) (6, 4)

3 (1,3) (2, 3) (3, 3) (4, 3) (5, 3) (6, 3)

2 (1,2) (2,2) (3, 2) (4, 2) (5, 2) (6, 2)

1 (1,1) (2, 1) (3,1) (4,1) (5, 1) (6,1)

  1 2 3 4 5 6

6

1

36

67 sum P

6

2

36

1

36

112 sum2 sum PP

36

24

36

4

36

10

36

18BABABA PPPP

Page 17: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example 2

Given P(A) = 0.59, P(B) = 0.30, P (A ∩ B) = 0.21, find1) P ( A U B ) = 0.59 + 0.30 – 0.21 = 0.68 2) P (A ∩ Bc) = P ( A ) – P ( A ∩ B ) = 0.59 - 0.21 = 0.383) P ( Ac U Bc ) = 1- P ( A ∩ B ) = 1 – 0.21 = 0.79 or P (AcUBc)=P(Ac)+P(Bc)–P(Ac∩Bc)=0.41 +0.7 -0.32=0.794) P ( Ac ∩ Bc) = 1- P (A U B ) = 1-0.68 =0.32

  A Ac Total

B 0.21 0.09 0.3

Bc 0.38 0.32 0.7

Total 0.59 0.41 1

Page 18: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example 3

If A and B are two events such that A B. What is P(A B), what is P(A ∩ B) and what is P(A ∩ Bc)?

P(A B)=P(B)

P(A ∩ B)=P(A)

P(A ∩ Bc)=P(A)- P(A ∩ B)

= P(A)- P(A)=0

S

B

A

Page 19: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example 4If A, B and C are mutually exclusive events and P(A) = 0.2,P(B) = 0.3, and P(C) = 0.2, find 1. P(A U B U C)?

P(A U B U C)= P(A) + P(B) + P(C) = 0.2 + 0.3 + 0.2 = 0.7

2. P(Ac ∩ (B U C))?

P(Ac ∩ (B U C))=P(B) + P(C) = 0.3 + 0.2 = 0.5

0.3

0.2 0.2

0.3

A

B

C S

A

B

C S

Page 20: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example 5

A two-digit number is formed by randomly selecting, with replacement, digits from the set {6, 7, 8, 9}. Find the probability;

1. The two digits are the same?n(S)=4x4=16n(two digits are the same)=4x1=4P(two digits are the same)=4/16=1/4

2. The number is odd?n(number is odd)=4x2=8P(number is odd)=8/16=1/2

Remember

Sn

AnAP

Page 21: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example 6

If 10 people, including A and B, are randomly arranged in a line,

1. What is the probability that A and B are next to each other?

2. What would probability be if the people were randomly arranged in a circle?

!10

)!110(!2

Remember

Sn

AnAP

!10

)!210(!2

Page 22: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Independent Events

Suppose that two events A and B occur independently of one another in the sense that the occurrence or nonoccurrence of either of them has no relation to the occurrence or nonoccurrence of the other, that is the probability that A and B will occur is equal to the product of their individual probabilities.

Definition Two events A and B independent if and only if P ( A ∩ B ) = P ( A ) P ( B ) More generally , for n ≥ 3 , events A1 , A2 , … , An are independent if P ( A1 ∩ A2 ∩ … ∩An) = P (A1) P(A2)P(A3) …P ( An)And if any subcollection containing at least two but fewer than n events

are independent . Events that are not independent are said to be dependent. Note that

independence of events is not to be confused with disjoint or mutually exclusive events.

Result Assuming that A and B are independent events, then the events Ac and B, A and Bc, Ac and Bc are also independent.

Page 23: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example 1

Let two fair coins be tossed, let A = {head on the second throw}, B = {head on the first throw}. Show that A and B are independent.

S = {HH, HT, TH, TT}

A = {HH, TH}

B = {HH, HT}

A∩B={HH}

P(A∩B)=1/4

P(A)P(B)=½ x ½=1/4= P(AB)

A and B are independent

Page 24: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example 2

Two students A and B are both registered for a certain course. If student A attends class 80 percent of the time and student B attends

class 60 percent of the time, and if the absence of the two students are independent, what is the probability that at least one of the two students will be in class on a given day?

P(A) = 0.8, P(B) = 0.6

Ac and Bc are independent A and B are also independent

P ( A U B ) = P ( A ) + P (B) – P (A ) P (B ) = 0.8 + 0.6 – 0.6x0.8=0.92

Page 25: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example 3

A coin is biased so that a head is twice as likely to occur as a tail, If the coin is tossed 3 times, what is the probability of getting 2 tails and 1 head?

S = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT},let P(H) = 2W, P(T) = 1W 2W + 1W =1 W=1/3P(H) = 2/3 and P(T) = 1/3

A = {TTH,THT,HTT},

P(TTH) = P(T) P(T) P(H)= 1/3 x 1/3 x 2/3 = 2/27 by independenceP(THT) = P(T) P(H) P(T)= 1/3 x 2/3 x 1/3 = 2/27 by independenceP(HTT) = P(H) P(T) P(T)= 2/3 x 1/3 x 1/3 = 2/27 by independence

P(A) = P(TTH) + P(THT) + P(HTT)= 2/27 + 2/27 + 2/27=6/27=2/9

Page 26: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example 4

Suppose that three balanced coins are tossed. Find the probability that at least one of them lands head.

S = {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT},

A1=first coin lands head= {HHH, HHT, HTH, HTT}

A2=second coin lands head={HHH,HHT,THH,THT} and

A3=third coin lands head={HHH, HTH, THH, TTH}

P(A1)=4/8=1/2

P(A2)=4/8=1/2

P(A3)=4/8=1/2

P ( at least one lands head ) = P (A1 U A2 U A3)

8

7

8

11

2

1

2

1

2

111

1

321

321321321

ccc

ccccccc

APAPAP

AAAPAAAPAAAP

APAP c 1

Remember

laws) sMorgan' (De B UA ) B(A ccc

Page 27: STAT 111 Chapter Two Probability. Many statistical principles and procedures are based on the important concept of probability. The purpose of this chapter

Example 5A system containing five components is arranged in the manner shown in

Figure - 1, where the probabilities given indicate the chance that the component will work. If we assume that whether a component works or not is independent of whether any other component is working or not. what is the probability that the system will work?

P(system work) =P(A ∩ (B U C) ∩ (D U E))= P(A)P(B U C)P(D U E) since independent

P(B U C)=1- P(Bc ∩ Cc)= 1- P(Bc)P( Cc)=0.995 since independentOr ( B U C ) = P ( B ) + P ( C ) – P (B ) P (C) =0.995 since independentSimilarly, P(D U E)= 1- P(Dc ∩ Ec)= 1- P(Dc)P( Ec)=0.9979P(system work) = P(A)P(B U C)P(D U E)=0.98x0.995x0.9979=0.973

P(E)=0.97

P(D)=0.93

P(C)=0.95

P(B)=0.90

P(A)=0.98