emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: statistical operations with org-mode?
Date: Sun, 29 Mar 2015 16:51:03 -0400	[thread overview]
Message-ID: <87k2xzy1c8.fsf@pierrot.dokosmarshall.org> (raw)
In-Reply-To: alpine.NEB.2.11.1503271014030.3353@panix3.panix.com

Jude DaShiell <jdashiel@panix.com> 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

      reply	other threads:[~2015-03-29 20:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-27 14:23 statistical operations with org-mode? Jude DaShiell
2015-03-29 20:51 ` Nick Dokos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k2xzy1c8.fsf@pierrot.dokosmarshall.org \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).