Skip to main content
Q-4: Inference. A student of the Machine Learning class notices that people driving SUV (S) consume large amounts of gas (G) and are involved in more accidents than the national average (A). He also noticed that there are two types of people that drive SUVs: people from Pennsylvania (L) and people with large families (F). After collecting some statistics, he arrives at the following Bayesian network. P(L)-0.4 L F P(F)-0.6 PCs l L, F)-0.8 PCSÄ°L,F)=0.3 P(AIS)-0.7 A G P(GIS)-0.8 P(AI S)-0.3 (c) What is P(S)? (d) What is P(S A)? PCGÄ°S)-0.2


ANSWER

c)
P(S) = P(S|L,F)P(L)P(F)+P(S|~L,F)P(~L)P(F)+
          P(S|L,~F)P(L)P(~F)+P(S|~L,~F)P(~L)P(~F)
       = 0.4*0.6*0.8+0.6*0.6*0.5+0.4*0.4*0.6+0.6*0.4*0.3
      =0.54
d)
P(S|A)
= P(S,A) / [P(A|S)P(S)+P(A|~S)P(~S)]
= (0.54*0.7)/(0.54*0.7+0.46*0.3)
=0.733

Comments

Popular posts from this blog

Osmosis Data Sheet

Data Sheet: Activity - Osmosis Name Course Date Activity Data Code       Procedure I -Test Solution 1: Water Complete the tablesand questions below using your data and information found under the Background tab Data Table I Note: Difference in Final Volumes = Final Volume of Test Sol - Final Volume of Water Trial Starting Volume of Test Solution (L) Starting Volume of Water (L) Final Volume of Test Solution (L) Final Volume of Water (L) Difference in Final Volumes (L) 1 1.28 1.75 1.51 1.52 -0.01 2 1.28 2.00 1.64 1.64 0 Observations and Questions [1] Given that the final heights (and volumes) are the same for the water and test solution, what can you...

Pseudocode - painting a wall

My pseudocode from Module Two: Pseudocode – Painting a Wall MEASURE wall-length MEASURE wall width CALCULATE wall area DETERMINE amount of paint needed for wall-size PURCHASE desired paint and tools (brushes, rollers, pan, etc.) PREPARE work area and tools START painting wall END when painting is complete CLEAN work area and tools STORE tools and any leftover pa​‌‌‌‌‌‌‍‍‍‌‌‍‍‍‌‍‌‍‍​int
Simple Computer Science Questions Question 2 ANSWER Match the following a - 4 b - 10 c - 8 d - 6 e - 9 f - 1 g - 2 h - 7 i - 3 j - 5