Reputation
13,852
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
1 33 75
Impact
~146k people reached

21h
comment How to enter piecewise functions into Mathematica
I agree with you suggestions but think it is worth pointing out that Piecewise short circuits. So sometimes it is beneficial to sort the arguments such that the most common cases come first.
1d
comment How I can count multiplications in an experssion?
@m_goldberg given the edit I believe this works now though I disagree with the accept.
1d
comment How I can count multiplications in an experssion?
Very much cleaner than mine +1
1d
revised How I can count multiplications in an experssion?
added 369 characters in body
2d
answered How I can count multiplications in an experssion?
Jul
1
comment How to create a thick spiral then extract the coordinates from the image?
This caused me to experiment with drawing random spiral galaxies. Thanks for the diversion!
Jun
28
comment Building Pythonic Programming style to Mathematica with visually-accessible list comprehensions?
Lazy evaluation, probably not, but similar functionality can be attained with map. [f(x) for x in values] -> f /@ values
Jun
21
revised Efficient Sampling of A (Countable) Discrete Distribution
added 68 characters in body
Jun
21
revised Efficient Sampling of A (Countable) Discrete Distribution
added 8 characters in body
Jun
21
answered Efficient Sampling of A (Countable) Discrete Distribution
Jun
21
comment Efficient Sampling of A (Countable) Discrete Distribution
Unfortunately 100k terms doesn't even reach the 99th percentile which is where things really slow down. Heavy tails are a pain.
Jun
21
comment Efficient Sampling of A (Countable) Discrete Distribution
You can get a small speed up by premultiplying by A and removing that from the test in the loop. A significant speed up can be gained by compilation. However, the given distribution has a very heavy tail and so it is tricky to be fast for large quantiles without some adaptive sampling which is also tricky since the distribution involves Zeta functions that can't be compiled.
Jun
19
revised P-Values are inconsistent when using DistributionFitTest repeatedly
added 43 characters in body
Jun
18
answered P-Values are inconsistent when using DistributionFitTest repeatedly
Jun
18
comment P-Values are inconsistent when using DistributionFitTest repeatedly
Under the null hypothesis the p-value has a uniform distribution on (0,1). So, you would expect 5% of the values to fall at or below 0.05 for example.
Jun
16
answered Is DistributionFitTest broken for some cases of TransformedDistribution targets?
Jun
16
comment Is DistributionFitTest broken for some cases of TransformedDistribution targets?
The CDF is required for the chi square test in order to build bins. If CDF doesn't compute DFT will fail. As for why the CDF fails I'm not sure.
May
2
comment Second derivative of SmoothKernelDistribution PDF?
You might try KernelMixtureDistribution to avoid the piecewise linear limitation
Apr
20
answered Is this behavior of DistributionFitTest together with StableDistribution a bug?
Apr
19
comment Why do EstimatedDistribution and DistributionFitTest work this way
I recommend reading the following en.m.wikipedia.org/wiki/Lilliefors_test