Recent posts to Discussionhttps://sourceforge.net/p/jdistlib/discussion/Recent posts to DiscussionenSat, 01 Apr 2017 21:46:32 -0000Bintrayhttps://sourceforge.net/p/jdistlib/discussion/general/thread/549c6b0c/?limit=25#59c0/a1b4<div class="markdown_content"><p>You can simply use JDistlib jar file, put it into the lib directory. Right click your project in Eclipse -> Properties -> Java Build Path -> Libraries -> Add JARs... Then navigate to the JAR file and you are done.</p>
<p>In terms of tutorial, I already included "Basic tutorial of JDistlib" in the front page. Feel free to check it out.</p></div>Roby JoehanesSat, 01 Apr 2017 21:46:32 -0000https://sourceforge.net6235b8c626d8eb17f407a568738eb7094d0f1607Bintrayhttps://sourceforge.net/p/jdistlib/discussion/general/thread/549c6b0c/?limit=25#59c0<div class="markdown_content"><p>Hello all, <br/>
I just came to know about JDistlib... could anyone please help in finding a minimal example on how to use JDistlib, preferably in Eclipse?</p></div>niaz arifinSun, 19 Mar 2017 16:51:11 -0000https://sourceforge.net5bc29279657dcbbad22c7b4890c9637c49552948Wishlisthttps://sourceforge.net/p/jdistlib/discussion/general/thread/764e3620/<div class="markdown_content"><p>Hi Dragan,</p>
<p>I see. To test whether a distribution has multiple peaks, JDistlib already has such routine. It is in DistributionTest.diptest, which implements Hartigan's dip test D.</p>
<p>cf.: <a href="http://stats.stackexchange.com/questions/156808/interpretation-of-hartigans-dip-test" rel="nofollow">http://stats.stackexchange.com/questions/156808/interpretation-of-hartigans-dip-test</a></p></div>Roby JoehanesTue, 25 Oct 2016 13:26:05 -0000https://sourceforge.net7d9805ade78fea2fc784087731b54044d573e1f6Wishlisthttps://sourceforge.net/p/jdistlib/discussion/general/thread/764e3620/<div class="markdown_content"><p>Hi Roby,</p>
<p>In my previous post I mentioned measuring a duration of a database query. Since I got mixture distribution, I was curious to estimate parameters. My idea was to use Kolmogorov-Smirnov to compare my sample and approximated mixture distribution. However I wasn't able to make one in JDistlib. I could have tried to make my own mixture distribution by inheriting GenericDistribution and implementing all the methods, but that seemed too much complicated. So back then I was thinking how nice would it be to have Normal( double [] mu, double [] sigma). Anyway I donâ€™t need it anymore. I only wanted to contribute the project by mentioning it.</p>
<p>Thanks, Dragan</p></div>Dragan KerkezTue, 25 Oct 2016 11:03:06 -0000https://sourceforge.net848cacccdccd9361cbab22da8014933cbfe107dcWishlisthttps://sourceforge.net/p/jdistlib/discussion/general/thread/764e3620/<div class="markdown_content"><p>Hi Dragan, just wondering... what do you want to do with the mixture distribution (let's say normal mixture)? If you want to query what the mixture pdf is going to be, then it is easy, just add the two of them. You can do that with current JDistlib. If you wish to generate a random number out of the pdf, then it is a different story altogether. The two-step procedure I explained above really apply. But fortunately, for normal mixture, there is an algorithm to generate random number from it. There are many different mixture distributions which have pdf, cdf, quantile, and random algorithms worked out. For other types of mixture, I am afraid it is not straightforward.</p></div>Roby JoehanesMon, 24 Oct 2016 19:42:01 -0000https://sourceforge.net285f1b85c684d07afcb0f61b833359271293970bWishlisthttps://sourceforge.net/p/jdistlib/discussion/general/thread/764e3620/<div class="markdown_content"><p>Hi Roby,</p>
<p>Sorry, I guess I confused you when I mentioned rng. I was not thinking about hierarchical distribution, nor nrg from an arbitrary pdf. So far you have implemented many common distributions. What I have on my mind is a pdf as a result of mixing any of these. For example, I want to have pdf with 2 peeks. That I could make by mixing 2 Normal distributions with different (arbitrary) means and variances. Also I could assign a certain weight to each of these. I belive this is not too much exotic. I personally had a situation when I was expecting a certain random variable to be normally distributed (I was measuring how much time it takes for a database to complete a query), but I got huge distorsion on left part of the histogram which turned out to be another bell curve. In other words, my database was executing a (same) query significantly faster in one of four runs. Perhaps mixing Poisson and Normall doesn't make much sense, but mixing more Normal distributions makes sense. RNG would anyhow be available trough GenericDistribution abstract method random.</p>
<p>I hope you understand now.<br/>
Kind regards, Dragan</p></div>Dragan KerkezMon, 24 Oct 2016 07:45:36 -0000https://sourceforge.netfb4e3e158f508719537c3eed1f2c985a6f884847Wishlisthttps://sourceforge.net/p/jdistlib/discussion/general/thread/764e3620/<div class="markdown_content"><p>Hi Dragan, thanks for the input. I guess I don't understand what you mean. Do you mean random number generated from hierarchical distribution or generated given a probability density function (pdf)? Or something else?</p>
<p>Generating random numbers through hierarchical distribution is already possible with JDistlib. You just need to specify the correct hierarchy of distribution (given properly setup priors) and generate random numbers accordingly.</p>
<p>Generating random numbers given a random pdf specification is generally not feasible. At the very least, you will need to specify the quantile function (i.e., the inverse cumulative density function). Given inverse cdf / quantile function F^-1(x), you can generate random number for that distribution using F^-1(random uniform). This is essentially the only strategy for several distributions here in JDistlib. For an arbitrary distribution, however... Well, it is theoretically possible to generate the inverse cdf given pdf specification. The step is twofold: First, construct cdf (i.e., the cumulative function F) using numerical integration / summation. Second, construct inverse cdf using manual search. However, it will suffer much precision loss from both steps and huge computing time to generate a few numbers. So, it is generally not feasible. Even if it is computationally feasible, the quality of the resulting random numbers is poor. The strategy for the second approach is basically discussed here:<br/>
<a href="https://www.r-bloggers.com/making-random-draws-from-an-arbitrarily-defined-pdf/" rel="nofollow">https://www.r-bloggers.com/making-random-draws-from-an-arbitrarily-defined-pdf/</a></p>
<p>Or perhaps you mean something else?</p></div>Roby JoehanesFri, 21 Oct 2016 17:26:03 -0000https://sourceforge.netfc8e6be07313483da18c885aca7b7d81d25a9ab3Wishlisthttps://sourceforge.net/p/jdistlib/discussion/general/thread/764e3620/<div class="markdown_content"><p>This would be nice to have:</p>
<p><a href="https://en.wikipedia.org/wiki/Mixture_distribution" rel="nofollow">https://en.wikipedia.org/wiki/Mixture_distribution</a></p></div>Dragan KerkezThu, 20 Oct 2016 11:08:02 -0000https://sourceforge.netcc0f68ca34a23528f86b734231ea49efd89b9a68Wishlisthttps://sourceforge.net/p/jdistlib/discussion/general/thread/764e3620/<div class="markdown_content"><p>If you have wishlists on which distribution to work on, let me know.<br/>
Currently I am thinking about adding skewed distribution or multivariate distribution. But either of these take a lot of work.</p></div>Roby JoehanesWed, 24 Feb 2016 17:44:13 -0000https://sourceforge.net6271cf77cffa944aec64605300d0f30e7ac555a6Other licence typeshttps://sourceforge.net/p/jdistlib/discussion/general/thread/89ab1caf/<div class="markdown_content"><p>Hi Roby,</p>
<p>thank you for your reply and your explanation!</p>
<p>kind reagrds<br/>
Micha</p></div>MichaeLFri, 22 Jan 2016 14:05:48 -0000https://sourceforge.netdc9e0dd59ec39e6f7c125c738ffe14d4dc2b5c35