\$35.00

Category:

## Description

This module is worth 20 points. Your last submission will be used for the Fnal score. You may attempt this module 5 times without penalty. After 5 attempts, each additional attempt will result in a penalty of 5% (e.g., On your 7th attempt, you obtain a score of 18 points. Then, your Fnal score for this module will be 18 – (2*1) = 16 points.)

If you encounter any problems with the assignment, please email zheweisun@cs.toronto.edu with [CSC384 A4] in the subject. Be sure to include the module number and version.

CSC384 S19 A4 Module 2 (Version B) 2019-07-29, 3*54 PM

M2P1 – Conditional Probability

Harry spends a lot of time in coffee shops. He has noticed that coffee shops with dessert menus tend to have more positive ratings. He’s also noticed that restaurants with free WiFi have more positive ratings. He decides to investigate and comes up with the following conditional probability table (CPT):

Section score 7/7

The domain is made up of three boolean variables:

D: Coffee shop that offers dessert.

1. Coffee shop that allows a free WiFi connection.

1. Coffee shop with good reviews.

Calculate the following probabilities.

P(dessert)

Your answer should be between 0 and 1, rounded to 3 digits after the decimal (e.g. 0.120).

P(dessert v ¬dessert)

Your answer should be between 0 and 1, rounded to 3 digits after the decimal (e.g. 0.120).

1/1

1/1

CSC384 S19 A4 Module 2 (Version B) 2019-07-29, 3*54 PM

 P(dessert ∧ ¬dessert) 1/1

Your answer should be between 0 and 1, rounded to 3 digits after the decimal (e.g. 0.120).

 P(dessert | wiF) 1/1

Your answer should be between 0 and 1, rounded to 3 digits after the decimal (e.g. 0.120).

 P(dessert v review) 1/1

Your answer should be between 0 and 1, rounded to 3 digits after the decimal (e.g. 0.120).

 P(¬wiF ∧ ¬review | dessert) 1/1

Your answer should be between 0 and 1, rounded to 3 digits after the decimal (e.g. 0.120).

 P(wiF ∧ review) 1/1

Your answer should be between 0 and 1, rounded to 3 digits after the decimal (e.g. 0.120).

CSC384 S19 A4 Module 2 (Version B) 2019-07-29, 3*54 PM

M2P2 – Bayes Net Representation

1. The Spacefeet collegiate has decided to create a class of cyborg students. 90% of these cyborgs study hard for their exams. Out of the cyborgs who study hard for an exam, 80% get an A. Out of the cyborgs who do not study, only half get an A. Cyborgs who study hard have a 75% probability of depleting their battery in less that a day. Cyborgs who do not study hard have a longer battery life: only 10% of them deplete their batteries within the next day.

S = studying hard

B = depleting battery in less thana day

A = getting an ‘A’ on the exam

Section score 2/2

 Which Bayes net correctly captures this problem? 1/1

CSC384 S19 A4 Module 2 (Version B) 2019-07-29, 3*54 PM

Option 1 Option 2

Option 3 Option 4

Option 5

CSC384 S19 A4 Module 2 (Version B) 2019-07-29, 3*54 PM

1. Two astronomers in different parts of the world make measurements M1 and M2 of the number of stars N in some small region of the sky, using their telescopes. Normally, there is a small probability e or error of up to one star in each direction. Each telescope can also be badly out of focus with probability f. Let F1 and F2 be boolean variables with Fi = True being that the i-th telescope is out of focus. If the telescope is out of focus then the scientist will always undercount by 3 or more stars (or, if N is 3 or less, fail to detect any stars at all).

 Which is the best network? 1/1

CSC384 S19 A4 Module 2 (Version B) 2019-07-29, 3*54 PM

Option 1 Option 2

Option 3 Option 4

Option 5

CSC384 S19 A4 Module 2 (Version B) 2019-07-29, 3*54 PM

M2P3 – Gene Expression

You are given two different Bayesian network structures 1 and 2, each consisting of 5 binary random variables A, B, C, D, E. Each variable corresponds to a gene, whose expression can be either “ON” or “OFF”.

Section score 11/11

CSC384 S19 A4 Module 2 (Version B) 2019-07-29, 3*54 PM

Which of these expressions describes P(A,B,C,D,E) for Network 1, given the structure of the network (i.e. which product decomposition is correct)?

P(A)P(B)P(C|A)P(D|A,B)P(E|A,C,D)

P(A)P(B)P(C)P(D)P(E)

P(A|C,D,E)P(C|A)P(E)P(D|E)P(B|D)

P(A)P(B|A)P(C|A)P(D|A,B)P(E|D)

Which of these expressions describes P(A,B,C,D,E) for Network 2, given the structure of the network (i.e. which product decomposition is correct)?

P(A)P(B)P(C|A)P(D|A,B)P(E|A,C,D)

P(A)P(B|A)P(D|A,B)P(C|A)P(E|D,A,B)

P(A)P(B)P(C)P(D)P(E)

P(A)P(B|A)P(C|A)P(D|A,B)P(E|D)

1/1

1/1

How many parameters will be needed to fully specify Network 1/1 1?

16

CSC384 S19 A4 Module 2 (Version B) 2019-07-29, 3*54 PM

How many parameters will be needed to fully specify Network 1/1 2?

11

Using Network 2 and the probabilities given below, calculate the probability of the following:

 P(A=ON, B=ON, C=ON, D=ON, E=OFF) 1/1

Your answer should be between 0 and 1, rounded to 3 digits after the decimal (e.g. 0.120).

 P(E=OFF|A=ON) 3/3

Your answer should be between 0 and 1, rounded to 3 digits after the decimal (e.g. 0.120).