Prob Exercises Chap1 and Chap2
Prob Exercises Chap1 and Chap2
2019 - 2020
HCM city University of Technology Probability with Engineering Applications
Introduction to probability
2. Addition rules
• P (A + B) = P (A) + P (B) − P (AB)
• P (A + B + C) = P (A) + P (B) + P (C) − P (AB) − P (BC) − P (AC) + P (ABC)
• If A1 , A2 , · · · , An are mutually exclusive:
P (A1 + A2 + · · · + An ) = P (A1 ) + · · · + P (An )
P (AB)
• P (A|B) =
P (B)
• P (AB) = P (A|B).P (B)
4. Independence
2 events are independent if one of these statements holds true:
• P (A|B) = P (A)
• P (B|A) = P (B)
• P (AB) = P (A).P (B)
6. Bayes formula
P (A|B)P (B)
P (B|A) =
P (A)
3
HCM city University of Technology Probability with Engineering Applications
a) Define a sample space Ω. Explain how the elements of your set correspond to the
possible scenarios.
b) How many possible scenarios are there?
2. Samples of a cast aluminum part are classified on the basis of surface finish (in mi-
croinches) and edge finish. The results of 100 parts are summarized as follows:
a) Let A denote the event that a sample has excellent surface finish, and let B de-
note the event that a sample has excellent edge finish. Determine the number of
samples in Ac B, B c and in A + B.
b) Assume that each of two samples is to be classified on the basis of surface finish,
either excellent or good, and on the basis of edge finish, either excellent or good.
Use a tree diagram to represent the possible outcomes of this experiment.
3. Lan and Thanh are arranged in a line of 10 students. Find the probability that Thanh
is right after Lan.
4. Four bits are transmitted over a digital communications channel. Each bit is either
distorted or received without distortion. Let Ai denote the event that the ith bit is
distorted, i = 1, ..., 4.
5. Hospital Emergency Visits The following table summarizes visits to emergency de-
partments at four hospitals in Arizona. People may leave without being seen by a
physician, and those visits are denoted as LWBS. The remaining visits are serviced at
the emergency department, and the visitor may or may not be admitted for a stay in
the hospital. Let A denote the event that a visit is to hospital 1, and let B denote the
6. A group of 5 people with different names. Each person writes one name of the others
randomly. Find the probability that there is a couple that write the names of each
other.
7. In a deck of 52 cards, 5 cards are chosen. What is the probability that all 5 cards have
different face values?
8. A credit card contains 16 digits between 0 and 9. However, only 100 million numbers
are valid. If a number is entered randomly, what is the probability that it is a valid
number?
9. In a chemical plant, 24 holding tanks are used for final product storage. Four tanks are
selected at random and without replacement. Suppose that six of the tanks contain
material in which the viscosity exceeds the customer requirements.
a) What is the probability that exactly one tank in the sample contains high-viscosity
material?
b) What is the probability that at least one tank in the sample contains high-viscosity
material?
c) In addition to the six tanks with high viscosity levels, four different tanks contain
material with high impurities. What is the probability that exactly one tank in
the sample contains high-viscosity material and exactly one tank in the sample
contains material with high impurities?
10. Birthday Problem. Find the probability p(n) that, in a set of n randomly chosen peo-
ple, some pair of them will have the same birthday
2. In the article “ACL Reconstruction Using Bone- Patellar Tendon-Bone Press-Fit Fix-
ation: 10-Year Clinical Results” in Knee Surgery, Sports Traumatology, Arthroscopy
(2005, Vol. 13, pp. 248–255), the following causes for knee injuries were considered:
a) What is the probability that a knee injury resulted from a sport (contact or non-
contact)?
b) What is the probability that a knee injury resulted from an activity other than a
sport?
3. In a class, 70% of students are good at Maths, 80% are good at English and 60% is good
at Physics. Given that there are 90% of students that are good at Maths or English, 85%
good at English or Physics, 80% good at Maths or Physics, 95% good at one of these 3
subjects.
Find the probability that a student in this class is good at
4. Disks of polycarbonate plastic from a supplier are analyzed for scratch and shock
resistance. The results from 100 disks are summarized as follows:
(a) If a disk is selected at random, what is the probability that its scratch resistance is
high and its shock resistance is high?
(b) If a disk is selected at random, what is the probability that its scratch resistance is
high or its shock resistance is high?
(c) Consider the event that a disk has high scratch resistance and the event that a disk
has high shock resistance. Are these two events mutually exclusive?
5. Strands of copper wire from a manufacturer are analyzed for strength and conduc-
tivity. The results from 100 strands are as follows:
(a) If a strand is randomly selected, what is the probability that its conductivity is high
and its strength is high?
(b) If a strand is randomly selected, what is the probability that its conductivity is low
6. A Web ad can be designed from 4 different colors, 3 font types, 5 font sizes, 3 images,
and 5 text phrases. A specific design is randomly generated by the Web server when
you visit the site. Let A denote the event that the design color is red, and let B denote
the event that the font size is not the smallest one. Use the addition rules to calculate
the following probabilities.
a) P (AB)
b) P (Ac + B)
c) P (Ac + B c )
7. A computer system uses passwords that contain exactly 8 characters, and each char-
acter is one of the 26 lowercase letters (a–z) or 26 uppercase letters (A–Z) or 10 inte-
gers (0–9). Assume all passwords are equally likely. Let A and B denote the events
that consist of passwords with only letters or only integers, respectively. Determine
the following probabilities:
a) P (A + B)
b) P (Ac + B)
c) P (Password contains exactly 1 or 2 integers)
Let A denote the event that a sample has excellent surface finish, and let B denote the
event that a sample has excellent edge finish. Determine the following probabilities:
a) P (A) c) P (A|B)
b) P (B) d) P (B|A)
3. A batch of 50 parts contains 10 made by Tool 1 and 40 made by Tool 2. If 2 parts are
selected randomly
(a) What is the probability that the 2nd part came from Tool 2, given that the 1st
part came from Tool 1?
(b) What is the probability that the 1st part came from Tool 1 and the 2nd part came
from Tool 2?
Homework
4. Tom’s parents have 2 children.
a) Find the probability that Tom has a sister.
b) Find the probability that Tom has an elder sister.
5. Samples of skin experiencing desquamation are analyzed for both moisture and melanin
content. The results from 100 skin samples are as follows:
Let A denote the event that a sample has low melanin content, and let B denote the
event that a sample has high moisture content. Determine the following probabili-
ties:
a) P (A) c) P (A|B)
b) P (B) d) P (B|A)
6. Disks of polycarbonate plastic from a supplier are analyzed for scratch and shock
resistance. The results from 100 disks are summarized as follows:
Let A denote the event that a disk has high shock resistance, and let B denote the
event that a disk has high scratch resistance. Determine the following probabilities:
a) P (A) c) P (A|B)
b) P (B) d) P (B|A)
7. In a class with 30 students, there are 17 boys and 13 girls. There are 3 students named
”Khanh”, in which 2 are boys and 1 is girl. The teacher called the name of a student in
the class.
a) Define two events by: A =”the sum is 6”, and B = ”the numbers are not equal”.
Find and compare P (B) and P (B|A)
b) Let E = ”the number showing on the first die is even,” and F = ”the sum of the
numbers showing is 7”. Find and compare P (F ) and P (F |E)
9. Consider the tossing of a pair of dice. What is the probability of a number greater
than 4 with the second die if a number less than 4 turned up on the first die?
1.4 Independence
1. The following circuit operates only if there is a path of functional devices from left to
right. The probability that each device functions is shown on the graph. Assume that
devices fail independently. What is the probability that the circuit operates?
a)
b)
c)
2. Disks of polycarbonate plastic from a supplier are analyzed for scratch and shock
resistance. The results from 100 disks are summarized as follows:
Let A denote the event that a disk has high shock resistance, and let B denote the
event that a disk has high scratch resistance. Are A and B independent?
3. A Web ad can be designed from 4 different colors, 3 font types, 5 font sizes, 3 images,
and 5 text phrases. A specific design is randomly generated by the Web server when
you visit the site. Let A denote the event that the design color is red, and let B denote
the event that the font size is not the smallest one. Are A and B independent events?
4. Samples of skin experiencing desquamation are analyzed for both moisture and melanin
content. The results from 100 skin samples are as follows:
Let A denote the event that a sample has low melanin content, and let B denote the
event that a sample has high moisture content. Are A and B independent?
5. The table shows well failures for different geological formation groups in Baltimore
County. Let A denote the event that the geological formation has more than 1000
wells, and let B denote the event that a well failed. Are these events independent?
6. Hospital Emergency Visits The following table summarizes visits to emergency de-
partments at four hospitals in Arizona. People may leave without being seen by a
physician, and those visits are denoted as LWBS. The remaining visits are serviced at
the emergency department, and the visitor may or may not be admitted for a stay in
the hospital. Let A denote the event that a visit is to hospital 4, and let B denote the
event that a visit results in LWBS (at any hospital). Are these events independent?
7. The following circuit operates only if there is a path of functional devices from left to
right. The probability that each device functions is shown on the graph. Assume that
devices fail independently. What is the probability that the circuit operates?
a)
b)
2. Testing for mad cow disease: In early 2001 the European Commission introduced
massive testing of cattle to determine infection with the transmissible form of Bovine
Spongiform Encephalopathy (BSE) or “mad cow disease.” As no test is 100% accurate,
most tests have the problem of false positives and false negatives.The results for what
the report calls Test A may be summarized as follows: an infected cow has a 70%
chance of testing positive, and a healthy cow just 10%; in formulas:
3. Two Web colors are used for a site advertisement. If a site visitor arrives from an affil-
iate, the probabilities of the blue or green colors being used in the advertisement are
0.8 and 0.2, respectively. If the site visitor arrives from a search site, the probabilities
of blue and green colors in the advertisement are 0.4 and 0.6, respectively. The pro-
portions of visitors from affiliates and search sites are 0.3 and 0.7, respectively. What
is the probability that a visitor is from a search site given that the blue ad was viewed?
4. An e-mail ilter is planned to separate valid e-mails from spam. The word free occurs
in 60% of the spam mes- sages and only 4% of the valid messages. Also, 20% of the
messages are spam. Determine the following probabilities:
5. A recreational equipment supplier finds that among orders that include tents, 40%
also include sleeping mats. Only 5% of orders that do not include tents do include
sleeping mats. Also, 20% of orders include tents. Determine the following probabili-
ties:
6. The probabilities of poor print quality given no printer problem, misaligned paper,
high ink viscosity, or printer-head debris are 0, 0.3, 0.4, and 0.6, respectively. The
probabilities of no printer problem, misaligned paper, high ink viscosity, or printer-
head debris are 0.8, 0.02, 0.08, and 0.1, respectively.
a) Determine the probability of high ink viscosity given poor print quality.
b) Given poor print quality, what problem is most likely?
• Variance V (X)
• Standard deviation σ
p
σ= V (X)
13
HCM city University of Technology Probability with Engineering Applications
R∞
µ = E(X) = xf (x)dx
−∞
• Variance V (X)
R∞ R∞
V (X) = (x − µ)2 f (x)dx = x2 f (x)dx − µ2
−∞ −∞
• Standard deviation σ
p
σ= V (X)
outcome a b c d e f
x 0 0 1.5 1.5 2 3
Determine the probability mass function (PMF) of a. Use the probability mass func-
tion to determine the following probabilities:
3. Verify that the following functions are probability mass functions, and determine the
requested probabilities.
x −2 −1 0 1 2
f (x) 0.2 0.4 0.1 0.2 0.1
(a) P (X ≤ 2) (e) Determine the cumulative distribu-
(b) P (X > −2) tion function (CDF) of X.
5. An optical inspection system is used to distinguish among different part types. The
probability of a correct classification of any part is 0.98. Suppose that three parts are
inspected and that the classifications are independent. Let the random variable X
denote the number of parts that are correctly classified.
6. A disk drive manufacturer sells storage devices with capacities of one terabyte, 500
gigabytes, and 100 gigabytes with probabilities 0.5, 0.3, and 0.2, respectively. The rev-
enues associated with the sales in that year are estimated to be $50 million, $25 mil-
lion, and $10 million, respectively. Let X denote the revenue of storage devices during
that year.
8. The distributor of a machine for cytogenics has developed a new model. The com-
pany estimates that when it is introduced into the market, it will be very successful
with a probability 0.6, moderately successful with a probability 0.3, and not success-
ful with probability 0.1. The estimated yearly proit associated with the model being
very successful is $15 million and with it being moderately successful is $5 million;
not successful would result in a loss of $500, 000. Let X be the yearly profit of the new
model.
10. The thickness of wood paneling (in inches) that a customer orders is a random vari-
able with the following cumulative distribution function:
0, x < 1/8,
0.2, 1/8 ≤ x < 1/4,
F (x) =
0.9, 1/4 ≤ x < 3/8,
3/8 ≤ x
1,
2. The probability density function of the net weight in pounds of a packaged chemical
herbicide is f (x) = 2.0 for 49.75 < x < 50.25 pounds.
3. The probability density function of the length of a cutting blade is f (x) = 1.25 for
74.6 < x < 75.4 millimeters. Determine the following:
a) P (X < 74.8)
b) P (X < 74.8 or X > 75.2)
c) If the specifications for this process are from 74.7 to 75.3 millimeters, what propor-
tion of blades meets specifications?
d) Determine CDF.
e) Evaluate the expectation E(X) and Variance V (X).
4. The probability density function of the length of a metal rod is f (x) = 2 for 2.3 < x <
2.8 meters.
a) If the specifications for this process are from 2.25 to 2.75 meters, what proportion
of rods fail to meet the specifications?
b) Assume that the probability density function is f (x) = 2 for an interval of length
0.5 meters. Over what value should the density be centered to achieve the greatest
proportion of rods within specifications?
c) Determine CDF.
d) Evaluate the expectation E(X) and Variance V (X).
5. An article in Electric Power Systems Research [“Mod- eling Real-Time Balancing Power
Demands in Wind Power Systems Using Stochastic Differential Equations” (2010, Vol.
80(8), pp. 966–974)] considered a new probabilistic model to balance power demand
with large amounts of wind power. In this model, the power loss from shutdowns is
assumed to have a triangular distribution with probability density function
−4 −6
−5.56.10 + 5.56.10 x,
x ∈ [100, 500]
f (x) = 4.44.10−3 − 4.44.10−6 x, x ∈ [500, 1000]
0, otherwise
a) P (X < 74.8)
b) P (X < 74.8 or X > 75.2)
c) If the specifications for this process are from 74.7 to 75.3 millimeters, what propor-
tion of blades meets specifications?
d) Determine CDF.
e) Evaluate the expectation E(X) and Variance V (X).
6. The distribution
( of X is approximated with a triangular probability density function
0.025x − 0.0375, f or 30 < x < 50
f (x) = . Determine the following:
−0.025x + 0.0875, f or 50 < x < 70.
a) P (X ≤ 40)
b) P (40 < X ≤ 60)
c) Value x exceeded with probability 0.99.
d) Determine CDF.
e) Evaluate the expectation E(X) and Variance V (X).
7. Determine the probability density function for each of the following cumulative dis-
tribution functions.
2. Show that the following function satisfies the properties of a joint probability mass
function.
x y fXY (x, y)
−1 −2 1/8
−0.5 −1 1/4
0.5 1 1/2
1 2 1/8
3. Determine the value of c that makes the function f (x, y) = c(x + y) a joint probability
mass function over the nine points with x = 1, 2, 3 and y = 1, 2, 3. Determine the
following
4. In the transmission of digital information, the probability that a bit has high, moder-
ate, and low distortion is 0.01, 0.04, and 0.95, respectively. Suppose that three bits are
transmitted and that the amount of distortion of each bit is assumed to be indepen-
dent. Let X and Y denote the number of bits with high and moderate distortion out
of the three, respectively. Determine:
5. An engineering statistics class has 40 students; 60% are electrical engineering majors,
10% are industrial engineering majors, and 30% are mechanical engineering majors.
6. A manufacturing company employs two devices to inspect output for quality control
purposes. The first device is able to accurately detect 99.3% of the defective items it
receives, whereas the second is able to do so in 99.7% of the cases. Assume that four
defective items are produced and sent out for inspection. Let X and Y denote the
number of items that will be identified as defective by inspecting devices 1 and 2,
respectively. Assume that the devices are independent. Determine:
7. A small-business Web site contains 100 pages and 60%, 30%, and 10% of the pages
contain low, moderate, and high graphic content, respectively. A sample of four pages
is selected without replacement, and X and Y denote the number of pages with mod-
erate and high graphics output in the sample. Determine: