All Questions
Tagged with distributions performance-tuning
10 questions with no upvoted or accepted answers
4
votes
0
answers
76
views
Why is ProbabilityDistribution 100x slower than ExtremeValueDistribution?
The two distributions are the same, except the ProbabilityDistribution cuts out below x=0. The wolfram documentation on ProbabilityDistribution says nothing about speed. A search of this site gave no ...
2
votes
0
answers
137
views
Insights on using the HypergeometricDistribution functions in Mathematica
I'm trying to calculate the upper confidence interval for the hypergeometric distribution in mathematica and I came up with this very simple code.
...
2
votes
0
answers
115
views
Optimization of custom probability distibutions?
Consider the two tests:
Timing[Do[RandomVariate[NormalDistribution[0.5, 0.3]], {200}]]
{0.001188, Null}
...
1
vote
0
answers
41
views
Speed up exact distribution of the sum of the top $k$ statistics on a bounded discrete uniform distribution?
I came across a nice answer by Sasha (I believe a Wolfram engineer) on mathematics stack exchange regarding the distribution of the sum of the top $k$ order statistics. (This was an answer to an RPG ...
1
vote
0
answers
53
views
Can LearnDistribution Train and Generate Images Without Defaulting To 256x256?
In spite of anything I try it seems the ConformImages[] function nested in the LearnDistribution[] function resizes images to 256x256.
If I convert an image into its "Data" representation before ...
1
vote
0
answers
60
views
Why is this parallel notebook not maxing out the available memory and processors?
I've searched many questions about parallel processing here, and they are either specialized or over my head. I run the following parallel notebook on an 8 core EC2 instance. The average memory usage ...
1
vote
0
answers
155
views
0
votes
0
answers
106
views
Optimizing a While Loop for High-Precision Computation in Mathematica
Edit: Clarifying the Core Issue
i=x;
While[Abs[p1 - p2] >= p1 tol,
p2 = p1;
p1 += s *= i (mkn + i)/((k1 - i) (n1 - i));
i--;
];
The core of my ...
0
votes
0
answers
31
views
SmoothKernelDistribution only uses 1 core
I have a huge amount of datasets, each containing many elements, and trying to convert it to PDF using SmoothKernelDistribution. I see that applying it to 1 dataset ...
0
votes
0
answers
38
views
Slow SmoothKernelDistribution of WeightedData
Consider some data in the form
data = {{x,y,weight(x,y)},...};
I make
wd = WeightedData[data[[All,{1,2}]],data[[All,3]]];
I ...