Basics of Prob Rahul Stat
Basics of Prob Rahul Stat
PROBABILITY
RAHUL BHATTACHARYA
DEPARTMENT OF STATISTICS
UNIVERSITY OF CALCUTTA
GENESIS
• BLAISE PASCAL (1623-1662) : FATHER OF MODERN PROBABILITY
• THEY CONSIDERED THE DICE PROBLEM, ALREADY STUDIED BY CARDAN, WHICH ASKS HOW
MANY TIMES ONE MUST THROW A PAIR OF DICE BEFORE ONE EXPECTS A DOUBLE SIX.
• THEY ALSO CONSIDERED AND THE PROBLEM OF POINTS( CARDAN, PACIOLI AND
TARTAGLIA),
CBCC-2020
WHICH ASKS HOW TO DIVIDE THE STAKES IF A GAME OF DICE IS INCOMPLETE.
9/24/2020
TERMINOLOGIES
CBCC-2020 9/24/2020
Example : TOSSING A COIN TWICE
Solution :
CBCC-2020 9/24/2020
Example : GENDER OF CHILDREN
2n=23 = 8
S={BBB , BBG , BGB , BGG , GBB , GBG , GGB
,GGG}
CBCC-2020 9/24/2020
CBCC-2020 9/24/2020
TOSSING A COIN TWICE
CBCC-2020 9/24/2020
GENDER OF THREE CHILDREN IN A
FAMILY
CBCC-2020 9/24/2020
TOSSING A COIN THRICE
• ???????
CBCC-2020 9/24/2020
CAN U SUGGEST AN EVENT?
CAN U SUGGEST ANOTHER EVENT?
SAMPLE SPACE MAY NOT BE FINITE:
EMISSION FROM A RADIOACTIVE
SOURCE
• IN AN EXPERIMENT, EMISSION COUNT FROM A RADIOACTIVE SOURCE
IN ONE MINUTE IS RECORDED.
• S={0,1,2,3,…}
CBCC-2020 9/24/2020
SAMPLE SPACE MAY NOT BE FINITE:
TOSSING A COIN UNTIL A HEAD
APPEARS
CBCC-2020 9/24/2020
SAMPLE SPACE MAY NOT BE FINITE: A
POINT IS CHOSEN FROM A UNIT SQUARE
• A POINT IS CHOSEN FROM A SQUARE WITH SIDES UNITY
• S= {( x, y) : 0 x 1,0 y 1}
• S IS NEITHER COUNTABLE NOR FINITE
CBCC-2020 9/24/2020
SIMPLE & COMPOUND EVENTS
CBCC-2020 9/24/2020
❑ Paradigms of probability
➢ Subjective approach
CBCC-2020 9/24/2020
Classical paradigm
❑ Classical probability uses sample spaces to determine the
numerical probability that an event will happen and assumes
that all outcomes in the sample space are equally likely to
occur.
# FAVORABLE OUTCOMES
P(event) =
# POSSIBLE OUTCOMES
P(rolling a 4) =1/6
3
P(even #) = 6
EXAMPLE 3: SPINNERS.
WHAT IS THE PROBABILITY OF SPINNING
GREEN?
# FAVORABLE OUTCOMES
P(event) = # POSSIBLE OUTCOMES
P(green) =1/4
# FAVORABLE OUTCOMES 13
P(heart) = =
# POSSIBLE OUTCOMES 52
THE PROBABILITY OF PICKING A HEART IS
1 OUT OF 4 OR .25 OR 25%
# FAVORABLE OUTCOMES 39 3
P(nonheart) = =
# POSSIBLE OUTCOMES 52 4
THE PROBABILITY OF PICKING A HEART IS
3 OUT OF 4 OR .75 OR 75%
CALCULATE THE PROBABILITY OF
EACH EVENT
1) P(BLACK) = 4/8
2) P(1) = 1/
8
3) P(ODD) = 1/2
4) P(EVEN) = 1/2
CALCULATE THE PROBABILITY OF
EACH EVENT
1) P(RED) =
2) P(2) =
3) P(NOT RED) =
4) P(EVEN) =
REAL WORLD EXAMPLE
If a family has three children, find the probability that exactly two of
the three children are girls.
Solution :
Step 1 : Sample Space:
S ={BBB ,BBG, BGB, BGG, GBB ,GBG ,GGB ,GGG}
Step 2 : Event:
E= exactly two of the three children are girls
Step 3 : A={BGG, GBG, GGB}
P(E)=n(E)/n(S) = 3/8
S={1 , 2 , 3 , 4 , 5 , 6} , A ={1 , 2 , 3 , 4 , 5 , 6}
P(A)= = 6/6 = 1
CBCC-2020
Fourth Rule
9/24/2020
The complement of an event E , denoted by is the set of
outcomes in the sample space that are not included in the
outcomes of event E.
Example 4:
Find the complements of each event.
Event ( E ) Complement of Event ( E )
Rolling a die and getting a 4 Getting a 1, 2, 3, 5, or 6
CBCC-2020 9/24/2020
Probability of Complementary Events
Example :
If the probability that a person lives in an industrialized
country of the world is , Find the probability that a person
does not live in an industrialized country.
P (Not living in industrialized country )
= 1 − P ( living in industrialized country )
1 4
CBCC-2020
= 1− = 9/24/2020
5 5
LIMITATIONS OF CLASSICAL PARADIGM
P(A)=MEASURE(A)/MEASURE(S),
CBCC-2020 9/24/2020
AN EXAMPLE: POINTS IN INTERVAL
• 0 1 :S
• 0.25 0.75 :E
CBCC-2020 9/24/2020
Relative Frequency interpretation
It relies on actual experience to determine the likelihood of
outcomes.
Associated with a random experiment the probability of an event
A is interpreted as the long run relative frequency.
REMARK
P(A)=lim f(A)/n
:
❑ or indicate the Union ( + ).
❑ and indicate intersection ( × ).
CBCC-2020 9/24/2020
HOW LARGE IS LARGE?
CBCC-2020 9/24/2020
Example:
In a sample of 50 people, 21 had type O blood, 22 had type A
blood, 5 had type B blood, and 2 had type AB blood. Set up a
frequency distribution and estimate the following
probabilities.
a. A person has type O blood.
Type Frequency f
P (O) =
A 22 n
21
B 5 =
50
AB 2
O 21
CBCC-2020 9/24/2020
Total 50
b. A person has type A or type B blood.
Type Frequency
A 22
22 5
B 5 P ( A or B ) = +
50 50
AB 2 27
=
O 21 50
Total 50
c. A person has neither type A nor type O blood.
Type Frequency
A 22 P ( neither A nor O )
B 5 5 2
= +
AB 2 50 50
7
O 21 =
CBCC-2020 50 9/24/2020
Total 50
d. A person does not have type AB blood.
Type Frequency
A 22 P ( not AB )
B 5 = 1 − P ( AB )
AB 2
2 48 24
O 21 = 1− = =
50 50 25
Total 50
CBCC-2020 9/24/2020
Subjective probability
Subjective probability uses a probability value based on an
educated guess, employing opinions and inexact information.
CBCC-2020 9/24/2020
Event classification
❑ Two events are Mutually Exclusive Events if
they cannot occur at the same time (i.e., they have
no outcomes in common)
P (S)
❑ This means that P(A∩B)= 0
i.e. the two event cannot occur B A
at the same time .
CBCC-2020 9/24/2020
❑ Two events are Not Mutually Exclusive Events,
then the probability of event A or B occurs denoted
by P(AUB), is given by
P(A∩B)
❑ Where P(A∩B) is P (S)
• B G
We can pair each of these with 2 possibilities.
• B G
• B G B G
That gives 4 possibilities : BB
• B G
• B G B G
BG
• B G
• B G B G
GB
• B G
• B G B G
And GG
• B G
• B G B G
EXAMPLE CONTINUED
•IF E IS THE EVENT THAT BOTH CHILDREN ARE THE SAME SEX, WHAT DOES
E LOOK LIKE & WHAT IS ITS PROBABILITY?
•E = {BB, GG}
•SINCE BOYS & GIRLS ARE EQUALLY LIKELY,
EACH OF THE FOUR OUTCOMES IN THE SAMPLE SPACE S = {BB, GG, BG,
GB} IS EQUALLY LIKELY & HAS A PROBABILITY OF 1/4.
•SO P(E) = 2/4 = 1/2 = 0.5
EXAMPLE CONT’D: RECALL THAT
E = {BB, GG} & PR(E)=0.5
• WHAT IS E∩F?
• {GG}
•IF E & F DO NOT OVERLAP, THEN THE INTERSECTION IS THE EMPTY SET,
& THE PROBABILITY OF THE INTERSECTION IS ZERO.
Solution :
CBCC-2020 9/24/2020
Example :
In a hospital unit there are 8 nurses and 5 physicians ;7 nurses
and 3 physicians are females. If a staff person is selected ,find
the probability that the subject is a nurse or a male.
Staff Females Males Total
Nurses 7 1 8
Physicians 3 2 5
Total 10 3 13
Solution :
CBCC-2020 9/24/2020
CONDITIONAL PROBABILITY
CBCC-2020 9/24/2020
REDUCED SPACE OF A WHEN B
OCCURRED
•
• INITIALLY
A
• B
• UPDATED
AB
• CBCC-2020
B 9/24/2020
DEFINING CONDITIONAL PROBABILITY
• N(AB)=NUMBER OF ELEMENTARY EVENTS FAVORABLE TO BOTH A AND B
• N(B)=NUMBER OF ELEMENTARY EVENTS FAVORABLE TO B
• THEN N(AB)/N(B) IS THE PROPORTION OF ELEMENTARY EVENTS FAVORABLE TO A
AMONG THOSE WHICH ARE FAVORABLE TO B
• N(AB)/N(B) REPRESENTS THE CONDITIONAL PROBABILITY OF A GIVEN THAT B HAS
OCCURRED.
CBCC-2020 9/24/2020
EXAMPLE : SURVEY ON WOMEN IN THE MILITARY
A recent Gallup survey asked 100 people if they thought women in the
armed forces should be permitted to participate in combat. The results
of the survey are shown.
8
P ( F and Y )
( YF =)
P CBCC-2020
P ( F)
= 50 =
100 8
=
4
9/24/2020
50 25
100
b. Find the probability that the respondent was a male
(M), given that the respondent answered no (N).
18
P ( N and M )
( )
18 3
P MN = = 100 = =
P ( N) 60 60 10
100
CBCC-2020 9/24/2020
Problem :
In a hospital unit there are 8 nurses and 5 physicians ;7 nurses
and 3 physicians are females. A staff person is selected ,find
the probability that.
Staff Females Males Total
Nurses 7 1 8
Physicians 3 2 5
Total 10 3 13
CBCC-2020 9/24/2020
PROBLEM :
CBCC-2020 9/24/2020
Independent events
CBCC-2020 9/24/2020
Independent events using Tree Diagrams
Tree diagrams can be used to help solve problems involving both
dependent and independent events.
3 7 3 21
7 10 red P(blue and red) = x =
10 10 100
10 blue
INDEPENDENT 7
10 blue P(blue and blue) =
7
x
7
=
10 10 100
49
Characteristics of a tree diagram
First Choice Second Choice
3 3 3 9
10 red P(red and red) = x =
10 10 100
3 red
10 7 3 7 21
10 blue P(red and blue) = x =
10 10 100
3 7 3 21
7 10 red P(blue and red) = x =
10 10 100
10 blue
7 7 7 49
The blue P(blue and blue) = x =
10 10 10 100
probabilities
for each event
are shown along Ends of first and
the arm of Probabilities are
second level multiplied along
each branch branches show
and they sum each arm.
the different
to 1. outcomes.
Question 1 Rebecca has nine coloured beads in a bag. Four of the beads are
black and the rest are green. She removes a bead at random from the bag
and notes the colour before replacing it. She then chooses a second bead.
(a) Draw a tree diagram showing all possible outcomes. (b) Calculate the
probability that Rebecca chooses: (i) 2 green beads (ii) A black followed
by a green bead.
Second Choice
First Choice 4 4 4 16
9 black P(black and black) = x =
9 9 81
4 black
9 5 4 5 20
9 green P(black and green) = x =
9 9 81
4
5 4 20
5 9 black P(green and black) = x =
9 9 81
9 green
5 5 5 25
9 green P(green and green) = x =
9 9 81
Question 2 Peter tosses two coins. (a) Draw a tree diagram to show all
possible outcomes. (b) Use your tree diagram to find the probability of
getting (i) 2 Heads (ii) A head or a tail in any order.
1
1 1 1
1 2 head P(tail and head) = x =
2 2 4
2 tail
1 1 1 1
2 tail P(tail and tail) = x =
2 2 4
P(2 heads) = ¼ P(head and a tail or a tail and a head) = ½
Question 3 Peter and Becky run a race and play a tennis match. The
probability that Peter wins the race is 0.4. The probability that Becky wins
the tennis is 0.7. (a) Complete the tree diagram below. (b) Use your tree
diagram to calculate (i) the probability that Peter wins both events. (ii) The
probability that Becky loses the race but wins at tennis.
Race Tennis
0.3 Peter 0.4 x 0.3 = 0.12
Peter Win
0.4 Win Becky
0.7 0.4 x 0.7 = 0.28
Win
3 7 3 21
7 9 red P(blue and red) = x =
10 9 90
10 blue
DEPENDENT 6
blue P(blue and blue) =
7 6 42
x =
9 10 9 90
Question 4 Rebecca has nine coloured beads in a bag. Four of the beads are
black and the rest are green. She removes a bead at random from the bag
and does not replace it. She then chooses a second bead. (a) Draw a tree
diagram showing all possible outcome (b) Calculate the probability that
Rebecca chooses: (i) 2 green beads (ii) A black followed by a green bead.
CBCC-2020 9/24/2020
b. None is defective
Def Non
24
4 def
20
0
4 4
CBCC-2020 9/24/2020
Def Non
c. All are defective. 24
4 def
20
4
0 4
d. At least 1 is defective.
CBCC-2020 9/24/2020
EXAMPLE : COMMITTEE SELECTION
A store has 6 TV Graphic magazines and 8 News time
magazines on the counter. If two customers purchased a
magazine, find the probability that one of each magazine
was purchased.
Solution : News
TV . G 14
time
6
1 8
1 2
C1 8 C1 6 8 48
6
= =
CBCC-2020
14 C2 91 91 9/24/2020
EXAMPLE: COMBINATION LOCKS
A combination lock consists of the 26 letters of the alphabet.
If a 3-letter combination is needed, find the probability that
the combination will consist of the letters ABC in that order.
The same letter can be used more than once. (Note: A
combination lock is really a permutation lock.)
Solution :
1/26 1/26 1/26
CBCC-2020 9/24/2020
•A store contains 10 toys, 6 of which are defective. If a child bought 3
toys at random, what is the probability of getting 2 defective toys?