100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

Math 302, Assignment 3 University of British Columbia MATH 302

Rating
-
Sold
-
Pages
4
Grade
A+
Uploaded on
03-02-2023
Written in
2022/2023

Math 302, Assignment 3 Due Feb 1 1. In a small town, there are three bakeries. Each of the bakeries bakes twelve cakes per day. Bakery 1 has two different types of cake, bakery 2 three different types, and bakery 3 four different types. Every bakery bakes equal amounts of cakes of each type. You randomly walk into one of the bakeries, and then randomly buy two cakes. (a) What is the probability that you will buy two cakes of the same type? (b) Suppose you have bought two different types of cake. Given this, what is the probability that you went to bakery 2? Solution: (a) Define the events Fi = {choose bakery i}, and E = {buy different cakes}. Then P(Fi) = 1 3 , and we compute the conditional probabilities P(E|F1) = 6 1 2 12 2  = 6 11 P(E|F2) = 3 · 4 1 2 12 2

Show more Read less
Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Course

Document information

Uploaded on
February 3, 2023
Number of pages
4
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

Math 302, Assignment 3 Due Feb 1



1. In a small town, there are three bakeries. Each of the bakeries bakes twelve cakes per day. Bakery 1
has two different types of cake, bakery 2 three different types, and bakery 3 four different types. Every
bakery bakes equal amounts of cakes of each type.
You randomly walk into one of the bakeries, and then randomly buy two cakes.
(a) What is the probability that you will buy two cakes of the same type?
(b) Suppose you have bought two different types of cake. Given this, what is the probability that you
went to bakery 2?

Solution: (a) Define the events Fi = {choose bakery i}, and E = {buy different cakes}. Then P(Fi ) = 13 ,
and we compute the conditional probabilities
6 2

6
P(E|F1 ) = 112 =
2
11
2
3 · 41 8
P(E|F2 ) = 12 =
2
11
3 2

6· 9
P(E|F3 ) = 121 =
2
11
By the law of total probability,
1 6 8 9  23
P(E) = + + = .
3 11 11 11 33
10
Therefore P(buy same type) = 33 .
(b) By Bayes,
P(F2 ) 8
P(F2 |E) = P(E|F2 ) =
P(E) 23



2. An assembly line produces a large number of products, of which 1% are faulty in average. A quality
control test correctly identifies 98% of the faulty products, and 95% of the flawless products. For every
product that is identified as faulty, the test is run a second time, independently.
(a) Suppose that a product was identified as faulty in both tests. What is the probability that it is,
indeed, faulty?
(b) What if the quality control test is only performed once?

Solution: Let
F = the event that a product is faulty,
E1 = the event that the first test result is “faulty”
E2 = the event that the second test result is “faulty”
Then, P(F ) = 1% and, since the second test is independent of the first,
P(E1 ∩ E2 |F ) = P(E1 |F )P(E2 |F ) = 0.982
P(E1 ∩ E2 |F c ) = P(E1 |F c )P(E2 |F c ) = 0.052

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ExamsConnoisseur Self
Follow You need to be logged in order to follow users or courses
Sold
566
Member since
2 year
Number of followers
343
Documents
1497
Last sold
3 weeks ago

4.3

67 reviews

5
40
4
11
3
12
2
1
1
3

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions