Sorry to be a pain, but could the suffixes be changed to "p" for population instead of "b"? This would mimic how it's done in Excel (and may be otherwise more conventional?)
On 1/15/08, Chris Burke <[EMAIL PROTECTED]> wrote: > > Devon McCormick wrote: > > Would it be possible to include biased (population) versions of the > common > > statistical functions in "statfns.ijs"? > > > > One reason I'm asking is that I often work with Excel and it has biased > (eg > > VARP) versus unbiased (eg VAR) versions of many functions. > > > > I've just spent some time figuring out that the reason the J "cov" verb > does > > not agree with Excel's "COVAR" is because Excel (inconsistently?) uses > the > > biased measure by default and J defaults to the unbiased one. > > > > So, would it be helpful to have something like the following included in > the > > standard distribution of statfns in the future or can someone tell me > why > > Excel is being silly? > > > > varB=: (ssdev % #) NB. biased variance > > stddevB=: %: @ varB NB. biased standard deviation > > covB=: (spdev % # @ ]) NB. biased covariance=Excel > > I added these to the latest beta scripts (6.02.012). Note names are all > lowercase as is standard in the library: > > varb=: ssdev % # > stddevb=: %: @ varb > covb=: spdev % # @ ] > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Devon McCormick, CFA ^me^ at acm. org is my preferred e-mail ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
