| Author |
Topic |
|
SamC
White Water Yakist
3467 Posts |
Posted - 2004-03-18 : 14:00:16
|
I've got data representing counts versus time. Starting at T=0, the counts rise very gradually. There's a no clear peak, and the curve drops to zero in a few hours. The data is asymmetric and doesn't look vaguely gaussian.Gaussian curves are described by: Average and Standard Deviation, but are aggregate functions in SQL.Is there a better representation of a curve that has a zero point, peak and a long tail?SamTime Count0 1885 98010 104515 85120 69225 62030 53835 51840 46945 40750 37655 38760 31065 28170 24475 21780 19285 16690 15395 138100 107105 87110 103115 77120 63125 50130 43135 49140 40145 33150 27155 26160 21165 18170 16175 9180 10185 6190 8195 9200 2205 6210 4215 3220 5225 1230 5235 1240 3245 3250 3255 3260 2265 1270 1275 2280 2290 1300 1310 1355 1 |
|
|
X002548
Not Just a Number
15586 Posts |
Posted - 2004-03-18 : 14:34:14
|
| OK, I gotta ask...what he h_ll are you working on?Spaceflight?Brett8-)EDIT: http://www.duke.edu/~loeb/spring.2000/lab5.htmlStill looking.... |
 |
|
|
SamC
White Water Yakist
3467 Posts |
Posted - 2004-03-18 : 14:51:42
|
| Brett,The numbers represent an event in nature which I cannot disclose.Did you listen to Groove Salad? |
 |
|
|
Arnold Fribble
Yak-finder General
1961 Posts |
Posted - 2004-03-18 : 14:56:09
|
| Looks like LogNormal to me. |
 |
|
|
SamC
White Water Yakist
3467 Posts |
Posted - 2004-03-18 : 15:00:53
|
| A man of few words, but to the point.Off too Google..Looks Lognormal to me (too).So it turns out that Mean and Standard Deviation do apply (to Lognormal curves).But the additional information to describe the shape is the Skewness and the Kurtosis.Learning somethin new every day.Thanks Arnold.Sam |
 |
|
|
Frank Kalis
Constraint Violating Yak Guru
413 Posts |
Posted - 2004-03-18 : 16:07:11
|
| As your links refer to risk glossary, just out of professional curiosity may I ask what you are working on? Some kind of financial risk management package?--Frankhttp://www.insidesql.de |
 |
|
|
SamC
White Water Yakist
3467 Posts |
Posted - 2004-03-18 : 16:17:15
|
| Nothing financial about the numbers at all. I'm reserved about going into detail about what the numbers actually represent, but I will say the numbers represent "usage". I was looking for a way to characterize the curve verbally (mean, Std Dev, etc.) without using a graphic or visual aids.Of course, a stored procedure will calculate the curve parameters.I think I have found what I was after.Sam |
 |
|
|
Frank Kalis
Constraint Violating Yak Guru
413 Posts |
Posted - 2004-03-18 : 16:26:17
|
Actually I was not interested in the number you provided. Just because the terms you've used are quite familiar to my daily work, although I really guess no one outside the ivory tower cares in his investment decisions for such abstract constructions. But if you are working on a formula that will exactly predict where some stock index will end this year, I'll organize the money, you the formula and we meet on the Cayman's. OK? --Frankhttp://www.insidesql.de |
 |
|
|
SamC
White Water Yakist
3467 Posts |
Posted - 2004-03-18 : 16:38:37
|
| I'm there good buddy. Margaritas and palm trees. All we need is an *exact* predictor. Should be easy. |
 |
|
|
Frank Kalis
Constraint Violating Yak Guru
413 Posts |
Posted - 2004-03-18 : 16:45:58
|
| Ok, I can liquidate some 1 billion Euro quite easily. That's enough for drinks and aspirine.--Frankhttp://www.insidesql.de |
 |
|
|
Frank Kalis
Constraint Violating Yak Guru
413 Posts |
Posted - 2004-03-19 : 01:52:57
|
Just for completeness. Here is some fine TSQL code for skewness and curtosis from SQL Server MVP Steve Kass.select sum((qty-mean)*square(qty-mean) /(N*sigma*square(sigma))) as skew, sum(square(square(qty-mean)) /(N*square(square(sigma))))-3 as ExcessKurtosisfrom pubs..sales,( select avg(qty) as mean, stdev(qty) as sigma, count(qty) as N from pubs..sales) Sskew ExcessKurtosis ----------------------------------------------------- ----------------------------------------------------- 1.5653251929405994 2.4599827492380095(1 row(s) affected) The original code along with some other very interesting stuff you'll find here http://www.users.drew.edu/skass/sql/SkewKurtosis.sql.txt--Frankhttp://www.insidesql.de |
 |
|
|
SamC
White Water Yakist
3467 Posts |
Posted - 2004-03-19 : 08:22:10
|
| "Skewness" and "Curtosis" are names that are suggestive of personal characterizations. One day, they'll show up on a singles website.Curtosis is an obvious factor that describes height to girth. You could filter out single candidates using weight and curtosis.But "Skewness" while it could describe a physical imbalance would be a more appropriate characterization of a psychological element ......For example, a skewness of zero might be a boring, but the most interesting people have a moderate skewness with solid emotional center. Large variances in skewness could be wierd or scary.All that's needed is an *exact* equation. |
 |
|
|
Frank Kalis
Constraint Violating Yak Guru
413 Posts |
Posted - 2004-03-19 : 08:27:36
|
--Frankhttp://www.insidesql.de |
 |
|
|
|