Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 87605 invoked from network); 26 Oct 2008 18:11:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2008 18:11:45 -0000 Received: (qmail 31339 invoked by uid 500); 26 Oct 2008 18:11:45 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 31274 invoked by uid 500); 26 Oct 2008 18:11:45 -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 31263 invoked by uid 99); 26 Oct 2008 18:11:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Oct 2008 11:11:45 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nicolas.deloof@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Oct 2008 18:10:31 +0000 Received: by nf-out-0910.google.com with SMTP id e27so696905nfd.30 for ; Sun, 26 Oct 2008 11:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type:references :x-google-sender-auth; bh=qKEozKg/ca9hNXogXpb4lrtiUGkV8PcLLunOE6j7aFU=; b=IHgRNOzDbfxab6CXLExunjE9Q5UM4Pp4BxNOQNiEnRjZCOZpkVsM4EWEvjE4blcMV3 m0vsE2SyN79fb9b2XQAe9SS5+0FUXDGATxiO3mgr1X1iE9CDZfuzSOyK7dA9eaMbxk34 eG32wbvdaxsjzwCiWk+sDuDMI26i+fDPNKDDM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:references:x-google-sender-auth; b=Rst+hsJuTagH2onfe0yWp0l5CHzKzUF6e9KnbucGPGVyYCnqCvBdRWgWZxEbnParD5 9DG2o9oAsHdqCqEejFDvGzzXewXSEYKysUBtPaCdCHMleUXRV1SjEEhdMiFbG0X5p53q P4PO48NX0au+T4zUptHC/vYxLgFsGRepCtCYw= Received: by 10.103.20.7 with SMTP id x7mr2279052mui.75.1225044659480; Sun, 26 Oct 2008 11:10:59 -0700 (PDT) Received: by 10.103.119.14 with HTTP; Sun, 26 Oct 2008 11:10:59 -0700 (PDT) Message-ID: <4c39e3030810261110q300903f0qe8813875aa8c51b5@mail.gmail.com> Date: Sun, 26 Oct 2008 20:10:59 +0200 From: "nicolas de loof" Sender: nicolas.deloof@gmail.com To: "Commons Users List" Subject: Re: [math] (unbiased) standard deviation ? In-Reply-To: <49049040.2000908@free.fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_82275_28704094.1225044659478" References: <4c39e3030810260744v708c0ed1kfce594345ee93436@mail.gmail.com> <49049040.2000908@free.fr> X-Google-Sender-Auth: 2e29677fb0ade8f6 X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_82275_28704094.1225044659478 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks, 2008/10/26 Luc Maisonobe > nicolas de loof a =E9crit : > > Hello > > For the monitoring component I've got a set of values. I'd like to > compute > > the std. deviation, but as I don't store the full values but only > aggregates > > (sum, sum of squares) I can't use commons-math StandardDeviation. > > > > Is there anything in commons-math for such use case ? I've found at > > http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance some > > algorithm to compute "an > > unbiased estimate", > > but if something stable and tested is available in math I'd prefer not = to > > reinvent the wheel ! > > > > Nicolas > > > > The various classes dealing with such features are designed to be built > empty and to be updated at each sample element. For example the > SummaryStatistics and DescriptiveStatistics classes provide an addValue > method whereas all implementations of StorelessUnivariateStatistics > provide an increment method. > > These methods take care of computing the sum and sum of squares for you. > The SummaryStatistics class maintains many values in addition to these > ones (min, max ...). Could you use these classes instead of storing the > data by yourself and later computing the results ? > > Luc > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > ------=_Part_82275_28704094.1225044659478--