Thanks, Ric.
You will be the main part of "Show-and-Tell" at NYCJUG tomorrow night.
On Tue, Mar 29, 2016 at 4:54 PM, Ric Sherlock wrote:
> Here's an attempt to come up with weighted versions in the spirit of the
> univariate.ijs definitions
>
> wmean=: +/@[ %~ +/@:*
>
> wdev=: ] -"_1 _ wmean
>
>
Here's an attempt to come up with weighted versions in the spirit of the
univariate.ijs definitions
wmean=: +/@[ %~ +/@:*
wdev=: ] -"_1 _ wmean
wssdev=: [ +/@:* *:@wdev
wvar=: (#@-.&0 %~ <:@#@-.&0 * +/)@[ %~ wssdev
wstddev=: %:@wvar
1 1 0 0 4 1 2 1 0 wstddev 2 3 5 7 11 13 17 19 23
5.8223
Hi All -
I recently wrote a few basic stat verbs for doing weighted versions of some
of the common descriptive statistics. They lack the cohesive elegance of
the standard versions from the "univariate.ijs" script but I couldn't
figure out how to replicate it with the weighted versions as I've mad