Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Polynomial least squares fit

Hi,
I have a graph of two values and I need to know, what the
formula is that connects all to points. The trend function
in the graph gives

y = 0.0557x4 - 51.355x3 + 18559x2 - 3E+06x + 2E+08

I need the last two terms too more places.

Is there a spread sheet function for this, a macro or
anything.

MarkS
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default Polynomial least squares fit

On Mon, 18 Aug 2003 00:32:03 -0700, "Mark Scholes"
wrote:

Hi,
I have a graph of two values and I need to know, what the
formula is that connects all to points. The trend function
in the graph gives

y = 0.0557x4 - 51.355x3 + 18559x2 - 3E+06x + 2E+08

I need the last two terms too more places.

Is there a spread sheet function for this, a macro or
anything.

MarkS


Select the equation on the chart. Then right-click and select Format Data
Labels. The Number tab allows formatting the numbers in the equation to more
decimal places (although Excel's precision limits makes formatting to more than
15 places meaningless).

You can also use the LINEST worksheet function if the above is not
satisfactory.

The LINEST function does not always return the right answer, although it works
pretty well most of the time. The algorithms used in the chart trendline
generator is more robust. For my limited uses, LINEST has been satisfactory.

If you search the archives using GOOGLE you will find techniques for not only
using LINEST, but for also extracting the equation from the chart.


--ron
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default Polynomial least squares fit

David Braden's has VBA code to extract the coefficients directly from
the chart into cells is given at

http://groups.google.com/groups?selm....microsoft.com

LINEST does work well with non-challenging data, the problem is that it
gives no warning when it fails completely.

Jery

Ron Rosenfeld wrote:

On Mon, 18 Aug 2003 00:32:03 -0700, "Mark Scholes"
wrote:


Hi,
I have a graph of two values and I need to know, what the
formula is that connects all to points. The trend function
in the graph gives

y = 0.0557x4 - 51.355x3 + 18559x2 - 3E+06x + 2E+08

I need the last two terms too more places.

Is there a spread sheet function for this, a macro or
anything.

MarkS


Select the equation on the chart. Then right-click and select Format Data
Labels. The Number tab allows formatting the numbers in the equation to more
decimal places (although Excel's precision limits makes formatting to more than
15 places meaningless).

You can also use the LINEST worksheet function if the above is not
satisfactory.

The LINEST function does not always return the right answer, although it works
pretty well most of the time. The algorithms used in the chart trendline
generator is more robust. For my limited uses, LINEST has been satisfactory.

If you search the archives using GOOGLE you will find techniques for not only
using LINEST, but for also extracting the equation from the chart.


--ron


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binary Squares Mike Faulkner Excel Discussion (Misc queries) 3 September 30th 09 01:40 PM
football squares CRS Excel Discussion (Misc queries) 7 November 3rd 08 10:17 PM
Least Squares Regression ST. Dev. Kris@CEC Excel Worksheet Functions 5 August 24th 07 02:42 PM
chi squares Rozie Excel Discussion (Misc queries) 1 June 29th 06 09:52 PM
removing squares and lines in squares that really should be paragr finnadat Excel Discussion (Misc queries) 5 February 10th 05 11:12 PM


All times are GMT +1. The time now is 01:50 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"