# Looking for documentation/example of using UQLab results of Bayesian inference for forward UQ or further Bayesian inference

**URL:** <https://uqworld.org/t/looking-for-documentation-example-of-using-uqlab-results-of-bayesian-inference-for-forward-uq-or-further-bayesian-inference/690>\
**Category:** Community Q&A and How To\
**Tags:** inversion\
**Created:** [June 22, 2020, 9:43am UTC](https://uqworld.org/t/looking-for-documentation-example-of-using-uqlab-results-of-bayesian-inference-for-forward-uq-or-further-bayesian-inference/690 "2020-06-22T09:43:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paulremo](https://uqworld.org/user_avatar/uqworld.org/paulremo/32/192_2.png) [@paulremo](https://uqworld.org/u/paulremo)\
**Post date:** [June 22, 2020, 11:23am UTC](https://uqworld.org/t/looking-for-documentation-example-of-using-uqlab-results-of-bayesian-inference-for-forward-uq-or-further-bayesian-inference/690/2 "2020-06-22T11:23:10Z")

</div>

Hi Olaf

There is currently no example that explains this - but using the `.Results.PostProc.PostSample` is the correct starting point. There are a couple of things you can do with this sample, but first of all, you will have to transform it to a 2D array with

> `PostSample2D = reshape(permute(PostSample3D, [2 1 3]), size(PostSample3D, 2), []).'`

You could then, of course, directly propagate this sample through a different forward model, but to use advanced UQ methods (or for another round of inference where this posterior measure is used as a prior measure), you will have to find a parametric distribution that can be used to represent this sample.

For this, I suggest you have a look at the new [input module](https://www.uqlab.com/input-user-manual) that was released in v.1.3 of `UQLab`. More specifically, have a look at the _inference of marginals and copulas_ as detailed in this [example](https://www.uqlab.com/input-inference-of-marginals-copula). This will allow you to define a new `uq_input` object using the posterior sample. This object can then be used to do any UQ analysis you desire.

Let me know how it goes!

---

_[View the full topic](https://uqworld.org/t/looking-for-documentation-example-of-using-uqlab-results-of-bayesian-inference-for-forward-uq-or-further-bayesian-inference/690)._
