ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Excel 2007 Polynomial Order Incorrect (https://www.excelbanter.com/charts-charting-excel/169454-excel-2007-polynomial-order-incorrect.html)

Darren

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.


Bernard Liengme

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.




Darren

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.





Martin Brown

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 -



Darren

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 -




Heatjer Mayes

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

Jon Peltier[_2_]

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.


Bernard Liengme[_3_]

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





All times are GMT +1. The time now is 03:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com