+ Reply to Thread
Results 1 to 4 of 4

Finding range of linear portion of data

  1. #1
    Registered User
    Join Date
    12-12-2010
    Location
    Athens, OH
    MS-Off Ver
    Excel 2007
    Posts
    9

    Finding range of linear portion of data

    I need to define a best fit line for the linear portion of a set of data so that I can find where this line intersects with another line that I've already defined. This would be easy to do by plotting and using a trendline, however I would have to do this a few thousand times. If I can figure out a way for excel to at least define a range where the data is fairly linear, I can put a line through it. Any ideas? Maybe with a maximum standard deviation? I've attached a picture of a plot of data similar to what I'm using. The line with the negative slope is what I need to define.

    Thanks!
    Attached Images Attached Images

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Finding range of linear portion of data

    You could find the minimum for the horizontal line, and the two points on either side having the maximum radius of curvature. Draw a line through each those points parallel to the pair of points on either side of it, and compute your intersections.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-12-2010
    Location
    Athens, OH
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Finding range of linear portion of data

    I'm not sure I understand what you're saying. The intersections are not the problem, I just need a best-fit line through the linear part of the curve just to the left of the minimum. The range of this linear part changes somewhat with each test I run. If I could just figure out a way for excel to find this range for me, I could use the first derivative of the section to find the slope. I thought maybe I could use a string of IF statements to find a range where the standard deviation of the first derivative is below a value that I decide on, but I feel like it would have to be an iterative process and I'm not real keen on how to do that in Excel. Any thoughts? Anyone?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Finding range of linear portion of data

    How linear is "linear"? How noisy is the data?

    The radius of curvature measures how curved the function is. You could calculate that at every point, and then decide what the "linear" portions of the curve are, and then regress a line through those portions.

    It's hard to make a suggestion for a picture.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1