in reply to Correlation plots
On the other hand, it's not that hard to do these by hand. Particularly in perl.
use strict; use List::Util qw(sum); my @d = ( 1 .. 10_000 ); my $s = sum @d; my $mean = $s/@d; my $var = (sum map { ($_-$mean)**2 } @d); my $std = sqrt($var/@d); # etc...
... The more I think about it though, if you're pulling these from a database, you don't really even need to do the stddev by hand. I imagine your database of choice has a stddev() built in. The co-varience would probably have to be calculated by hand though. Maybe "select sum( (cola - avg(cola))*(colb - avg(colb))/count(cola) ) from tablename" ... or something like that.
-Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Correlation plots
by ikegami (Patriarch) on Oct 09, 2007 at 18:37 UTC | |
by jettero (Monsignor) on Oct 09, 2007 at 18:59 UTC | |
by ikegami (Patriarch) on Oct 09, 2007 at 19:08 UTC | |
by jettero (Monsignor) on Oct 11, 2007 at 11:20 UTC |