Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Chapter 23 — Assignment Project: What a Network Says, and What Data Can Confirm

Open in Colab

Overview

A university models its students with the classic student network (Koller and Friedman): a course’s Difficulty and a student’s Intelligence determine the Grade; intelligence also determines the SAT score; the grade determines the strength of the recommendation Letter. All variables are binary here. You will read the network’s independences, check them against its numbers and against sampled data, find what data could and could not reveal about its arrows, and analyse a selection effect.

PartTaskPoints
AQueries and explaining away20
BEvery independence, checked exactly20
CWhat a sample can confirm20
DThe equivalence class20
EA selection effect20

Part A — Queries and Explaining Away (20 points)

  1. Compute P(I=1)P(I = 1), P(I=1∣G=0)P(I = 1 \mid G = 0) and P(I=1∣G=0,D=1)P(I = 1 \mid G = 0, D = 1). Explain the change between the last two in one sentence.

  2. Compute P(L=1∣S=1)P(L = 1 \mid S = 1) and P(L=1∣S=1,I=1)P(L = 1 \mid S = 1, I = 1). Why are they different, or why are they the same?

Your explanations:


Part B — Every Independence, Checked Exactly (20 points)

For every pair of variables and every conditioning set of at most one other variable, decide d-separation (you may use nx.is_d_separator) and check the numbers: is P(x∣y,z)=P(x∣z)P(x \mid y, z) = P(x \mid z) for all values? Report the d-separated statements and whether the numbers agree.


Part C — What a Sample Can Confirm (20 points)

Sample 500 students and 20 000 students from the network (ancestral sampling). For each of the statements of Part B, and for the same number of dependent pairs of your choice, run a pooled chi-squared test at the 5% level. How many true independences are wrongly rejected, and how many dependences are missed, at each sample size? What does this mean for learning a network’s structure from data?

Your interpretation:


Part D — The Equivalence Class (20 points)

List every network over the same five variables that is Markov equivalent to the student network (same skeleton, same v-structures; reverse subsets of its edges and keep the acyclic, equivalent ones). Which arrows can data alone never orient? Which ones are fixed, and why?

Your answer:


Part E — A Selection Effect (20 points)

A scholarship committee only ever sees students with a strong letter (L=1L = 1). Compute P(D=1∣I=1)P(D = 1 \mid I = 1) and P(D=1∣I=0)P(D = 1 \mid I = 0) in the whole population and among the students the committee sees. Explain the result with the graph, and say what a committee member who concludes “bright students choose harder courses” has done wrong.

Your explanation:

Grading Rubric

CriterionExcellentAdequateInsufficient
A (20)correct numbers; explaining away and blocking explained with the graphnumbers onlymissing
B (20)all statements, checked exactlystatements without checksmissing
C (20)both sizes, both error kinds, consequences for structure learningone sizemissing
D (20)all members listed; fixed and free arrows explained with v-structuresmembers onlymissing
E (20)numbers and a correct collider explanationnumbers onlymissing