define the random variables decide which variables depend on each other choose a graph structure assign probability values observe evidence run inference update beliefs