Professional Documents
Culture Documents
1) A wireless garage door opener has a code determined by the up or down setting of 12 switches.
What is the probability that a burglar guesses the right code in the first try?
Answer: 0.0244%
2) A group of 3 kids is formed in a class with 15 kids. What is the probability that the group consists of
Xavier, Ygritte and Zeth?
Answer: The sample space consists of all possible groups. This is combinations without
!
replacement, so the number of elements in the sample space is ( )!⋅ !
= . Only one of
these consists of Xavier, Ygritte and Zeth, so the probability that this group is formed is =
0.02198%.
3) Samples of emissions from three suppliers are classified for conformance to air-quality
specifications. The results from 100 samples are summarized as follows:
Let denote the event that a sample is from supplier 1, and let denote the event that a sample
conforms to specifications.
a) What is the probability that a randomly selected item conforms, ( )?
| |
Answer: ( ) = | |
= = = .
b) Determine the number of samples in ∩ , ′, and ∪ .
Answer: To the determine the number of elements in ∩ , we identify the intersection
between not (which consists of all samples not from supplier 1) and (which consists of all
samples that conforms) - that is, we count the samples which are from either supplier 2 or 3
(i.e. not 1) and which conforms. This gives us | ∩ | = + = . Likewise, we find
| |= ,| ∪ |= .
c) What is ( ∩ )? What is the the interpretation of this probability?
∩
Answer: ( ∩ )= | |
= = . . Interpretation: the probability that an item
conforms and is from supplier 2 or 3.
d) What is the probability that an item conforms given that it is from supplier 1, ( | )?
Answer: ( | ) = .
e) What is the probability that an item is from supplier 1, given that it conforms, ( | )?
Answer: ( | ) = .
f) Is conforming to specifications and being from supplier 1 independent events?
Answer: No.
4) Suppose and are disjoint events. Construct a Venn diagram that contains the three events , ,
and such that ( | ) = 1 and ( | ) = 0.
Answer:
A
C
B
7) The following circuit operates if and ony if there is a path of functional devices from left to right.
The probability that a device functions does not depend on whether or not other devices are
functional. What is the probability that the circuit operates?
Answer: Lets first consider the first parallel circuit - we let denote the event that there is a path
through this circuit. There is a path through this circuit if either the top device is functional - let's
call that event - or the bottom device is functional - let's call that event - or if both are
functional - this is the union ∪ .
( ∩ ∩ )= ( )⋅ ( )⋅ ( )= . ⋅ . ⋅ . = . .
8) A person is tested for diabetes. The test has an accuracy of 95%, i.e. the probability that the test is
positive for a person who are not diabetic is (pos.|non diabetic) = 5% and (pos.|diabetic) =
95%. Assuming that 10% of the population has diabetes, what is the probability that the given
individual it diabetic, given that the test was positive?
Answer: 0.679 (Hints: You need to use The Law of Total Probability to calculate (pos) =
(pos|diabetic) ⋅ (diabetic) + (pos|non diabetic) ⋅ (non diabetic), and then use Bayes'
Theorem to calculate (diabatic | pos)).
9) The table below classifies 200 emails by whether they are spam or valid emails, and whether they
contain the word free or not.
Yes No Total
Yes 16 24 40
Spam
No 6 154 160
Yes No Total
Yes 8% 12 % 20 %
Spam
No 3% 77 % 80 %
Total 11 % 89 % 100 %
b. What is the probability that a randomly selected email contains the word free?
Answer: 11 %
c. What is the probability that an email is spam given that it contains the word free?
Answer: 72.7 %
d. If you select a random email that does not contain the word free, what is the probability
that the email is spam?
Answer: 13.5 %
e. If you select a random spam email, what is the probability that it contains the word free?
Answer: 40 %