NexusFi: Find Your Edge


Home Menu

 





How advanced mathematics and gaming theory can help you as a trader


Discussion in Psychology and Money Management

Updated
      Top Posters
    1. looks_one Fat Tails with 58 posts (127 thanks)
    2. looks_two RM99 with 18 posts (27 thanks)
    3. looks_3 worldwary with 10 posts (19 thanks)
    4. looks_4 Nickemp with 7 posts (15 thanks)
      Best Posters
    1. looks_one MXASJ with 3.5 thanks per post
    2. looks_two Fat Tails with 2.2 thanks per post
    3. looks_3 worldwary with 1.9 thanks per post
    4. looks_4 RM99 with 1.5 thanks per post
    1. trending_up 64,710 views
    2. thumb_up 290 thanks given
    3. group 65 followers
    1. forum 204 posts
    2. attach_file 16 attachments




 
Search this Thread

How advanced mathematics and gaming theory can help you as a trader

  #121 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


Arpad View Post
@Fat Tails,

This does not double your expectancy.

Expectancy =

(Average Profit * Probability of Winning) – (Average Loss * Probability of Losing)
–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Average Risk amount (or Average Loss)

So your expectancy in your example is always 0.2, regardless of bet size.
Expectancy is a measure of your trading system, it is based on Win Rate and Reward:Risk ratio, nothing else. It has nothing to do with bet size or position size percent.

Hi Arpad,

please look up the defintion of the expectancy (or mathematical expectation). You will find it in the trader's wiki here as well. It is not a ratio but an absolute value. The definition is

expectancy = winning probability * average winning trade - losing probability * average losing trade

This means that it is a $ amount. If you double your bet size this will neither change your winning nor your losing probability, but it will double the $ amount of your average winning trade and your average losing trade.

Doubling the bet size will therefore double your expectancy or mathematical expectation.

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
Quant vue
Trading Reviews and Vendors
How to apply profiles
Traders Hideout
 
  #122 (permalink)
 
Arpad's Avatar
 Arpad 
Hungary
 
Experience: Beginner
Platform: N/A
Trading: Forex
Posts: 34 since Dec 2010
Thanks Given: 145
Thanks Received: 9

You could look at expectancy as a measure of the average profit, as you say and as it is stated on the wiki of this website.
You could, if it makes sense. Probably it does.
However, another approach is at least as rational as the above:
the measure of your system, so what your systems money making capability is.

I came across the term expectancy while reading Van Tharp. He used the formula you have mentioned in the first edition of ‘Trade your way to financial freedom’, but he corrected it later.
So the formula cited by me in my previous post is from Van Tharp, after correction.

It makes more sense to me as a measure of ROI of your system.

Reply With Quote
  #123 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103



Arpad View Post
You could look at expectancy as a measure of the average profit, as you say and as it is stated on the wiki of this website.
You could, if it makes sense. Probably it does.
However, another approach is at least as rational as the above:
the measure of your system, so what your systems money making capability is.

I came across the term expectancy while reading Van Tharp. He used the formula you have mentioned in the first edition of ‘Trade your way to financial freedom’, but he corrected it later.
So the formula cited by me in my previous post is from Van Tharp, after correction.

It makes more sense to me as a measure of ROI of your system.

Hi Arpad,

thank you for your answer. As I have the 2nd edition of the book by van Tharp, I have checked his definitions for the expectancy. Indeed, he defines expectancy as the "mean R Multiple".

Mathematically, this is false. Mathematically the expectation is the arithmetic average of a random variable defined over a probability space. The expectation depends on two different factors

-> the winning probability
-> the size of the average winning trade versus the average losing trade

Now let us look at Van Tharp's definition. He divides the mathematical expectation by the factor, which is the amount risked, and declares that this is the expectancy. In doing so, he commits several errors:

(1) Let us look at his example with the marbles (pages 197 ff). He compares two cases with an "expectancy" of 0.2 R and 0.78 R. His results do not make sense, because he has selected R arbitrarily. In his first example all losing trades produce a loss of 1 R, in his second example the losers produce losses of 1, 2 and 3 R. This is totally inconsistent, as for the second case he should have used one of two possible approaches

(a) Define R as the maximum loss. In this case 3R becomes the real R and his "expectancy" should only be 0.26 R, and not 0.78 R

(b) Define R as the average loss (as you did in your definition). In this case 1.28 R becomes the real R and his "expectancy" should be 0.61 R

This was just to show that he does not properly use his own concept. Typically to evaluate any system you would rather use the maximum drawdown or loss within a given confidence limit rather than any average. So the second marble system may be still superior to the first, but Van Tharps results are false.

(2) If you look at a ratio - as van Tharp does - you introduce the concept of leverage. A reward-to-risk ratio assumes that a favorable ratio can be used to generate better returns than an approach with higher absolute returns, but a higher inherent risk. This is true if you use leverage. Once you decide to use leverage, the next question is how much leverage you use. The most common approach to this question is a fixed fractional position sizing, which is based on an optimal f, which in turn depends on the probability distribution.

Without going into further details, it can be shown that the performance of a system should be judged against the geometric mean of its returns. The geometric mean can be approximated by using the arithmetic mean and the standard deviation, which is a measure of dispersion. The concept of the R-Multiple does not correctly catch the dispersion of results, so basically the method can not produce any valid comparisons of two leveraged systems.

So at best Van Tharp introduces a set of simple ideas, such as the R-Multiple, which help beginning traders to overcome some of the psychological difficulties of trading, such as loss aversion. Loss aversion will let cut you profits short and let your losers run. Judging trades against R-Multiples is a highly effective medicine against loss aversion. The concepts presented by Van Tharp therefore have a high practical value as they address psychological difficulties faced by traders.

Mathematically his approach, the definitions and examples are mostly flawed.

Reply With Quote
  #124 (permalink)
 
Arpad's Avatar
 Arpad 
Hungary
 
Experience: Beginner
Platform: N/A
Trading: Forex
Posts: 34 since Dec 2010
Thanks Given: 145
Thanks Received: 9

Hi Fat Tails,

Thanks for clarifying things.

In a later study Van Tharp introduced the System Quality Number:

SQN = (Expectancy / Standard Deviation of R) * square root of Number of Trades

You can choose a time period for the number of trades. It’s arbitrary.
It’s obvious if you have short time frame system it will look much better compared to a long time frame system. In one respect this is OK, because you want to know how much money can your system make in a given time period. On the other hand, you will not get a real measure of your system if you want to compare systems across categories, i.e. you want to compare a day trading system to a swing trading system.

However, I think you could omit the second part of the above equation, and use only SQN = (Expectancy / Standard Deviation of R).

But if you only observe one kind of systems (e.g. only swing trading systems based on daily close price, or only 5 min. day trading systems), you could use the complete formula:
· SQN = (Expectancy / Standard Deviation of R) * square root of Number of Trades
· or you could use the shortened formula SQN = (Expectancy / Standard Deviation of R) and Expectunity, which is Expectancy * Opportunity.
In fact these two are nearly the same.


What do you think?
What would be the best equation to measure a system?

Reply With Quote
Thanked by:
  #125 (permalink)
 
Lornz's Avatar
 Lornz 
Oslo, Norway
 
Experience: Advanced
Platform: CQG, Excel
Trading: CL
Posts: 1,193 since Apr 2010


Arpad View Post

What do you think?
What would be the best equation to measure a system?

Trading account > Initial deposit = Profitable system

Visit my NexusFi Trade Journal Reply With Quote
  #126 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,103


Arpad View Post
Hi Fat Tails,

Thanks for clarifying things.

In a later study Van Tharp introduced the System Quality Number:

SQN = (Expectancy / Standard Deviation of R) * square root of Number of Trades

You can choose a time period for the number of trades. It’s arbitrary.
It’s obvious if you have short time frame system it will look much better compared to a long time frame system. In one respect this is OK, because you want to know how much money can your system make in a given time period. On the other hand, you will not get a real measure of your system if you want to compare systems across categories, i.e. you want to compare a day trading system to a swing trading system.

However, I think you could omit the second part of the above equation, and use only SQN = (Expectancy / Standard Deviation of R).

But if you only observe one kind of systems (e.g. only swing trading systems based on daily close price, or only 5 min. day trading systems), you could use the complete formula:
· SQN = (Expectancy / Standard Deviation of R) * square root of Number of Trades
· or you could use the shortened formula SQN = (Expectancy / Standard Deviation of R) and Expectunity, which is Expectancy * Opportunity.
In fact these two are nearly the same.


What do you think?
What would be the best equation to measure a system?

Van Tharp's definition of the System Quality Number uses his own definition of th expectancy, which is based on the R-multiples. As I have stated, I do not understand, what is R, it seems to be an arbitrary measure. So I am not familiar with his concept, and would first have to try to understand it.

If you look at any system - assuming that returns are reinvested and that position size is calculated on a fixed fractional basis - there are two parameters that should be used

(a) Return: geometrical mean of cumulated returns over the total holding period
(b) Risk: largest observed drawdown

The largest observed drawdown is not R, because it is the result of a string of (mostly) losing trades.

For the geometric mean I would use the following approximation: Geometric mean = SQRT (Arithmetic Mean x Arithmetic Mean - Variance). Divide this by the largest drawdown and you get a measure for the system quality. If you compare this to the formula of Van Tharp, it uses similar input variables!

SQN = E * SQRT(N) / (AL * SD)

RAGM = SQRT(E * E - SD * SD) / LDD

where

E = mathematical expectation
AL = average loss or R (as defined by Van Tharp)
SD = standard deviations of return
LDD = largest observed drawdown
N = number of trades

Criticism:

-> E/SD is not a good proxy for the geometric mean
-> AL is not a good proxy for the drawdown
-> SQRT(N) has been added to emphasize the sample size

The system quality number could be a rule of thumb method, rather than a method based on the risk adjusted geometric mean. But as I said before, I do not know how it was derived.

Reply With Quote
Thanked by:
  #127 (permalink)
 
Silver Dragon's Avatar
 Silver Dragon 
Cincinnati Ohio
Legendary Master Data Manipulator
 
Experience: Intermediate
Platform: TastyWorks / NT
Broker: TastyWorks /NT
Trading: FX, Stocks, Options
Posts: 2,107 since Feb 2011
Thanks Given: 6,422
Thanks Received: 5,238

For all the data geeks in the room, myself included:

22 Free Tools for Data Visualization and Analysis | PCWorld Business Center


Enjoy!

SD

nosce te ipsum

You make your own opportunities in life.
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #128 (permalink)
 
sharky's Avatar
 sharky 
MIAMI,FL
Legendary Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, tradingview
Broker: Private
Trading: Crypto and natural gas
Posts: 1,063 since Jun 2009
Thanks Given: 625
Thanks Received: 3,906

well i think going to the casino is a waste of money unless your just going for pleasure,i spend my money at the movies or shopping so there really is no difference we are both doing something we enjoy,and @Fat Tails your a pretty smart guy...sharky

KILLING THE MARKETS DAILY
Visit my NexusFi Trade Journal Reply With Quote
  #129 (permalink)
dkrumholz
Trenton, NJ
 
Posts: 2 since May 2011
Thanks Given: 0
Thanks Received: 1

I believe that you are 100% correct except for the fact that every table has a maximum bet, preventing an indefinite execution of the plan. The casino also has the right to refuse any bet.

Reply With Quote
  #130 (permalink)
 gparkis 
New York City, NY/USA
 
Experience: Intermediate
Platform: NT
Trading: 6E, ZN, CL
Posts: 121 since Dec 2010
Thanks Given: 3
Thanks Received: 74


betting on binomial does work if:
1. your winns are greater then your losses.
2. you have a fixed number of trades a day.

The second part is the part most people can not deal with because they actual think they have some intelligent design that will beat world psychology.

Reply With Quote




Last Updated on April 18, 2020


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts