When caching looks harmful but helps

A content service logs, for each hour, whether traffic is at peak (Z=1Z = 1), whether operators switched on aggressive caching (X=1X = 1), and whether a request-timeout spike occurred (Y=1Y = 1). Operators tend to enable caching during peak hours. The engineers assume the causal graph shown, with no other common causes, and estimate these probabilities from the logs:


Quantity

Value

P(Z=1)P(Z=1)

0.30

P(X=1∣Z=1)P(X=1 \mid Z=1)

0.80

P(X=1∣Z=0)P(X=1 \mid Z=0)

0.20

P(Y=1∣X=1,Z=1)P(Y=1 \mid X=1, Z=1)

0.15

P(Y=1∣X=0,Z=1)P(Y=1 \mid X=0, Z=1)

0.35

P(Y=1∣X=1,Z=0)P(Y=1 \mid X=1, Z=0)

0.04

P(Y=1∣X=0,Z=0)P(Y=1 \mid X=0, Z=0)

0.06


A causal graph with arrows from peak traffic to caching, from peak traffic to timeout, and from caching to timeout.


Give each quantity as a probability to three decimal places (the causal effect may be negative):

  • Observed rate caching on: P(Y=1∣X=1)P(Y=1 \mid X=1)
  • Observed rate caching off: P(Y=1∣X=0)P(Y=1 \mid X=0)
  • Forced on rate: P(Y=1∣do(X=1))P(Y=1 \mid \text{do}(X=1))
  • Forced off rate: P(Y=1∣do(X=0))P(Y=1 \mid \text{do}(X=0))
  • Causal effect: P(Y=1∣do(X=1))−P(Y=1∣do(X=0))P(Y=1 \mid \text{do}(X=1)) - P(Y=1 \mid \text{do}(X=0))
Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Causal Probabilistic Models Questions: