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

Summary CPSC 322 Assignment 4 Solutions

Rating
-
Sold
-
Pages
6
Uploaded on
05-07-2023
Written in
2022/2023

Solutions for Assignment 4 - CPSC 322










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

Document information

Uploaded on
July 5, 2023
Number of pages
6
Written in
2022/2023
Type
Summary

Subjects

Content preview

Question 1 Probabilities



(a)

Answer: 0.4 should be 0

(b)

Answer: [.5, .5] , [.5, .5]; they are not independent eg. P(A=T,B=T)=.2 which is different from
.25, .3 / .5 = .6

(c)
Yes, because they are both the result of applying the chain rule to the same joint but with
different orderings for the variables.

, Question 2 Bayes' rule

(a)

Answer: Let W = 1 denote a warning for a failure in the electrical system and W = 0 denote no warning. Likewise,
let F = 1 denote that your car has a failure in its electrical system that will cause a fire and F = 0 denote that your
car does not have this failure. We know

P(F = 1) = 1/10000 = 0.0001 (1)
P(W = 1 | F = 1) = 0.95 (2)
P(W = 0 | F = 0) = 0.95 (3)

First, we apply the rule of total probability to compute P(W = 1):
P(W = 1) = P(W = 1 | F = 0) ∙ P(F = 0) + P(W = 1 | F = 1) ∙ P(F =1) (4)
= 0.05 ∙ 0.9999 + 0.95 ∙ 0.0001 (5)
≈ 0.0501 (6)

We want to know P(F = 1 | W = 1). Applying Bayes' rule, we have

P(W = 1|F = 1)∙ P(F = 1)
P(F = 1 | W = 1) = (7)
P(W = 1)
0.95 ∙ 0.0001
= (8)
P(W = 1)
≈ 0.0019 (9)

(b)

Answer:
P(F = 1) = 1/100 = 0.01 (1)
P(W = 1 | F = 1) = 0.95 (2)
P(W = 0 | F = 0) = 0.95 (3)

First, we apply the rule of total probability to compute P(W = 1):
P(W = 1) = P(W = 1 | F = 0) ∙ P(F = 0) + P(W = 1 | F = 1) ∙ P(F =1) (4)
= 0.05 ∙ 0.99 + 0.95 ∙ 0.01 (5)
≈ 0.059 (6)

We want to know P(F = 1 | W = 1). Applying Bayes' rule, we have

P(W = 1|F = 1)∙ P(F = 1)
P(F = 1 | W = 1) = (7)
P(W = 1)
0.95 ∙ 0.01
= (8)
P(W = 1)
≈ 0.16 (9)

(c)

Answer: Because this is the prior probability of your car having the failure, which directly (and proportionally)
influences the posterior. So, even though the self-diagnostic test is quite accurate, it is still imprecise enough for it
to remain unlikely that your car will experience a fire. If you are surprised by the outcome you are not alone:
humans are typically not good at this type of probabilistic reasoning and believe a 95% precise test more than they
ought to.

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.
travissmith1 UBC
View profile
Follow You need to be logged in order to follow users or courses
Sold
97
Member since
4 year
Number of followers
61
Documents
36
Last sold
1 month ago

3.6

16 reviews

5
6
4
6
3
0
2
0
1
4

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