You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by narjes saraie <na...@gmail.com> on 2015/06/18 13:47:09 UTC
plot distribution
Hi All.
I am beginner in java and have some data.I want to guess a distribution for
my data then calculate goodness of fit (gof).
I find distribution commons math and use it ,if i want plot my distribution
or CDF or probability (X>x), how do it?
is it any example for distribution and plotting it.
thanks.
Re: plot distribution
Posted by narjes saraie <na...@gmail.com>.
thanks a lot for helping me.
I was waiting for answer about 5 days,but could not find it.
I sent an email to 'user@commons.apache.org, with [math]plot distribution
I hope to get an answer .
best regards
On Thu, Jun 18, 2015 at 5:55 AM, sebb <se...@gmail.com> wrote:
> This is off-topic for the developer list.
>
> Please subscribe to the Commons User list [1] and post there.
>
> Also, please prefix the subject line with:
>
> [MATH]
>
> i.e. in this case the subject should be
>
> [MATH] plot distribution
>
> or similar
>
> [1] http://commons.apache.org/mail-lists.html
> and
> http://commons.apache.org/proper/commons-math/mail-lists.html
>
>
> On 18 June 2015 at 12:47, narjes saraie <na...@gmail.com> wrote:
> > Hi All.
> > I am beginner in java and have some data.I want to guess a distribution
> for
> > my data then calculate goodness of fit (gof).
> > I find distribution commons math and use it ,if i want plot my
> distribution
> > or CDF or probability (X>x), how do it?
> > is it any example for distribution and plotting it.
> > thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
Re: plot distribution
Posted by sebb <se...@gmail.com>.
This is off-topic for the developer list.
Please subscribe to the Commons User list [1] and post there.
Also, please prefix the subject line with:
[MATH]
i.e. in this case the subject should be
[MATH] plot distribution
or similar
[1] http://commons.apache.org/mail-lists.html
and
http://commons.apache.org/proper/commons-math/mail-lists.html
On 18 June 2015 at 12:47, narjes saraie <na...@gmail.com> wrote:
> Hi All.
> I am beginner in java and have some data.I want to guess a distribution for
> my data then calculate goodness of fit (gof).
> I find distribution commons math and use it ,if i want plot my distribution
> or CDF or probability (X>x), how do it?
> is it any example for distribution and plotting it.
> thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: plot distribution
Posted by Ole Ersoy <ol...@gmail.com>.
Hi Narjes,
It's a good idea to prefix your subject with [math], since commons shares multiple projects.
Going to take a stab from 50,000 feet. Use the Levenberg Marquardt optimizer to fit the distribution to the data. You could probably use more specific optimizers for certain types of distributions. For example the Gaussian Fitter to guess the variance for normal distributions:
https://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/fitting/GaussianCurveFitter.html
I would export the data to JSON (Convert with Google GSON) and use Node to plot it with d3:
http://d3js.org/
http://racingtadpole.com/blog/curve-fitting-cdf-js-d3/
Cheers,
- Ole
On 06/18/2015 06:47 AM, narjes saraie wrote:
> Hi All.
> I am beginner in java and have some data.I want to guess a distribution for
> my data then calculate goodness of fit (gof).
> I find distribution commons math and use it ,if i want plot my distribution
> or CDF or probability (X>x), how do it?
> is it any example for distribution and plotting it.
> thanks.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: plot distribution
Posted by narjes saraie <na...@gmail.com>.
Hi Ole,
thanks.I do it and use your help again.
best regards
On Thu, Jun 18, 2015 at 8:29 AM, Ole Ersoy <ol...@gmail.com> wrote:
> Narjes,
>
> Looking at this a little closer:
> http://racingtadpole.com/blog/curve-fitting-cdf-js-d3/
>
> They may have solved it for you :).
>
> Cheers,
> - Ole
>
>
> On 06/18/2015 06:47 AM, narjes saraie wrote:
>
>> Hi All.
>> I am beginner in java and have some data.I want to guess a distribution
>> for
>> my data then calculate goodness of fit (gof).
>> I find distribution commons math and use it ,if i want plot my
>> distribution
>> or CDF or probability (X>x), how do it?
>> is it any example for distribution and plotting it.
>> thanks.
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>
Re: plot distribution
Posted by Ole Ersoy <ol...@gmail.com>.
Narjes,
Looking at this a little closer:
http://racingtadpole.com/blog/curve-fitting-cdf-js-d3/
They may have solved it for you :).
Cheers,
- Ole
On 06/18/2015 06:47 AM, narjes saraie wrote:
> Hi All.
> I am beginner in java and have some data.I want to guess a distribution for
> my data then calculate goodness of fit (gof).
> I find distribution commons math and use it ,if i want plot my distribution
> or CDF or probability (X>x), how do it?
> is it any example for distribution and plotting it.
> thanks.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org