 By Bayes' rule,

which expands to

Suppose we know that "t" is uniformly distributed from [0,"T"] and "x"|"t" is distributed uniformly on [0,"t"].Let "g"("t") and "f"("x"|"t") be the densities that describe "t" and "x" respectively.Suppose we observe a value of "x" and wish to know the distribution of "t" given that value of "x".