Probability and Statistics in Computer Science, Schemes and Mind Maps of Law of Evidence

Various probability and statistics concepts related to computer science, including outcomes, sample spaces, set operations, and probability calculations. It provides solutions to several problems from a computer science course, demonstrating the application of these fundamental probability and statistics principles in the context of computer systems and components. Topics such as the probability of selecting defective and non-defective computer chips, the probability of having a certain number of defective components, and the probability of computer system failures due to overload or software problems. The detailed solutions and explanations make this document a valuable resource for students studying probability and statistics in the field of computer science, providing them with a practical understanding of how these concepts are applied in real-world computer science scenarios.

Typology: Schemes and Mind Maps

2021/2022

Uploaded on 02/09/2023

JeevanReddy12103699
JeevanReddy12103699 🇮🇳

5 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Page 1 of 2
CS 3341 HW # 1 SOLUTION
1. Sec 1.3, # 1
(a)
Outcome = 3-tuple representing the type of the selected (chip 1, chip 2, chip 3).
Total # outcomes in S = (2) (2) (2) = 8.
S = { (RAM,RAM,RAM), (RAM,RAM,ROM), (RAM,ROM,RAM),
(ROM,RAM,RAM), (RAM,ROM,ROM), (ROM,RAM,ROM), (ROM,ROM,RAM),
(ROM,ROM,ROM) }
(b)
Outcome = 3-tuple representing the type of the selected (chip 1, chip 2, chip 3), while keeping in
mind that there is only one defective (D) and nine good (G) chips.
S = { (G, G, G), (D, G, G), (G, D, G), (G, G, D) }
2. Sec 1.5, # 1
Keep in mind that there are 4 components.
(a) B C = {exactly 2 G’s or at most 3 D’s}
(b) B C ={exactly 2 G’s and at most 3 D’s} ={exactly 2 G’s and exactly 2 D’s}
(c) A C = {all 4 D’s or at most 3 D’s} = {at most 4 D’s}
(d) A C ={} = empty or null event (event not possible)
3. Sec 1.8, # 1
We want two-digit even numbers.
Case 1: Assume repetitions allowed.
# of choices for the left-most digit = 5. # of choices for the right-most digit = 2
So, total # of choices = 5 (2) = 10
Case 2: Assume repetitions not allowed.
44 and 66 are not possible now. So, total # of choices = 10 – 2 = 8.
4. Sec 1.8, # 4
Outcome = # defective chips in three selected three chips.
Note that the order of selection is not important here since we are only interested in counting the # of
defectives.
pf2

Partial preview of the text

Download Probability and Statistics in Computer Science and more Schemes and Mind Maps Law of Evidence in PDF only on Docsity!

Page 1 of 2

CS 3341 HW # 1 SOLUTION

  1. Sec 1.3, # 1 (a)Outcome = 3-tuple representing the type of the selected (chip 1, chip 2, chip 3).

Total # outcomes in S = (2) (2) (2) = 8.

S = { (RAM,RAM,RAM), (RAM,RAM,ROM), (RAM,ROM,RAM),

(ROM,RAM,RAM), (RAM,ROM,ROM), (ROM,RAM,ROM), (ROM,ROM,RAM),

(ROM,ROM,ROM) }

(b)Outcome = 3-tuple representing the type of the selected (chip 1, chip 2, chip 3), while keeping in mind that there is only one defective (D) and nine good (G) chips. S = { (G, G, G), (D, G, G), (G, D, G), (G, G, D) }

  1. Sec 1.5, # 1 Keep in mind that there are 4 components. (a) B ∪ C = {exactly 2 G’s or at most 3 D’s} (b) B ∩ C ={exactly 2 G’s and at most 3 D’s} ={exactly 2 G’s and exactly 2 D’s} (c) A ∪ C = {all 4 D’s or at most 3 D’s} = {at most 4 D’s} (d) A ∩ C ={} = empty or null event (event not possible)
  2. Sec 1.8, # 1 We want two-digit even numbers. Case 1: Assume repetitions allowed.

    of choices for the left-most digit = 5. # of choices for the right-most digit = 2So, total # of choices = 5 (2) = 10

Case 2: Assume repetitions not allowed. 44 and 66 are not possible now. So, total # of choices = 10 – 2 = 8.

  1. Sec 1.8, # 4 Outcome = # defective chips in three selected three chips. Note that the order of selection is not important here since we are only interested in counting the # of defectives.

Page 2 of 2

Total # of outcomes in S = # of ways to draw 3 chips from 15 chips = “15 choose 3” = 455. Total # of favorable outcomes = # of ways to draw 3 chips from 5 D chips = “5 choose 3” = 10 So, P(All three D’s) = 10/455 = 0.

  1. Sec 1.8, # 5 Using the formula derived in the class, P(No match) = 0. P(At least one match) = 1 – 0.973 = 0.027.
  2. When a computer goes down, there is a 75% chance that it is due to an overload and a 15% chance that it is due to a software problem. There is an 85% chance that it is due to an overload or a softwareproblem. What is the probability that both of these problems are at fault? What is the probability that there is a software problem but no overload? Let O = down due to overload and S = down due to software problem. Given that, P(O) = 0.75, P(S) = 0.15 and P(O ∪ S) = 0.85. We want P(O ∩ S) and P(OC^ ∩ S). Recall, P(O ∪ S) = P(O) + P(S) – P(O ∩ S). So, P(O ∩ S) = P(O) + P(S) – P(O ∪ S) = 0.75 + 0.15 – 0.85 = 0. P(OC^ ∩= 0.15 – 0.05 = 0.10 S) = P(S) – P(OC) [Hint: draw a Venn diagram]