Question

In: Math

I'm having trouble applying bayes formula with the following multi-part question In April 2013, the total...

I'm having trouble applying bayes formula with the following multi-part question

In April 2013, the total sales from General Motors, Ford, or Chrysler was 606,334 cars or light trucks. The probability that the vehicle sold was made by General Motors was 0.392, by Ford 0.350, by Chrysler 0.258. Additionally, the probability that a General Motors vehicle sold was a car was 0.395, a Ford vehicle sold was a car was 0.370, and a Chrysler vehicle sold was a car was 0.332.

(1) Given the vehicle sold was a car, find the probability it was made by General Motors

(a) About 0.332 ; (b) About 0.274 ; (c) About 0.376 ; (d) About 0.232 ; (e) About 0.418 ;

(2) Given the vehicle sold was a car, find the probability it was made by Chrysler.

(a) About 0.376 ; (b) About 0.232 ; (c) About 0.332 ; (d) About 0.274 ; (e) About 0.418 ;

(3) Given the vehicle sold was a light truck, find the probability it was made by General Motors.

(a) About 0.418 ; (b) About 0.232 ; (c) About 0.376 ; (d) About 0.274 ; (e) About 0.332 ;

(4) Given the vehicle sold was a light truck, find the probability it was made by Chrysler.

(a) About 0.274 ; (b) About 0.332 ; (c) About 0.418 ; (d) About 0.232 ; (e) About 0.376 ;

Solutions

Expert Solution

We are given here that:
P( GM ) = 0.392,
P( Ford ) = 0.35, and
P( Chrysler ) = 0.258

Also, we are given here that:
P( car | GM) = 0.395,
P( car | Ford ) = 0.370, and
P( car | Chrysler ) = 0.332

1) Using law of total probability, we have here:
P( car ) = P( car | GM)P( GM ) + P( car | Ford)P( Ford ) + P( car | Chrysler )P( Chrysler )
P( car ) = 0.392*0.395 + 0.35*0.37 + 0.258*0.332 = 0.369996

Using bayes theorem, we have here:
P( GM | car ) = P( car | GM)P( GM ) / P(car ) = 0.392*0.395 / 0.369996 = 0.4185

Therefore e) 0.418 is the required probability here.

2) Again, using bayes theorem, we get here:

P( Chrysler | car ) = P( car | Chrysler)P( Chrysler ) / P(car ) = 0.258*0.332 / 0.369996 = 0.2315

Therefore b) 0.232 is the required probability here.

3) We know here that: P( light truck ) = 1 - P(car ) = 1 - 0.369996 = 0.630004
P( light truck | GM) = 1 - P(car | GM) = 1 - 0.395 = 0.605

Therefore, using bayes theorem we get here:
P( GM | light truck ) = P(light truck | GM)P(GM) / P( light truck ) = 0.605*0.392 /  0.630004 = 0.3764

Therefore c) 0.376 is the required probability here.

4) P(light truck | Chrysler) = 1 - P( car | Chrysler ) = 1 - 0.332 = 0.668

Therefore, using bayes theorem we get here:
P( Chrysler | light truck ) = P(light truck | Chrysler)P(Chrysler) / P( light truck ) = 0.668*0.258 /  0.630004 = 0.2735

Therefore a) 0.274 is the required probability here.


Related Solutions

I'm having trouble calculating total cost. The question is: Calculate the total cost for next February...
I'm having trouble calculating total cost. The question is: Calculate the total cost for next February when 1,300 tons are expected to be extracted. I understand that trucking and hauling will be 144,970, and I also add 20,000 for depreciation, im not sure about the other costs and how to add. Antioch Extraction, which mines ore in Montana, uses a calendar year for both financial-reporting and tax purposes. The following selected costs were incurred in December, the low point of...
Hi, I'm having some trouble with this question, especially part B. Stocks offer an expected rate...
Hi, I'm having some trouble with this question, especially part B. Stocks offer an expected rate of return of 18%, with a standard deviation of 22%. Gold offers an expected return of 10% with a standard deviation of 30%. a) In light of the apparent inferiority of gold with respect to average return and volatility, would anyone hold gold in his portfolio? (4 points) b) Assume that the correlation between Stocks and Gold is -0.5. Find the weights wS and...
Using dev c++ I'm having trouble with classes. I think the part that I am not...
Using dev c++ I'm having trouble with classes. I think the part that I am not understanding is sending data between files and also using bool data. I've been working on this program for a long time with many errors but now I've thrown in my hat to ask for outside help. Here is the homework that has given me so many issues: The [REDACTED] Phone Store needs a program to compute phone charges for some phones sold in the...
Question I'm having trouble with: Using LISP, write a recursive function that takes a list and...
Question I'm having trouble with: Using LISP, write a recursive function that takes a list and returns the number of times the symbol 'a' occurs in it. Note: do not count a's that might occur in a sublist within the list.
MULTI PART QUESTION PART 1 Applying the doctor-patient relationship to that of the Principal-Agent model, the...
MULTI PART QUESTION PART 1 Applying the doctor-patient relationship to that of the Principal-Agent model, the theory is that the doctor is the ____________ and the patient is the ___________. Group of answer choices principal; agent principal; principal agent; agent agent; principal none of the above PART 2 The reason for your answer in number 7 is that Group of answer choices doctors can do whatever they want doctors should act only upon or in response to the specific symptoms...
I'm having trouble with my do while loop. I'm trying to get it where if the...
I'm having trouble with my do while loop. I'm trying to get it where if the user enter's 3 after whatever amount of caffeinated beverages they've entered before then the loop will close and the rest of my code would proceed to execute and calculate the average price of all the caffeinated beverages entered. Can someone please help me with this? Here's my Code: import java.util.Scanner; public class Main { public static void main(String[] args) { CaffeinatedBeverage[] inventory = new...
ATTN: This is my second time having to post this question. This is a multi-part question...
ATTN: This is my second time having to post this question. This is a multi-part question consisting of 2 parts: part A, consisting of 5 sub-sections and part B, consisting of 3 sub-sections. Both parts and all sub-sections are dependent upon the same data, making this one multi-part question. Chegg policy states that multiple questions within one post are not allowed however, questions with multiple sub-parts are allowed. Since this is only one question with multiple sub-parts, given that part...
I'm having trouble understanding the following code (a snippet of a code). What does it do?...
I'm having trouble understanding the following code (a snippet of a code). What does it do? The whole code is about comparing efficiencies of different algorithms. def partition(list,first,last): piv = list[first] lmark = first+1 rmark = last done = False while not done: while lmark <= rmark and list[lmark]<=piv: lmark=lmark+1 while list[rmark]>=piv and rmark>=lmark: rmark=rmark-1 if rmark<lmark: done = True else: temp = list[lmark] list[lmark]=list[rmark] list[rmark]=temp temp = list[first] list[first]=list[rmark] list[rmark]=temp return rmark
I'm having trouble creating a histogram using openCV (color segmentation)
I'm having trouble creating a histogram using openCV (color segmentation)
I am having trouble with a C++ code that I'm working on. It is a spell...
I am having trouble with a C++ code that I'm working on. It is a spell checker program. It needs to compare two arrays, a dictionary, and an array with misspelled strings that are compared to the strings in the dictionary. the strings that are in the second array that is not in the Dictionary are assumed to be misspelled. All of the strings in the dictionary are lowercase without any extra characters so the strings that are passed into...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT