Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Standard Deviation of Transitions

I have an object that tracks annual transitions from one rating category to another, based on the rating start and end date.

Below is the formula used to produce the transition.

sum(

if(#FirstDate<#Pools

and #LastDate>=#Pools

and [Rating Symbol Sort]<=21

and #EOPFirstDate<AddYears(#Pools,1)

and #EOPLastDate>=AddYears(#Pools,1)

and #Pools<=addyears('1/1/2014',-1)

,1,0))

/sum(TOTAL<[RatingCategory],Pools>

if(#FirstDate<#Pools

and #LastDate>=#Pools

and [Rating Symbol Sort]<=21

and #EOPFirstDate<AddYears(#Pools,1)

and #EOPLastDate>=AddYears(#Pools,1)

and #Pools<=addyears('1/1/2014',-1)

,1,0))

There are three tables involved:

BOP:

#FirstDate                     Start Date of the Rating

#LastDate                     End Date of the Rating

Rating Symbol Sort        Numerical Rank of the Rating

RatingCategory              Display Name of the Rating

EOP:

#EOPFirstDate                Start Date of the Rating

#EOPLastDate                End Date of the Rating

Pools:

#Pools                          List of N January Firsts in Numerical Form

Pools                              List of N January Firsts in Display Form

I need to calculate the standard deviation of the transitions, and can't figure out how to do it.

Please, any help would be greatly appreciated.

Thank you,

Econatog

7 Replies
Gysbert_Wassenaar

Your tables seem to have no fields in common. That would mean your sum expression would be working on cartesian products. The results would be meaningless. And so would any stdev.


talk is cheap, supply exceeds demand
Not applicable
Author

Forgot the common field, and have added it below.

BOP:

#FirstDate                     Start Date of the Rating

#LastDate                     End Date of the Rating

Rating Symbol Sort        Numerical Rank of the Rating

RatingCategory              Display Name of the Rating

EntityID

EOP:

#EOPFirstDate                Start Date of the Rating

#EOPLastDate                End Date of the Rating

EntityID

Pools:

#Pools                          List of N January Firsts in Numerical Form

Pools                              List of N January Firsts in Display Form

Gysbert_Wassenaar

Does the table Pools contain only one record? Or are you still working with cartesian products?


talk is cheap, supply exceeds demand
Not applicable
Author

Pools contains a list of dates. For this example, say each January first from 2000 to 2013.

Not applicable
Author

Any new ideas? Trying to beat a deadline

Gysbert_Wassenaar

No, because I have no idea what you're trying to do. As far as I can tell you want to do something with sets of data that result in a cartesian product. I don't think that will ever result in something useful, but good luck anyway.


talk is cheap, supply exceeds demand
Not applicable
Author

This is the result of of of these formula:

QWERTYUIO
Q0.870.080.010.000.000.000.000.000.04
W0.000.840.100.010.000.000.000.000.05
E0.000.020.880.050.000.000.000.000.05
R0.000.000.030.860.040.010.000.000.07
T0.000.000.000.050.760.070.000.010.10
Y0.000.000.000.000.060.730.050.030.12
U0.000.000.000.000.000.160.400.280.16

The Q to Q transition represents the ending Qs divided by the starting Qs from the N years in Pools.

I need to calculate the standard deviation of each of those ratios.