Bayes' theorem
Starting from the joint distribution and applying recursively Bayes' theorem we obtain: