Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D24961897D for ; Thu, 18 Jun 2015 15:07:00 +0000 (UTC) Received: (qmail 65149 invoked by uid 500); 18 Jun 2015 15:06:59 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 65028 invoked by uid 500); 18 Jun 2015 15:06:59 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 65016 invoked by uid 99); 18 Jun 2015 15:06:59 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2015 15:06:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id B1B8ECEBEA for ; Thu, 18 Jun 2015 15:06:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.139 X-Spam-Level: X-Spam-Status: No, score=-0.139 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.038, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 3ugHyF8DWQYQ for ; Thu, 18 Jun 2015 15:06:58 +0000 (UTC) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id DA315428E3 for ; Thu, 18 Jun 2015 15:06:57 +0000 (UTC) Received: by pacyx8 with SMTP id yx8so63351503pac.2 for ; Thu, 18 Jun 2015 08:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Mz5WcruaxAApBkrwLmMWTlQAOgZmXQYvQZIPtFWCTtQ=; b=E/4+bwFssDt0zPBjjYn7XvT6z1wsOWsvEKJvVe4KABHKP0mgmbTsvAhW545N+eIy5V yf8NBm8Lu/AP43/ySioFcKkuSzStG4tiPr+YvVuHn2w0w2mdvOB9/4n6wqR4osvg2ga8 JaNeGlXTI6elCDVhKqBlIJiNVtJJY6dskQuYL5pjdvf5aHFTC3ppv+3CRFl2jzFRyOff N18R9TnsPDXVme2I/J+cQ4gQxyc9ybrwtG5+Z4oKuCuv085S4/LtminhIY2KYYatNwgd ycul4GunVly0f0AzpN5M0EsaLduywywJUMUIasfUsDxIfW7ubtUTT5S5maEaZ+CBRaI9 W8bA== X-Received: by 10.68.136.3 with SMTP id pw3mr11227209pbb.10.1434640017198; Thu, 18 Jun 2015 08:06:57 -0700 (PDT) Received: from psteitz-mbp.local (ip70-171-216-182.tc.ph.cox.net. [70.171.216.182]) by mx.google.com with ESMTPSA id gy3sm8343572pbb.42.2015.06.18.08.06.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jun 2015 08:06:55 -0700 (PDT) Message-ID: <5582DE8D.4080501@gmail.com> Date: Thu, 18 Jun 2015 08:06:53 -0700 From: Phil Steitz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Commons Users List Subject: Re: [math]plot distribution References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 distribu= tion > 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.=20 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: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org