Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4,6 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

Institution
Course

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.

Written for

Institution
Study
Course

Document information

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

Subjects

R388,68
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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
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
5 months ago

3,6

16 reviews

5
6
4
6
3
0
2
0
1
4

Trending documents

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 exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT 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