Probability
Probability
ExampleA fair die,is rolled once, write down the sample space S hence find the probability
that the score showing up is ; a) a multiple of 3 b) a prime number.
Solution
S 1, 2, 3, 4, 5, 6 Multiples of 3 are 3 and 6 while prime numbers are 2, 3 and 5
Example 1The following are the counts of fish of each type, that you have caught before.
Fish Types Blue gill Red gill Crappy Total
No of times caught 13 17 10 40
Estimate the probability that the next fish you catch will be a Blue gill.
P(Blue gill) = 1340 0.325
Example 2A girl lists the number of male and female children her parent and her parent’s
brothers and sisters have. Her results were as tabulated below
Males Females
a) Find the probability that, if the girl
Her parents 2 5
has children of her own, the 1st
Her mother's sisters 6 8
born will be a girl.
Her mother's brothers 4 8 b) If the girl eventually has 10
Her father's sisters 5 8 children, how many are likely to
Her father's brothers 7 7 be males?
Totals 24 36
Solution
a) Following the family pattern, P(1 born will be a girl) 36 0.6
st
60
b) 40% of the children will be males. Thus 4 out of 10 children are likely to be males.
Remark: The empirical probability definition has a weakness that it depends on the results of
a particular experiment. The next time this experiment is repeated, you are likely to get a
somewhat different result. However, as an experiment is repeated many times, the empirical
probability of an event, based on the combined results, approaches the theoretical probability
of the event.
Set notation
Suppose a set S consists of points labelled 1, 2, 3 and 4. We denote this by S = 1, 2, 3, 4 . . If
A = 1, 2 and B 2, 3, 4 , then A and B are subsets of S, denoted by A S and B S (B is
contained in S). We denote the fact that 2 is anelement of A by 2 A .
The union of A and B, A B 1, 2, 3, 4. If C 4 , then A C 1, 2, 4. The
intersection A B AB 2: The complement ofA,is A' 3, 4 .
Distributive laws; A (B C) AB AC and A (B C) (A B) (A C)
De Morgan's Law; (A B)' A' B' and (AB)' A'B'
Venn diagram
Venn diagram is a diagram that shows all possible logical relations between a finite collection
of sets.The sets A and B are represented as circles; operations between them (intersections,
unions and complements) can also be represented as parts of thediagram.
Exercise
1) Use the Venn diagrams to illustrate Distributive laws and De Morgan's law.
2) Simplify the following (Draw the Venn diagrams to visualize)
a) (A' )' b) (AB)'A c) AB AB' d) (A B) B
3) Represent by set notation and exhibit on a Venn diagram the following events
a) both A and B occur d) at least one of A, B, C occurs
b) exactly one of A, B occurs e) at most one of A, B, C occurs
c) A and B but not C occur s
4) The sample space consists of eight capital letters (outcomes), A, B, C ,...,H. Let V be the
event that the letter represents a vowel, and L be the event that theletter is made of
straight lines. Describe the outcomes that comprise; a) VL b) V L' c) V' L'
5) Out of all items sent for refurbishing, 40% had mechanical defects, 50% hadelectrical
defects, and 25% had both.Denoting A = fan item has a mechanical defect andB = fan
item has an electrical defect, fill the probabilities into the Venndiagram and determine the
quantities listed below. a) P(A) b) P(AB) c) P(A' B) d) P(A' B' ) e) P(A B) f)
P(A'B' ) g) P(A B)'
6) A sample of mutual funds was classified according to whether a fund was up or down last
year ( A and A' ) and whether it was investing in internationalstocks ( B and B' ). The
probabilities of these events and their B B'
intersectionsare represented in the two- A 0.33 ? ?
way table below. Fill in all the question
marks hence find the probability of A' ? ? 0.52
AB 0.64 ? 1
5.4Rules of Probability
1) For any event Ain a sample space S, 0 P(A) 1 . ConsequentlyIf A is empty (has no
elements), then P(A) P( ) 0 and if A =S then P(A) P(S) 1
2) If A is an event in the sample space S, then A' (read as ‘A complement’) is an event in S
but outside A. P(A) P(A' ) 1 P(A' ) 1 P(A)
3) If the sample space S contains n disjoint events E1 , E 2 , . . . , E n , then
n
P(E1 ) P(E 2 ), . . . P(E n ) P(Ei ) 1
i 1
4) Let A and B be two events such that A B, then P(A) P(B)
5) For any two events A and B, P(A B) P(A) P(B) P(AB) where P(AB) P(A B) .
Extension of this rule leads to the Inclusion–Exclusion Principle. This principle is a way
to extend the general addition rule to 3 or more events. Here we will limit it to 3 events.
P(A B C) P(A) P(B) P(AB) P(AC) P(BC) P(ABC)
6) Law of Partitions: The law of partitions is a
way to calculate the probability of an event.
Let A1 , A 2 , . . . , A k form a partition of the
sample space S.then, for any events B
k
P(B) P(A1B) P(A 2 B) .... P(A k B) P(Ai B)
i 1
Example 1The Probability that John passes a Maths exam is 4/5 and that he passes a
Chemistry exam is 5/6. If the probability that he passes both exams is 3/4, find the probability
that he will pass at least one exam.
Solution
Let M be the event thet John passes Math exam, and C be the event thet John passes
Chemistryexam.
P(John passes at least one exam) = P(M C) = P(M) P(C) - P(MC) 54 56 34 6053
Example 2A fair 6 sided die is rolled twice and the sum of the scores showing up noted.
Define A, B and C to be the event that the sum of the scores is greater than 7, a multiple of 3
and a prime number respectively. Show that P(A B) P(A) P(B) P(AB) and also find
P(A C), P(BC) and P(BC' )
Solution
+ 1 2 3 4 5 6 P(A) 15 5 P(C) and P(B) 12 1
36 12 36 3
1 2 3 4 5 6 7 A B means the set of all multiples of 3 that
are greater than 7. Clearly P(A B) 36
2 3 4 5 6 7 8 5
3 4 5 6 7 8 9
4 5 6 7 8 9 10 A B means the set of all values that are
multiples of 3 and/or greater than 7. Clearly
5 6 7 8 9 10 11
6 7 8 9 10 11 12 P(A B) 3622 1811 P(A) P(B) P(AB)
A C means the set of all multiples of 3 that are prime number. Clearly P(A C) 181
2
36
B C' means the set of all greater than 7 that are not prime numbers. Clearly P(BC ) 11
|
36
Exercise
1) Which of the following is a probability function defined on S = E1 , E 2 , E 3
7) Suppose that P(A) 0.4 , P(B) 0.5 and P(A B) 0.2 Find; a) P(A B) b) P(A' B' )
c) PA'( A B) d) PA (A' B)
8) A die is loaded such that even numbers are twice as likely as odd numbers. Find the
probability that for a single toss of this die the spot showing up is greater than 3
9) A point is selected at random inside an equilateral triangle of sides 3 units. Find the
probability that its distance to any corner is greater than 1 unit.
Definition: (Odds of an event) It’s the ratio of the probability of an eventoccurring to that of
the event not happening. If A is an event then the odds of A is given by P(A') 1-P(A)
P(A) P(A)
5
ExampleFind P(A) and P(A' ) if the odds of event A is 4
Solution
P(A)
1- P(A)
54 4(1 P(A)) 5P(A) 4 9P(A) P(A) 94 and P(A' ) 95
3 a
Question: Find P(E) and P(E' ) if the odds of event E is (i) 4 (ii) b
Remark: Three events A,B and C are said to be jointly independent if and only if
P(AB) P(A) P(B) , P(AC) P(A) P(C) and P(BC) P(B) P(C) (iethey are pairwise
independent ) and
if P(ABC) P(A) P(B) P(C)
Note it does not necessarily mean that ifevents A,B and C are pairwise independent then they
are jointly independent
Example 1Roll a fair die twice and define A to be the event that the sum of the scores
showing up is greater than 7, B be the event that the sum of the scores showing up is a
multiple of 3 and C be the event that the sum of the scores showing up is a prime number.
Which of the events A,B and C are independent? Are the 3 events jointly independent?
Solution
From the above example, P(A) P(C) 12 , P(B) 3 , P(AB) 36 and P(AC) P(BC) 18
5 1 5 1
Since P(AB) 0 events A and B are not mutually exclusive. Similarly events A & C and B
and C are not mutually exclusive
P(A) P(B) 125 13 365 P(AB) A and B are independent events.
P(A) P(C) 125 125 144
25
P(AC) A and C are dependent events.
P(B) P(C) 13 125 365 P(BC) B and C are dependent events.
The 3 events are not jointly independent since pairwise independence is not satisfied.
Example 2Three different machines in a factory have the following probabilities of breaking
down during a shift.
Machine A B C Find the probability that in a particular shift,;
a) All the machines will break down
probability 15
4 3
10
2
11 b) None of the machines will break down.
Solution
Since the events of breaking down of machines are independent, probability that all the
machines will break down is given by P(ABC) 4
15 103 112 4
275
The probability that none of the machines will break down is P(ABC) 15 10 11
11 7 9 21
50
Exercises
1) In a game of archery the probability that A hits the target is 13 and the probability that B
hits the target is 2 5 . What is the probability that the target will be hit?
2) Toss a fair coin 3 times and let A be the event that two or more heads appears, B be the
event that all outcomes are the same and C be the event that at most two tails appears.
Which of the events A,B and C are independent? Are the 3 events jointly independent?
3) A fair coin and a fair die are rolled together once. Let A be the event that a head and an
even number appears, B be the event that a prime number appears and C be the event that
a tail and an odd number appears.
a) Express explicitly the event that i) A and B occurs ii) Only B occurs iii) B and C
occur
b) Which of the events A, B and C are independent and which ones are mutually
exclusive?
4) The allocation of Mary’s portfolio consists of 25% in bonds and 75% in stocks. Suppose
in a one-year period, the probabilities for Mary to make profits in bonds and stocks are
0.9 and 0.4 respectively.
a) Find the probability that Mary’s portfolio turns out to be profitable in one year.
b) Given that Mary has a loss in her portfolio in one year, find the relative
proportion of the loss in stocks.
5) A die is loaded so that the probability of a face showing up is proportional to the face
number. Write down the probability of each sample point. If A is the event that an even
number appears, B is the event that a prime number appears and C is the event that an odd
number appears.
a) Find the probability that: i) A and/or B occurs ii) A but not B occurs iii) B and C
occurs d) A and/or C occurs
b) Which of the events A, B and C are independent and which ones are mutually
exclusive?
Theorem 1: If events A and B are independent, then A and B' are also independent
Proof
Decomposing A into two disjointevents AB and AB' . We can write
P(A) P(AB) P(AB' ) P(AB' ) P(A) P(AB) P(A) P(A) P(B) since events A and B
are independent. Thus P(AB' ) P(A)1 P(B) P(A) P(B' ) A and B' are independent
Theorem 2: If events A and B are independent, then A' and B' are also independent
Proof
Decomposing B' into two disjoint events AB' and A' B' . We can write
P(B' ) P(AB' ) P(AB' ) P(A' B' ) P(B' ) P(AB' ) P(B' ) P(A) P(B' ) since events A
and B' are independent. (From theorem 1 above) Thus
P(A' B' ) 1 P(A)P(B' ) P(A' ) P(B' ) A' and B' are also independent
Permutations
Permutations refer to an arrangement of objects when the order matters (for example, letters
n!
in a word).The number of permutations of n distinct objects taken r at a time is n P r
(n r )!
ExampleFrom among ten employees, three are to be selected to travel to three out-of-town
plants A, B, and C, one to each plant. Since the plants are located in different cities, the order
in which the employees are assigned to the plants is an important consideration. In how many
ways can the assignments be made?
Solution;
Because order is important, the number of possible distinct assignments is 10 P 3 720
In other words, there are ten choices for plant A, but then only nine for plant B, and eight for
plant C. This gives a total of 10(9)(8) ways of assigning employees to the plants.
Combinations
The term combination refers to the arrangement of objects when order does not matter. For
example, choosing 4 books to buy at the store in any order will leave you with the same set of
books. The number of distinct subsets or combinations of size r that can be selected from n
n!
distinct objects, (r _ n), is given by n C r
r!(n r )!
Example 1In the previous example, suppose that three employees are to be selectedfrom
among the ten available to go to the same plant. In how many wayscan this selection be
made?
Solution
Here, order is not important; we want to know how many subsetsof size r = 3 can be selected
from n = 10 people. The result is 10 C3 120
Example 2In a poker consisting of 5 cards, find the probability of holding 2 acesand 3 jacks.
Solution
The number of ways of being dealt 2 aces from 4 is 4 C 2 6 andthe number of ways of being
dealt 3 jacks from 4 is 4 C 3 4
The total number of 5-card poker hands, all of which are equally likely is 52 C 5 2, 598, 960
Hence, the probability of getting 2 aces and 3 jacks in a 5-card poker hand is
6 4
P(C) 0.0000092344 6
2, 598, 960
C C C C C C C C
P(at least 3) = 15 3 10 3 15 4 10 2 15 5 10 1 15 6 10 0 0.8530
25 C 6 25 C 6 25 C 6 25 C 6
Exercises
1) An incoming lot of silicon wafers is to be inspected for defectives by an engineer in a
microchip manufacturing plant. Suppose that, in a tray containing 20 wafers, 4 are
defective. Two wafers are to be selected randomly for inspection. Find the probability that
neither is defective.
2) A person draws 5 cards from a shuffled pack of cards. Find the probability that the person
has at least; a) 3 aces. b) 4 cards of the same suit.
3) A California licence plate consists of a sequence of seven symbols: number, letter, letter,
letter, number, number, number, where a letter is any one of 26 letters and a number is
one among 0,1,…9. Assume that all licence plates are equally likely. What is the
probability that; a) all symbols are different? b) all symbols are different and the first
number is the largest among the numbers?
4) A bag contains 80 balls numbered 1…. 80. Before the game starts, you choose 10
different numbers from amongst 1…. 80 and write them on a piece of paper. Then 20 balls
are selected (without replacement) out of the bag at random. What is the probability that;
a) all your numbers are selected?
b) none of your numbers is selected?
c) exactly 4 of your numbers are selected?
5) A full deck of 52 cards contains 13 hearts. Pick 8 cards from the deck at random (a)
without replacement and (b) with replacement. In each case compute the probability that
you get no hearts.
6) Three people enter the elevator on the basement level. The building has 7 floors. Find the
probability that all three get off at different floors.
7) In a group of 7 people, each person shakes hands with every other person. How many
handshakes did occur?
8) A marketing director considers that there's “overwhelming agreement" in a 5-member
focus group when either 4 or 5 people like or dislike the product. If, in fact, the product's
popularity is 50% (so that all outcomes are equallylikely), what is the probability that the
focus group will be in “overwhelmingagreement" about it? Is the marketing director
making a judgement error in declaring such agreement “overwhelming"?
9) A die is tossed 5 times. Find the probability that we will have 4 of a kind.
10) A tennis tournament has 2n participants, n Swedes and n Norwegians. First, n people are
chosen at random from the 2n (with no regard to nationality) and then paired randomly
with the other n people. Each pair proceeds to play one match. An outcome is a set of n
(ordered) pairs, giving the winner and the loser in each of the n matches. (a) Determine
the number of outcomes. (b) What do you need to assume to conclude that all outcomes
are equally likely? (c) Under this assumption, compute the probability that all Swedes are
the winners.
11) A group of 18 Scandinavians consists of 5 Norwegians, 6 Swedes, and 7 Finns. They are
seated at random around a table. Compute the following probabilities: (a) that all the
Norwegians sit together, (b) that all the Norwegians and all the Swedes sit together, and
(c) that all theNorwegians, all the Swedes, and all the Finns sit together.
12) In a lottery, 6 numbers are drawn out of 45. You hit a jackpot if you guessall 6 numbers
correctly, and get $400 if you guess 5 numbers out of 6. Whatare the probabilities of each
of those events?
13) There are 21 Bachelor of Science programs at New Mexico Tech. Given 21areas from
which to choose, in how many ways can a student select:
a) A major area and a minor area?
b) A major area and first and second minor?
14) From a box containing 5 chocolates and 4 hard candies, a child takes ahandful of 4 (at
random). What is the probability that exactly 3 of the 4 arechocolates?
15) If a group consist of 8 men and 6 women, in how many ways can a committeeof 5 be
selected if:
a) The committee is to consist of 3 men and 3 women.
b) There are no restrictions on the number of men and women on thecommittee.
c) There must at least one man.
d) There must be at least one of each sex.
16) Suppose we have a lot of 40 transistors of which 8 are defective. If we samplewithout
replacement, what is the probability that we get 4 good transistorsin the first 5 draws?
17) A housewife is asked to rank four brands A, B, C, and D of household cleaneraccording to
her preference, number one being the one she prefers most, etc.she really has no
preference among the four brands. Hence, any ordering isequally likely to occur.
a) Find the probability that brand A is ranked number one.
b) Find the probability that brand C is number one D is number 2 in therankings.
c) Find the probability that brand A is ranked number one or number 2.
18) How many ways can one arrange the letters of the word ADVANTAGE so
19) that the three As are adjacent to each other?
20) Eight tires of different brands are ranked 1 to 8 (best to worst) accordingto mileage
performance. If four of these tires are chosen at random by acustomer, find the probability
that the best tire among the four selected bythe customer is actually ranked third among
the original eight.
ExampleIn a large metropolitan area, the probability of a family owning a colour T.V ,a
computer or both 0.86, 0.35 and 0.29 respectively. What is the probability that a family
chosen at random during a survey will own a colour T.V and/or a computer?Given that the
family chosen at random during a survey owns a colour T.V, what is the probability that it
will own a computer?
Solution
Let T and C be the event of owning a colour T.V and a computer respectively. Then
P(T C) P(T) P(C) P(TC) 0.86 0.35 - 0.29 0.92
P(TC) 0.29
P(C/T) 0.337209
P(T) 0.86
Example
Let A = {a family has two boys} and B = {a family of two has at least one boy} Find P(A/B)
Solution
The event B contains the following outcomes: B (B, B) , (B, G) , (G; B) and. Only one of
these is in A. Thus, P(A/B) 3 . However, if I know that the family has two children, and I
1
see one of the children and it's a boy, then the probability suddenly changes to 1/2. There is a
subtle difference in the language and this changes the conditional probability
Example 2Suppose that of all individuals buying a certain digital camera, 60% include an
optional memory card in their purchase, 40% include a set of batteries, and 30% include both
a card and batteries. Consider randomly selecting a buyer and let
A = memory card purchased and B = battery purchased. Then find P(A/B) and P(B/A).
Solution
From given information, we have P(A) 0.60 , P(B) 0.40 and
P(both purchased) = P(AB) = 0.30
Given that the selected individual purchased an extra battery, the probability that an optional
P(AB) 0.30
card was also purchased is P(A/B) 0.75
P(B) 0.40
That is, of all those purchasing an extra battery, 75% purchased an optional memory card.
P(AB) 0.30
Similarly P(battery j memory card) = P(B/A) = 0.5
P(A) 0.60
Notice that P(A/B) P(A) and P(B/A) P(B) , that is, the events A and B are dependent.
Remark: The tree diagram may become tedious especially when the tree grows beyond 4
stages. In such a case we can make use of binomial formula which is applicable when:
i) The experiment’s outcome can be classified into 2 categories success and failure with
probabilities p and 1-p respectively
ii) The experiment is to be repeated n independent times
iii) Our interest is the number of successes
The probability of observing x successes out of n trials is given by:-
P(x) n Cx p x (1 p)n x for x = 0,1 , 2, . . . . , n
ExampleA fair coin is tossed 10 times, what is the probability of observing exactly 8 heads?
Solution
n 10 p 0.5 5 and x = 8 successes Therefore
P(X 8)10 C8 0.58 (1 0.5)10 8 10 C8 0.510 0.044
Exercises
1) A pair of fair dice is rolled once. If the sum of the scores showing up is 6 , find the
probability that one of the dice shows a 2.
2) A consumer research organisation has studied the services and warranty provided by 50
new car dealers in a certain city. It’s findings are as follows
In Business for Good services and a Poor services and a
warranty warranty
At least 10 yeras 16 4
Less than 10 years 10 20
If a person randomly selects one of these new car dealers ;
a) What is the probability that he gets one who provides good services and a warranty
b) Who has been in business for at least 10 years, what is the probability that hehe
provides good services and a warranty
c) What is the probability that one of these new car dealers who has been in business for
less than 10 years will provide good services and a warranty?
3) Three machines A, B and C produces 50%, 30% and 20% respectively of the total number
of items in a factory. The percentage of defective outputs of these machines are 3%, 4%
and 5% respectively. If an item is selected at random:-
a) Find the probability that it is defective
b) And found to be defective, what is the probability that it was produced by machine A?
4) A year has 53 Sundays. What is the conditional probability that it is a leap year?
5) The probability that a majority of the stockholders of a company will attend a special
meeting is 0.5. If the majority attends, then the probability that an important merger will
be approved is 0.9. What is the probability that a majority will attend and the merger will
be approved?
6) Let events A, B have positive probabilities. Show that, if P(A/B) = P(A) then also P(B/A)
= P(B).
7) The cards numbered 1 through 10 are placed in a hat, mixed up, and then one of the cards
is drawn. If we are told that the number on the drawn card is at least five, what is the
probability that it is ten?
8) In the roll of a fair die, consider the events A = {2, 4, 6} = “even numbers" and B = {4, 5,
6} =”high scores". Find the probability that die showing an even number given that it is a
high score.
9) There are two urns. In the first urn there are 3 white and 2 black balls and in the second
urn there 1 white and 4 black balls. From a randomly chosen urn, one ball is drawn. What
is the probability that the ball is white?
10) The level of college attainment of US population by racial and ethnic group in 1998 is
given in the following table
The percentages given in the right three columns are conditional percentages.
a) How many Asians have had a graduate or professional degree in 1998?
b) What percent of all adult Americans has had a Bachelor's degree?
c) Given that the person had an Associate's degree, what is the probability that the
person was Hispanic?
11) The dealer's lot contains 40 cars arranged in 5 rows and 8 columns. We pick one car at
random. Are the events A = {the car comes from an odd-numbered row} and B = {the car
comes from one of the last 4 columns} independent? Prove your point of view.
12) You have sent applications to two colleges. If you are considering your chances to be
accepted to either college as 60%, and believe the results are statistically independent,
what is the probability that you'll be accepted to at least one?How will your answer
change if you applied to 5 colleges?
13) In a high school class, 50% of the students took Spanish, 25% took French and 30% of the
students took neither. Let A be the event that a randomly chosen student took Spanish,
and B be the event that a student took French. Fill in either the Venn diagram or a 2-way
table and answer the questions:
a) Describe in words the meaning of the event AB' . Find the probabilityof this event.
b) Are the events A, B independent? Explain with numbers why or why not.
c) If it is known that the student took Spanish, what are the chances that she also took
French?
14) One half of all female physicists are married. Among those married, 50% aremarried to
other physicists, 29% to scientists other than physicists and 21%to non-scientists’. Among
male physicists, 74% are married. Among them, 7%are married to other physicists, 11%
to scientists other than physicists and82% to non-scientists What percent of all physicists
are female? [Hint: Thisproblem can be solved as is, but if you want to, assume that
physicists comprise1% of all population.]
15) Error-correcting codes are designed to withstand errors in data being sentover
communication lines. Suppose we are sending a binary signal (consistingof a sequence of
0's and 1's), and during transmission, any bit may get flippedwith probability p,
independently of any other bit. However, we might chooseto repeat each bit 3 times. For
example, if we want to send a sequence 010,we will code it as 000111000. If one of the
three bits flips, say, the receivergets the sequence 001111000, he will still be able to
decode it as 010 bymajority voting. That is, reading the first three bits, 001, he will
interpretit as an attempt to send 000. However, if two of the three bits are flipped,for
example 011, this will be interpreted as an attempt to send 111, and thusdecoded
incorrectly.What is the probability of a bit being decoded incorrectly under thisscheme?
TheoremIf B1 , B2 , . . . , BK form a partition of the sample space S such that P(Bi ) 0 for i = 1,
2, . . . k; then for any event A S ,
k k
P(AB i ) P(Bi ) P(A/B i )
P(A) P(AB i ) P(Bi ) P(A/B i ) Subsequent ly, P(Bi /A) k
P(Bi ) P(A/B i )
i 1 i 1 P(A)
i 1
This last equation is often called Law of Total Probability.
Example 1A rare genetic disease (occuring in 1 out of 1000 people) is diagnosed usinga
DNA screening test. The test has false positive rate of 0.5%, meaning that
P(test positive / no disease) = 0.005 . Given that a person has tested positive,what is the
probability that this person actually has the disease?First, guess the answer, then read on.
Solution
Let's reason in terms of actual numbers of people, for a change.
Imagine 1000 people, 1 of them having the disease. How many out of 1000will test positive?
One that actually has the disease, and about 5 disease-freepeople who would test false
positive. Thus, P(disease / test positive) 6 .
1
It is left as an exercise for the reader to write down the formal probabilitycalculation.
Example 2At a certain assembly plant, three machines make 30%, 45%, and 25%,
respectively,of the products. It is known from the past experience that 2%, 3%and 2% of the
products made by each machine, respectively, are defective.Now, suppose that a finished
product is randomly selected.
a) What is the probability that it is defective?
b) If a product were chosen randomly and found to be defective, what isthe probability
that it was made by machine 3?
Solution
Consider the following events:
A: the product is defectiveand B i : the product is made by machine i=1, 2, 3,
Applying additive and multiplicative rules, we can write
(a) P(A) P(B1 ) P(A/B1 ) P(B2 ) P(A/B2 ) P(B3 ) P(A/B3 )
(0.3)(0.02) + (0.45)(0.03) + (0.25)(0.02) = 0.006 + 0.0135 + 0.005 = 0.0245
(b) Using Bayes' rule P(B3 /A ) P(B3 ) P(A/B3 ) 0.005 0.2041
P(A) 0.0245
This calculation can also be represented using a tree diagram as follows
Here, the first branching represents probabilities of the events B1 and the second branching
represents conditional probabilities P(A/B1 ) . The probabilitiesof intersections, given by the
products, are on the right. P(A) is their sum.
Exercises
1) Lucy is undecided as to whether to take a Math course or a Chemistry course. She
2
estimates that her probability of receiving an A grade would be 0.5 in amath course, and 3
in a chemistry course. If Lucy decides to base her decisionon the flip of a fair coin, what
is the probability that she gets an A?
2) Of the customers at a gas station, 70% use regular gas, and 30% use diesel.Of the
customers who use regular gas, 60% will fill the tank completely, andof those who use
diesel, 80% will fill the tank completely.
a) What percent of all customers will fill the tank completely?
b) If a customer has filled up completely, what is the probability it was acustomer
buying diesel?
3) In 2004, 57% of White households directly and/or indirectly owned stocks,compared to
26% of Black households and 19% of Hispanic households. Thedata for Asian households
is not given, but let's assume the same rate as forWhites. Additionally, 77% of households
are classified as either White orAsian, 12% as African American, and 11% as Hispanic.
a) What proportion of all families owned stocks?
b) If a family owned stock, what is the probability it was White/Asian?
4) Drawer one has five pairs of white and three pairs of red socks, while drawertwo has three
pairs of white and seven pairs of red socks. One drawer isselected at random a pair of
socks is selected at random from that drawer.
a) What is the probability that it is a white pair of socks?
b) Suppose a white pair of socks is obtained. What is the probability thatit came from
drawer two?
5) For an on-line electronics retailer, 5% of customers who buy Zony digitalcameras will
return them, 3% of customers who buy Lucky Star digital cameraswill return them, and
8% of customers who buy any other brand willreturn them. Also, among all digital
cameras bought, there are 20% Zony'sand 30% Lucky Stars.Fill in the tree diagram and
answer the questions.
a) What percent of all cameras are returned?
b) If the camera was just returned, what is the probability it is a LuckyStar?
c) What percent of all cameras sold were Zony and were not returned?
6) Three newspapers, A, B, and C are
published in a certain city. It is
estimatedfrom a survey that that of the
adult population: 20% read A, 16% read
B,14% read C, 8% read both A and B,
5% read both A and C, 4% read both
Band C, 2% read all three. What
percentage reads at least one of the
papers?Of those that read at least one,
what percentage reads both A and B?
7) Suppose P(A/B) 0.3 , P(B) 0.4 and
P(B/A) 0.6 . Find P(A) and P(A B)
8) This is the famous Monty Hall problemf A contestant on a game show isasked to choose
among 3 doors. There is a prize behind one door and nothingbehind the other two. You
(the contestant) have chosen one door. Then, thehost is flinging one other door open, and
there's nothing behind it. Whatis the best strategy? Should you switch to the remaining
door, or just staywith the door you have chosen? What is your probability of success
(gettingthe prize) for either strategy?
9) There are two children in a family. We overheard about one of them referredto as a boy.
a) Find the probability that there are 2 boys in the family.
b) Suppose that the oldest child is a boy. Again, find the probability that there are 2 boys
in the family.g [Why is it different from part (a)?]
10) At a university, two students were doing well for the entire semester butfailed to show up
for a final exam. Their excuse was that they travelled outof state and had a at tire. The
professor gave them the exam in separaterooms, with one question worth 95 points:
\which tire was it?". Find theprobability that both students mentioned the same tire.
11) In firing the company's CEO, the argument was that during the six yearsof her tenure, for
the last three years the company's market share was lowerthan for the first three years.
The CEO claims bad luck. Find the probabilitythat, given six random numbers, the last
three are the lowest among six.
6 DISCRETE PROBABILITY DISTRIBUTIONS
Introduction
In application of probability, we are often interested in a number associated with the outcome
of a random experiment. Such a quantity whose value is determined by the outcome of a
random experiment is called a random variable. It can also be defined as any quantity or
attribute whose value varies from one unit of the population to another.
A discrete random variable is function whose range is finite and/or countable, Ie it can only
assume values in a finite or countably infiniteset of values. A continuous random variable is
one that can take any value in an interval of real numbers. (There are unaccountablymany real
numbers in an interval of positive length.)
Remark: We denote random variables with capital letters while realized or particular values
are denoted by lower case letters.
Example 1Two tetrahedral dice are rolled together once and the sum of the scores facing
down was noted. Find the pmf of the random variable ‘the sum of the scores facing down.’
Solution
+ 1 2 3 4 X = 1, 2, 3 , 4 , 5 , 6 , 7 , 8
1 2 3 4 5 Therefore the pmf is given by the table below
2 3 4 5 6 x 2 3 4 5 6 7 8
1 1 3 1 3 1 1
3 4 5 6 7 P(X=x) 16 8 16 4 16 8 16
4 5 6 7 8
x161 for x 2 , 3, 4 , 5
This can also be written as a function P( X x ) 9 x
16 for x 6 , 7, 8
Example 2
The pmf of a discrete random variable W is given by the table below
w -3 -2 -1 0 1
P(W=w) 0.1 0.25 0.3 0.15 d
Find the value of the constant d, P 3 w 0 , Pw -1 and P 1 w 1
Solution
p(W w) 1
all w
0.1 0.25 0.3 0.15 d 1 d 0.2
P 3 w 0 P(W 3) P(W 2) P(W 1) 0.65
Pw -1 Pw 0 Pw 1 0.15 0.2 0.35
P 1 w 1 P(W 0) 0.15
Example 3A discrete random variable Y has a pmf given by the table below
y 0 1 2 3 4
P(Y=y) c 2c 5c 10c 17c
Find the value of the constant c hence computes P1 Y 3
Solution
p(Y y) 1 c(1 2 5 10 17) 1 c 351
ally
d) f(x) 2c for x 1, 0, 1, 2
h) g) f(x) cx 3 C x for x 1, 2 , 3
i) f(x) c 16 for x 0 ,1, 2 , 3.....
x
f(x) c 2 for x for x 0 ,1, 2 , ....
x
j)
9. A coin is loaded so that heads is three times as likely as the tails.
a. For 3 independent tosses of the coin find the pmf of the total number of heads
realized and the probability of realizing at most 2 heads.
b. A game is played such that you earn 2 points for a head and loss 5 points for a
tail. Write down the probability distribution of the total scores after 4
independent tosses of the coin
10. For an on-line electronics retailer, X = “the number of Zony digital cameras returned per
day” follows the distribution given by
x 0 1 2 3 4 5
P(X=x) 0.05 0.1 t 0.2 0.25 0.1
Find the value of t and P(X > 3)
11. Out of 5 components, 3 are domestic and 2 are imported. 3 components are selected at
random (without replacement). Obtain the PMF of X =”number of domestic components
picked” (make a table).
(iv) Eag1 (x) bg 2 (x) Eag1 (x) Ebg 2 (x) aEg1 (x) bEg 2 (x) from part iii
6.2.3 Variance and Standard Deviation
Definition: Let X be ar.v with mean E ( X ) , the variance of X, denoted or Var(X) ),is
2
given by Var ( X ) E ( X ) . The units for variance are square units. The quantity that has
2 2
the correct units is standard deviation, denoted . It’sactually the positive square root of
Var(X) .
Var ( X ) E ( X ) 2 .
Theorem: Var ( X ) E ( X ) E ( X )
2 2 2
Proof:
Var ( X ) E ( X )2 E X 2 2 X 2 E ( X )2 2E ( X ) 2 E ( X )2 2 Since
E( X )
Theorem: Var (aX b) a var( X )
2
Proof:
Recall that E aX b a b therefore
Var(aX b) E(aX b) (a b) Ea X E a 2 X a 2 E X a2 var( X )
2 2
2
2
Remarks
(i) The expected value of X always lies between the smallest and largest values of X.
(ii) In computations, bear in mind that variance cannot be negative!
Example 1
Given a probability distribution of X as below, find the mean and standard deviation of X.
x 0 1 2 3
P(X=x) 1/8 1/4 3/8 1/4
Solution
3
E ( X ) xp( X x) 1.75 and
x 0 1 2 3 total
p( X x) 1
8
1
4
3
8
1
4 1 x 0
xp( X x) 0 1
4
3
4
3
4
7
4
standard deviation
x p( X x)
2
1 3 9 E ( X 2 ) 2 4 1.752 0.968246
0 4 2 4 4
Example 2 The probability distribution of a r.v X is as shown below, find the mean and
standard deviation of; a)X b) Y 12 X 6 .
x 0 1 2
P(X=x) 1/6 1/2 1/3
Solution
2
E ( X ) xp( X x) 7 6 and
x 0 1 2 total
p( X x) 1
6
1
2
1
3 1 x 0
xp( X x) 7 2
E ( X 2 ) x 2 p( X x) 11 6
1 2
0 2 3 6
x p( X x)
2
0 1
2
4
3
11
6
x 0
Standard deviation E ( X 2 ) 2 11
6 (7 6)2 17
6 1.6833
Now E (Y ) 12 E ( X ) 6 12( 7 6 ) 6 20
Var (Y ) Var (12 X 6) 12 2 Var ( X ) 144 17
6 242.38812
Exercise
1. Suppose X has a probability mass 2. Suppose X has a probability mass
function given by the table below function given by the table below
x 2 3 4 5 6 x 11 12 13 14 15
P(X=x) 0.01 0.25 0.4 0.3 0.04 P(X=x) 0.4 0.2 0.2 0.1 0.1
Find the mean and variance of; X Find the mean and variance of; X
3. Let X be a random variable with P(X = 1) = 0.2, P(X = 2) = 0.3, andP(X = 3) = 0.5. What is the
expected value and standard deviation of; a)X b) Y 5 X 10 ?
4. A random variable W has the probability distribution shown below,
w 0 1 2 3
P(W=w) 2d 0.3 d 0.1
Find the values of the constant d hence determine the mean and variance of W. Also find
the mean and variance of Y 10 X 25
5. A random variable X has the probability distribution shown below,
x 1 2 3 4 5
P(X=x) 7c 5c 4c 3c c
Find the values of the constant c hence determine the mean and variance of X.
6. The random variable Z has the probability distribution shown below,
z 2 3 5 7 11
1 1 1
P(Z=z) 6 3 4 x y
If E ( Z ) 4 3 ,find the values of x and y hence determine the variance of Z
2
m , m 1, 2 , 3 , ... ,8
7. A discrete random variable M has the probability distribution f(m) 36 ,
0 , elsewhere
find the mean and variance of M
510 y , y 1, 2 , 3 , 4
8. For a discrete random variable Y the probability distribution is f(y) ,
0 , elsewhere
calculate E (Y ) and var(Y)
kx for x 1, 2 , 3 , 4
9. Suppose X has a pmf given by f(x) , find the value of the constant
0 , elsewhere
k hence obtain the mean and variance of X
10. A team of 3 is to be chosen from 4 girl and 6 boys. If X is the number of girls in the team,
find the probability distribution of X hence determine the mean and variance of X
11. A fair six sided die has; ‘1’ on one face, ‘2’ on two of it’s faces and ‘3’ on the remaining
three faces. The die is rolled twice. If T is the total score write down the probability
distribution of T hence determine;
a) the probability that T is more than 4
b) the mean and variance of T