A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Regions of Constant Slope



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2010, 05:49 PM posted to microsoft.public.excel.misc
lex
external usenet poster
 
Posts: 19
Default Regions of Constant Slope

I have a set of data x, y and want to find regions (or ranges) of "constant"
slope and I want the value of the slope and range x of that "constant" slope.
I'm not exactly sure what I mean by "constant" (note the quotes) but believe
I *may* be able to use RSQ (R-Squared) to define it.

I *believe* I may have to do it in VBA as I want to automate it - but again
- I'm not sure.

Your help is greatly appreciated.

Thank you!

  #2  
Old June 2nd, 2010, 08:32 PM posted to microsoft.public.excel.misc
Tom-S[_2_]
external usenet poster
 
Posts: 68
Default Regions of Constant Slope

The slope between data points can be defined by:

slope = (y2 - y1) / (x2 - x1)

So say your x data is in column A (say A2:A11) and y data in column B (say
B2:B11), the slope between the first 2 points can be defined by a formula in
C3:

=(B3-B2)/(A3-A2)

If you drag fill this formula down to C11, it will give you the slope
between successive pairs of data. Any 2 (or more) successive slope values
that are equal define a region of constant slope. (Since any 2 x.y points can
be joined by a straight line - or constant slope - then you really need at
least 3 x,y points which are joined by the same straight line to define a
'region' of constant slope.)

You can graph the data, using a line graph, to get a quick visual
confirmation of these regions.

Regards,

Tom


"Lex" wrote:

I have a set of data x, y and want to find regions (or ranges) of "constant"
slope and I want the value of the slope and range x of that "constant" slope.
I'm not exactly sure what I mean by "constant" (note the quotes) but believe
I *may* be able to use RSQ (R-Squared) to define it.

I *believe* I may have to do it in VBA as I want to automate it - but again
- I'm not sure.

Your help is greatly appreciated.

Thank you!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:19 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.