<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Seasonal pair trading</title>
	<atom:link href="http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/</link>
	<description>Quantitative investment strategies</description>
	<lastBuildDate>Mon, 18 Feb 2013 20:18:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Dzidorius Martinaitis</title>
		<link>http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/comment-page-1/#comment-3408</link>
		<dc:creator>Dzidorius Martinaitis</dc:creator>
		<pubDate>Sun, 16 Jan 2011 22:22:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.investuotojas.eu/?p=447#comment-3408</guid>
		<description>Craig,
I found the comment, check the 4th one:
http://epchan.blogspot.com/2009/08/using-r-to-test-for-cointegration.html

I saw more examples where the returns were used instead of the prices in finance. Good summary can be find here: http://www.portfolioprobe.com/2011/01/12/the-number-1-novice-quant-mistake/</description>
		<content:encoded><![CDATA[<p>Craig,<br />
I found the comment, check the 4th one:<br />
<a href="http://epchan.blogspot.com/2009/08/using-r-to-test-for-cointegration.html" rel="nofollow">http://epchan.blogspot.com/2009/08/using-r-to-test-for-cointegration.html</a></p>
<p>I saw more examples where the returns were used instead of the prices in finance. Good summary can be find here: <a href="http://www.portfolioprobe.com/2011/01/12/the-number-1-novice-quant-mistake/" rel="nofollow">http://www.portfolioprobe.com/2011/01/12/the-number-1-novice-quant-mistake/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/comment-page-1/#comment-3402</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Sat, 15 Jan 2011 05:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.investuotojas.eu/?p=447#comment-3402</guid>
		<description>To say it doesn&#039;t matter, I would say is somewhat incorrect as each option results in a different model.
Logically, one must be more optimal that the other.

In answer to your other question, you need to regress the prices, check a papers database for stat. arb. stuff, there is plenty around if you do a bit of digging.</description>
		<content:encoded><![CDATA[<p>To say it doesn&#8217;t matter, I would say is somewhat incorrect as each option results in a different model.<br />
Logically, one must be more optimal that the other.</p>
<p>In answer to your other question, you need to regress the prices, check a papers database for stat. arb. stuff, there is plenty around if you do a bit of digging.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dzidorius Martinaitis</title>
		<link>http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/comment-page-1/#comment-3399</link>
		<dc:creator>Dzidorius Martinaitis</dc:creator>
		<pubDate>Fri, 14 Jan 2011 21:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.investuotojas.eu/?p=447#comment-3399</guid>
		<description>Craig,
I remember reading his answer somewhere on this blog: epchan.blogspot.com. Shortly, it doesn&#039;t matter, if you regress prices, but you have take into account, when you regress the returns.

Mark,
yes, I know this method, it is linear regression or OLS. R has many ways to to it (the result is the same) lm(), lsfit(). As I mentioned before, the first question is - what should I regress: the prices, the returns (simple or log)? I tried all of them, but couldn&#039;t get the same hedge ratio.
I have to do further test, but I think, that the hedge ratio was derived by using minimum variance ratio. This ratio takes into account correlation and variation of two assets.</description>
		<content:encoded><![CDATA[<p>Craig,<br />
I remember reading his answer somewhere on this blog: epchan.blogspot.com. Shortly, it doesn&#8217;t matter, if you regress prices, but you have take into account, when you regress the returns.</p>
<p>Mark,<br />
yes, I know this method, it is linear regression or OLS. R has many ways to to it (the result is the same) lm(), lsfit(). As I mentioned before, the first question is &#8211; what should I regress: the prices, the returns (simple or log)? I tried all of them, but couldn&#8217;t get the same hedge ratio.<br />
I have to do further test, but I think, that the hedge ratio was derived by using minimum variance ratio. This ratio takes into account correlation and variation of two assets.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/comment-page-1/#comment-3398</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Fri, 14 Jan 2011 20:54:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.investuotojas.eu/?p=447#comment-3398</guid>
		<description>I wonder why he forces the intercept to zero with x ~ y + 0 as opposed to x ~ y?</description>
		<content:encoded><![CDATA[<p>I wonder why he forces the intercept to zero with x ~ y + 0 as opposed to x ~ y?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/comment-page-1/#comment-3397</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 14 Jan 2011 20:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.investuotojas.eu/?p=447#comment-3397</guid>
		<description>In one of the other docs of Teetor, he calculates the hedge ratio as:

    beta &lt;- coef(lm(x ~ y + 0))[1]
    spread &lt;- x - beta*y

beta would be your hedge ratio here.
I&#039;m not saying this is the best way, just thought to let you know...

Regards,

-Mark-</description>
		<content:encoded><![CDATA[<p>In one of the other docs of Teetor, he calculates the hedge ratio as:</p>
<p>    beta &lt;- coef(lm(x ~ y + 0))[1]<br />
    spread &lt;- x &#8211; beta*y</p>
<p>beta would be your hedge ratio here.<br />
I&#039;m not saying this is the best way, just thought to let you know&#8230;</p>
<p>Regards,</p>
<p>-Mark-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dzidorius Martinaitis</title>
		<link>http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/comment-page-1/#comment-3394</link>
		<dc:creator>Dzidorius Martinaitis</dc:creator>
		<pubDate>Fri, 14 Jan 2011 15:16:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.investuotojas.eu/?p=447#comment-3394</guid>
		<description>Talking about returns, we can have either arithmetic return or logarithmic return. I use Delt() function and by default it provides arithmetic return (P1/P0)-1. Teetor derived dollar&#039;s spread, I opted for arithmetic return. 
I will try to extend this post, but at the moment I stuck with hedge ratio. Hedge ration can be based on: price, arithmetic return or logarithmic return. I&#039;m trying to find with best way.
Let you know, when (if) I figure it out!</description>
		<content:encoded><![CDATA[<p>Talking about returns, we can have either arithmetic return or logarithmic return. I use Delt() function and by default it provides arithmetic return (P1/P0)-1. Teetor derived dollar&#8217;s spread, I opted for arithmetic return.<br />
I will try to extend this post, but at the moment I stuck with hedge ratio. Hedge ration can be based on: price, arithmetic return or logarithmic return. I&#8217;m trying to find with best way.<br />
Let you know, when (if) I figure it out!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/comment-page-1/#comment-3392</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 14 Jan 2011 12:39:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.investuotojas.eu/?p=447#comment-3392</guid>
		<description>In the code i noticed that you used Delta() to calculate the daily difference in the spread. This calculates a simple return.
I think Teetor, although he does not provide any code. is using diff() as a spread can have negative values as opposed to plain price data.

Using Delta() or diff() will give completly different results...

-Mark-</description>
		<content:encoded><![CDATA[<p>In the code i noticed that you used Delta() to calculate the daily difference in the spread. This calculates a simple return.<br />
I think Teetor, although he does not provide any code. is using diff() as a spread can have negative values as opposed to plain price data.</p>
<p>Using Delta() or diff() will give completly different results&#8230;</p>
<p>-Mark-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dzidorius Martinaitis</title>
		<link>http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/comment-page-1/#comment-3387</link>
		<dc:creator>Dzidorius Martinaitis</dc:creator>
		<pubDate>Tue, 11 Jan 2011 16:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.investuotojas.eu/?p=447#comment-3387</guid>
		<description>Greg,
the data can be find here: http://www.eia.gov/dnav/pet/pet_pri_fut_s1_d.htm
You have to download Contract1 for Crude oil (easy). 
For RB, I merged two data series into one - Reformulated Regular Gasoline Contract1 and RBOB Regular Gasoline Contract1.
If you find difficulties in doing this - let me know where can I upload 2 csv files.</description>
		<content:encoded><![CDATA[<p>Greg,<br />
the data can be find here: <a href="http://www.eia.gov/dnav/pet/pet_pri_fut_s1_d.htm" rel="nofollow">http://www.eia.gov/dnav/pet/pet_pri_fut_s1_d.htm</a><br />
You have to download Contract1 for Crude oil (easy).<br />
For RB, I merged two data series into one &#8211; Reformulated Regular Gasoline Contract1 and RBOB Regular Gasoline Contract1.<br />
If you find difficulties in doing this &#8211; let me know where can I upload 2 csv files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg</title>
		<link>http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/comment-page-1/#comment-3386</link>
		<dc:creator>Greg</dc:creator>
		<pubDate>Tue, 11 Jan 2011 16:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.investuotojas.eu/?p=447#comment-3386</guid>
		<description>Nice work. Thanks. Can you please also post the data (csv files). Thanks.</description>
		<content:encoded><![CDATA[<p>Nice work. Thanks. Can you please also post the data (csv files). Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dzidorius Martinaitis</title>
		<link>http://www.investuotojas.eu/2011/01/10/seasonal-pair-trading/comment-page-1/#comment-3382</link>
		<dc:creator>Dzidorius Martinaitis</dc:creator>
		<pubDate>Tue, 11 Jan 2011 09:05:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.investuotojas.eu/?p=447#comment-3382</guid>
		<description>Craig,
yes, it is true, that for the spread construction I didn&#039;t use a hedge ratio. The idea behind - the investment is done for short time period (1 month) and it is much simple to understand and manage such investment. 
However, I have a plan to write similar post, where I will introduce a hedge ratio.</description>
		<content:encoded><![CDATA[<p>Craig,<br />
yes, it is true, that for the spread construction I didn&#8217;t use a hedge ratio. The idea behind &#8211; the investment is done for short time period (1 month) and it is much simple to understand and manage such investment.<br />
However, I have a plan to write similar post, where I will introduce a hedge ratio.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
