100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Summary CPSC 322 Assignment 4 Solutions $21.89
Add to cart

Summary

Summary CPSC 322 Assignment 4 Solutions

 13 views  0 purchase
  • Course
  • Institution

Solutions for Assignment 4 - CPSC 322

Preview 2 out of 6  pages

  • July 5, 2023
  • 6
  • 2022/2023
  • Summary
avatar-seller
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.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller travissmith1. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $21.89. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

55628 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$21.89
  • (0)
Add to cart
Added