All Questions
Tagged with distributions sampling
12 questions
0
votes
0
answers
21
views
Simulating data from a piecewise pdf occasionally returns an error [duplicate]
In the following code, I generate data from a piecewise PDF. Usually, I get a sample size of ns, but sometimes I get an error message:
Error: RandomVariate::unsdst:...
0
votes
0
answers
92
views
How to find a fit for the following data?
Consider the following function:
...
1
vote
1
answer
133
views
How to quickly sample from the following distributions
Consider the following distributions:
...
4
votes
1
answer
235
views
How to quickly sample points from the given PDF data?
Consider some data (distr.dat). It is a tabulated PDF: x, y, z, PDF[x,y,z], where x is some parameter (and the integral of ...
2
votes
2
answers
196
views
How to sample from a `MultinormalDistribution` with a positive semidefinite covariance matrix?
I'm trying to sample from a Gaussian process (GP) following these tutorials:
https://peterroelants.github.io/posts/gaussian-process-tutorial/#Sampling-from-prior
https://stephens999.github.io/...
4
votes
1
answer
74
views
Speeding up RandomVariate with custom probability distribution
I have the defined a custom distribution, which is a Gaussian where the exponent can be any real n greater than 0 (set to actually be >0.5 in use), i.e.
...
0
votes
1
answer
84
views
Is there a difference between generating and loading data?
EDIT-1
This is a minimal example where an error occurs after 44538 samples generated in d1 upon importing as d2. Note that if <...
0
votes
2
answers
82
views
How to get a list of exponentially distributed points sampled in a range
I want to get 256 points exponentially sampled in a range, and then get its histogram.
If I plot PDF, I get the following:
...
0
votes
1
answer
183
views
Sampling two integer lists of given sizes from a distribution that have equal sums
(This question emerged from discussions in this post.)
Context and code sample:
I am trying to figure out if there is a way to generate two $a$ and $b,$ comprised of $n_a$ and $n_b$ integers which ...
1
vote
2
answers
195
views
Sampling data from numerical values of density distribution of nucleons
How could i sample my data which follows distribution if i have only numerical values of density distribution as an example data attached as in picture
I tried but do not know how to do it.
The data:...
0
votes
1
answer
59
views
ProbabilityDistribution fails for square root
I would like to sampling data from a distribution Sqrt[x^2 + y^2].
I used the code as follows:
...
1
vote
0
answers
457
views
Is this the correct method in using bootstrapping to determine a lower confidence bound?
Quite often in industry, due to cost and schedule constraints, decisions must be made on small sample size data. I have 4 cycles-to-failure values resulting from running samples to failure in a ...