Random_Walk has asked for the wisdom of the Perl Monks concerning the following question:
Hi Folks
Does anyone know the above module and what it's inputs mean? The docco is rather terse ...
use Statistics::Regression; # Create regression object my $reg = Statistics::Regression->new( "sample regression", [ "const +", "someX", "someY" ] ); # Add data points $reg->include( 2.0, [ 1.0, 3.0, -1.0 ] ); $reg->include( 1.0, [ 1.0, 5.0, 2.0 ] ); $reg->include( 20.0, [ 1.0, 31.0, 0.0 ] ); $reg->include( 15.0, [ 1.0, 11.0, 2.0 ] );
I was expecting to give a more simple two dimensional input of X and Y values, then get back a vector of Theta values such that...
$predictedY = $Theta[0] + $X * $Theta[1] + $X**2*Theta[2] ... $X**3*T +heta[n];
How can I reconcile my expectations with the multidimensional data points in the example?
Thanks in Advance,
R.
Pereant, qui ante nos nostra dixerunt!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: using Statistics::Regression
by Anonymous Monk on Apr 19, 2017 at 15:08 UTC | |
by Random_Walk (Prior) on Apr 19, 2017 at 15:31 UTC | |
by Anonymous Monk on Apr 19, 2017 at 17:05 UTC | |
by Random_Walk (Prior) on Apr 19, 2017 at 19:52 UTC | |
by Anonymous Monk on Apr 19, 2017 at 20:21 UTC | |
| |
by Anonymous Monk on Apr 19, 2017 at 17:03 UTC | |
by Anonymous Monk on Apr 19, 2017 at 17:09 UTC | |
Re: using Statistics::Regression
by Random_Walk (Prior) on Apr 20, 2017 at 16:11 UTC | |
by toolic (Bishop) on Apr 20, 2017 at 16:29 UTC |
Back to
Seekers of Perl Wisdom