A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel 2007 Polynomial Order Incorrect



 
 
Thread Tools Display Modes
  #1  
Old December 12th, 2007, 02:36 PM posted to microsoft.public.excel.charting
Darren
external usenet poster
 
Posts: 181
Default Excel 2007 Polynomial Order Incorrect

We recently upgraded to Office 2007. When we attempt to do a trendline in
Excel, the order of polynomials is always one below what it is stated to be
and the highest ordered polynomial is always wrong. (i.e. on a fourth order
polynomial, it will only display polynomials through the third order and in
the equation, the third ordered polynomial value is wrong, the others are
correct).

We tried installing the hot fix from KB 938541 as well as right clicking on
the equation for the chart and adding significant digits under Format
Trendline Label.

A sample file showing the problem can be downloaded from:

https://share.chicagogsb.edu/seos/10...fe4b9af27f96a6

Thank you in advance for any assistance provided.

  #2  
Old December 12th, 2007, 09:31 PM posted to microsoft.public.excel.charting
Bernard Liengme
external usenet poster
 
Posts: 4,085
Default Excel 2007 Polynomial Order Incorrect

Have your downloaded Office 2007 SP1 and tried trendlines again?
Download info: http://support.microsoft.com/kb/936982

I was unable to get to your file - my email address was rejected
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Darren" wrote in message
...
We recently upgraded to Office 2007. When we attempt to do a trendline in
Excel, the order of polynomials is always one below what it is stated to
be
and the highest ordered polynomial is always wrong. (i.e. on a fourth
order
polynomial, it will only display polynomials through the third order and
in
the equation, the third ordered polynomial value is wrong, the others are
correct).

We tried installing the hot fix from KB 938541 as well as right clicking
on
the equation for the chart and adding significant digits under Format
Trendline Label.

A sample file showing the problem can be downloaded from:

https://share.chicagogsb.edu/seos/10...fe4b9af27f96a6

Thank you in advance for any assistance provided.



  #3  
Old December 12th, 2007, 09:44 PM posted to microsoft.public.excel.charting
Darren
external usenet poster
 
Posts: 181
Default Excel 2007 Polynomial Order Incorrect

SP1 did not fix the problem.

"Bernard Liengme" wrote:

Have your downloaded Office 2007 SP1 and tried trendlines again?
Download info: http://support.microsoft.com/kb/936982

I was unable to get to your file - my email address was rejected
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Darren" wrote in message
...
We recently upgraded to Office 2007. When we attempt to do a trendline in
Excel, the order of polynomials is always one below what it is stated to
be
and the highest ordered polynomial is always wrong. (i.e. on a fourth
order
polynomial, it will only display polynomials through the third order and
in
the equation, the third ordered polynomial value is wrong, the others are
correct).

We tried installing the hot fix from KB 938541 as well as right clicking
on
the equation for the chart and adding significant digits under Format
Trendline Label.

A sample file showing the problem can be downloaded from:

https://share.chicagogsb.edu/seos/10...fe4b9af27f96a6

Thank you in advance for any assistance provided.




  #4  
Old December 13th, 2007, 08:37 AM posted to microsoft.public.excel.charting
Martin Brown
external usenet poster
 
Posts: 19
Default Excel 2007 Polynomial Order Incorrect

On Dec 12, 9:44 pm, Darren wrote:
SP1 did not fix the problem.


If you run the same dataset under 2003 do you get the roughly the same
coefficients for a 4th order fit as are displayed in 2007 but with one
value hidden. Or is 2007 actually doing a 3rd order fit when you ask
for a 4th order?

If you post an ASCII example of test data and observed fitted
equations 2003 vs 2007 for orders 1,2,3,4 then someone might look at
it.

I am a bit surprised at your claim because I have not seen it
misbehave on 1st order linear fits - the display is y = mx + c as
expected. OTOH most of my stuff was created in 2003 and ported to 2007
so any bugs in the Chart Wizard or user interface would not affect me.

The new polynomial fit algorithm used in charts from 2007 is as dumb
as hell and significantly less numerically stable than previously
(borderline at 2nd or 3rd order polynomials depending on the data).
Previously the charts used a clever regularised algorithm that worked
much better than the generic polynomial fit LINEST in the
spreadsheet.

That may have something to do with your problem.
Bin 2007 and ask for your money back. The product is not fit for
purpose. XL2003 charts are way better.

Regards,
Martin Brown

"Bernard Liengme" wrote:
Have your downloaded Office 2007 SP1 and tried trendlines again?
Download info:http://support.microsoft.com/kb/936982


I was unable to get to your file - my email address was rejected
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email


"Darren" wrote in message
...
We recently upgraded to Office 2007. When we attempt to do a trendline in
Excel, the order of polynomials is always one below what it is stated to
be
and the highest ordered polynomial is always wrong. (i.e. on a fourth
order
polynomial, it will only display polynomials through the third order and
in
the equation, the third ordered polynomial value is wrong, the others are
correct).


We tried installing the hot fix from KB 938541 as well as right clicking
on
the equation for the chart and adding significant digits under Format
Trendline Label.


A sample file showing the problem can be downloaded from:


https://share.chicagogsb.edu/seos/10...596e383fd90e46...


Thank you in advance for any assistance provided.- Hide quoted text -


- Show quoted text -


  #5  
Old December 13th, 2007, 02:10 PM posted to microsoft.public.excel.charting
Darren
external usenet poster
 
Posts: 181
Default Excel 2007 Polynomial Order Incorrect

Martin,

Here is a link to the file: http://www.mediafire.com/?7g4abmw30wn

In 2003 we were getting the correct values. 2007 is doing a 3rd order fit
when we click 4th order (and the 3rd order is wrong), a 4th order fit when we
say 5th order, etc.

Darren

"Martin Brown" wrote:

On Dec 12, 9:44 pm, Darren wrote:
SP1 did not fix the problem.


If you run the same dataset under 2003 do you get the roughly the same
coefficients for a 4th order fit as are displayed in 2007 but with one
value hidden. Or is 2007 actually doing a 3rd order fit when you ask
for a 4th order?

If you post an ASCII example of test data and observed fitted
equations 2003 vs 2007 for orders 1,2,3,4 then someone might look at
it.

I am a bit surprised at your claim because I have not seen it
misbehave on 1st order linear fits - the display is y = mx + c as
expected. OTOH most of my stuff was created in 2003 and ported to 2007
so any bugs in the Chart Wizard or user interface would not affect me.

The new polynomial fit algorithm used in charts from 2007 is as dumb
as hell and significantly less numerically stable than previously
(borderline at 2nd or 3rd order polynomials depending on the data).
Previously the charts used a clever regularised algorithm that worked
much better than the generic polynomial fit LINEST in the
spreadsheet.

That may have something to do with your problem.
Bin 2007 and ask for your money back. The product is not fit for
purpose. XL2003 charts are way better.

Regards,
Martin Brown

"Bernard Liengme" wrote:
Have your downloaded Office 2007 SP1 and tried trendlines again?
Download info:http://support.microsoft.com/kb/936982


I was unable to get to your file - my email address was rejected
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email


"Darren" wrote in message
...
We recently upgraded to Office 2007. When we attempt to do a trendline in
Excel, the order of polynomials is always one below what it is stated to
be
and the highest ordered polynomial is always wrong. (i.e. on a fourth
order
polynomial, it will only display polynomials through the third order and
in
the equation, the third ordered polynomial value is wrong, the others are
correct).


We tried installing the hot fix from KB 938541 as well as right clicking
on
the equation for the chart and adding significant digits under Format
Trendline Label.


A sample file showing the problem can be downloaded from:


https://share.chicagogsb.edu/seos/10...596e383fd90e46...


Thank you in advance for any assistance provided.- Hide quoted text -


- Show quoted text -



  #6  
Old October 22nd, 2009, 06:00 PM posted to microsoft.public.excel.charting
Heatjer Mayes
external usenet poster
 
Posts: 1
Default Also problems with polynomial

I also have trouble with the formula from adding a trendline to a 4th order polynomial. I graphed data in both 2003 and 2007 and added a 4th order trendline and displayed the formula on the graph. In both versions, I got the same formula, specifically, y = 0.00000095x4 - 0.00753977x3 + 22.51174905x2 - 29,872.75x + 14,865,177. This yielded 46690 for my text x value of 1980, but I expected a number less than 1.

The formula using linest was: y = -3.3105E-10x^4+1.77394E-06x^3+-0.002673x^2+0x+1798.06, which yields the expected 0.0065 for the x value of 1980.

Quite a bug!

Note: I also tried a 2nd order polynomial. The results were the same using linest and using the formula on the chart from the treadline. No bugs.





Martin Brown wrote:

Excel 2007 Polynomial Order Incorrect
14-Dec-07

If you run the same dataset under 2003 do you get the roughly the same
coefficients for a 4th order fit as are displayed in 2007 but with one
value hidden. Or is 2007 actually doing a 3rd order fit wh

Previous Posts In This Thread:

On Wednesday, December 12, 2007 9:36 AM
Darre wrote:

Excel 2007 Polynomial Order Incorrect
We recently upgraded to Office 2007. When we attempt to do a trendline in
Excel, the order of polynomials is always one below what it is stated to be
and the highest ordered polynomial is always wrong

On Wednesday, December 12, 2007 4:31 PM
Bernard Liengme wrote:

Have your downloaded Office 2007 SP1 and tried trendlines again?
Have your downloaded Office 2007 SP1 and tried trendlines again?
Download info: http://support.microsoft.com/kb/936982

I was unable to get to your file - my email address was rejected
best wishes
--

On Wednesday, December 12, 2007 4:44 PM
Darre wrote:

Excel 2007 Polynomial Order Incorrect
SP1 did not fix the problem.

"Bernard Liengme" wrote:

On Thursday, December 13, 2007 9:10 AM
Darre wrote:

Excel 2007 Polynomial Order Incorrect
Martin,

Here is a link to the file: http://www.mediafire.com/?7g4abmw30wn

In 2003 we were getting the correct values. 2007 is doing a 3rd order fit
when we click 4th order (and the 3rd order is wron

On Friday, December 14, 2007 2:58 AM
Martin Brown wrote:

Excel 2007 Polynomial Order Incorrect
If you run the same dataset under 2003 do you get the roughly the same
coefficients for a 4th order fit as are displayed in 2007 but with one
value hidden. Or is 2007 actually doing a 3rd order fit wh

EggHeadCafe - Software Developer Portal of Choice
ASP.NET Color Tool Derived from Reflection
http://www.eggheadcafe.com/tutorials...ol-derive.aspx
  #7  
Old October 22nd, 2009, 07:12 PM posted to microsoft.public.excel.charting
Jon Peltier[_2_]
external usenet poster
 
Posts: 386
Default Also problems with polynomial

I'll leave out any comments about the suitability of a 4th order trendline.

Two things come to mind.

First, you should format the trendline equation using a scientific
number format with lots of digits.

Second, are you using an XY Scatter chart, or a line chart? The two
differ not in formatting of the plotted data but in the treatment of the
X variable.

- Jon
-------
Jon Peltier
Peltier Technical Services, Inc.
http://peltiertech.com/



Heatjer Mayes wrote:
I also have trouble with the formula from adding a trendline to a 4th
order polynomial. I graphed data in both 2003 and 2007 and added a
4th order trendline and displayed the formula on the graph. In both
versions, I got the same formula, specifically, y = 0.00000095x4 -
0.00753977x3 + 22.51174905x2 - 29,872.75x + 14,865,177. This yielded
46690 for my text x value of 1980, but I expected a number less than
1.

The formula using linest was: y =
-3.3105E-10x^4+1.77394E-06x^3+-0.002673x^2+0x+1798.06, which yields
the expected 0.0065 for the x value of 1980.

Quite a bug!

Note: I also tried a 2nd order polynomial. The results were the same
using linest and using the formula on the chart from the treadline.
No bugs.

  #8  
Old October 23rd, 2009, 04:42 PM posted to microsoft.public.excel.charting
Bernard Liengme[_2_]
external usenet poster
 
Posts: 1,027
Default Also problems with polynomial

I agree will all that Jon tells you.
Why not get the values of the trendline equation into cells?
See http://people.stfx.ca/bliengme/ExcelTips/Polynomial.htm

Do not always assume there is a bug - we ALL make mistakes and the problem
could be yours (as it is here)

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Heatjer Mayes" wrote in message
...
I also have trouble with the formula from adding a trendline to a 4th
order polynomial. I graphed data in both 2003 and 2007 and added a 4th
order trendline and displayed the formula on the graph. In both versions,
I got the same formula, specifically, y = 0.00000095x4 - 0.00753977x3 +
22.51174905x2 - 29,872.75x + 14,865,177. This yielded 46690 for my text x
value of 1980, but I expected a number less than 1.

The formula using linest was: y
= -3.3105E-10x^4+1.77394E-06x^3+-0.002673x^2+0x+1798.06, which yields the
expected 0.0065 for the x value of 1980.

Quite a bug!

Note: I also tried a 2nd order polynomial. The results were the same
using linest and using the formula on the chart from the treadline. No
bugs.





Martin Brown wrote:

Excel 2007 Polynomial Order Incorrect
14-Dec-07

If you run the same dataset under 2003 do you get the roughly the same
coefficients for a 4th order fit as are displayed in 2007 but with one
value hidden. Or is 2007 actually doing a 3rd order fit wh

Previous Posts In This Thread:

On Wednesday, December 12, 2007 9:36 AM
Darre wrote:

Excel 2007 Polynomial Order Incorrect
We recently upgraded to Office 2007. When we attempt to do a trendline in
Excel, the order of polynomials is always one below what it is stated to
be
and the highest ordered polynomial is always wrong

On Wednesday, December 12, 2007 4:31 PM
Bernard Liengme wrote:

Have your downloaded Office 2007 SP1 and tried trendlines again?
Have your downloaded Office 2007 SP1 and tried trendlines again?
Download info: http://support.microsoft.com/kb/936982

I was unable to get to your file - my email address was rejected
best wishes
--

On Wednesday, December 12, 2007 4:44 PM
Darre wrote:

Excel 2007 Polynomial Order Incorrect
SP1 did not fix the problem.

"Bernard Liengme" wrote:

On Thursday, December 13, 2007 9:10 AM
Darre wrote:

Excel 2007 Polynomial Order Incorrect
Martin,

Here is a link to the file: http://www.mediafire.com/?7g4abmw30wn

In 2003 we were getting the correct values. 2007 is doing a 3rd order fit
when we click 4th order (and the 3rd order is wron

On Friday, December 14, 2007 2:58 AM
Martin Brown wrote:

Excel 2007 Polynomial Order Incorrect
If you run the same dataset under 2003 do you get the roughly the same
coefficients for a 4th order fit as are displayed in 2007 but with one
value hidden. Or is 2007 actually doing a 3rd order fit wh

EggHeadCafe - Software Developer Portal of Choice
ASP.NET Color Tool Derived from Reflection
http://www.eggheadcafe.com/tutorials...ol-derive.aspx



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:57 AM.


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