From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: statistical operations with org-mode? Date: Sun, 29 Mar 2015 16:51:03 -0400 Message-ID: <87k2xzy1c8.fsf@pierrot.dokosmarshall.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51919) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcKB2-0001MI-Q9 for emacs-orgmode@gnu.org; Sun, 29 Mar 2015 16:51:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YcKAz-0004yQ-Ij for emacs-orgmode@gnu.org; Sun, 29 Mar 2015 16:51:24 -0400 Received: from plane.gmane.org ([80.91.229.3]:51733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YcKAz-0004yK-BY for emacs-orgmode@gnu.org; Sun, 29 Mar 2015 16:51:21 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YcKAt-00024A-Sl for emacs-orgmode@gnu.org; Sun, 29 Mar 2015 22:51:16 +0200 Received: from pool-108-7-223-120.bstnma.fios.verizon.net ([108.7.223.120]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 Mar 2015 22:51:15 +0200 Received: from ndokos by pool-108-7-223-120.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 29 Mar 2015 22:51:15 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Jude DaShiell writes: > After having read through the org-mode info on spreadsheets several > times and having also read through the calc info a few times I have > not ben able to get pstdev() to produce anything but errors. Having > checked over the data in a table, I found a couple instances where > data values were missing so I expect this could account for the errors > by itself. In column 3 I put the formula =pstdev(@<..@>) and also > tried with =pstdev($3). What is the correct syntax? I wasn't sure > which if any would work after having done all of that reading. > AFAIK, the sample standard deviation calc function for a vector is called vsdev and the population standard deviation is called vpsdev. Here is an example of calling them (as well as the vmean and vmedian functions): --8<---------------cut here---------------start------------->8--- * Calculate stats on a column | seqno | value | | |-------+------------+------------| | 1 | 0.34437004 | 0.49622740 | | 2 | 0.65321163 | 0.49569043 | | 3 | 0.17841555 | 0.22716774 | | 4 | 0.28259230 | | | 5 | 0.88476454 | | | 6 | 0.65279340 | | | 7 | 0.12817118 | | | 8 | 0.50326488 | | | 9 | 0.34985056 | | | 10 | 0.78586253 | | | 11 | 0.49569043 | | | 12 | 0.46154064 | | | 13 | 0.65004499 | | | 14 | 0.74102345 | | | 15 | 0.33181485 | | #+TBLFM: @2$3 = vmean(@2$2..@>$2) :: @3$3 = vmedian(@2$2..@>$2) :: @4$3 = vsdev(@2$2..@>$2) :: @5$3 = vpsdev(@2$2..@>$2) --8<---------------cut here---------------end--------------->8--- HTH. -- Nick