Do not use on any
shared computer
August 29, 2008 02:48pm pdt
 
[x]
Attachment Details

Trend analysis

Tags: trend, analysis, sql
I have some stat based data in a table ... I would like to query for ranges in an attempt to do some correlation.

EX:
Table measurements
pkMeasurmentId int
Subject string
Time DateTime
Value double

All values are between 0 and 1

my data has dips and troughs ... I would like to narrow these dips and troughs and get there size ...

ex:
....
....
.... trend coming down
1:00 .23
1:02 .27
1:03 .25
1:05 .29
1:07 .28
1:08 .31
1:09 .35
1:11 .41
1:12 .42
1:13 .45
1:15 .48
1:17 .45
1:19 .44
1:20 .42
1:21 .43
1:23 .39
1:25 .37

what I want to query for here is my large points of change in directionality (1:00 and 1:15) ... Yes I know I could use max and min if I wanted to specify an appropriate time window but I dont want to do this I want to find multiples of these types of numbers in the set (i.e. there can be 3-4 directionality changes in the set).

I know how to do this in code on my own using curve fitting but figured there might be a way to do this in SQL? as the data is already in SQL this would be a bit easier than me reading it out and doing libear calculations on it. Suggestions for linear analysis are welcomed as well (hence put in the math section)
Start your free trial to view this solution
Question Stats
Zone: Microsoft
Question Asked By: gregoryyoung
Question Asked On: 06.26.2007
Participating Experts: 3
Points: 500
Views: 0
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by aburr

Rank: Wizard

Expert Comment by aburr:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by harfang

Rank: Master

Expert Comment by harfang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by gregoryyoung
Administrative Comment by gregoryyoung:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by harfang

Rank: Master

Expert Comment by harfang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by PaulCaswell
Expert Comment by PaulCaswell:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by gregoryyoung
Author Comment by gregoryyoung:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by gregoryyoung
Author Comment by gregoryyoung:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by harfang

Rank: Master

Expert Comment by harfang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by gregoryyoung
Administrative Comment by gregoryyoung:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by harfang

Rank: Master

Expert Comment by harfang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by gregoryyoung
Administrative Comment by gregoryyoung:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by harfang

Rank: Master

Expert Comment by harfang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by gregoryyoung
Author Comment by gregoryyoung:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by harfang

Rank: Master

Expert Comment by harfang:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Administrative Comment by gregoryyoung
Administrative Comment by gregoryyoung:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080723-EE-VQP-34