+ Reply to Thread
Results 1 to 13 of 13

Peak and Valley points of multiple stepped curve in Excel graph

  1. #1
    Registered User
    Join Date
    07-30-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    7

    Post Peak and Valley points of multiple stepped curve in Excel graph

    Hi All,

    Please see attached picture of the test output graph. I have got around 8000 data points for X and Y as output from the test machine. I need to find the points for Peak and Valley of these (sudden drop) steps. I intend to calculate the Delta Y values for these steps. It is okay to use either the graphical method or the data points from the x and y column.

    Please suggest a solution. I also want to know the possiblity of deleoping a macro so that a user can copy paste the two columns and program automatically calculates the sum of Delta Y of the steps.

    Regards,
    Venkat
    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
    2010, 2019
    Posts
    40,689

    Re: Peak and Valley points of multiple stepped curve in Excel graph

    How could someone suggest or test a solution on a picture?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    07-30-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    7

    Exclamation Re: Peak and Valley points of multiple stepped curve in Excel graph

    @shg,

    Thanks for asking that question. Please see the attached test output excel sheet. I have plotted a graph using these data points. I need to find the Delta Y values for the steps. Let me know if you need more clarification.

    Regards,
    Venkat
    Attached Files Attached Files

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

    Re: Peak and Valley points of multiple stepped curve in Excel graph

    Do you really mean find the points where the slope ascends and descends through -45 degrees, or the points where the second derivative changes signs, or something else?

  5. #5
    Registered User
    Join Date
    07-30-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Peak and Valley points of multiple stepped curve in Excel graph

    Thank you shg. If you see the stepcurve.jpg, there are four steps where the X values stays almost constant and Y values increase rapidly. I need to find the beginning and end of this phenomina. Delta Y for all these four steps needed.

    Regards,
    Venkat

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

    Re: Peak and Valley points of multiple stepped curve in Excel graph

    Then the points of interest are where the maximum (negative) slopes ocur?

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,460

    Re: Peak and Valley points of multiple stepped curve in Excel graph

    I'm not yet sure exactly how I'd do it, but my first thought was like shg's - use the first and maybe second derivatives to locate the "steps". The devil is in the details, but the basic idea might look like:

    1) calculate 1st and 2nd derivative
    2) steps begin/end where the spikes are in the 2nd derivative.
    3) Having located the spikes in the 2nd derivative, delta y is simply y2-y1. the hardest part here is returning the y's at the corresponding spikes in the 2nd derivative.

  8. #8
    Registered User
    Join Date
    07-30-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    7

    Question Re: Peak and Valley points of multiple stepped curve in Excel graph

    Hi shg and MrShorty

    Thank you for your ideas. Based on your suggestion I have calculated the 1st and 2nd derivative.Also plotted a Graph with Second derivative in Y-axis and input revolutions values in X axis. I am not sure how to find the corresponding (X,Y) values for the spikes in the second derivative graph. How do I do that?

    Regards,
    Venkat
    Attached Files Attached Files

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

    Re: Peak and Valley points of multiple stepped curve in Excel graph

    Rather than comment on that, may I ask ....

    Overall, the line slopes downward at about 45 degrees (slope ~ =0.98)

    If it were rotated to horizontal, would the points of interest be the minima and maxima?

    Or the same thing, stated another way: Would the points of interest be those that are the maximum distance from a linear trendline (which you could add to see)?
    Last edited by shg; 08-01-2012 at 07:27 PM.

  10. #10
    Registered User
    Join Date
    07-30-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Peak and Valley points of multiple stepped curve in Excel graph

    I like the concept but the Delta Y will not be the same if we rotate the graph.

    I like to go by the Graphical approach. If there is a way to make the Grids (X and Y axis equal scale) square in Excel then I can plot this graph and print it. Then the peak points can be traced approximately.

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

    Re: Peak and Valley points of multiple stepped curve in Excel graph

    Assume for the moment that the correct delta Y can be calculated. My question is, are those the points of interest?

  12. #12
    Registered User
    Join Date
    07-30-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Peak and Valley points of multiple stepped curve in Excel graph

    Yes. Those are the points of interest...

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

    Re: Peak and Valley points of multiple stepped curve in Excel graph

    Take a look at the attachment. It's visually clear where the points of interest are in sample2, not so much in sample1. Those two graphs would be a good choice for annotating and pasting as a pictures, along with some supporting rationale ...
    Attached Files Attached Files
    Last edited by shg; 08-02-2012 at 12:35 AM.

+ 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