the marginal distribution can now be derived and saved