Self assessment due: Monday 10/29/2018 at 11:59pm (submit via Gradescope)

Similar documents
Homework /681: Artificial Intelligence (Fall 2017) Out: October 18, 2017 Due: October 29, 2017 at 11:59PM

Homework 2 (by Ao Zeng) Solutions Due: Friday Sept 28, 11:59pm

Homework Assignment #3

Homework 3: Relational Database Design Theory (100 points)

To earn the extra credit, one of the following has to hold true. Please circle and sign.

Homework #5 Algorithms I Spring 2017

EE 3613: Computer Organization Homework #2

15-110: Principles of Computing, Spring 2018

This homework has an opportunity for substantial extra credit, which is described at the end of this document.

ECE331 Homework 4. Due Monday, August 13, 2018 (via Moodle)


Final Exam. Introduction to Artificial Intelligence. CS 188 Spring 2010 INSTRUCTIONS. You have 3 hours.

Homework 4 Solutions

Student Guide. Click here to log in. A: Log in

Homework 3 - Dumb Notes

CS 1510: Intro to Computing - Fall 2017 Assignment 8: Tracking the Greats of the NBA

CIS 520, Machine Learning, Fall 2015: Assignment 7 Due: Mon, Nov 16, :59pm, PDF to Canvas [100 points]

CS 1803 Pair Homework 4 Greedy Scheduler (Part I) Due: Wednesday, September 29th, before 6 PM Out of 100 points

GUIDELINES FOR THE ONLINE ADMISSION SYSTEM / FORM FILLUP

Step-by-step guide. Cambridge. Technicals Entries. Interchange. Making entries for Cambridge Technicals. A step-by-step guide for centres TECHNICALS

Announcements. Homework 1: Search. Project 1: Search. Midterm date and time has been set:

Research Students Lecture Series 2015

CS 320 Week 8 Homework Due W 3/27 11:59pm. incm 5 >>= (\x -> incm x >>= (\y -> incm y) )

Introduction to AI Spring 2006 Dan Klein Midterm Solutions

Range Minimum Queries Part Two

1 Document Classification [60 points]

Range Minimum Queries Part Two

Spring CS Homework 3 p. 1. CS Homework 3

Ascii Art. CS 1301 Individual Homework 7 Ascii Art Due: Monday April 4 th, before 11:55pm Out of 100 points

Problem set 2. Problem 1. Problem 2. Problem 3. CS261, Winter Instructor: Ashish Goel.

awarding excellence Parnassus FAQs

How to fill JMI 2017 form

Getting to your Assessment, Worksheet, or Plan 1. Change your Profile - We will start

CS2223: Algorithms D- Term, Homework I. Teams: To be done individually. Due date: 03/27/2015 (1:50 PM) Submission: Electronic submission only

15-110: Principles of Computing, Spring 2018

CS 374 Fall 2014 Homework 2 Due Tuesday, September 16, 2014 at noon

CS103 Handout 13 Fall 2012 May 4, 2012 Problem Set 5

CS2223: Algorithms D-Term, Assignment 5

HOMEWORK 7. M. Neumann. Due: THU 8 MAR PM. Getting Started SUBMISSION INSTRUCTIONS

CS446: Machine Learning Fall Problem Set 4. Handed Out: October 17, 2013 Due: October 31 th, w T x i w

2017/12/20 20:31 1/6 Lab 1 - Producer/Consumer in XINU

10708 Graphical Models: Homework 2

Account Administration... 3 Is There a Test Server Where I Can Practice my Setups?... 4 How Do I Request Support?... 5

CS 342 Software Design Spring 2018 Term Project Part III Saving and Restoring Exams and Exam Components

Computer Center. Texas Tech University. Quick Reference Guide For Testing

Overview of Project V Buffer Manager. Steps of Phase II

Building Resource Builder cases: Virtual Practitioner template

CS 1301 Homework Robot Web Writer

GRADING SCALE: 40% Exams 50% Daily Work (Assignments) 10% Work Habits

HIVE MOCK TEST HIVE MOCK TEST III

Sedao Ltd. QuickChange PROject. User Manual for QuickChange PROject version 2.1.5

STORE USER GUIDE. Be sure to click the top checkbox located above the username and password prompt.

preparing documents for upload

Estimate Entry, Routing and Printing

Binary Diagnostic Tests Clustered Samples

CS 135, Fall 2010 Project 4: Code Optimization Assigned: November 30th, 2010 Due: December 12,, 2010, 12noon

DO NOT SEND DUPLICATE COPIES OF YOUR LOG AND DO NOT SEND A PRINTED COPY.

Integrated Payments: Online Creation Quick Reference Guide

CS/ECE 374 Fall Homework 1. Due Tuesday, September 6, 2016 at 8pm

CCMS Guidance for Producing Assessment Material Using Workflow Management. Assessment Tester Guidance (for ESM assessment material)

Dental esea.

DeposZip Frequently Asked Questions

CSCI4211: Introduction to Computer Networks Fall 2017 Homework Assignment 1

CS 161 Computer Security

2017 MOC PEDIATRIC PRACTICE LOG TEMPLATE:

LIFE LONG LEARNING LEVEL INSTRUCTIONS FOR SUBMISSION OF ELECTRONIC LOGS

Due Friday, March 20 at 11:59 p.m. Write and submit one Java program, Sequence.java, as described on the next page.

CS 161 Computer Security

Data Communication & Computer Networks Week # 13

CS Homework 11 p. 1. CS Homework 11

Out-of-State Tobacco Products Wholesale Dealer s Report

Data Structure and Algorithm Homework #3 Due: 2:20pm, Tuesday, April 9, 2013 TA === Homework submission instructions ===

Homework 1 (a and b) Convex Sets and Convex Functions

Homework: Spatial Search using Apache Solr, SIS and Google Maps Due Date: May 7, 2014

HOMEWORK 5. M. Neumann. Due: THU 22 FEB PM. Getting Started SUBMISSION INSTRUCTIONS

Unit 2 Fine-tuning Spreadsheets, Functions (AutoSum)

Submission System User Guide for ETS Performance Assessments

1. (10 points) Draw the state diagram of the DFA that recognizes the language over Σ = {0, 1}

15-110: Principles of Computing, Spring Problem Set 2 (PS2) Due: Friday, February 2 by 2:30PM on Gradescope

TRANSFLO NOW! SETUP AND SCAN INSTRUCTIONS

CS 453 Electronic Commerce Technologies. Homework # 4 PHP-based E-Store

Homework 4 - MediaPlayer and Service

Homework 4: Clustering, Recommenders, Dim. Reduction, ML and Graph Mining (due November 19 th, 2014, 2:30pm, in class hard-copy please)

CIS 121 Data Structures and Algorithms with Java Spring 2018

Homework 7: Sudoku. Preliminaries. Overview

Lecture 5: Exact inference. Queries. Complexity of inference. Queries (continued) Bayesian networks can answer questions about the underlying

15-110: Principles of Computing, Spring Problem Set 3 (PS3) Due: Friday, February 9 by 2:30PM on Gradescope

CS Fall Homework 11 p. 1. CS Homework 11

Fuse ipad App set up and use

Homework 3 Solutions

CS 320 Homework One Due 2/5 11:59pm

TradeGuider RT V4 Quick Install Guide.

How to apply for a bachelor?

AMERICAN BOARD OF UROLOGY 2017 INSTRUCTIONS FOR SUBMISSION OF ELECTRONIC LOGS

15-110: Principles of Computing, Spring Problem Set 6 (PS6) Due: Friday, March 2 by 2:30PM via Gradescope Hand-in

UpToDate Anywhere: Reference Guide

1 (15 points) LexicoSort

for Missouri Performance Assessments

Step 1. Final Grade Roster Submission. IT Department Printed on 05/21/2012 Page 1. Steps to Submit Grades. Step 1. Step 2. Step 3

Course Request Form - Step by Step Print this page for your convenience!

Transcription:

CS 188 Fall 2018 Introduction to Artificial Intelligence Written HW 7 Due: Monday 10/22/2018 at 11:59pm (submit via Gradescope). Leave self assessment boxes blank for this due date. Self assessment due: Monday 10/29/2018 at 11:59pm (submit via Gradescope) For the self assessment, fill in the self assessment boxes in your original submission (you can download a PDF copy of your submission from Gradescope be sure to delete any extra title pages that Gradescope attaches). For each subpart where your original answer was correct, write correct. Otherwise, write and explain the correct answer. Do not leave any boxes empty. If you did not submit the homework (or skipped some questions) but wish to receive credit for the selfassessment, we ask that you first complete the homework without looking at the solutions, and then perform the self assessment afterwards. Policy: Can be solved in groups (acknowledge collaborators) but must be written up individually Submission: Your submission should be a PDF that matches this template. Each page of the PDF should align with the corresponding page of the template (page 1 has name/collaborators, question 1 begins on page 2, etc.). Do not reorder, split, combine, or add extra pages. The intention is that you print out the template, write on the page in pen/pencil, and then scan or take pictures of the pages to make your submission. You may also fill out this template digitally (e.g. using a tablet.) First name Last name SID Collaborators 1

Q1. Variable Elimination (a) For the Bayes net below, we are given the query P (A, E +c). All variables have binary domains. Assume we run variable elimination to compute the answer to this query, with the following variable elimination ordering: B, D, G, F. Complete the following description of the factors generated in this process: After inserting evidence, we have the following factors to start out with: P (A), P (B A), P (+c), P (D A, B, +c), P (E D), P (F D), P (G + c, F ) When eliminating B we generate a new factor f 1 as follows: f 1 (A, +c, D) = b P (b A)P (D A, b, +c) P (A), P (+c), P (E D), P (F D), P (G + c, F ), f 1 (A, +c, D) When eliminating D we generate a new factor f 2 as follows: When eliminating G we generate a new factor f 3 as follows: 2

When eliminating F we generate a new factor f 4 as follows: (b) Write a formula to compute P (A, E +c) from the remaining factors. 3

(c) Among f 1, f 2, f 3, f 4, which is the largest factor generated, and how large is it? Assume all variables have binary domains and measure the size of each factor by the number of rows in the table that would represent the factor. (d) Find a variable elimination ordering for the same query, i.e., for P (A, E +c), for which the maximum size factor generated along the way is smallest. Hint: the maximum size factor generated in your solution should have only 2 variables, for a size of 2 2 = 4 table. Fill in the variable elimination ordering and the factors generated into the table below. Variable Eliminated Factor Generated For example, in the naive ordering we used earlier, the first row in this table would have had the following two entries: B, f 1 (A, +c, D). 4

Q2. Bayes Nets: Sampling Consider the following Bayes Net, where we have observed that B = +b and D = +d. A B C D P (A) +a 0.5 a 0.5 P (B A) +a +b 0.8 +a b 0.2 a +b 0.4 a b 0.6 P (C B) +b +c 0.1 +b c 0.9 b +c 0.7 b c 0.3 P (D A, C) +a +c +d 0.6 +a +c d 0.4 +a c +d 0.1 +a c d 0.9 a +c +d 0.2 a +c d 0.8 a c +d 0.5 a c d 0.5 (a) Consider doing Gibbs sampling for this example. Assume that we have initialized all variables to the values +a, +b, +c, +d. We then unassign the variable C, such that we have A = +a, B = +b, C =?, D = +d. Calculate the probabilities for new values of C at this stage of the Gibbs sampling procedure. P (C = +c at the next step of Gibbs sampling) = P (C = c at the next step of Gibbs sampling) = (b) Consider a sampling scheme that is a hybrid of rejection sampling and likelihood-weighted sampling. Under this scheme, we first perform rejection sampling for the variables A and B. We then take the sampled values for A and B and extend the sample to include values for variables C and D, using likelihood-weighted sampling. (i) Below is a list of candidate samples. Mark the samples that would be rejected by the rejection sampling portion of the hybrid scheme. a b +a +b +a b a +b 5

(ii) To decouple from part (i), you now receive a new set of samples shown below. Fill in the weights for these samples under our hybrid scheme. a +b c +d +a +b c +d +a +b c +d a +b +c +d +a +b +c +d Weight (iii) Use the weighted samples from part (ii) to calculate an estimate for P (+a + b, +d). The estimate of P (+a + b, +d) is (c) We now attempt to design an alternative hybrid sampling scheme that combines elements of likelihood-weighted and rejection sampling. For each proposed scheme, indicate whether it is valid, i.e. whether the weighted samples it produces correctly approximate the distribution P (A, C + b, +d). (i) First collect a likelihood-weighted sample for the variables A and B. Then switch to rejection sampling for the variables C and D. In case of rejection, the values of A and B and the sample weight are thrown away. Sampling then restarts from node A. Valid Invalid (ii) First collect a likelihood-weighted sample for the variables A and B. Then switch to rejection sampling for the variables C and D. In case of rejection, the values of A and B and the sample weight are retained. Sampling then restarts from node C. Valid Invalid 6