Nothing Special   »   [go: up one dir, main page]

FA22-BEE-068 - Assignment # 2

Download as pdf or txt
Download as pdf or txt
You are on page 1of 15

ASSIGNMENT No 2

NAME: MUNEEB-UR-REHMAN

ROLL No: FA22-BEE-068

SUBJECT: PROBABILITY METHODS IN ENGINEERING

SUBMITTED TO: Dr. SAEED AHMED


Question 1

(a) Describe the sample space.

Answer: S = {(R, R), (R, G), (R, B), (G, R), (G, G), (G, B), (B, R), (B, G), (B, B)}

(b) Repeat when the second marble is drawn without replacing the first marble.

Answer: S = {(R, G), (R, B), (G, R), (G, B), (B, R), (B, G)}

Question 2

In an experiment, a die is rolled continually until a 6 appears, at which point the experiment
stops.

(a) What is the sample space of this experiment?

Answer: S = {1, 2, 3, 4, 5, 6, (6, 1), (6, 2), ..., (6, 1, 1), (6, 1, 2), ...}
(b) Let E_n denote the event that n rolls are necessary to complete the experiment. What
points of the sample space are contained in E_n?

Answer: E_n = {(6, 1, 1, ..., 1)} (n-1 ones)

(c) What is (∪_1^∞ E_n)'?

Answer: (∪_1^∞ E_n)' = {1, 2, 3, 4, 5}

Question 3

Two dice are thrown. Let E be the event that the sum of the dice is odd, let F be the event
that at least one of the dice lands on 1, and let G be the event that the sum is 5.

(a) Describe the events EF, E ∪ F, FG, EFS, and EFG.

Answer:

- EF = {(1, 4), (2, 3), (3, 2), (4, 1)}

- E ∪ F = {(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (2, 1), (2, 3), (2, 4), (3, 1), (3, 2), (3, 4), (4, 1),
(4, 3), (5, 1), (5, 6), (6, 1), (6, 5)}

- FG = {(1, 4), (4, 1)}

- EFS = {(1, 4)}

- EFG = {(1, 4)}

Question 4
A, B, and C take turns flipping a coin. The first one to get a head wins. The sample space of
this experiment can be defined by S = {1, 01, 001, 0001, …, 0000…}.

(a) Interpret the sample space.

Answer: The sample space represents the sequence of coin flips until a head appears, with
1 representing a head and 0 representing a tail.

(b) Define the following events in terms of S:

(i) A wins = A' = {1, 01, 001, 0001, …}

(ii) B wins = B = {01, 001, 0001, …}

(iii) (A ∪ B)' = {0001, 00001, …}

Question 5

A system is comprised of 5 components, each of which is either working or failed. Consider


an experiment that consists of observing the status of each component, and let the
outcome of the experiment be given by the vector (x1, x2, x3, x4, x5), where xi is equal to 1 if
component i is working and is equal to 0 if component i is failed.

(a) How many outcomes are in the sample space of this experiment?

Answer: 2^5 = 32
(b) Suppose that the system will work if components 1 and 2 are both working, or if
components 3 and 4 are both working, or if components 1, 3, and 5 are all working. Let W
be the event that the system will work. Specify all the outcomes in W.?

Answer: W = {(1, 1, 0, 0, 0), (1, 1, 0, 0, 1), (1, 1, 1, 0, 0), (1, 1, 1, 0, 1), (1, 1, 1, 1, 0), (1, 1, 1, 1,
1), (0, 0, 1, 1, 0), (0, 0, 1, 1, 1)}

(c) Let A be the event that components 4 and 5 are both failed. How many outcomes are
contained in the event A?

Answer: A = {(0, 0, 0, 0, 0), (0, 0, 0, 0, 1), (0, 0, 0, 1, 0), (0, 0, 0, 1, 1), (0, 0, 1, 0, 0), (0, 0, 1, 0,
1), (0, 0, 1, 1, 0), (0, 0, 1, 1, 1)}

(d) Write out all the outcomes in the event AW.

Answer: AW = {(1, 1, 0, 0, 0), (1, 1, 0, 0, 1), (1, 1, 1, 0, 0), (1, 1, 1, 0, 1)}

Question 6

A hospital administrator codes incoming patients suffering gunshot wounds according to


whether they have insurance (coding 1 if they do and 0 if they do not) and according to their
condition, which is rated as good (g), fair (f), or serious (s). Consider an experiment that
consists of the coding of such a patient.

(a) Give the sample space of this experiment.

Answer: S = {(0, g), (0, f), (0, s), (1, g), (1, f), (1, s)}
(b) Let A be the event that the patient is in serious condition. Specify the outcomes in A.

Answer: A = {(0, s), (1, s)}

(c) Let B be the event that the patient is uninsured. Specify the outcomes in B.

Answer: B = {(0, g), (0, f), (0, s)}

(d) Give all the outcomes in the event B ∪ A.

Answer: B ∪ A = {(0, g), (0, f), (0, s), (1, s)}

Question 7

Consider an experiment that consists of determining the type of job - either blue-collar or
white-collar - and the political affiliation - Republican, Democratic, or Independent - of the
15 members of an adult soccer team.

(a) How many outcomes are in the sample space?

Answer: 2^15 = 32768

(b) How many outcomes are in the event that at least one of the team members is a blue-
collar worker?

Answer: 2^15 - 1 = 32767


(c) How many outcomes are in the event that none of the team members considers himself
or herself an Independent?

Answer: 2^15 - 3^15 = 32768 - 14348907

Please let me know if you would like me to continue with the answers.

[5/24, 4:09 PM] Meta AI: Question 8

Suppose that A and B are mutually exclusive events for which P(A) = .3 and P(B) = .5.

(a) What is the probability that either A or B occurs?

Answer: P(A ∪ B) = P(A) + P(B) = .3 + .5 = .8

(b) What is the probability that A occurs but B does not?

Answer: P(A ∩ B') = P(A) = .3

(c) What is the probability that both A and B occur?

Answer: P(A ∩ B) = 0 (since A and B are mutually exclusive)

Question 9

A retail establishment accepts either the American Express or the VISA credit card. A total
of 24 percent of its customers carry an American Express card, 61 percent carry a VISA
card, and 11 percent carry both cards. What percentage of its customers carry a credit
card that the establishment will accept?

Answer: 24 + 61 - 11 = 74 percent (since 11 percent carry both cards, we subtract this


amount to avoid double counting)

Question 10

Sixty percent of the students at a certain school wear neither a ring nor a necklace. Twenty
percent wear a ring and 30 percent wear a necklace. If one of the students is chosen
randomly, what is the probability that this student is wearing:

(a) a ring or a necklace?

Answer: 20 + 30 - 10 = 40 percent (since 10 percent wear both, we subtract this amount to


avoid double counting)

(b) a ring and a necklace?

Answer: 10 percent

Question 11

A total of 28 percent of American males smoke cigarettes, 7 percent smoke cigars, and 5
percent smoke both cigars and cigarettes.

(a) What percentage of males smoke neither cigars nor cigarettes?


Answer: 100 - 28 - 7 + 5 = 60 percent (since 5 percent smoke both, we add this amount
back in to avoid double counting)

(b) What percentage smoke cigars but not cigarettes?

Answer: 7 - 5 = 2 percent

Question 12

An elementary school is offering 3 language classes: one in Spanish, one in French, and
one in German. The classes are open to any of the 100 students in the school. There are 28
students in the Spanish class, 26 in the French class, and 16 in the German class. There
are 12 students that are in both Spanish and French, 4 that are in both Spanish and
German, and 6 that are in both French and German. In addition, there are 2 students taking
all 3 classes.

(a) If a student is chosen randomly, what is the probability that he or she is not in any of the
language classes?

Answer: (100 - 28 - 26 - 16 + 12 + 4 + 6 - 2) / 100 = 40 / 100 = 4 / 10

(b) If a student is chosen randomly, what is the probability that he or she is taking exactly
one language class?

Answer: (28 + 26 + 16 - 12 - 4 - 6) / 100 = 48 / 100 = 12 / 25

(c) If 2 students are chosen randomly, what is the probability that at least 1 is taking a
language class?
Answer: 1 - (40 / 100) × (40 / 100) = 1 - 16 / 25 = 9 / 25

Question 13

A certain town with a population of 100,000 has 3 newspapers: I, II, and III. The proportions
of townspeople who read these papers are as follows:

I: 10 percent

I and II: 8 percent

I and II and III: 1 percent

II: 30 percent

I and III: 2 percent

III: 5 percent

II and III: 4 percent

(a) Find the number of people who read only one newspaper.

Answer: 10 (I) + 30 (II) + 5 (III) - 8 (I and II) - 2 (I and III) - 4 (II and III) + 1 (I and II and III) =
32,000

(b) How many people read at least two newspapers?

Answer: 8 (I and II) + 2 (I and III) + 4 (II and III) - 1 (I and II and III) = 13,000

(c) If I and III are morning papers and II is an evening paper, how many people read at least
one morning paper plus an evening paper?
Answer: 8 (I and II) + 4 (II and III) = 12,000

(d) How many people do not read any newspapers?

Answer: 100,000 - 32,000 (who read only one paper) - 13,000 (who read at least two
papers) = 55,000

(e) How many people read only one morning paper?

Answer: 10 (I) + 5 (III) - 2 (I and III) = 13,000

Question 14

The following data were given in a study of a group of 1000 subscribers to a certain
magazine:

In reference to job, marital status, and education, there were:

312 professionals

470 married persons

525 college graduates

42 professional college graduates

147 married college graduates

86 married professionals

25 married professional college graduates


Show that the numbers reported in the study must be incorrect.

Answer: Let M, W, and G denote, respectively, the set of professionals, married persons,
and college graduates. Using the principle of inclusion-exclusion, we have:

|M ∪ W ∪ G| = |M| + |W| + |G| - |M ∩ W| - |M ∩ G| - |W ∩ G| + |M ∩ W ∩ G|

Substituting the given values, we get:

|M ∪ W ∪ G| = 312 + 470 + 525 - 42 - 147 - 86 + 25 = 1059

But |M ∪ W ∪ G| cannot exceed 1000, the total number of subscribers. Therefore, the
numbers reported in the study must be incorrect.

Please let me know if you would like me to continue with the answers.

[5/24, 4:10 PM] Meta AI: Question 15

If it is assumed that all (52/5) poker hands are equally likely, what is the probability of being
dealt:

(a) a flush?

Answer: (4 × 10) / (52 × 51 × 50 × 49 × 48) = 40/2,598,960 ≈ 1.54 × 10^-5

(b) one pair?

Answer: (13 × 12 × 11 × 10 × 6) / (52 × 51 × 50 × 49 × 48) = 1,098,240/2,598,960 ≈ 0.4226


(c) two pairs?

Answer: (13 × 12 × 11 × 6 × 5) / (52 × 51 × 50 × 49 × 48) = 123,552/2,598,960 ≈ 0.0475

(d) three of a kind?

Answer: (13 × 12 × 6 × 4) / (52 × 51 × 50 × 49 × 48) = 54,912/2,598,960 ≈ 0.0211

(e) four of a kind?

Answer: (13 × 12 × 6 × 1) / (52 × 51 × 50 × 49 × 48) = 6,472/2,598,960 ≈ 0.0025

Question 16

Poker dice is played by simultaneously rolling 5 dice. Show that:

(a) P(no two alike) = .0926

Answer: (6 × 5 × 4 × 3 × 2) / 6^5 = 720/7,776 ≈ 0.0926

(b) P(one pair) = .4630

Answer: (6 × 5 × 4 × 3 × 3) / 6^5 = 1,080/2,176 ≈ 0.4630

(c) P(two pair) = .2315


Answer: (6 × 5 × 4 × 3 × 1) / 6^5 = 360/2,176 ≈ 0.2315

(d) P(three alike) = .1543

Answer: (6 × 5 × 4 × 1 × 1) / 6^5 = 120/784 ≈ 0.1543

(e) P(full house) = .0386

Answer: (6 × 5 × 2 × 1 × 1) / 6^5 = 60/1,296 ≈ 0.0386

(f) P(four alike) = .0193

Answer: (6 × 5 × 1 × 1 × 1) / 6^5 = 30/776 ≈ 0.0193

(g) P(five alike) = .0008

Answer: (6 × 1 × 1 × 1 × 1) / 6^5 = 6/7,776 ≈ 0.0008

Please let me know if you would like me to continue with the answers.

[5/24, 4:10 PM] Meta AI: Question 17

If 8 rooks (castles) are randomly placed on a chessboard, compute the probability that
none of the rooks can capture any of the others. That is, no row, column, or diagonal
contains more than one rook.
Answer: (8! × 8!) / (64 × 63 × 62 × 61 × 60 × 59 × 58 × 57) = 40,320/178,462,897,760 ≈
0.000226

Question 18

A deck of 52 cards is shuffled and 5 cards are dealt. What is the probability that:

(a) all 5 cards are of the same suit?

Answer: (4 × 13 × 12 × 11 × 10 × 9) / (52 × 51 × 50 × 49 × 48) = 11,088/2,598,960 ≈ 0.0043

(b) 3 cards are of one suit and 2 cards are of another suit?

Answer: (4 × 13 × 12 × 11 × 4 × 13 × 12) / (52 × 51 × 50 × 49 × 48) = 246,048/2,598,960 ≈


0.0947

You might also like