Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Creating Multivariate Uniform Distribution in Julia

I’m trying to create a multivariate distribution in Julia by combining multiple single variate distributions. I’d like to make a 10-dimensional distribution with each dimension varying from 0 to 10. I tried using the Distributions package and there is a Product function that seems to be what I need. However, the expected construction Product(Uniform(0,10),10) doesn’t work. The example provided in the docs which is Product(Uniform.(rand(10), 1)) seems to create a distribution by varying the lower bound of the uniform distribution, which isn’t what I want.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I assume you want independent, since you tried to use Product, in this case do
Product(fill(Uniform(0, 10), 10)).

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading