PDA

View Full Version : Return of Investment (ROI)



cryuff
04-30-2009, 11:17 PM
Trying to write a stat for return on my investments.

The total in the pot at showdown is $9.
My share in the pot is $4.
For $4 my return is $5

If I won, my ROI should be $5/$4 = 1.25



(Thats my thought process, an argument can be made that the money in the pot is not yours so: For $4 my return is actually $9.)

For my calculations I want to use the first ROI.


I think I made a misstep somewhere.

Stat GroupName="Default" ColumnName="ROI" ValueExpressions="Sum(PHMISC.BetAmountPreflop+PHMISC.CallAmountPrefl op+PHMISC.PostAmountPreflop) as PutInPreflop;
Sum(FLOP.BetAmount+FLOP.CallAmount) as PutInFlop;
sum(TURN.BetAmount+TURN.CallAmount) as PutInTurn;
+sum(RIVER.BetAmount+RIVER.CallAmount) as PutInRiver;
Sum(ph.NetAmountWon)/100 as NetWon"
Evaluate="NetWon/((PutInPreflop+PutInFlop+PutInTurn+PutInRiver)/100)" ColumnHeader="ROI" ColumnFormat="0.000" ColumnWidth="*" Tooltip="Total Return of Investment" /

cryuff
05-01-2009, 12:35 AM
Think I got it,

<Stat GroupName="Default" ColumnName="ROI"

ValueExpressions="Sum(PHMISC.BetAmountPreflop+PHMISC.CallAmountPref

lop+PHMISC.PostAmountPreflop) as

PutInPreflop;Sum(FLOP.BetAmount+FLOP.CallAmount) as

PutInFlop;sum(TURN.BetAmount+TURN.CallAmount) as

PutInTurn;+sum(RIVER.BetAmount+RIVER.CallAmount) as

PutInRiver;Sum(ph.NetAmountWon) as NetWon"

Evaluate="NetWon/(PutInPreflop+PutInFlop+PutInTurn+PutInRiver)"

ColumnHeader="ROI" ColumnFormat="0.000" ColumnWidth="*" Tooltip="Total

Return of Investment" />


----------------------------------------------------------------------------

The formula for return of investment: Gain - Cost / Cost = (9-4) - 4 /4 = .25

So I think I am missusing the term ROI but the results above is what I wanted.