Julia Programming Language
What is the equivalent of numpy.random.choice for generating a non-uniform random sample based on a user supplied probability?
General Usage
question
nilshg
February 11, 2020, 10:38am
2
You might be looking for
StatsBase.sample
4 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Draw a random number through a probability distribution defined as an array
General Usage
distributions
,
random
,
sampling
5
115
May 21, 2025
Weighted sampling algorithms not yet shipped?
General Usage
question
,
statistics
1
302
October 2, 2021
Turing.jl: UniformDraw distribution?
Probabilistic Programming
turing
,
distributions
2
548
July 23, 2021
AliasTables.jl
Package Announcements
3
702
April 12, 2024
Using Weights from statsbase in Julia, and using an array
New to Julia
package
2
2868
November 27, 2020