Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
tep tep is offline
external usenet poster
 
Posts: 3
Default Trendline Equations in Excel 2003

Using copy and paste I transferred the trendline equation (in this case a
quadratic) from a chart element to a worksheet cell and then subjected it the
original data to validate it. The resulting values are magnitudes different
to the orignal data - in the millions, not explained by regression tolerance,
RHO of 0.998. The x axis values were months - what value does Excel assign to
months in Charts because the 1900 system values (eg 39643 for 14 Jul 2008) do
not appear to be ones used?
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 99
Default Trendline Equations in Excel 2003

Hi tep,

What Chart Type did you use?

If Line, change it to (x-y)Scatter to get the right result.

Also, how many points in your data? An R-squared of 0.998 may not mean much
if you do not have sufficient data points.

Ed Ferrero
www.edferrero.com

Using copy and paste I transferred the trendline equation (in this case a
quadratic) from a chart element to a worksheet cell and then subjected it
the
original data to validate it. The resulting values are magnitudes
different
to the orignal data - in the millions, not explained by regression
tolerance,
RHO of 0.998. The x axis values were months - what value does Excel assign
to
months in Charts because the 1900 system values (eg 39643 for 14 Jul 2008)
do
not appear to be ones used?


  #3   Report Post  
Posted to microsoft.public.excel.charting
tep tep is offline
external usenet poster
 
Posts: 3
Default Trendline Equations in Excel 2003

Thanks Ed Ferrero,
I tried the scatter plot but still no resemblance to the original data.
Here's what I'm using:
Jun08 Jul08 Aug08 Sep08 Oct08 Nov08 Dec08 Jan09 20.00 35.00 50.70
67.00 77.00 86.00 93.00 95.00
Here's the scatter trend equation that Excel presents:

y = -0.0012x2 + 96.719x - 2E+06

Here's the results from this equation:

Jun08 Jul08 Aug08 Sep08 Oct08 Nov08 Dec08 Jan09
-51,720 -51,670 -51,622 -51,575 -51,533 -51,491 -51,453 -51,415

Differences of 50,000 plus.

Here's the Line equation: y = -1.0855x2 + 2843.3x - 2E+06

Here's some of the result for Jun08: -1,591,643,000.00. The results for the
other month's are similar.

Huge differences.

Your interest in helping me solve or correct what I'm doing is much
appreciated.
Regards,
TEP.


"Ed Ferrero" wrote:

Hi tep,

What Chart Type did you use?

If Line, change it to (x-y)Scatter to get the right result.

Also, how many points in your data? An R-squared of 0.998 may not mean much
if you do not have sufficient data points.

Ed Ferrero
www.edferrero.com

Using copy and paste I transferred the trendline equation (in this case a
quadratic) from a chart element to a worksheet cell and then subjected it
the
original data to validate it. The resulting values are magnitudes
different
to the orignal data - in the millions, not explained by regression
tolerance,
RHO of 0.998. The x axis values were months - what value does Excel assign
to
months in Charts because the 1900 system values (eg 39643 for 14 Jul 2008)
do
not appear to be ones used?


  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 560
Default Trendline Equations in Excel 2003

On Sun, 13 Jul 2008, in microsoft.public.excel.charting,
tep said:
I tried the scatter plot but still no resemblance to the original data.
Here's what I'm using:
Jun08 Jul08 Aug08 Sep08 Oct08 Nov08 Dec08 Jan09 20.00 35.00 50.70
67.00 77.00 86.00 93.00 95.00
Here's the scatter trend equation that Excel presents:

y = -0.0012x2 + 96.719x - 2E+06

Here's the results from this equation:

Jun08 Jul08 Aug08 Sep08 Oct08 Nov08 Dec08 Jan09
-51,720 -51,670 -51,622 -51,575 -51,533 -51,491 -51,453 -51,415


Small inaccuracies in the displayed numbers will lead to large
inaccuracies in the calculated result. Display the trendline equation to
an accuracy of 14 digits and use those numbers. I just tried this for
you and it works.

Or, abandon the use of Microsoft date format and number the months !, 2,
3 etc. then get a trendline from those. This wil require far fewer
digits to work accurately.

Or, don't use Microsoft Excel charts as an analytic tool when you have a
spreadsheet right there to do the calculating in.

--
Del Cotter
NB Personal replies to this post will send email to ,
which goes to a spam folder-- please send your email to del3 instead.
  #5   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 168
Default Trendline Equations in Excel 2003

Hi Tep,

That equation is highly rounded and will give you very large errors
if used in the way you explain. You could increase the decimal places
to get something a lot closer or you can use worksheet functions to
calculate the equations separately in the spreadsheet.

Take a look at this site.
http://j-walk.com/ss///excel/tips/tip101.htm

HTH
Martin


"tep" wrote in message
...
Thanks Ed Ferrero,
I tried the scatter plot but still no resemblance to the original data.
Here's what I'm using:
Jun08 Jul08 Aug08 Sep08 Oct08 Nov08 Dec08 Jan09 20.00 35.00 50.70
67.00 77.00 86.00 93.00 95.00
Here's the scatter trend equation that Excel presents:

y = -0.0012x2 + 96.719x - 2E+06

Here's the results from this equation:

Jun08 Jul08 Aug08 Sep08 Oct08 Nov08 Dec08 Jan09
-51,720 -51,670 -51,622 -51,575 -51,533 -51,491 -51,453 -51,415

Differences of 50,000 plus.

Here's the Line equation: y = -1.0855x2 + 2843.3x - 2E+06

Here's some of the result for Jun08: -1,591,643,000.00. The results for
the
other month's are similar.

Huge differences.

Your interest in helping me solve or correct what I'm doing is much
appreciated.
Regards,
TEP.


"Ed Ferrero" wrote:

Hi tep,

What Chart Type did you use?

If Line, change it to (x-y)Scatter to get the right result.

Also, how many points in your data? An R-squared of 0.998 may not mean
much
if you do not have sufficient data points.

Ed Ferrero
www.edferrero.com

Using copy and paste I transferred the trendline equation (in this case
a
quadratic) from a chart element to a worksheet cell and then subjected
it
the
original data to validate it. The resulting values are magnitudes
different
to the orignal data - in the millions, not explained by regression
tolerance,
RHO of 0.998. The x axis values were months - what value does Excel
assign
to
months in Charts because the 1900 system values (eg 39643 for 14 Jul
2008)
do
not appear to be ones used?






  #6   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 837
Default Trendline Equations in Excel 2003

Either the data are not exactly as you reported (dates not the 1st of each
month or more figures in the y-values) or you miscopied the fitted equation,
since your linear coefficient differs in the 3rd figure from what the chart
trendline gives for your posted data.

You cannot accurately use the trendline equation for large x values (such as
dates) unless you use unrounded coefficients as Jon suggested.

The chart trendline (from an XY catter chart) coefficients agree with LINEST
to 14 figures and agree with exact coefficients to at least 13 figures, which
gives at least 10-figure accuracy on predicted values. If that accuracy is
not satisfactory, subtracting 39707 (16Sep08) from each date will reduce the
condition number from 3E29 to 1E8, so that far less accuracy will be lost to
finite precision arithmetic.

Jerry

"tep" wrote:

Thanks Ed Ferrero,
I tried the scatter plot but still no resemblance to the original data.
Here's what I'm using:
Jun08 Jul08 Aug08 Sep08 Oct08 Nov08 Dec08 Jan09 20.00 35.00 50.70
67.00 77.00 86.00 93.00 95.00
Here's the scatter trend equation that Excel presents:

y = -0.0012x2 + 96.719x - 2E+06

Here's the results from this equation:

Jun08 Jul08 Aug08 Sep08 Oct08 Nov08 Dec08 Jan09
-51,720 -51,670 -51,622 -51,575 -51,533 -51,491 -51,453 -51,415

Differences of 50,000 plus.

Here's the Line equation: y = -1.0855x2 + 2843.3x - 2E+06

Here's some of the result for Jun08: -1,591,643,000.00. The results for the
other month's are similar.

Huge differences.

Your interest in helping me solve or correct what I'm doing is much
appreciated.
Regards,
TEP.


"Ed Ferrero" wrote:

Hi tep,

What Chart Type did you use?

If Line, change it to (x-y)Scatter to get the right result.

Also, how many points in your data? An R-squared of 0.998 may not mean much
if you do not have sufficient data points.

Ed Ferrero
www.edferrero.com

Using copy and paste I transferred the trendline equation (in this case a
quadratic) from a chart element to a worksheet cell and then subjected it
the
original data to validate it. The resulting values are magnitudes
different
to the orignal data - in the millions, not explained by regression
tolerance,
RHO of 0.998. The x axis values were months - what value does Excel assign
to
months in Charts because the 1900 system values (eg 39643 for 14 Jul 2008)
do
not appear to be ones used?


  #7   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default Trendline Equations in Excel 2003

If you used months as the base unit of a date scale X axis, Excel uses the
number of months since January 1900. If the X axis is a category type, Excel
uses 1 for the first category, 2 for the second, etc. If you want to use
dates, use real dates as the X values, and use a base unit of days, not
months (your display can show the months by using months for major and minor
units). This will give you as good accuracy as using an XY chart with dates
as the X value.

Your trendline formula does not display many digits. Use a scientific number
format with lots of digits, or as someone else has suggested, carry out the
calculations in the worksheet using LINEST.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______



"tep" wrote in message
...
Using copy and paste I transferred the trendline equation (in this case a
quadratic) from a chart element to a worksheet cell and then subjected it
the
original data to validate it. The resulting values are magnitudes
different
to the orignal data - in the millions, not explained by regression
tolerance,
RHO of 0.998. The x axis values were months - what value does Excel assign
to
months in Charts because the 1900 system values (eg 39643 for 14 Jul 2008)
do
not appear to be ones used?



  #8   Report Post  
Posted to microsoft.public.excel.charting
tep tep is offline
external usenet poster
 
Posts: 3
Default Trendline Equations in Excel 2003


Thank you all for your advice.
I will now also attempt to use the functions within Excel to derive the
equation.

"tep" wrote:

Using copy and paste I transferred the trendline equation (in this case a
quadratic) from a chart element to a worksheet cell and then subjected it the
original data to validate it. The resulting values are magnitudes different
to the orignal data - in the millions, not explained by regression tolerance,
RHO of 0.998. The x axis values were months - what value does Excel assign to
months in Charts because the 1900 system values (eg 39643 for 14 Jul 2008) do
not appear to be ones used?

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
Excel 2007 Trendline Equations Incorrect DanB Charts and Charting in Excel 5 May 30th 08 08:47 PM
Trendline Equations [email protected] Excel Discussion (Misc queries) 4 February 15th 08 08:20 PM
How can I put chart trendline equations into a MS Excel cell? BGKeen629 Excel Discussion (Misc queries) 1 August 4th 06 12:31 AM
Trendline Equations Steve Morris Charts and Charting in Excel 1 January 11th 06 04:56 PM
Trendline Equations swissforestry Excel Discussion (Misc queries) 2 November 30th 05 04:12 AM


All times are GMT +1. The time now is 07:35 PM.

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

About Us

"It's about Microsoft Excel"