0% found this document useful (0 votes)
22 views

cs188 Fa24 hw6 Template

Uploaded by

sara172425
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

cs188 Fa24 hw6 Template

Uploaded by

sara172425
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CS 188 Introduction to

Fall 2024 Artificial Intelligence Written HW6


Due: Tuesday 10/22 at 11:59pm.
Policy: Can be solved in groups (acknowledge collaborators) but must be submitted individually.
Make sure to show all your work and justify your answers.

Note: This is a typical exam-level question. On the exam, you would be under time pressure, and have to complete this
question on your own. We strongly encourage you to first try this on your own to help you understand where you currently
stand. Then feel free to have some discussion about the question with other students and/or staff, before independently
writing up your solution.
Note: Leave the self-assessment sections blank for the original submission of your homework. After the homework dead-
line passes, we will release the solutions. At that time, you will review the solutions, self-assess your initial response, and
complete the self-assessment sections below. The deadline for the self-assessment is 1 week after the original submission
deadline.
Your submission on Gradescope 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 begins on page 2.). 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
CS 188 Introduction to
Fall 2024 Artificial Intelligence Written HW6
Q1. [9 pts] Tracing Contacts
There is a rumor circulating that a past CS 188 head TA is submitting fake pet pics while disguising as a student. You are trying
to retrace the origins of this rumor but do not know who spread the story to whom. However, you know the contacts between
each pair of people and are able to create the network below.

(a) Assume that the direction of each edge is uniformly random and that the direction of any two edges is independent.

A B D E

C F

(i) [1 pt] What is the probability that a member of the group ABC spread the rumor to group DEF through G? (Hint:
Don’t overthink this question. What must the direction of certain edges be in the graph?)

(ii) [2 pts] What is the probability that 𝐵 ⟂


⟂ 𝐹 is guaranteed via the independence relations encoded by the Bayes Net?

(iii) [2 pts] If we add an edge between nodes B and D, what is the probability that the above Bayes Net is undefined?

(b) In another class, you recover the following chain of contacts. Continue assuming that the direction of each edge is
uniformly random and that the direction of any two edges is independent.

𝑋1 𝑋2 ... 𝑋𝑛

(i) [1 pt] What is the probability that 𝑋1 ⟂


⟂ 𝑋𝑛 is guaranteed for 𝑛 = 3?

⟂ 𝑋𝑛 for any 𝑛 ≥ 3?
(ii) [1 pt] What is the probability that 𝑋1 ⟂

# 𝑛
4
− 1
2 # 2𝑛−1 −1
2𝑛−1
# 1
2𝑛−2 # 2𝑛−1 −1
2𝑛−1
− 1
2
2𝑛−1 −𝑛
# 1
2𝑛−2
− 1
4
# 1
2𝑛−1
# 2𝑛−1
# None of the above

(iii) [2 pts] Conditioned on 𝑋1 ⟂


⟂ 𝑋𝑛 guaranteed true, what is the probability of the 𝑋1 − 𝑋2 edge pointing left?

# 1
2 # 2𝑛−2 −(𝑛−1)
2𝑛−1
# 2𝑛−2 −1
2𝑛−1 −𝑛
# 2𝑛−2 −(𝑛−1)
2𝑛−1 −𝑛
2𝑛−2 −1 2𝑛−2
# 2𝑛−1
# 1
4
# 2𝑛−1 −𝑛
# None of the above

2
Q1(a-b) Self-Assessment - leave this section blank for your original submission. We will release the solutions to this
problem after the deadline for this assignment has passed. After reviewing the solutions for this problem, assess your initial
response by checking one of the following options:

# I fully solved the problem correctly, including fully correct logic and sufficient work (if applicable).

# I got part or all of the question incorrect.

If you selected the second option, explain the mistake(s) you made and why your initial reasoning was incorrect (do not re-
iterate the solution. Instead, reflect on the errors in your original submission). Approximately 2-3 sentences for each incorrect
sub-question.

You might also like