If I can make the model simpler: d and S have the same distribution. Prior assigned to the parameters!
Thanks