Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sara Beaver
 
Posts: n/a
Default finding unknown from a line of best fit

Is there a way to use the formula and the line of best fit to plot a point on
the line using the y-value of an unknown in order to find the precise
location of the x-value?
  #2   Report Post  
Tushar Mehta
 
Posts: n/a
Default finding unknown from a line of best fit

Knowing y doesn't make it easy to find an unique x. Effectively, one
has invert the function y=f(x) to get x=g(y). Except in a few cases
such as a linear function, that will not lead to a unique solution. For
example, the simple y=x^2 yields 2 x values for any given positive y.

That said, you can get the equation of a line into a XL worksheet range.
Dave Braden has posted code that I enhanced to do just that. Search the
google.com archives of the XL NGs.

You can also directly get the equation of the line of best fit. See
Trendline coefficients
http://www.tushar-mehta.com/excel/ti...efficients.htm

Finally, for a readymade solution that gives you the result in an
interactive fashion see
Interactive Chart
http://www.tushar-
mehta.com/excel/software/interactive_chart_display/index.html


--
Regards,

Tushar Mehta
www.tushar-mehta.com
Multi-disciplinary business expertise
+ Technology skills
= Optimal solution to your business problem
Recipient Microsoft MVP award 2000-2005

In article ,
says...
Is there a way to use the formula and the line of best fit to plot a point on
the line using the y-value of an unknown in order to find the precise
location of the x-value?

  #3   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default finding unknown from a line of best fit

For a linear or quadratic, inverting y=f(x) is simple algebra. Cubic or
quartic polynomials are not as simple, but
http://mathforum.org/dr.math/faq/faq...equations.html
should get you started.

There is no general algebraic solution to higher order polynomials, and
no requirement that there be a closed form inverse of a general function.

Given the functional relationship, you can numerically invert at a given
point using Solver.

If your "best fit" line is the smoothed line connecting the points
instead of a least squares trendline, then Excel appears to use cubic
splines for smoothing.

Jerry

Sara Beaver wrote:

Is there a way to use the formula and the line of best fit to plot a point on
the line using the y-value of an unknown in order to find the precise
location of the x-value?


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
How do I find an unknown value on a line made from known data? brendas182 Excel Discussion (Misc queries) 2 June 30th 05 03:33 AM
coloring overy other line without doing so line by line gen Excel Worksheet Functions 5 April 1st 05 10:38 PM
Line chart - date line association gone mad! Johannes Czernin Charts and Charting in Excel 5 January 17th 05 08:48 PM
Macro - Skipping a line PaulPoll Excel Worksheet Functions 4 December 21st 04 12:43 AM
pivot table multi line chart souris Charts and Charting in Excel 2 December 7th 04 03:56 AM


All times are GMT +1. The time now is 02:14 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"