Discrete Random Variable in PCE

Dear Gian Marco

Thanks for your question. So far there is no support for discrete variables in UQLab, but guess what : we’re working on it! The INPUT module is currently being enriched with such type of variables. This should appear in the next version.

Meanwhile you could address your problem as follows.

  • if your discrete variable has many possible outcomes, say 5-10 or more, you can definitely use a continuous uniform, and indeed round the outcomes to fit your real discrete realizations. It’s an approximation that should work.

  • if you have only 2 realizations of your discrete variable, say 0 or 1, you could fix it and compute Sobol’ indices conditioned on this value. And see if you observe the same patterns of sensitivity.

Hope this helps !
Best regards
Bruno

2 Likes