in reply to Numerical Analysis Challenge
sales = base_sale + K * log( i )where K = multiple/log( logbase ). There's no way by regression alone to determine multiple or logbase separately.
The above regression is not strictly linear, but if you tranform i to x via
x = log i(or
i = e^x), then you get:
sales = base_sale + K * xwhich is a straight linear regression once you apply the transform correctly to your interval variable. Thus, you simply have to do some stat summation over your data set, and you're all set; the exact equations for that should be in any numerical math text (I don't see any Perl modules that do regression easily, but the routine isn't hard for this).
-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com
||
"You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Numerical Analysis Challenge
by scain (Curate) on Jan 03, 2002 at 01:01 UTC | |
|
Re: Re: Numerical Analysis Challenge
by LogicalChaos (Beadle) on Jan 03, 2002 at 05:45 UTC | |
|
Re: Re: Numerical Analysis Challenge
by tomazos (Deacon) on Jan 03, 2002 at 01:22 UTC |