Individual Assignment
Individual Assignment
Individual Assignment
CS230
CSC584
Individual Assignment
Name Student ID
We treat the three persons as a single unit, reducing the problem to arranging 9 units (8
individuals + 1 group of 3).
Calculating:
9! = 362880
3! = 6
9! ×3! = 362880 × 6
= 2177280
So, there are 2,177,280 ways to arrange the 11 persons with the 3 persons always together.
Boys = 6
Girls = 4
Formula used:
Calculation:
No boy selection
4C4 = 1
c) Probability Questions
𝑃𝑃(𝐴𝐴∪𝐵𝐵) =𝑃𝑃(𝐴𝐴)+𝑃𝑃(𝐵𝐵)−𝑃𝑃(𝐴𝐴∩𝐵𝐵)
𝑃𝑃(𝐴𝐴′) =1−𝑃𝑃(𝐴𝐴)=1−0.28=0.72
𝑃𝑃(𝐵𝐵′) =1−𝑃𝑃(𝐵𝐵)=1−0.45=0.55
𝑃𝑃(𝐴𝐴′∩𝐵𝐵′) = 0.48
Since 0.48 ≠ 0.3960, 𝐴𝐴′=0.396, 𝐴𝐴′ and 𝐵𝐵′ are not independent events.
d) Vaccination and Chicken Pox
i. Tree Diagram:
Calculating:
= 0.4675 + 0.2025
= 0.67
So, the probability that a baby is not infected by chicken pox is 0.67.
𝑃𝑃 (Not Vaccinated ∣ Infected) = (𝑃𝑃 (Infected ∣ Not Vaccinated) ×𝑃𝑃 (Not Vaccinated)) / 𝑃𝑃
(Infected)
So, the probability that a baby is not vaccinated given that it is infected is 0.75.
QUESTION 2
• A: 2
• T: 2
• E: 2
• N: 2
• D: 1
• C: 1
We need to find the number of distinct arrangements where the two T's are together.
Consider the two T's as a single unit or block. This reduces the problem to arranging 9 units:
(TT), A, A, E, E, N, N, D, C.
9!
2! ∗ 2! ∗ 2!
Where:
Calculating this:
9! = 362880
2! = 2
362880 362880
(2 × 2 × 2)
= 8
= 45360
Thus, the number of distinct arrangements where the two T’s are together is 45360.
Given:
5
• 𝑃𝑃(𝐴𝐴) =
12
7
• 𝑃𝑃(𝐴𝐴∣𝐵𝐵′) =
12
1
• 𝑃𝑃(𝐴𝐴∩𝐵𝐵) =
8
i) To find P(B):
P(B) = P (A ∩ B) / P(A|B)
However, we don't know P(A|B). Let's use the law of total probability:
7
P(B) =
24
1
8
P(A|B) = 7
24
3
=
7
5 7 1
P (A ∪ B) = + −
12 24 8
19
=
24
c) Relationship between Blood Pressure and Heartbeat Abnormalities
i. Tree Diagram
• 𝑃𝑃(𝐻𝐻) = 0.14
• 𝑃𝑃(𝐼𝐼∣𝐻𝐻) = 0.15
• 𝑃𝑃(𝑅𝑅∣𝐻𝐻) = 0.85
• 𝑃𝑃(𝐿𝐿) = 0.22
• 𝑃𝑃(𝐼𝐼∣𝐿𝐿) = 0.05
• 𝑃𝑃(𝑅𝑅∣𝐿𝐿) = 0.95
• 𝑃𝑃(𝑁𝑁) = 0.64
• 𝑃𝑃(𝐼𝐼∣𝑁𝑁) = 0.02
• 𝑃𝑃(𝑅𝑅∣𝑁𝑁) = 0.98
Where:
𝑃𝑃(𝐼𝐼∩𝐻𝐻) = 𝑃𝑃(𝐻𝐻)⋅𝑃𝑃(𝐼𝐼∣𝐻𝐻)
𝑃𝑃(𝐼𝐼∩𝐿𝐿) = 𝑃𝑃(𝐿𝐿)⋅𝑃𝑃(𝐼𝐼∣𝐿𝐿)
𝑃𝑃(𝐼𝐼∩𝑁𝑁) = 𝑃𝑃(𝑁𝑁)⋅𝑃𝑃(𝐼𝐼∣𝑁𝑁)
𝑃𝑃(𝐼𝐼) = 0.0448
P(R∩H)
𝑃𝑃(𝐻𝐻∣𝑅𝑅) = P®
Where:
𝑃𝑃(𝑅𝑅∩𝐻𝐻) = 𝑃𝑃(𝐻𝐻)⋅𝑃𝑃(𝑅𝑅∣𝐻𝐻)
𝑃𝑃(𝑅𝑅∩𝐿𝐿) = 𝑃𝑃(𝐿𝐿)⋅𝑃𝑃(𝑅𝑅∣𝐿𝐿)
𝑃𝑃(𝑅𝑅∩𝑁𝑁) = 𝑃𝑃(𝑁𝑁)⋅𝑃𝑃(𝑅𝑅∣𝑁𝑁)
P(R∩H) 0.119
𝑃𝑃(𝐻𝐻∣𝑅𝑅) = P(R)
= ≈ 0.1246
0.9552
Therefore, the probability that a patient has high blood pressure given that they have a
regular heartbeat is:
𝑃𝑃(𝐻𝐻∣𝑅𝑅) ≈ 0.1246