Tag Archives: algorithms

Sampling from a given probability distribution

In a project I’m working on I’ve come across the necessity to sample a vector of values from a Dirichlet distribution.
I don’t know you, but during my undergraduate degree we were never taught how to write code to do this type of stuff, i.e. sampling from different probability distributions, etc. Fortunately Wikipedia, being a good [...]