Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Intel Community
- Software Development SDKs and Libraries
- Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
- Random Multinomial Distribution

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

Marek_C_

Beginner

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

03-31-2013
09:44 PM

23 Views

Random Multinomial Distribution

Hello all,

Just like in the name of the topic, I would like to create function that returns vector of random multinomial distributed values. Unfortunately in MKL there is no direct way to do it. There is only Binomial (viRngBinomial, Reference Manual p. 2585) but since Binomial is just a special case of Multinomial I hope someone maybe was able to create Multinomial based on Binomial.

If so, I would appreciate any good ideas/solutions, how to solve that. I have input vector prepared and expected value, but that's all I was able to do so far.

Thank you all in advance.

Marek

1 Reply

Andrey_N_Intel

Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

04-01-2013
12:17 AM

23 Views

Hello Marek,

Your observation is correct - Intel(R) MKL does not provide multinomial random number generator. Please, have a look at the paper of C.S. Davis "The computer generation of multinomial random variates" published in Computational Statistics & Data Analysis, v16, i2, 1993 for methods of multinomial variate generation. One of them, the conditional distribution method, relies on the modal binomial generator. Implementation of the algorithm is available in GSL library.

Andrey

For more complete information about compiler optimizations, see our Optimization Notice.