tag:blogger.com,1999:blog-1346045313195961352.post8632790901514044807..comments2019-03-05T04:03:32.081-08:00Comments on MatlabTrading: What does Dickey-Fuller test tell us (not)?Anonymoushttp://www.blogger.com/profile/10662229147968940872noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-1346045313195961352.post-15838047577934873832012-03-30T15:06:14.721-07:002012-03-30T15:06:14.721-07:00This comment has been removed by the author.Christian Portocarrero Morenohttps://www.blogger.com/profile/14653823039242294154noreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-40664625528639294172011-04-14T15:39:47.287-07:002011-04-14T15:39:47.287-07:00sometimes stocks are correlated.. they always move...sometimes stocks are correlated.. they always move up on same day and always move down on same day. Say however that one of these stocks always moves up more than the other on the up days and this same stock always moves down less than the other on the down days. This pair will look very correlated, but pairs trader will lose money on this situation. Bottom line, correlation is good for intra-day pairs trading and cointegration is for pairs trading over longer term.<br />-outAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-8846381182476231422011-02-02T14:14:21.517-08:002011-02-02T14:14:21.517-08:00@Anonymbous: corellation is a good thing, a trade ...@Anonymbous: corellation is a good thing, a trade opportunity can arise when something goes 'wrong' with a correlation. Pair trading is in my point of view all about outlier detection.<br />But you are right about the level of corellation. Too high, and the stocks do not drift apart far enough to justify the transaction costs.sjevhttps://www.blogger.com/profile/17452562180989360928noreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-60173456371593801282011-02-02T13:55:46.346-08:002011-02-02T13:55:46.346-08:00hello, here is my understanding sjev. If one uses ...hello, here is my understanding sjev. If one uses correllation to filter they will only have the highest correlated pairs. However, where the trader makes their money wih pairs is when the stocks are not so correlated, but only cointegrated -(meaning they may not move up and down on a daily basis together, but over time they move apart and then move back together at some point)- this is where the money is made with pairs strategies that hold positions for weeks or more. - Please comment further sjevAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-43059634375685444552011-01-11T15:43:16.717-08:002011-01-11T15:43:16.717-08:00Oh wow this is some very very heavy stuff. I use t...Oh wow this is some very very heavy stuff. I use to mess around with corelation in back of the day.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-68410077711883974632010-09-10T05:59:29.302-07:002010-09-10T05:59:29.302-07:00Hi Anonymous,
DF test gives you an estimation of...Hi Anonymous,<br /><br />DF test gives you an estimation of the mean-reverting nature of a pair. Corellation does not. E.Chan has an post about this somewhere on this blog. However, many pair traders rely on correlation in pair selection, thus contributing to the mr process. In my experience, correllation is a good measure to filter the assets. Another thing that you could use is *auto*correllation on the pair returns. If it is not significant, the pair is probably not tradeable.sjevhttps://www.blogger.com/profile/17452562180989360928noreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-53915121587973171902010-09-10T05:53:27.952-07:002010-09-10T05:53:27.952-07:00Mr. Jesse, Ok this seems to work. Thank you. What...Mr. Jesse, Ok this seems to work. Thank you. What is up with this whole Dickey-Fuller, I have programed a correlation test and this seems to work good with this pairs trade thesis ( I can now dump in as many stock as I want into my program and it will propagate out the most correlated assets!!!)<br />Should I really bother with learning the Dicky Fuller method? The method i am using would seem to hold some promise as is!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-48844855537221200462010-08-29T08:17:43.466-07:002010-08-29T08:17:43.466-07:00Hey Anonymous,
Look up the intersect function in M...Hey Anonymous,<br />Look up the intersect function in MATLAB. Using the intersectf function you can match up dates that are common between the 2 data sets and discard the dates that are uncommon.<br />I found out about this function from Ernest Chanâ€™s book. If you are researching pairs trading and you are using MATLAB, get the book Quantitative Finance, by Chan. This book will answer many of your questions.Jesse Slingerlandnoreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-10568226162891887912010-08-26T13:16:53.320-07:002010-08-26T13:16:53.320-07:00dose anyone notice that yahoo historicals are miss...dose anyone notice that yahoo historicals are missing data? How are you backtesting pairs with yahoo? data needs to be lines up. some help pleaseAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-75702407118710323662010-02-19T03:08:16.463-08:002010-02-19T03:08:16.463-08:00I've taken a closer look at the HHT transform....I've taken a closer look at the HHT transform. Elegant. But just as other transforms (FFT, wavelets) it suffers heavily from end effects at the borders of the dataset. This makes it unusable for forecasting.sjevnoreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-4380281131531272382010-02-17T14:43:29.224-08:002010-02-17T14:43:29.224-08:00@Gigi: Looks interesting enough to give it a go. T...@Gigi: Looks interesting enough to give it a go. There is a Matlab implementation by the way: http://www.mathworks.com/matlabcentral/fileexchange/19681-hilbert-huang-transformsjevhttps://www.blogger.com/profile/17452562180989360928noreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-59098802139929783042010-02-17T01:33:18.745-08:002010-02-17T01:33:18.745-08:00Check out the Hilbert-Huang Transform. It's a ...Check out the Hilbert-Huang Transform. It's a new form of spectral analysis.<br /><br />http://cdsweb.cern.ch/record/1115835Gigihttp://www.google.comnoreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-19563863738817341562009-12-25T05:54:24.536-08:002009-12-25T05:54:24.536-08:00Maverick, you've just helped me to get a shini...Maverick, you've just helped me to get a shining idea! In the beginning of my research I've played around with neural networks. They turned to be of little use to predicting stock movements (or at least not more useful than any other technical tool) due to the random walk nature of the stock prices. But NNs are known for their wonderful ability of non-linear fitting (just take a look at house pricing example in matlab). To make the story short, my idea is now to create a set of metrics, such as ADF, variance, information ratio etc and fit them to a performance of my trading model. This will save a tremendous amount of computation time, giving an estimation of model performance before running it. Get a faster pc? I don't think so, as I'll be dealing with ~10e9 portfolio combinations ;-).sjevhttp://matlab-trading.blogspot.comnoreply@blogger.comtag:blogger.com,1999:blog-1346045313195961352.post-9877244262261936362009-12-24T07:48:47.481-08:002009-12-24T07:48:47.481-08:00Did you get a chance to look at this:
http://www.p...Did you get a chance to look at this:<br />http://www.paulfarrington.com/research/Selecting%20tradeable%20pairs.htmMaverickhttps://www.blogger.com/profile/17817335403323735440noreply@blogger.com