<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Forex Software — New statistics: P-value]]></title>
		<link>https://forexsb.com/forum/topic/6978/new-statistics-pvalue/</link>
		<atom:link href="https://forexsb.com/forum/feed/rss/topic/6978/" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in New statistics: P-value.]]></description>
		<lastBuildDate>Sun, 05 Nov 2017 10:07:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/47417/#p47417</link>
			<description><![CDATA[<p>1. Good catch, sleytus! They really are the same if there&#039;s a profitable strat and there are more than 30 trades. Calculation on &quot;the outside&quot; look different but same variables are used. I can&#039;t now really give a mathematical reason for this... But it looks to me that it&#039;s better to drop the T-ratio as it has no value.</p><p>2. You mean like for strategies? Good strategies from an equity curve point of view?</p><p>3. Almost. P-value shows statistical significance with a degree of probability. The threshold is actually more or less arbitrary (sorry statisticians for loose understanding and use of words). It depends on the field of study and the test procedure and so on, but usually the statistical significance starts from 0.05 or 5%, the lower it is, the better. In essence, yes, the idea is to reject strats, which luck into winning and/or are heavily biased.</p><p>4. There&#039;s no metric in this sense, it is strat&#039;s mean in relation to bootstrapped distribution. If the mean location is on the edge of the distribution curve and the area, which follows it, is less than 5% of the remaining area, one can conclude the results are statistically significant, in other words it cannot be due to luck or chance to have such outstanding result. That&#039;s the idea.</p><p>5. It is fresh out of the oven, I haven&#039;t had time to put it through its paces. I know it works, it produces numbers I deem ok. But I haven&#039;t made proper evaluation on selected collections and further analysis. Firstly, 0.05 mark is the starting point, everything above it should be rubbish, so that will be an interesting test to see and find out.</p><p>6. Last answer applies to this as well.</p><p>7. Currently, only relation is the underlying data that is equity curve. Certainly, a statist. significant start will produce a high sqn also, so there is this correlation. Let me put it this way - it remains to be seen if the concept of statistical significance is of value to algorithmic strategy mining <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I have some coding tasks to finish first and then I&#039;m delving deeper in testing and then we can compare notes, hopefully.</p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Sun, 05 Nov 2017 10:07:55 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/47417/#p47417</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/47413/#p47413</link>
			<description><![CDATA[<p>Thanks, footon.</p><p>I&#039;ve updated my AccountStatistics.cs and started poking around.&nbsp; And I have a several questions:</p><p>1. The T-Ratio that I&#039;m getting is *exactly* the same as the SQN.&nbsp; Do you get that also?</p><p>2. My P-values are always 0.00.</p><p>3. I have a pretty good feeling for how to use and compare SQN and sharpe values -- though I couldn&#039;t come up with the formulas on the top of my head.&nbsp; From previous posts, it sounds like the &quot;simple-man&#039;s&quot; description for a p-value is the probability a result is strictly due to chance -- i.e. they should range between [0,100].&nbsp; Is that correct?</p><p>4. And if it is a probability, then which metric or metrics does it refer to?&nbsp; Does it refer to the overall result?</p><p>5. In your hands, what kind of P-values are you seeing.&nbsp; I have no reference.&nbsp; I have no idea what it means to have a good or bad P-value or how to use the value in making a decision about a strategy.</p><p>6. Suppose you had a winning strategy -- i.e. it made money.&nbsp; But the P-value was high, indicating it was likely due to luck.&nbsp; Would you stop trading that strategy?&nbsp; And, if not, then I&#039;m curious how one would use this metric to make decisions.&nbsp; </p><p>7. The P-value seems related to SQN -- how would you compare them?</p><p>Sorry for all the questions -- feel free to tell me to do my own Googling and I&#039;d understand.&nbsp; I guess the most important questions for me at the moment are (a) why all the P-values are 0.00, and (b) what kind of range of P-values are you seeing?</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (sleytus)]]></author>
			<pubDate>Sun, 05 Nov 2017 05:35:30 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/47413/#p47413</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/47412/#p47412</link>
			<description><![CDATA[<p>I have the p-value done. </p><p>I read through quite a number of statistical articles and to some questions I found answers, but only to realize that those answers raise even more questions. Anyhow, after number of tests I settled with the current p-value calculation. I didn&#039;t use t-ratio for the calc as it uses a table of corresponding p-values. Instead it resamples the returns using bootstrapping method. Some papers, which actually lack scientific validity, use returns as they are, but for the sake of more reliable results I zero-centered the returns.</p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Sat, 04 Nov 2017 23:02:58 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/47412/#p47412</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46981/#p46981</link>
			<description><![CDATA[<p>Hi, Footon, you&#039;ve been too fast! :-) I read your formula but the benchmark does not get me back. I found a document that could answer our questions: we find the T test, the P value, and the adjustment for the portfolio. I&#039;ve already tested the values that go back to chapter &quot;AN EXAMPLE WITH STANDARD<br />AND I LOVE CAPITAL IQ &quot;and I&#039;ve solved it without problems. I&#039;m waiting for your reading to discuss. I appreciate this document as the authors refer to some quant, I think it&#039;s a good starting point.</p>]]></description>
			<author><![CDATA[null@example.com (D5QM54S7)]]></author>
			<pubDate>Thu, 12 Oct 2017 22:58:51 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46981/#p46981</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46973/#p46973</link>
			<description><![CDATA[<p>I based the calculation on info found here - <a href="http://jukebox.esc13.net/untdeveloper/RM/Stats_Module_4/mobile_pages/Stats_Module_49.html">http://jukebox.esc13.net/untdeveloper/R … le_49.html</a></p><p>My theoretical thinking leads me to an opinion that the mean value should be compared to a benchmark, I&#039;m talking about this formula:<br /><span class="postimg"><img src="http://jukebox.esc13.net/untdeveloper/RM/Stats_Module_4/lessonimages/equation_image41.gif" alt="http://jukebox.esc13.net/untdeveloper/RM/Stats_Module_4/lessonimages/equation_image41.gif" /></span></p><p>If now it is &quot;mean - 0&quot;, I think it should be &quot;mean - benchmark&quot;. Would like to hear what other statisticians are thinking <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Thu, 12 Oct 2017 18:02:19 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46973/#p46973</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46970/#p46970</link>
			<description><![CDATA[<p>First step is done - t-ratio.</p><p>File goes into Code folder, custom code reload has to be enabled in control panel.</p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Thu, 12 Oct 2017 17:58:12 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46970/#p46970</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46939/#p46939</link>
			<description><![CDATA[<p>comment.<br />I really appreciate this discussion.</p><p>thank you</p>]]></description>
			<author><![CDATA[null@example.com (Blaiserboy)]]></author>
			<pubDate>Wed, 11 Oct 2017 18:15:31 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46939/#p46939</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46938/#p46938</link>
			<description><![CDATA[<p>&quot;Trading systems and methods&quot; (Perry J. Kaufman)<br />When fewer prices or trades are used in a distribution, we can expect the shape of the curve to be more variable. For example, it may be spread out so that the peak of the distribution will be lower and the tails will be higher.<br />How do you know if your trading system has an edge or whether it&#039;s just random luck?<br />A way of measuring how close the sample distribution of a smaller set is to the normal distribution is to use the t-statistic.<br />When testing a trading system, degrees of freedom can be the number of trades produced by the strategy. When you have few trades, the results may not represent what you will get using a longer trading history. When testing a strategy, you will find a similar relationship between the number of trades and the number of parameters, or variables, used in the strategy: more variables used, the more trades are needed to create expectations with an acceptable confi dence level.<br />When using the t-test to find the consistency of profi ts and losses generated by a trading system, replace the data items by the net returns of each trade, the number of data items by the number of trades.<br />&quot;The Art and Science of Technical Analysis&quot; (Adam Grimes) modified by Grove Under<br />The second step is to get the p-value, why? Once the p-value is obtained, it is simply a matter of deciding which threshold qualifies for statistical significance. Scientists usually determine the statistical significance threshold at 0.05 (ie, the null hypothesis would be rejected for any p-value less than or equal to 0.05). How do you calculate?<br />For example, if your p value is 0.01, that means based on the data set analyzed, there&#039;s a 1% chance of seeing the analyzed results due to random chance or luck.&nbsp; If your p value is 0.50, then there&#039;s a 50% chance your results are based on luck.<br />These purely statistical tools do not guarantee profits, but can be used to exclude overfitting strategies or provide greater selection.<br />I&#039;ve seen that I&#039;m already available online tools to quickly calculate p-value by having t and n available.<br />I&#039;ve already tried to test some strategy but I&#039;m just beginning.</p>]]></description>
			<author><![CDATA[null@example.com (D5QM54S7)]]></author>
			<pubDate>Wed, 11 Oct 2017 16:58:51 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46938/#p46938</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46917/#p46917</link>
			<description><![CDATA[<p>Thanks for the simplified explanation...</p><p>So -- I have an idea.&nbsp; Suppose I have a strategy and 30 arbitrary data sets.&nbsp; I then test my strategy against the 30 data sets.&nbsp; And let&#039;s say my overall Sharpe value is an average (or median) from the 30 data sets.&nbsp; Then,</p><p>T-stat = Sharpe x (square root of trades),&nbsp; where Sharpe is the average from the 30 data sets and &#039;square root of trades&#039; is the sqrt of all the trades from the 30 data sets.</p><p>Would this allow me to calculate a T-stat (or something similar) for this particular strategy?</p>]]></description>
			<author><![CDATA[null@example.com (sleytus)]]></author>
			<pubDate>Tue, 10 Oct 2017 21:40:41 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46917/#p46917</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46916/#p46916</link>
			<description><![CDATA[<p>If we stop before you can observe the T-test =&gt; T-test is a simple statistical test that tells you how likely your trading results are to have happened by chance alone. You do not want random results due to chance. The t-test is less than 1.6 favors chance (not so good). The t-test above 1.6 and you are more likely to have found a strategy that is useful and reliable as a trading tool. You need to calculate using roughly 30+ samples and see if you have a tradeable approach. Jeff Swanson reports the formula as T-stat = Sharpe x (square root of trades). Notice how: (t-test) 1.60 to 2.0 = average system; 2.01 to 3.0 = good system; 3.01 to 5.0 = excellent system. The T-test has two problems: 1) missed discoveries are high and 2) fall when the market conditions change (so a periodic check seems necessary). However its use in trading system validation seems to grow.</p>]]></description>
			<author><![CDATA[null@example.com (D5QM54S7)]]></author>
			<pubDate>Tue, 10 Oct 2017 20:58:36 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46916/#p46916</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46915/#p46915</link>
			<description><![CDATA[<p>Thanks, footon.&nbsp; I always appreciate your insight.</p><p>Regarding tomorrow&#039;s bar -- yes, 3 possibilities.&nbsp; But what about their probabilities?&nbsp; When tossing a coin I know the next toss has two possible outcomes -- so, in that respect I can sort of predict the future.&nbsp; Furthermore, I know if I toss a coin enough times the outcome will tend to 50 / 50.&nbsp; &nbsp;But that is where I begin to lose the connection with applying statistics to Forex data or returns.&nbsp; Even though you know there are 3 possible outcomes -- up, down, doji -- you have no clue about their probabilities.&nbsp; All you can do is hope the pattern continues.&nbsp; Come to think of it -- perhaps there is a statistic that can provide a clue as to the probability of a pattern continuing.&nbsp; Is that where the p-value would come in?</p>]]></description>
			<author><![CDATA[null@example.com (sleytus)]]></author>
			<pubDate>Tue, 10 Oct 2017 19:18:25 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46915/#p46915</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46914/#p46914</link>
			<description><![CDATA[<p>It&#039;s not about evaluating market data but returns. </p><p>One thing about next bar - I disagree about having no clue. I know that tomorrow&#039;s daily bar can be one of three: up, down or doji bar <img src="https://forexsb.com/forum/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Tue, 10 Oct 2017 18:43:18 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46914/#p46914</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46913/#p46913</link>
			<description><![CDATA[<p>I don&#039;t mean to distract the discussion -- I read the article footon linked to below.</p><p>I have a fundamental question about applying statistics such as this to Forex data -- because I think Forex is a different beast.&nbsp; When considering the S&amp;P 500 the actual data is tied to companies whose only goal in life is to increase their value.&nbsp; So, there is a built-in bias for the numbers to increase.&nbsp; But in Forex there is no built-in bias.&nbsp; Doesn&#039;t the nature of the data have some influence over which statistics are valuable and what insight they provide?</p><p>Now -- back to walking my dog...</p>]]></description>
			<author><![CDATA[null@example.com (sleytus)]]></author>
			<pubDate>Tue, 10 Oct 2017 18:11:43 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46913/#p46913</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46910/#p46910</link>
			<description><![CDATA[<p>I&#039;m not a statistician (though I took 1 course in my uni and also needed it for my Master research thesis...but still it&#039;s not my cup of tea.&nbsp; However, I did economics and I love it...so here are just some of my thoughts</p><p>1. I do believe in the midst of all those &quot;random&quot; price fluctuation, there are some &quot;repetitive&quot; patterns that doesn&#039;t arise due to chances.&nbsp; I see them all the time in my charts, whenever these &quot;conditions&quot; happened, there are usually a significant trend.&nbsp; The problem or challenge is how to exit timely as these trends are sometimes weaker than another.&nbsp; Hence, I do believe we can statistically find these repetitive conditions that are not due to random chances.&nbsp; Just like Google analytics, it tracks buyers profiles and buying patterns and by understanding their repetitive search or purchase patterns to predict what kind of advertisement would &quot;suits&quot; these users.&nbsp; Though most retail purchases may seem to be an issue of impulses, there is some &quot;predictive&quot; behaviours behind the sum of all these random behaviours.</p><p>2. As much as we often think that forex is so &quot;unpredictable&quot;, it is still often governed by basic economic factors or market forces such as Demand and supply.&nbsp; It&#039;s the psychological part of speculation that fuel the volatility.</p><p>3. There are big players who dominate/dictate forex prices/trends and I believe these people&#039;s decisions are more often ruled by economic factors rather then whimsical and psychological (which most retail traders tend to react).&nbsp; I don&#039;t think they wake up one day and decided to sell because they &quot;feel&quot; like it.&nbsp; Since their decisions are more likely governed by forces of demand and supply (or fundamental issues), therefore it is possible to &quot;see&quot; a pattern behind every breakout or big movement made by these big players.&nbsp; Hence, RSI is a good indicator to use to lookout for these &quot;pressure&quot; points.&nbsp; Imagine if you happened to use the same &quot;indicators&quot; or whatever tools they use for their decision making, it&#039;s like &quot;insider&quot; trader whereby you have a close estimate of when/timing (not in terms of day and time but via indicators), whereby these big players are going to enter/exit the market.&nbsp; </p><p>Hence, in a nutshell, I do believe there is predictive value (if there isn&#039;t, then we are all gamblers here) in forex and usually the shorter the time interval, the &quot;stronger&quot; the predictive value.&nbsp; For example, which is easier to predict? To predict whether EURUSD prices will go up or down 1 year from now or 1 day from now?&nbsp; Of cos, it&#039;s much &quot;easier&quot; to predict the prices for the next minute than for the next hour.&nbsp; Hence, I believe if we focus on how much we can scalp out of the market at shorter intervals, we have a better chance of increasing our EA predictability because the longer we hold, the less certain we are about when the trend will start to change.&nbsp; Thus, most of my EA trade very frequently at shorter intervals.&nbsp; </p><p>However, from a position trader&#039;s point of view, there is also predictive value if you look at the market on a &quot;bigger&quot; picture.&nbsp; And use D1 and higher chart as reference point.&nbsp; Such trading method isn&#039;t my cup of tea because one need to have really large SL to stomach all those high and lows.&nbsp; And the larger the SL, the smaller the lot size, relative to your capital, you are able to trade &quot;safely&quot;.&nbsp; Eg if your SL is 3000 pips and you only want to risk 10% of your capital, then you can only enter 1 lot size per $30k capital.&nbsp; I personally believe such method isn&#039;t &quot;economical&quot; use of capital for optimum return and if you divide the returns over the long holding time needed, it may not be really that attractive investment considering the high element of risk vs return.</p>]]></description>
			<author><![CDATA[null@example.com (hannahis)]]></author>
			<pubDate>Tue, 10 Oct 2017 16:08:38 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46910/#p46910</guid>
		</item>
		<item>
			<title><![CDATA[Re: New statistics: P-value]]></title>
			<link>https://forexsb.com/forum/post/46909/#p46909</link>
			<description><![CDATA[<p>Yes, p-value is widely used in almost all spheres of science, especially in statistical research and inference. To carry this to trading, it needs to be modified and this work has already been done more than a decade ago (most well-known is White&#039;s reality check) and there are couple of improvements developed over the past 5 years or so. The main problem is still there - statistically significant strategy is far from being a guarantee of future profitability. Second point is the bigger the dataset the easier to produce statistically significant results. Third point is the possibility to evaluate strategies one by one or as a pool of strategies, whose results contribute collectively in establishing statistical significance. Having minor experience with the former, I tend to believe that the latter is the better option, because individual evaluation produced p-values in the region of 0-0.0001 too often making me doubt in this approach. Unfortunately only accountstat file can be edited and this means individual evaluation, it is impossible for me to automate pool evaluation.</p><p>Lastly, about competence. Having a degree in humanitarian sciences makes work involving math harder than it should normally be <img src="https://forexsb.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /> I know I&#039;ll give my best but it remains to be seen if it&#039;ll be enough.</p>]]></description>
			<author><![CDATA[null@example.com (footon)]]></author>
			<pubDate>Tue, 10 Oct 2017 15:55:27 +0000</pubDate>
			<guid>https://forexsb.com/forum/post/46909/#p46909</guid>
		</item>
	</channel>
</rss>
