Question

In: Computer Science

4. Bayes Theorem - One way of thinking about Bayes theorem is that it converts a-priori...

4. Bayes Theorem - One way of thinking about Bayes theorem is that it converts a-priori probability to a-posteriori probability meaning that the probability of an event gets changed based upon actual observation or upon experimental data. Suppose you know that there are two plants that produce helicopter doors: Plant 1 produces 1000 helicopter doors per day and Plant 2 produces 4000 helicopter doors per day. The overall percentage of defective helicopter doors is 0.01%, and of all defective helicopter doors, it is observed that 50% come from Plant 1 and 50% come from Plant 2. [8 points]

(i) The a-posteriori probability of defective helicopter doors produced by Plant 1 is:

a. 0.0025

b. 0.025%

c. 0.25%

d. 0.015%

Clustering [4 Points]   

(ii)K-Means clustering algorithm

a. Needs K-means++ to know the optimal location of the centroids

b. Needs K-means++ to know the optimal number of clusters

c. Is a supervised algorithm

d. Provides the optimal clustering of points even if the initialization is bad

Solutions

Expert Solution

4) Option (b) is the correct answer.

Helicopter doors produced by Plant 1 = 1000 units

Helicopter doors produced by Plant 2 = 4000 units

Overall defective helicopter doors percentage = 0.01% = ((4000 + 1000) * 0.01) = 50 units

Defective percentage by plant 1 from overall = 50% of 50 = 25 units

Defective percentage by plant 2 from overall = 50% of 50 = 25 units

The a-posteriori probability of defective helicopter doors produced by Plant 1 = (number of defective doors / total number of doors) = 25 / 1000 = 0.025

Option (a) is incorrect as the probability given is wrong (correct is 0.025).

Option (c) is incorrect as the probability given is wrong (correct is 0.025).

Option (d) is incorrect as the probability given is wrong (correct is 0.025).

Second Question:

Option (a) is the correct answer.

K-Means clustering algorithm needs K-means++ to know the optimal location of the centroids.

Option (b) is incorrect as K-Means clustering algorithm does not need K-means++ to know the optimal number of clusters.

Option (c) is incorrect as K-Means clustering algorithm is an unsupervised algorithm.

Option (d) is incorrect as K-Means clustering algorithm provides the bad clustering of points if the initialization is bad.

Please comment in case of any doubt.
Please upvote if this helps.


Related Solutions

4. Bayes Theorem - One way of thinking about Bayes theorem is that it converts a-priori...
4. Bayes Theorem - One way of thinking about Bayes theorem is that it converts a-priori probability to a-posteriori probability meaning that the probability of an event gets changed based upon actual observation or upon experimental data. Suppose you know that there are two plants that produce helicopter doors: Plant 1 produces 1000 helicopter doors per day and Plant 2 produces 4000 helicopter doors per day. The overall percentage of defective helicopter doors is 0.01%, and of all defective helicopter...
When is the Bayes' rule (not the Bayes' theorem) optimal? Explain the meaning of that by...
When is the Bayes' rule (not the Bayes' theorem) optimal? Explain the meaning of that by using a 2x2 confusion matrix
The formula I=PAT is one way of thinking about the effects of society on the environment.  ...
The formula I=PAT is one way of thinking about the effects of society on the environment.   According to this formula, which country will have the biggest effect on the natural world?             a) Singapore             b) Ghana             c) China             d) Mauritius   e) Switzerland
1. What is dependent and independent event. 2. What is the relevance of Bayes theorem in...
1. What is dependent and independent event. 2. What is the relevance of Bayes theorem in posterior probability? 3. what is the difference between discrete and continuous probability distributions?
A software company is trying to use Bayes Theorem and other rules of probability to develop...
A software company is trying to use Bayes Theorem and other rules of probability to develop an algorithm that can effectively filter out spam emails. The company’s software developers carefully examined a random sample of 5,000 emails received by its employees and found out that 1200 of the emails were spam. A closer look at the spam emails revealed that 300 of them contained the word ‘free’ in the subject line. On the other hand, only 228 of the non-spam...
A software company is trying to use Bayes Theorem and other rules of probability to develop...
A software company is trying to use Bayes Theorem and other rules of probability to develop an algorithm that can effectively filter out spam emails. The company’s software developers carefully examined a random sample of 20,000 emails received by its employees and found out that 4,400 of the emails were spam. A closer look at the spam emails revealed that 1,100 of them contained the word ‘free’ in the subject line. On the other hand, only 780 of the non-spam...
Bayesian analysis is a probabilistic classification method based on Bayes' theorem (postulated by an English Mathematician...
Bayesian analysis is a probabilistic classification method based on Bayes' theorem (postulated by an English Mathematician named Thomas Bayes). In summary, the Bayesian theory rests on the belief that the evidence about the true state of a given problem can be expressed in term of the degree of understanding of the underlying issues. That degree of understanding can in turn be expressed in terms of probability. And based on the observation, the theorem provides the relationship between the probabilities of...
Now let's use Bayes' theorem and the binomial distribution to address a Bayesian inference question. You...
Now let's use Bayes' theorem and the binomial distribution to address a Bayesian inference question. You toss a bent coin N times, obtaining a sequence of heads and tails. The coin has an unknown bias f of coming up heads. (a) If NH heads have occurred in N tosses, what is the probability distribution of f? Assume a uniform prior P(f) = 1 and make use of the following result: integral 0 to 1 f^a (1 - f)^b df =...
Now let's use Bayes' theorem and the binomial distribution to address a Bayesian inference question. You...
Now let's use Bayes' theorem and the binomial distribution to address a Bayesian inference question. You toss a bent coin N times, obtaining a sequence of heads and tails. The coin has an unknown bias f of coming up heads. (a) If NH heads have occurred in N tosses, what is the probability distribution of f? Assume a uniform prior P(f) = 1 and make use of the following result: integral 0 to 1 f^a (1 - f)^b df =...
Bayes' Theorem- drug screening The national flufferball association decides to implement a drug screening procedure to...
Bayes' Theorem- drug screening The national flufferball association decides to implement a drug screening procedure to test its athletes for illegal performance enhancing drugs. 3% of the professional flufferball players actually use performance enhancing drugs. A test for the drugs has a false positive rate of 2% and a false negative rate of 4%. In other words, a person who does not take the drugs will test positive with probability 0.02. A person who does take the drugs will test...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT