Description
CENG222
Statistical Methods for Computer Engineering
Homework 1
Student Information
Full Name : Yavuz Selim Yesilyurt
Id Number : 2259166
Answer 2.15
Let A is the event that there is an error in the first block and let B is the event that there is an error in the second block and C is the event that the computer program returns error. Given that P{A} = 0.2 and P{B} = 0.3 and the events A and B are independent. The probability that the computer program will return error is P{A ∪ B} and it can be found adding all the cases that can bring an error and subtracting their intersection, namely we need to add probability that first block contains an error whereas second one does not, probability that second block contains an error whereas first one does not and we need to subtract the probability that both of them contains error:
P{A ∪ B} = P{A} + P{B} − P{A ∩ B}
= 0.2 + 0.3 − 0.2 × 0.3
= 0.44
Then by definition of conditional probability:
Answer 2.20
Let U denotes the event that an athlete uses steroids and let P denotes the test gives a positive result. Then the given probabilities can be rewritten as:
P{P | U} = 0.9 and P{P | U¯} = 0.02 and P{U} = 0.05
We are required to find P{U | P¯}. From the Bayes’s rule, we have:
We know that, from the law of total probability, P{P¯} can be rewritten as:
P{P¯ | U} × P{U} × P{P¯ | U¯} × P{U¯}
So:
= 0.00534
Answer 2.29
Let A be the event that the database contain the given keyword. Then and event that the database does not contain the given keyword is
Probability that the keyword will be found in at least 2 of the first 4 searched databases can be found by examining all the favorable outcomes, adding them up and then dividing them to total number of outcomes, namely:
= finding in exactly 2 of the first 4 searched databases + finding in exactly 3 of the first 4 searched databases + finding in exactly 4 of the first 4 searched databases ÷ choosing 4 databases to search for word out of 9 databases
Namely:
= 0.833




Reviews
There are no reviews yet.