Narjes,

There's some examples of plotting distributions here (The library also has code 
for various GOF metrics):
http://www.iro.umontreal.ca/~simardr/ssj/indexe.html

Follow the `plot` link:
http://simul.iro.umontreal.ca/ssj/doc/pdf/guidecharts.pdf

Cheers,
- Ole


On 06/19/2015 04:22 AM, narjes saraie wrote:
Hi Phil.


I open http://s.apache.org/HTo  <http://s.apache.org/HTo>
but i couldent use it.Is it possible for you to attache one  source of the
plot?
I dont know witch line help me to draw the plots in the user
guide section on probability distributions?
Im sorry that Im  very very beginner.


thanks a lot .


<http://s.apache.org/HTo>

On Thu, Jun 18, 2015 at 8:06 AM, Phil Steitz <[email protected]> wrote:

On 6/18/15 6:31 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.
We don't have graphical exploratory data analysis tools in Commons
Math.  You would do best to start with a package that supports
generation of histograms if you have no idea what distribution might
fit the data.  If you do have an idea of what the distribution is,
depending on what it is, you may be able to estimate the parameters
of the distribution from the data.  For example, if you think that
the data are normally distributed, you can use SummaryStatistics in
the stat package to get the standard statistical estimators of the
mean and standard deviation, which together determine a normal
distribution. Then you could do a Kolmogorov-Smirnov test (or group
the data and use a G- or ChiSquare test) to assess goodness of fit.
Other distributions have different parameters and different
statistical estimators.

We don't currently support plotting distributions in Commons Math,
but the user guide code contains an example showing how to do it
with some external tools.  Have a look at the plots in the user
guide section on probability distributions [1] and the source for
the code that generates those plots [2].

Phil

[1]
http://commons.apache.org/proper/commons-math/userguide/distribution.html
[2] http://s.apache.org/HTo

thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to