Garantie de satisfaction à 100% Disponible immédiatement après paiement En ligne et en PDF Tu n'es attaché à rien 4.2 TrustPilot
logo-home
Resume

Summary CPSC 322 Assignment 4 Solutions

Note
-
Vendu
-
Pages
6
Publié le
05-07-2023
Écrit en
2022/2023

Solutions for Assignment 4 - CPSC 322

Établissement
Cours









Oups ! Impossible de charger votre document. Réessayez ou contactez le support.

École, étude et sujet

Établissement
Cours
Cours

Infos sur le Document

Publié le
5 juillet 2023
Nombre de pages
6
Écrit en
2022/2023
Type
Resume

Sujets

Aperçu du contenu

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.
€19,15
Accéder à l'intégralité du document:

Garantie de satisfaction à 100%
Disponible immédiatement après paiement
En ligne et en PDF
Tu n'es attaché à rien

Faites connaissance avec le vendeur

Seller avatar
Les scores de réputation sont basés sur le nombre de documents qu'un vendeur a vendus contre paiement ainsi que sur les avis qu'il a reçu pour ces documents. Il y a trois niveaux: Bronze, Argent et Or. Plus la réputation est bonne, plus vous pouvez faire confiance sur la qualité du travail des vendeurs.
travissmith1 UBC
S'abonner Vous devez être connecté afin de suivre les étudiants ou les cours
Vendu
97
Membre depuis
4 année
Nombre de followers
61
Documents
36
Dernière vente
1 mois de cela

3,6

16 revues

5
6
4
6
3
0
2
0
1
4

Récemment consulté par vous

Pourquoi les étudiants choisissent Stuvia

Créé par d'autres étudiants, vérifié par les avis

Une qualité sur laquelle compter : rédigé par des étudiants qui ont réussi et évalué par d'autres qui ont utilisé ce document.

Le document ne convient pas ? Choisis un autre document

Aucun souci ! Tu peux sélectionner directement un autre document qui correspond mieux à ce que tu cherches.

Paye comme tu veux, apprends aussitôt

Aucun abonnement, aucun engagement. Paye selon tes habitudes par carte de crédit et télécharge ton document PDF instantanément.

Student with book image

“Acheté, téléchargé et réussi. C'est aussi simple que ça.”

Alisha Student

Foire aux questions