Computer Science > QUESTIONS & ANSWERS > Purdue University - CS 471hw5_solution ( ALL SOLUTIONS ARE 100% CORRECT ) (All)

Purdue University - CS 471hw5_solution ( ALL SOLUTIONS ARE 100% CORRECT )

Document Content and Description Below

CS471- Homework 5 Due date: Feb ??th at 11:59pm EST Introduction The objective of this assignment is to get familiar with Probability and Bayesian Networks. Submission Your homework must be typed... and must contain your name and Purdue ID. To submit your assignment, log into data.cs.purdue.edu (physically go to the lab or use ssh remotely) and follow these steps: 1. To ssh use the command: ssh username@data.cs.purdue.edu 2. Make a directory named username-hw5 (all letters in lower case) 3. Copy your PDF and code inside it. To do it remotely use the comand from your computer: scp ./path/to/your-file.pdf username@data.cs.purdue.edu:./remote/path/from-home-dir/ 4. Go to the directory containing username-hw5 (e.g., if the files are in /homes/aporco/aporcohw5, go to /homes/aporco), and execute the following command: turnin -c cs471 -p hw5 username-hw5 (e.g. Aldo would use: turnin -c cs471 -p hw5 aporco-hw5 to submit his work) 5. To overwrite an old submission, simply execute this command again. 6. To verify the contents of your submission, execute the following command: turnin -v -c cs471 -p hw5 Required files You will need to submit 1 file: • The PDF containing your typed answers. 1Problem Set Problem 1: Give a joint distribution for Boolean random variables A, B, and C for each scenario. Give a brief intuitive interpretation of the variables. The notation i(x; y) means that x and y are independent. a. i(A; B), i(A; C), and i(B; C). b. i(A; B) and i(A; C), but not i(B; C). c. i(A; B) and i(A; C), but not i(A; B ^ C). Problem 2: Given the full joint distribution shown in Figure 13.3, calculate the following: a. P(toothache) P(toothache) = 0:108 + 0:012 + 0:016 + 0:064 = 0:2 b. P(Cavity) This asks for the vector of probability values for the random variable Cavity. It has two values, which we list in the order htrue; falsei. First add up 0:108+0:012+0:072+0:008 = 0:2. Then we have, P(Cavity) = h0:2; 0:8i. c. P(T oothache j cavity) This asks for the vector of probability values for Toothache, given that Cavity is true. P(T oothache j cavity) = h(:108 + :012)=0:2; (0:072 + 0:008)=0:2i = h0:6; 0:4i d. P(Cavity j toothache _ catch) This asks for the vector of probability values for Cavity, given that either Toothache or Catch is true. First compute P(toothache_catch) = 0:108+0:012+0:016+0:064+0:072+ 0:144 = 0:416. Then P(Cavity j toothache_catch) = h(0:108+0:012+0:072)=0:416; (0:016+ 0:064 + 0:144)=0:416i = h0:4615; 0:5384i Problem 3: Suppose you are a witness to a nighttime hit-and-run accident involving a taxi in Athens. All taxis in Athens are blue or green. You swear, under oath, that the taxi was blue. Extensive testing shows that, under the dim lighting conditions, discrimination between blue and green is 70% reliable. a. Is it possible to calculate the most likely color for the taxi? (Hint: distinguish carefully between the proposition that the taxi is blue and the proposition that it appears blue.) [Show More]

Last updated: 2 years ago

Preview 1 out of 7 pages

Buy Now

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

We Accept

Reviews( 0 )

$7.00

Buy Now

We Accept:

We Accept

Instant download

Can't find what you want? Try our AI powered Search

83
0

Document information


Connected school, study & course


About the document


Uploaded On

Apr 15, 2021

Number of pages

7

Written in

Seller


seller-icon
Muchiri

Member since 4 years

209 Documents Sold

Reviews Received
19
5
1
1
6
Additional information

This document has been written for:

Uploaded

Apr 15, 2021

Downloads

 0

Views

 83

Document Keyword Tags


$7.00
What is Scholarfriends

In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·