<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5442569662076128890</id><updated>2012-01-22T09:09:12.673+01:00</updated><category term='KEA'/><category term='context model'/><category term='futures'/><category term='pair trading'/><category term='high-frequency trading'/><category term='data mining'/><category term='news'/><category term='China'/><category term='GOLD'/><category term='NatGas'/><category term='EURUSD'/><category term='liquidity'/><category term='GARCH'/><category term='Apple'/><category term='LIBOR'/><category term='IMF'/><category term='Black Swan'/><category term='Gandalf SFIO'/><category term='UBS'/><category term='Investor FIZ'/><category term='Getin'/><category term='ECB'/><category term='EIA'/><category term='BNP Paribas'/><category term='LinkedIn'/><category term='EURCHF'/><category term='AAA'/><category term='intervention'/><category term='RSI'/><category term='Warren Buffett'/><category term='Opera 3gr'/><category term='Opera TFI'/><category term='tracking error'/><category term='black box'/><category term='Groupon'/><category term='probability'/><category term='credit risk'/><category term='Basel III'/><category term='volatility'/><category term='too big to fail'/><category term='contrarian investing'/><category term='EURPLN'/><category term='market memory'/><category term='CME'/><category term='Italy'/><category term='systemic risk'/><category term='Moody&apos;s'/><category term='volatility clustering'/><category term='quantitative trading'/><category term='crude oil'/><category term='algorithmic trading'/><category term='economy'/><category term='IDMSA AM'/><category term='VaR'/><category term='CEZ'/><category term='flash crash'/><category term='Commerzbank'/><category term='Accenture'/><category term='software'/><category term='spread'/><category term='panic'/><category term='fourier transforms'/><category term='Japan'/><category term='cyclical analysis'/><category term='cointegration'/><category term='EU'/><category term='grid computing'/><category term='efficient market theory'/><category term='Levenshtein'/><category term='crisis'/><category term='correlation'/><category term='sentence extraction'/><category term='hedge funds'/><category term='SNB'/><category term='technical analysis'/><category term='FTL'/><category term='Web Harvest'/><category term='mean reversion'/><category term='Microsoft'/><category term='quantitative easing'/><category term='forex'/><category term='Pandora'/><category term='CDS'/><category term='Societe Generale'/><category term='GDP'/><category term='BoJ'/><category term='distorted market theory'/><category term='Deutsche Bank'/><category term='Greece'/><category term='option'/><category term='text mining'/><category term='business intelligence'/><category term='pattern recognition'/><category term='fixed income'/><category term='Opera FIZ'/><category term='risk'/><category term='Investors TFI'/><category term='struktura'/><category term='USA'/><category term='Tobin tax'/><category term='TextRank'/><category term='USDPLN'/><category term='PZU'/><category term='longest common substring'/><category term='Tauron'/><category term='ENEA'/><category term='PQ7'/><category term='risk premium'/><category term='GPW'/><category term='personalization'/><category term='GStock'/><category term='Garry Kasparov'/><category term='cauchy'/><category term='GetBank'/><category term='physics'/><category term='autocorrelation'/><category term='Dodd-Frank'/><category term='FOMC'/><category term='default'/><category term='artificial intelligence'/><category term='USDCHF'/><category term='USDCNY'/><category term='signal analysis'/><category term='return to mean'/><category term='LCS'/><category term='Levenshtein distance'/><category term='TFI'/><category term='CSO'/><category term='neural networks'/><category term='Berkshire Hathaway'/><category term='Google Prediction API'/><category term='Fed'/><category term='SP500'/><category term='kurtosis'/><category term='self-similarity'/><category term='trend following'/><category term='Zynga'/><category term='NYSE'/><category term='Bank of America'/><category term='arbitrage'/><category term='USDJPY'/><category term='decoupling'/><category term='cognitive biases'/><category term='LSA'/><category term='Black-Scholes'/><category term='mutual funds'/><category term='distributed computing'/><category term='bubble'/><category term='BP'/><category term='Google'/><category term='Switzerland'/><category term='Danaher'/><category term='content extraction'/><category term='random walk'/><category term='OFE'/><category term='keyword extraction'/><category term='EURJPY'/><category term='ETF'/><category term='energy'/><category term='data extraction'/><category term='MoneyBee'/><category term='IPO'/><category term='rogue trader'/><category term='PageRank'/><category term='Lyxor'/><category term='WIG20'/><category term='Alfa-Plus'/><category term='swap'/><category term='Stooq'/><category term='chaos'/><category term='attractor'/><category term='machine learning'/><category term='Operation Twist'/><category term='R'/><title type='text'>ReAKKT</title><subtitle type='html'>Looking for attractors in the chaos.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.reakkt.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default?start-index=101&amp;max-results=100'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>116</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-5546041965525308064</id><published>2012-01-22T09:03:00.001+01:00</published><updated>2012-01-22T09:09:12.694+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Gandalf SFIO'/><category scheme='http://www.blogger.com/atom/ns#' term='correlation'/><category scheme='http://www.blogger.com/atom/ns#' term='hedge funds'/><category scheme='http://www.blogger.com/atom/ns#' term='Alfa-Plus'/><category scheme='http://www.blogger.com/atom/ns#' term='WIG20'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>What do you get for the fund management fees?</title><content type='html'>I've recently mentioned that &lt;a href="http://www.reakkt.com/2012/01/herd-mentality.html"&gt;only some small Polish non-benchmark (semi-hedge) funds decoupled from the general market deterioration in 2011&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;But how they really compare to the market and how they are correlated between themselves?&lt;br /&gt;&lt;br /&gt;&lt;span style="text-align: left;"&gt;From June 2009 till January 2012 &lt;a href="http://www.gandalf-fundusz.pl/1,Strona-glowna"&gt;Gandalf SFIO&lt;/a&gt; virtually didn't change its value:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-ak64y5C9rdk/Txu8f2wKBmI/AAAAAAAABLQ/mxY8sAKfvxU/s1600/gandalf+sfio+performance.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://2.bp.blogspot.com/-ak64y5C9rdk/Txu8f2wKBmI/AAAAAAAABLQ/mxY8sAKfvxU/s400/gandalf+sfio+performance.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The annualized return over this period is -0.14%. Meanwhile, WIG20 returned +12.15%.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-1XPiMV9vr2Q/Txu-Dd4dUSI/AAAAAAAABLY/t7ONPyoj2s4/s1600/gandalf+vs+wig20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://1.bp.blogspot.com/-1XPiMV9vr2Q/Txu-Dd4dUSI/AAAAAAAABLY/t7ONPyoj2s4/s400/gandalf+vs+wig20.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The main feature of Gandalf SFIO is its low negative correlation with the index.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;As for &lt;a href="http://opera.pl/pl/oferta/fundusze/opera-avista-pluspl/wycena/"&gt;Opera Alfa-Plus&lt;/a&gt;, the fund returned +22.8% since inception and +8.62% annualized:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-36rCJueQBkU/Txu-oQ7wv_I/AAAAAAAABLg/GL-xomDH2CI/s1600/opera+alfa+performance.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://2.bp.blogspot.com/-36rCJueQBkU/Txu-oQ7wv_I/AAAAAAAABLg/GL-xomDH2CI/s400/opera+alfa+performance.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Still that's worse than WIG20 which grew by +31.2%:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-rb8KgHdJEGk/Txu_GCutn1I/AAAAAAAABLo/RNlKnTnkq-4/s1600/opera+alfa+vs+wig20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://4.bp.blogspot.com/-rb8KgHdJEGk/Txu_GCutn1I/AAAAAAAABLo/RNlKnTnkq-4/s400/opera+alfa+vs+wig20.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;In contrast to Gandalf SFIO, the correlation between Opera Alfa-Plus and WIG20 is slightly positive.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;It gets quite interesting when you compare performance between the funds:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/--BgnSYCJm9w/Txu_r-KH6TI/AAAAAAAABLw/YneZOygvN-4/s1600/gandalf+vs+opera.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://1.bp.blogspot.com/--BgnSYCJm9w/Txu_r-KH6TI/AAAAAAAABLw/YneZOygvN-4/s400/gandalf+vs+opera.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Opera Alfa-Plus has clearly been better performing than Gandalf SFIO so far, but the funds have been negatively correlated, so the future may change that.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-size: large;"&gt;Nevertheless, beating the index (basic buy and hold strategy) is not an easy task. So what do you get for the management fees?&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Data: &lt;a href="http://www.gandalf-fundusz.pl/43,Wyceny-historyczne"&gt;Gandalf SFIO&lt;/a&gt;, &lt;a href="http://opera.pl/pl/oferta/fundusze/opera-alfa-pluspl/wycena/"&gt;Opera Alfa-Plus&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://snipplr.com/view/62702/compare-gandalf-sfio-and-opera-alfaplus-funds/"&gt;R source&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-5546041965525308064?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/5546041965525308064/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=5546041965525308064' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5546041965525308064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5546041965525308064'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2012/01/what-do-you-get-for-fund-management.html' title='What do you get for the fund management fees?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-ak64y5C9rdk/Txu8f2wKBmI/AAAAAAAABLQ/mxY8sAKfvxU/s72-c/gandalf+sfio+performance.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-3413485974220257381</id><published>2012-01-20T08:01:00.001+01:00</published><updated>2012-01-20T08:01:46.180+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FTL'/><category scheme='http://www.blogger.com/atom/ns#' term='physics'/><title type='text'>Distance and dimensions</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-abP21suQxFc/TxkPlaUYCEI/AAAAAAAABLI/ODDFFW5Lou4/s1600/distances+Rn.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="280" src="http://1.bp.blogspot.com/-abP21suQxFc/TxkPlaUYCEI/AAAAAAAABLI/ODDFFW5Lou4/s400/distances+Rn.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Something totally different, today :)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;At least as measured by &lt;a href="http://en.wikipedia.org/wiki/Minkowski_distance"&gt;Minkowski distance&lt;/a&gt;, distance between three-dimensional objects is inversely proportional to the number of dimensions of the space in which one measures distance.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;For example, distance between two randomly selected points may be 150.90 units in R^3, while it drops to 129.86 units, or by&amp;nbsp;13,94%,&amp;nbsp;in R^96.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;So, if one would be able to make shortcuts through some hypothetical additional dimensions, one could &amp;nbsp;travel faster than others moving in plain R^3. The potential gains are not huge, though.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The difference between distances in various R^n spaces decreases quite significantly and around R^20, the incremental gains are usually smaller than 1% per additional dimension:&lt;/div&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-collapse: separate; font-family: Arial;"&gt;&lt;span class="Apple-style-span" style="font-family: 'DejaVu Sans Mono'; font-size: 13px; line-height: 17px; text-align: -webkit-left;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="GD40030CLR" style="border-bottom-style: none; border-color: initial; border-left-style: none; border-right-style: none; border-top-style: none; border-width: initial; font-family: 'DejaVu Sans Mono'; font-size: 10pt !important; line-height: 1.3; outline-color: initial; outline-style: none; outline-width: initial;" tabindex="0"&gt;&lt;span style="white-space: pre-wrap !important;"&gt;      dimensions distance    difference   difference%&lt;br /&gt; [1,]          3 150.9008  1.509008e+02           Inf&lt;br /&gt; [2,]          4 140.6339 -1.026687e+01 -6.8037222878&lt;br /&gt; [3,]          5 135.7465 -4.887388e+00 -3.4752557745&lt;br /&gt; [4,]          6 133.1936 -2.552873e+00 -1.8806176731&lt;br /&gt; [5,]          7 131.7919 -1.401690e+00 -1.0523697580&lt;br /&gt; [6,]          8 130.9986 -7.933852e-01 -0.6019982623&lt;br /&gt; [7,]          9 130.5400 -4.585113e-01 -0.3500124575&lt;br /&gt; [8,]         10 130.2709 -2.691661e-01 -0.2061942603&lt;br /&gt; [9,]         11 130.1109 -1.600260e-01 -0.1228409661&lt;br /&gt;[10,]         12 130.0147 -9.616443e-02 -0.0739096136&lt;br /&gt;[11,]         13 129.9564 -5.832922e-02 -0.0448635601&lt;br /&gt;[12,]         14 129.9207 -3.567275e-02 -0.0274497876&lt;br /&gt;[13,]         15 129.8987 -2.197770e-02 -0.0169162448&lt;br /&gt;[14,]         16 129.8851 -1.363012e-02 -0.0104928834&lt;br /&gt;[15,]         17 129.8766 -8.503742e-03 -0.0065471273&lt;br /&gt;[16,]         18 129.8712 -5.334217e-03 -0.0041071429&lt;br /&gt;[17,]         19 129.8679 -3.362549e-03 -0.0025891404&lt;br /&gt;[18,]         20 129.8658 -2.129199e-03 -0.0016395115&lt;br /&gt;[19,]         21 129.8644 -1.353778e-03 -0.0010424441&lt;br /&gt;[20,]         22 129.8635 -8.640018e-04 -0.0006653107&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-3413485974220257381?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/3413485974220257381/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=3413485974220257381' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/3413485974220257381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/3413485974220257381'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2012/01/distance-and-dimensions.html' title='Distance and dimensions'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-abP21suQxFc/TxkPlaUYCEI/AAAAAAAABLI/ODDFFW5Lou4/s72-c/distances+Rn.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-7731071707941204408</id><published>2012-01-12T10:50:00.002+01:00</published><updated>2012-01-12T10:50:42.252+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pair trading'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Reconstructing missing observations with R</title><content type='html'>I've been playing with reconstruction of missing observations&amp;nbsp;for the last couple of days.&lt;br /&gt;&lt;br /&gt;Say you've got a quotations of some equity that miss some data points.&lt;br /&gt;&lt;br /&gt;You may want to have them reconstructed for example for pairs trading.&lt;br /&gt;&lt;br /&gt;What do you do then?&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-rtEaPl5Y_xA/Tw6r5Bsz1PI/AAAAAAAABJA/Qjpd0_cih-E/s1600/var+reconstruction.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="293" src="http://2.bp.blogspot.com/-rtEaPl5Y_xA/Tw6r5Bsz1PI/AAAAAAAABJA/Qjpd0_cih-E/s400/var+reconstruction.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: example of VAR reconstruction of missing data&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;I've preliminary tested a number of potential methods from simple mean to Dynamic Linear Models to Random Forest.&lt;br /&gt;&lt;br /&gt;Performance varies, but for the moment three reconstruction methods seems to lead the pack: simple mean, some Dynamic Linear Model and Vector Autoregression.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-V9L3KYB3lkw/Tw6sHNkXKqI/AAAAAAAABJI/XdnXe_EP5u0/s1600/compare+reconstruction+methods.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="293" src="http://2.bp.blogspot.com/-V9L3KYB3lkw/Tw6sHNkXKqI/AAAAAAAABJI/XdnXe_EP5u0/s400/compare+reconstruction+methods.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: comparison of various reconstruction methods for one case&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-7731071707941204408?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/7731071707941204408/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=7731071707941204408' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7731071707941204408'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7731071707941204408'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2012/01/reconstructing-missing-observations.html' title='Reconstructing missing observations with R'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-rtEaPl5Y_xA/Tw6r5Bsz1PI/AAAAAAAABJA/Qjpd0_cih-E/s72-c/var+reconstruction.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8527809350039109923</id><published>2012-01-12T08:41:00.000+01:00</published><updated>2012-01-12T08:41:39.706+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='systemic risk'/><category scheme='http://www.blogger.com/atom/ns#' term='risk'/><category scheme='http://www.blogger.com/atom/ns#' term='correlation'/><category scheme='http://www.blogger.com/atom/ns#' term='OFE'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Some thoughts on the Polish pension funds</title><content type='html'>&lt;br /&gt;The Polish (mandatory) pension funds - OFEs - were down in 2011. &lt;a href="http://stooq.com/ofe/?s1=7&amp;amp;s2=1"&gt;Average one year performance (as of&amp;nbsp;yesterday) was -3.72%.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Nevertheless, they are on average +192% up over their 13 year period of&amp;nbsp;existence. And that&amp;nbsp;&lt;a href="http://www.wolframalpha.com/input/?i=10*%281%2Bx%29%5E%282012-1999%29%3D29.2"&gt;translates into a quite nice +8,6% CAGR&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;And - what's important - they have&amp;nbsp;clearly beaten the stock market:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-rx5TdGraUZM/Tw5zljfAaVI/AAAAAAAABIg/a0IIhP-hKxw/s1600/ing+ofe+vs+wig20.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://4.bp.blogspot.com/-rx5TdGraUZM/Tw5zljfAaVI/AAAAAAAABIg/a0IIhP-hKxw/s400/ing+ofe+vs+wig20.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: ING OFE vs WIG20, 1999-2012, stooq.com&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;However, what's worrying is a very high correlation between all the funds:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-XCQIBI93skY/Tw6KOlghmRI/AAAAAAAABIo/-wvRv4FuG6o/s1600/notowanie+ofe+1999+2011.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="293" src="http://3.bp.blogspot.com/-XCQIBI93skY/Tw6KOlghmRI/AAAAAAAABIo/-wvRv4FuG6o/s400/notowanie+ofe+1999+2011.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: OFE prices 1999-2011&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The correlation rank between OFEs keeps between amazingly thin range of 99,51% and 99,97%:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-7wT1lpJkHO8/Tw6MVglfahI/AAAAAAAABI4/uw41RpTDrBQ/s1600/ofe+korelacja.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="293" src="http://2.bp.blogspot.com/-7wT1lpJkHO8/Tw6MVglfahI/AAAAAAAABI4/uw41RpTDrBQ/s400/ofe+korelacja.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: OFE correlation distribution 1999-2011&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span style="font-size: large;"&gt;Clearly, OFEs are not competitive. For extremely high correlation they are also a potential source of systemic risk.&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Source code:&amp;nbsp;&lt;a href="http://snipplr.com/view/62513/ofe-correlation-19992011/"&gt;http://snipplr.com/view/62513/ofe-correlation-19992011/&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8527809350039109923?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8527809350039109923/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8527809350039109923' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8527809350039109923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8527809350039109923'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2012/01/some-thoughts-on-polish-pension-funds.html' title='Some thoughts on the Polish pension funds'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-rx5TdGraUZM/Tw5zljfAaVI/AAAAAAAABIg/a0IIhP-hKxw/s72-c/ing+ofe+vs+wig20.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-6000745697577486201</id><published>2012-01-11T07:18:00.000+01:00</published><updated>2012-01-11T07:25:52.599+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pair trading'/><category scheme='http://www.blogger.com/atom/ns#' term='correlation'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='context model'/><category scheme='http://www.blogger.com/atom/ns#' term='decoupling'/><category scheme='http://www.blogger.com/atom/ns#' term='cointegration'/><category scheme='http://www.blogger.com/atom/ns#' term='WIG20'/><category scheme='http://www.blogger.com/atom/ns#' term='spread'/><category scheme='http://www.blogger.com/atom/ns#' term='arbitrage'/><title type='text'>WIG20 - S&amp;P500 decoupling</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-0qpnMSgoCIU/Tw0mLbM1bhI/AAAAAAAABII/6n5X-_qGYTs/s1600/FW20+ESF+20120110+5d.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://2.bp.blogspot.com/-0qpnMSgoCIU/Tw0mLbM1bhI/AAAAAAAABII/6n5X-_qGYTs/s400/FW20+ESF+20120110+5d.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: WIG20 vs S&amp;amp;P500 futures 5 days, 2012-01-10, &lt;a href="http://stooq.com/"&gt;stooq.com&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The Polish stock market index WIG20 has recently decoupled from the US market index S&amp;amp;P500 quite significantly.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;This divergence has lasted for some time now:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Csqmm4KtSuI/Tw0mwpeYQiI/AAAAAAAABIQ/Ny2BzlOJieU/s1600/FW20+ESF+20120110+3m.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://1.bp.blogspot.com/-Csqmm4KtSuI/Tw0mwpeYQiI/AAAAAAAABIQ/Ny2BzlOJieU/s400/FW20+ESF+20120110+3m.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: WIG20 vs S&amp;amp;P500 futures 3 months, 2012-01-10, &lt;a href="http://stooq.com/"&gt;stooq.com&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Something will have to correct... But which one?&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Or is it just an opportunity for a convergence trade without trying to guess the direction?&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Was &lt;a href="http://www.reakkt.com/2012/01/wig20-mystery-today.html"&gt;the yesterday's funny WIG20 action&lt;/a&gt; a signal of the future developments?&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Questions, questions and more questions... :)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Nevertheless, it's worth keeping in mind that even though Polish and US markets are highly correlated, &lt;a href="http://www.reakkt.com/2011/10/correlation-doesnt-mean-easy-prediction.html"&gt;correlation is not a stable measure&lt;/a&gt;. It's much safer to check the spread between the markets based on their &lt;a href="http://www.reakkt.com/2011/10/cointegrated-drunk-and-her-dog.html"&gt;cointegration&lt;/a&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Last but not least, &lt;a href="http://capitalcontext.com/intraday/intraday-spy/"&gt;S&amp;amp;P500 remains decoupled from the wider risk assets context model&lt;/a&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-6000745697577486201?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/6000745697577486201/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=6000745697577486201' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6000745697577486201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6000745697577486201'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2012/01/wig20-s-decoupling.html' title='WIG20 - S&amp;P500 decoupling'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-0qpnMSgoCIU/Tw0mLbM1bhI/AAAAAAAABII/6n5X-_qGYTs/s72-c/FW20+ESF+20120110+5d.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-5073533780682681747</id><published>2012-01-10T21:49:00.000+01:00</published><updated>2012-01-10T21:50:29.860+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GetBank'/><category scheme='http://www.blogger.com/atom/ns#' term='Getin'/><category scheme='http://www.blogger.com/atom/ns#' term='WIG20'/><category scheme='http://www.blogger.com/atom/ns#' term='spread'/><title type='text'>A WIG20 mystery today</title><content type='html'>I'm a little too tired to think clearly and research today (it's nearly 22:00 and I'm awake since 4:50), but I've noticed something funny with WIG20 today:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-6momay2xZwc/TwyjjuW41JI/AAAAAAAABIA/sDHDuGwmJ10/s1600/wig20+vs+fw20+20120110.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://3.bp.blogspot.com/-6momay2xZwc/TwyjjuW41JI/AAAAAAAABIA/sDHDuGwmJ10/s400/wig20+vs+fw20+20120110.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: WIG20 vs FW20 continous futures, 2012-01-10, &lt;a href="http://stooq.com/"&gt;stooq.com&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;It may be connected with Getin - GetBank merger, but I'm not sure...&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Nevertheless, WIG20 separated with the most liquid futures by 45 points.&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-5073533780682681747?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/5073533780682681747/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=5073533780682681747' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5073533780682681747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5073533780682681747'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2012/01/wig20-mystery-today.html' title='A WIG20 mystery today'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-6momay2xZwc/TwyjjuW41JI/AAAAAAAABIA/sDHDuGwmJ10/s72-c/wig20+vs+fw20+20120110.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-7001192522056097479</id><published>2012-01-10T20:25:00.001+01:00</published><updated>2012-01-10T20:25:38.084+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IDMSA AM'/><category scheme='http://www.blogger.com/atom/ns#' term='Gandalf SFIO'/><category scheme='http://www.blogger.com/atom/ns#' term='Opera TFI'/><category scheme='http://www.blogger.com/atom/ns#' term='hedge funds'/><category scheme='http://www.blogger.com/atom/ns#' term='Opera FIZ'/><category scheme='http://www.blogger.com/atom/ns#' term='Investor FIZ'/><category scheme='http://www.blogger.com/atom/ns#' term='Investors TFI'/><category scheme='http://www.blogger.com/atom/ns#' term='Alfa-Plus'/><category scheme='http://www.blogger.com/atom/ns#' term='WIG20'/><category scheme='http://www.blogger.com/atom/ns#' term='Opera 3gr'/><title type='text'>Herd mentality</title><content type='html'>&lt;br /&gt;2011 was definitelly a &lt;a href="http://www.zerohedge.com/news/2011s-hedge-fund-winners-and-losers"&gt;bad year for many hedge funds&lt;/a&gt;. The Paulson Advantage Plus fund managed by &lt;a href="http://en.wikipedia.org/wiki/John_Paulson"&gt;John Paulson&lt;/a&gt; who had made a killing during the recent&amp;nbsp;sub prime&amp;nbsp;crisis, &lt;a href="http://www.bloomberg.com/news/2012-01-06/john-paulson-s-advantage-plus-hedge-fund-drops-51-in-aberrational-year-.html"&gt;lost more than 50% this year&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The Polish "near hedge funds", such as Investor FIZ and Opera FIZ didn't fare much better. But the worst part is &lt;b&gt;their performance this year was highly correlated with the market&lt;/b&gt; :(&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-IW3hfqjKSQM/TwyKKuxuFlI/AAAAAAAABHw/rUfZUB4OnKc/s1600/fundusze+vs+wig20+1y+2012.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://3.bp.blogspot.com/-IW3hfqjKSQM/TwyKKuxuFlI/AAAAAAAABHw/rUfZUB4OnKc/s400/fundusze+vs+wig20+1y+2012.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Investor FIZ and Opera 3gr vs WIG20; source: stooq.com&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Seems one of the better asset management companies in the previous years&amp;nbsp;- &lt;a href="http://idmsa.pl/wyniki.html"&gt;IDMSA&lt;/a&gt; -&amp;nbsp;unfortunately&amp;nbsp;also employed similar strategy:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-YHoxmvjx40s/TwyLJ2ZJIaI/AAAAAAAABH4/-hekmsIbF6w/s1600/fundusze+vs+wig20+1y+2012+ch2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="163" src="http://2.bp.blogspot.com/-YHoxmvjx40s/TwyLJ2ZJIaI/AAAAAAAABH4/-hekmsIbF6w/s400/fundusze+vs+wig20+1y+2012+ch2.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Investor FIZ, Opera FIZ and IDMSA ZZP portfolio vs WIG20&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Decoupling was demonstrated by small funds like&amp;nbsp;&lt;a href="http://opera.pl/pl/oferta/fundusze/opera-alfa-pluspl/wycena/art2011.html"&gt;Opera Alfa-Plus&lt;/a&gt; and &lt;a href="http://www.gandalf-fundusz.pl/1,Strona-glowna"&gt;Gandalf SFIO&lt;/a&gt;, but that allowed only for capital preservation instead of accumulation. Opera Alfa-Plus finished the year just 1.24% higher, while Gandalf returned 3.75% (January 4th, 2010 - January 3rd, 2011).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Meanwhile quantitative SuperFund lost -20.2% (&lt;a href="http://www.superfund.pl/hp11/Fonds_Performance.aspx?Menu=1&amp;amp;Strat=Green&amp;amp;Gold=0&amp;amp;ISIN=XF0000SFIOA0&amp;amp;Top="&gt;SuperFund A SFIO PLN&lt;/a&gt;) to conclude its six years of presence on the Polish market more than 22% under the water...&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Hedge fund / non-benchmark funds were advertised as market neutral, able to withstand market&amp;nbsp;turbulence.&amp;nbsp;Unfortunately it seems most of them demonstrate unhealthy herd mentality.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Especially &lt;a href="http://www.reakkt.com/2010/04/porownanie-wybranych-polskich-funduszy.html"&gt;when they also have problems with beating the market in good times&lt;/a&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-7001192522056097479?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/7001192522056097479/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=7001192522056097479' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7001192522056097479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7001192522056097479'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2012/01/herd-mentality.html' title='Herd mentality'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-IW3hfqjKSQM/TwyKKuxuFlI/AAAAAAAABHw/rUfZUB4OnKc/s72-c/fundusze+vs+wig20+1y+2012.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8742296134675198238</id><published>2012-01-06T11:32:00.000+01:00</published><updated>2012-01-11T07:33:47.377+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USA'/><category scheme='http://www.blogger.com/atom/ns#' term='crisis'/><category scheme='http://www.blogger.com/atom/ns#' term='economy'/><title type='text'>US military expenditures vs GDP</title><content type='html'>&lt;a href="http://www.youtube.com/watch?v=TRU6tQdyYqQ"&gt;And now for something completely different&lt;/a&gt;, as the Month Python guys would say :)&lt;br /&gt;&lt;br /&gt;President Obama visited Pentagon&amp;nbsp;yesterday&amp;nbsp;to announce &lt;a href="http://news.google.com/news/story?pz=1&amp;amp;cf=all&amp;amp;ned=us&amp;amp;hl=en&amp;amp;topic=h&amp;amp;ncl=d9AlfKSllYajjbMCUHpVugi5ELs9M"&gt;significant military budget reductions over the next decade&lt;/a&gt;. The military expenses should be &lt;strike&gt;restricted to $487 billion&amp;nbsp;annually&lt;/strike&gt; reduced by $487 billion in the coming years.&lt;br /&gt;&lt;br /&gt;Taking into consideration, that the United States spent $698 billion for its military in 2010, that translates into &lt;strike&gt;an&amp;nbsp;unprecedented cut by 30% and CAGR of -3.5% over 10 years&lt;/strike&gt; an average cut of 7% annually.&lt;br /&gt;&lt;br /&gt;However, the US military budget was close to "just" $500 billion as close as in 2005, before it shoot to the last year's level of nearly $700 billion.&lt;br /&gt;&lt;br /&gt;Nevertheless, the announced military cut can possibly have some significant implications to the economy, for:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;military expenditures constitute close to 5% of the GDP, and&lt;br /&gt;&amp;nbsp; &amp;nbsp;&lt;/li&gt;&lt;li&gt;acted as&amp;nbsp;counter cyclical&amp;nbsp;factor in the most recent recession.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-qYwH536DvxA/TwbMrkhA2-I/AAAAAAAABHk/85-LBwX-vok/s1600/military+vs+GDP.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="266" src="http://3.bp.blogspot.com/-qYwH536DvxA/TwbMrkhA2-I/AAAAAAAABHk/85-LBwX-vok/s400/military+vs+GDP.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: US military expenditures 1988-2010, billion USD&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-fAMIy3LSvew/TwbMrGqbyVI/AAAAAAAABHc/IVWAcobnfpE/s1600/military+vs+GDP+3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="260" src="http://2.bp.blogspot.com/-fAMIy3LSvew/TwbMrGqbyVI/AAAAAAAABHc/IVWAcobnfpE/s400/military+vs+GDP+3.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: US military expenditures as % of GDP, 1988-2010&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-KspIdmsRcso/TwbMqneQU_I/AAAAAAAABHY/DnQIYD7Ybfc/s1600/military+vs+GDP+2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="290" src="http://2.bp.blogspot.com/-KspIdmsRcso/TwbMqneQU_I/AAAAAAAABHY/DnQIYD7Ybfc/s400/military+vs+GDP+2.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: growth of US military expenditures vs GDP growth, 1988-2010&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8742296134675198238?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8742296134675198238/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8742296134675198238' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8742296134675198238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8742296134675198238'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2012/01/and-now-for-something-completely.html' title='US military expenditures vs GDP'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-qYwH536DvxA/TwbMrkhA2-I/AAAAAAAABHk/85-LBwX-vok/s72-c/military+vs+GDP.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-6519171236817889076</id><published>2012-01-04T10:46:00.002+01:00</published><updated>2012-01-04T10:46:24.227+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='context model'/><category scheme='http://www.blogger.com/atom/ns#' term='WIG20'/><category scheme='http://www.blogger.com/atom/ns#' term='arbitrage'/><title type='text'>WIG20 oversold?</title><content type='html'>&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-1BQwbuvrf-4/TwQe0siGPqI/AAAAAAAABHQ/bHfjn0E8plw/s1600/wig20+context+model+20120103.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="257" src="http://4.bp.blogspot.com/-1BQwbuvrf-4/TwQe0siGPqI/AAAAAAAABHQ/bHfjn0E8plw/s400/wig20+context+model+20120103.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: "Context model" for WIG20 as of 2012-01-03&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Continuing experiments with the "context models" &lt;a href="http://www.reakkt.com/2011/12/serendipity-or-extremes-detection.html"&gt;mentioned before&lt;/a&gt;, I have prepared a preliminary model for WIG20.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Above you see the visualization of the model result as of 2012-01-03. Seems the Polish market may be oversold versus its "context".&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;This would correspond pretty well with the &lt;a href="http://www.reakkt.com/2012/01/shortsightedness-and-bipolar-disorder.html"&gt;"market prediction for 2012" described here&lt;/a&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The time will verify that :)&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-6519171236817889076?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/6519171236817889076/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=6519171236817889076' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6519171236817889076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6519171236817889076'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2012/01/wig20-oversold.html' title='WIG20 oversold?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-1BQwbuvrf-4/TwQe0siGPqI/AAAAAAAABHQ/bHfjn0E8plw/s72-c/wig20+context+model+20120103.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1394747453053879862</id><published>2012-01-01T13:50:00.000+01:00</published><updated>2012-01-04T13:50:05.480+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='volatility clustering'/><category scheme='http://www.blogger.com/atom/ns#' term='contrarian investing'/><category scheme='http://www.blogger.com/atom/ns#' term='cognitive biases'/><category scheme='http://www.blogger.com/atom/ns#' term='WIG20'/><title type='text'>Shortsightedness and bipolar disorder?</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.shockmd.com/wp-content/istock_000004474493xsmall2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="311" src="http://www.shockmd.com/wp-content/istock_000004474493xsmall2.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;I've been reading today about the &lt;a href="http://www.parkiet.com/artykul/1157372-W-2012-roku-swiat-sie-raczej-nie-skonczy--ale---.html"&gt;analysts expectations for the performance of the stock market in 2012&lt;/a&gt;. Surprised by this year's market turmoil, they expect volatility to remain&amp;nbsp;heightened. They expect either&amp;nbsp;side-bound market or further declines, before later increases. The Q1 should give the definitive answer about the direction of the market in the rest of the year.&amp;nbsp;In total, they are much more&amp;nbsp;worried&amp;nbsp;and divided than last year. And - &lt;a href="http://www.reakkt.com/2011/09/waiting-for-break-out.html"&gt;as I wrote earlier&lt;/a&gt; - they are not alone.&lt;br /&gt;&lt;br /&gt;Let's compare what the &lt;a href="http://www.parkiet.com/artykul/34,1000195.html"&gt;analysts were expecting at the&amp;nbsp;beginning&amp;nbsp;of 2011&lt;/a&gt;. The consensus on December 24th, 2011, when WIG20 was at 2768.66, was for the market to raise by 10-15%, most probably after expecting correction to 2500 in 2011Q1, possibly to 3300-3500.&lt;br /&gt;&lt;br /&gt;In reality, the WIG20 decreased by 22.15% (from the open of 2754.67 on January 3rd, 2011 to the close of 2144.48 on December 30th, 2011). In the meantime, it reached the peak of 2942.39 (i.e. +6.81% from the beginning of the year (BYD) and +6.27% from December 23rd, 2010) on April 8th to fall to 2018.99 (i.e. -26.70% from the BYD) on September 23rd, 2011.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;Since it seems, analysts are usually dead wrong, the best strategy would be to take to opposite view to their current predictions.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;Hence, &lt;b&gt;we should either expect the volatility to come down and market to go up (scenario 1) or the market to go up at the&amp;nbsp;beginning&amp;nbsp;of the year, before correcting later (scenario 2).&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: large;"&gt;I both cases, the market should finish the year much higher than it's current level:&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-xClx7Q_f2K4/TwBWVm1-UaI/AAAAAAAABGo/iHVYW0fI3NM/s1600/wig20+prediction+2012.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="281" src="http://1.bp.blogspot.com/-xClx7Q_f2K4/TwBWVm1-UaI/AAAAAAAABGo/iHVYW0fI3NM/s400/wig20+prediction+2012.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Contrarian to analysts'&amp;nbsp;predictions for WIG20 for 2012&lt;/div&gt;&lt;span style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Update 2012-01-04:&lt;br /&gt;&lt;br /&gt;Analysts' predictions for S&amp;amp;P500 in 2012:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Morgan Stanley - 1167&lt;/li&gt;&lt;li&gt;HSBC - 1190&lt;/li&gt;&lt;li&gt;Goldman Sachs - 1250&lt;/li&gt;&lt;li&gt;Oppenheimer - 1400&lt;/li&gt;&lt;li&gt;JP Morgan - 1430&lt;/li&gt;&lt;li&gt;Deutsche Bank - 1500&lt;/li&gt;&lt;li&gt;average (Birinyi Associates) - 1334&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;a href="http://www.businessinsider.com/top-equity-strategists-forecast-2012-2011-12"&gt;Other source&lt;/a&gt;:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;mean: 1363&lt;/li&gt;&lt;li&gt;range: 1167 - 1500&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1394747453053879862?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1394747453053879862/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1394747453053879862' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1394747453053879862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1394747453053879862'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2012/01/shortsightedness-and-bipolar-disorder.html' title='Shortsightedness and bipolar disorder?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-xClx7Q_f2K4/TwBWVm1-UaI/AAAAAAAABGo/iHVYW0fI3NM/s72-c/wig20+prediction+2012.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-4472007543551252965</id><published>2011-12-31T18:39:00.001+01:00</published><updated>2011-12-31T18:51:21.071+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='crude oil'/><category scheme='http://www.blogger.com/atom/ns#' term='context model'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><category scheme='http://www.blogger.com/atom/ns#' term='arbitrage'/><title type='text'>Serendipity or extremes detection</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-pYlucqUkEYc/Tv9GFHM3E6I/AAAAAAAABGQ/2rAvd8Ys05o/s1600/brent+vs+model.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="388" src="http://2.bp.blogspot.com/-pYlucqUkEYc/Tv9GFHM3E6I/AAAAAAAABGQ/2rAvd8Ys05o/s640/brent+vs+model.jpg" width="640" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Brent oil futures vs "context model"&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;I've been experimenting with context models for financial assets today, when by serendipity discovered potentially very interesting method for detecting market extremes.&lt;br /&gt;&lt;br /&gt;Above you see the chart presenting the price of the Brent oil futures versus some context model.&lt;br /&gt;&lt;br /&gt;This was an experiment, since the model was designed to asses prices of some other assets. Brent oil was originally a part of the context. Then I turned the model around.&lt;br /&gt;&lt;br /&gt;Nevertheless, the experiment clearly shows that the price of Brent oil extremely diverged from the context in February 2009. Or rather the opposite happened - the context strongly diverged from the Brent.&lt;br /&gt;&lt;br /&gt;It would be an interesting indicator for buying context if only I was using this model in 2009...&lt;br /&gt;&lt;br /&gt;Hopefully the method will be ready soon for other extremes :)&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-4472007543551252965?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/4472007543551252965/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=4472007543551252965' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4472007543551252965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4472007543551252965'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/12/serendipity-or-extremes-detection.html' title='Serendipity or extremes detection'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-pYlucqUkEYc/Tv9GFHM3E6I/AAAAAAAABGQ/2rAvd8Ys05o/s72-c/brent+vs+model.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-2441487922140435833</id><published>2011-12-31T11:35:00.002+01:00</published><updated>2011-12-31T11:35:44.012+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><title type='text'>Zero x2</title><content type='html'>S&amp;amp;P500 has just finished the 2011 at 1257.60, nearly perfectly +/-0% from the&amp;nbsp;beginning&amp;nbsp;of the year (1262.82 at the open on January 3rd, 2011, i.e. -0.0041% to be precise).&lt;br /&gt;&lt;br /&gt;It also means that the index virtually didn't move from June 1st, 2001, or 10 years and 7 months before, when it closed at 1260.67.&lt;br /&gt;&lt;br /&gt;Welcome to the new brave world of ZERO ;)&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.google.com/finance?chdnp=1&amp;amp;chdd=1&amp;amp;chds=1&amp;amp;chdv=1&amp;amp;chvs=maximized&amp;amp;chdeh=0&amp;amp;chfdeh=0&amp;amp;chdet=1325324501410&amp;amp;chddm=1053745&amp;amp;chls=IntervalBasedLine&amp;amp;q=INDEXSP:.INX&amp;amp;ntsp=0"&gt;&lt;img border="0" height="265" src="http://2.bp.blogspot.com/-3QDjTJghZEs/Tv7ambcDsvI/AAAAAAAABF4/zRMs17i_q7o/s400/sp500+20111230.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Source: &lt;a href="http://www.google.com/finance?chdnp=1&amp;amp;chdd=1&amp;amp;chds=1&amp;amp;chdv=1&amp;amp;chvs=maximized&amp;amp;chdeh=0&amp;amp;chfdeh=0&amp;amp;chdet=1325324501410&amp;amp;chddm=1053745&amp;amp;chls=IntervalBasedLine&amp;amp;q=INDEXSP:.INX&amp;amp;ntsp=0"&gt;Google finance&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Still. ZERO is better than BEAR MARKET declared by Reuters at the beginning of October this year...&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-IAi0NLXXvf8/Tv7k3zh0enI/AAAAAAAABGE/kqpCOtPGilM/s1600/reuetrs+bear+market+20111004.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="246" src="http://1.bp.blogspot.com/-IAi0NLXXvf8/Tv7k3zh0enI/AAAAAAAABGE/kqpCOtPGilM/s400/reuetrs+bear+market+20111004.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Source: Reuters 2011-10-04&lt;/div&gt;&lt;br /&gt;Since the low of 1099.23 on October 3rd, the market rallied 11.15%.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-2441487922140435833?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/2441487922140435833/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=2441487922140435833' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2441487922140435833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2441487922140435833'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/12/zero-x2.html' title='Zero x2'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-3QDjTJghZEs/Tv7ambcDsvI/AAAAAAAABF4/zRMs17i_q7o/s72-c/sp500+20111230.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-6999697981220232383</id><published>2011-12-17T06:58:00.000+01:00</published><updated>2011-12-17T06:58:24.648+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Zynga'/><category scheme='http://www.blogger.com/atom/ns#' term='LinkedIn'/><category scheme='http://www.blogger.com/atom/ns#' term='Pandora'/><category scheme='http://www.blogger.com/atom/ns#' term='bubble'/><category scheme='http://www.blogger.com/atom/ns#' term='IPO'/><category scheme='http://www.blogger.com/atom/ns#' term='Groupon'/><title type='text'>Dot.com 2.0 - opportunity or bubble?</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://blogs.reuters.com/jeremy-gaunt//files/2011/05/cr_mega_601_Bubble.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://blogs.reuters.com/jeremy-gaunt//files/2011/05/cr_mega_601_Bubble.JPG" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Zynga Inc. debuted on NASDAQ, yesterday. The company shares felt by -5.00% to $9.50 from the IPO price.&lt;br /&gt;&lt;br /&gt;Zynga is the fourth high profile internet company that offered its shares to the public this year - after LinkedIn, Pandora and Groupon.&lt;br /&gt;&lt;br /&gt;So what the performance of these companies have been so far? Mixed.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;LinkedIn &amp;nbsp;+46.31% from $45 IPO price&lt;/li&gt;&lt;li&gt;Pandora &amp;nbsp; -34.05% from $16&lt;/li&gt;&lt;li&gt;Groupon &amp;nbsp;+15.20% from $20&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In total, the portfolio comprising of&amp;nbsp;equally&amp;nbsp;weighted four internet companies bought at IPO would bring +5.61% till yesterday. In the meantime, S&amp;amp;P500 lost -9.22% and NASDAQ -9.49%.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-size: large;"&gt;So, do we have a new buying opportunity of a life time or the next dot com bubble?&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-6999697981220232383?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/6999697981220232383/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=6999697981220232383' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6999697981220232383'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6999697981220232383'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/12/dotcom-20-opportunity-or-bubble.html' title='Dot.com 2.0 - opportunity or bubble?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1553770023515703536</id><published>2011-12-14T21:38:00.001+01:00</published><updated>2011-12-14T21:41:27.507+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Commerzbank'/><title type='text'>Commerzbank jumps, but will it last?</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-aWou6Heanvs/TukEpAl3AlI/AAAAAAAABFg/b4hJXmnoDao/s1600/commerzbank+20111214.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://2.bp.blogspot.com/-aWou6Heanvs/TukEpAl3AlI/AAAAAAAABFg/b4hJXmnoDao/s400/commerzbank+20111214.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Commerzbank vs DAX and Deutsche Bank, 2011-12-14, source: stooq.com&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Commerzbank's shares jumped by more than 5% today on news of &amp;nbsp;the reactivation of the German bank rescue fund and some increase in the planned purchases of highly discounted hybrid securities by the bank.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Despite today's rally, &lt;a href="http://www.google.com/finance?q=ETR%3ACBK"&gt;Commerzbank is still -78% YTD, -79% 1 year and astounding -95% 5 years.&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;According to &lt;a href="http://www.ft.com/intl/cms/s/0/94e6388c-2652-11e1-85fb-00144feabdc0.html"&gt;Financial Times&lt;/a&gt;:&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: arial, sans-serif; font-size: 13px; line-height: 15px;"&gt;Officials in Berlin are privately sceptical that Commerzbank can keep to its pledge to shore up its capital without using more state funds.&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The rescue fund, could allow Commerzbank to get rid of its Eurohypo division. However:&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: arial, sans-serif; font-size: 13px; line-height: 15px;"&gt;Chintan Joshi, analyst at Nomura, said that transferring bonds to the government at above market value would be a “straight bail-out” and therefore unlikely. “We do believe that a bail-out will come with pain attached ... we do not think Germany can provide a lucrative bail-out to Commerzbank in the current climate,”&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Also (&lt;a href="http://online.wsj.com/article/BT-CO-20111212-712022.html"&gt;Wall Street Journal&lt;/a&gt;):&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: arial, sans-serif; font-size: 13px; line-height: 15px;"&gt;On the downside, selling these assets to the SoFFin would come at the expense of hefty write-offs as they would have to be transferred at lower market values.&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;And this leads us to (FT again):&lt;/div&gt;&lt;blockquote class="tr_bq"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: arial, sans-serif; font-size: 13px; line-height: 15px;"&gt;Officials in Berlin are privately sceptical that Commerzbank can keep to its pledge to shore up its capital without using more state funds.&lt;/span&gt;&lt;/blockquote&gt;While:&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: arial, sans-serif; font-size: 13px; line-height: 15px;"&gt;Among the measures in the bill are provisions for BaFin, Germany’s financial regulator, to force banks to accept state help if it thinks a bank’s plans to raise capital are insufficient.&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;According to EBA, Commerzbank need 5.3 billion EUR of fresh capital. It's current market cap is 6.28 billion EUR. It can get some 700 million EUR from the purchases of the hybrid debt. Some more from savings.&amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Let's assume, the state bail-out will inject "only" 3 billion EUR of the fresh equity. It would mean, that the current shareholders would be diluted by some 66%.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;Under such scenario the price of Commerzbank shares can quite easily go under 1 EUR.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;More news about Commerzbank:&amp;nbsp;&lt;a href="https://pinboard.in/u:mjaniec/t:Commerzbank/" style="text-align: -webkit-auto;"&gt;https://pinboard.in/u:mjaniec/t:Commerzbank/&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1553770023515703536?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1553770023515703536/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1553770023515703536' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1553770023515703536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1553770023515703536'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/12/commerzbank-jumps-but-it-will-it-last.html' title='Commerzbank jumps, but will it last?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-aWou6Heanvs/TukEpAl3AlI/AAAAAAAABFg/b4hJXmnoDao/s72-c/commerzbank+20111214.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-6521125618149986593</id><published>2011-12-11T21:06:00.001+01:00</published><updated>2011-12-11T21:13:02.715+01:00</updated><title type='text'>Let's Occupy Wall Street?</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-IiYN7pxrbTY/TuUNJpy8LfI/AAAAAAAABFM/_RGFHgigxcw/s1600/mw3_occupy1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="231" src="http://1.bp.blogspot.com/-IiYN7pxrbTY/TuUNJpy8LfI/AAAAAAAABFM/_RGFHgigxcw/s400/mw3_occupy1.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-yDpqCRjiheY/TuUNKiwMLyI/AAAAAAAABFU/ToIreUzXmGs/s1600/mw3_occupy2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="228" src="http://1.bp.blogspot.com/-yDpqCRjiheY/TuUNKiwMLyI/AAAAAAAABFU/ToIreUzXmGs/s400/mw3_occupy2.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Screenshots from&amp;nbsp;&lt;a href="http://www.callofduty.com/mw3"&gt;Modern&amp;nbsp;Warfare&amp;nbsp;3&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;I wonder whether the Occupy Wall Street movement was inspired by Modern Warfare 3 or the other way around.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Nevertheless, MW3 is definitely my favorite installment is the series so far :)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-6521125618149986593?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/6521125618149986593/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=6521125618149986593' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6521125618149986593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6521125618149986593'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/12/lets-occupy-wall-street.html' title='Let&apos;s Occupy Wall Street?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-IiYN7pxrbTY/TuUNJpy8LfI/AAAAAAAABFM/_RGFHgigxcw/s72-c/mw3_occupy1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-7150148541179632166</id><published>2011-12-11T09:21:00.001+01:00</published><updated>2011-12-11T09:43:55.040+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='IMF'/><category scheme='http://www.blogger.com/atom/ns#' term='EU'/><title type='text'>200 billion EUR without the UK = 170 billion EUR</title><content type='html'>At the recent EU summit, politicians declared "up to 200 billion EUR" loans to IMF to&amp;nbsp;strengthen&amp;nbsp;the defense of the Euro.&lt;br /&gt;&lt;br /&gt;150 billion EUR should come from the eurozone member countries, and 50 billion EUR from the other EU states.&lt;br /&gt;&lt;br /&gt;It's quite easy to find out where these numbers come from: 150 billion EUR / (eurozone GDP / EU GDP) = 202.45 billion EUR.&lt;br /&gt;&lt;br /&gt;However, the UK veto changes slightly this calculation.&lt;br /&gt;&lt;br /&gt;First some basic statistics (source: &lt;a href="http://en.wikipedia.org/wiki/Economy_of_the_European_Union#Economic_variation"&gt;Wikipedia&lt;/a&gt;):&lt;br /&gt;&lt;br /&gt;EU GDP = 12,268,387 million EUR&lt;br /&gt;EU GDP less UK = 10,471,804 million EUR&lt;br /&gt;Eurozone GDP = 9,089,966 million EUR&lt;br /&gt;non-eurozone GDP = 3,178,421 million EUR&lt;br /&gt;non-eurozone GDP less UK = 1,381,838 million EUR&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;non-eurozone GDP less UK / non-eurozone GDP = 43,48%&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Hence, the 50 billion EUR non-eurozone contribution, will most probably be reduced by some 57%:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;50 billion EUR * 43.48% = 21.74 billion EUR&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Assuming no other country backs off from the plan, we should expect that the IMF loans will total:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;b&gt;150 + 21 = 171 billion EUR&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;BTW: A Polish newspaper&lt;a href="http://gpcodziennie.pl/3075-miliardy-na-przedluzenie-agonii-euro.html"&gt; "Gazeta Polska codziennie" suggests the Polish contribution to the IMF loans will equal 100 billion PLN&lt;/a&gt; or 22.22 billion EUR. I don't understand where this number comes from. I'd assume, Polish contribution would be equal to 21.74 billion EUR * (Polish GDP / non-eurozone GDP less UK) or 5.57 billion EUR * 4.50 EURPLN = 25.08 billion PLN.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-7150148541179632166?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/7150148541179632166/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=7150148541179632166' title='Komentarze (1)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7150148541179632166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7150148541179632166'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/12/200-billion-eur-without-uk-170-billion.html' title='200 billion EUR without the UK = 170 billion EUR'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1284905500900721701</id><published>2011-12-09T22:05:00.001+01:00</published><updated>2011-12-09T22:22:43.998+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='volatility'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='EU'/><category scheme='http://www.blogger.com/atom/ns#' term='ECB'/><title type='text'>A day at the races</title><content type='html'>&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-zVc1Rh3SzLI/TuJ4D7rSrqI/AAAAAAAABFE/c53bZMn9EWI/s1600/ES.F+20111209.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-zVc1Rh3SzLI/TuJ4D7rSrqI/AAAAAAAABFE/c53bZMn9EWI/s400/ES.F+20111209.jpg" width="317" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. S&amp;amp;P500 futures, 2011-12-08 / 09; source: XTB&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The S&amp;amp;P500 futures have fallen from 1270 to 1222 yesterday (i.e. -3.8%), to bounce back to around 1250 today (+2,3%).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;i&gt;"The European Union will die - SELL, SELL, SELL!"&lt;/i&gt; - suggested reaction to the yesterday's ECB announcement. &lt;i&gt;"The European Union is saved - BUY, BUY, BUY!"&lt;/i&gt; - declared investors after the summit.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;I have seen quite similar behavior somewhere, some time ago...&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;object class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://0.gvt0.com/vi/mzJmTCYmo9g/0.jpg" height="266" width="320"&gt;&lt;param name="movie" value="http://www.youtube.com/v/mzJmTCYmo9g&amp;fs=1&amp;source=uds" /&gt;&lt;param name="bgcolor" value="#FFFFFF" /&gt;&lt;embed width="320" height="266"  src="http://www.youtube.com/v/mzJmTCYmo9g&amp;fs=1&amp;source=uds" type="application/x-shockwave-flash"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1284905500900721701?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1284905500900721701/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1284905500900721701' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1284905500900721701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1284905500900721701'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/12/day-at-races.html' title='A day at the races'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-zVc1Rh3SzLI/TuJ4D7rSrqI/AAAAAAAABFE/c53bZMn9EWI/s72-c/ES.F+20111209.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-7310881155168029824</id><published>2011-11-21T22:30:00.001+01:00</published><updated>2011-11-21T22:34:39.554+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Operation Twist'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='Fed'/><category scheme='http://www.blogger.com/atom/ns#' term='quantitative easing'/><title type='text'>Back to Twist</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-8JKmA4LIyKs/TsrC1iJBqLI/AAAAAAAABE4/GvaYa_hwWh0/s1600/esf+close+20111121.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="258" src="http://2.bp.blogspot.com/-8JKmA4LIyKs/TsrC1iJBqLI/AAAAAAAABE4/GvaYa_hwWh0/s400/esf+close+20111121.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: S&amp;amp;P500 futures close, 2011-11-21; XTB&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;After exactly two months, S&amp;amp;P500 has returned today to the level it was just before the &lt;a href="http://www.federalreserve.gov/newsevents/press/monetary/20110921a.htm"&gt;Fed&amp;nbsp;announced&amp;nbsp;Operation Twist&lt;/a&gt;.&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-7310881155168029824?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/7310881155168029824/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=7310881155168029824' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7310881155168029824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7310881155168029824'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/11/back-to-twist.html' title='Back to Twist'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-8JKmA4LIyKs/TsrC1iJBqLI/AAAAAAAABE4/GvaYa_hwWh0/s72-c/esf+close+20111121.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8167556635387520714</id><published>2011-11-20T07:32:00.001+01:00</published><updated>2011-11-20T07:51:38.845+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GPW'/><category scheme='http://www.blogger.com/atom/ns#' term='high-frequency trading'/><category scheme='http://www.blogger.com/atom/ns#' term='random walk'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Another failed test of financial data normality</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-RIeoWY-Wxms/Tsie6frEt-I/AAAAAAAABEE/-EhBZZ0v5uk/s1600/LOTOS+-+runs+test+ALL+-+tick.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="332" src="http://1.bp.blogspot.com/-RIeoWY-Wxms/Tsie6frEt-I/AAAAAAAABEE/-EhBZZ0v5uk/s400/LOTOS+-+runs+test+ALL+-+tick.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Robust non-parametric runs test for tick data for LOTOS, June 2005 - October 2011&lt;/div&gt;&lt;br /&gt;Back in May 2010, I presented a&amp;nbsp;preliminary&amp;nbsp;analysis of the&lt;a href="http://www.reakkt.com/2010/05/prawdopodobienstwo-n-kolejnych-wzrostow.html"&gt; probability of&amp;nbsp;consecutive&amp;nbsp;changes and conditional&amp;nbsp;consecutive changes for daily closing prices for S&amp;amp;P500 and EURUSD&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I mentioned then some observed deviations from the random walk model, and postulated further research. I've just had an opportunity to check this behavior on intraday data for a number of stocks listed on the &lt;a href="http://gpw.pl/"&gt;Warsaw Stock Exchange&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I have modified the methodology and changed some assumptions in the test procedure. Above you can see the result of the new test performed on the tick data for &lt;a href="http://stooq.com/q/?s=lts"&gt;Grupa Lotos S.A.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Deviations from the model probability are clearly visible even when a pretty wide confidence band based on the sampled distribution probability is implied to filter out uncertain signals.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8167556635387520714?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8167556635387520714/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8167556635387520714' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8167556635387520714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8167556635387520714'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/11/another-failed-test-of-financial-data.html' title='Another failed test of financial data normality'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-RIeoWY-Wxms/Tsie6frEt-I/AAAAAAAABEE/-EhBZZ0v5uk/s72-c/LOTOS+-+runs+test+ALL+-+tick.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-4900555948489482342</id><published>2011-11-18T16:33:00.001+01:00</published><updated>2011-11-18T16:44:16.110+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GPW'/><category scheme='http://www.blogger.com/atom/ns#' term='high-frequency trading'/><category scheme='http://www.blogger.com/atom/ns#' term='WIG20'/><title type='text'>It's not HFT on the WSE yet, but...</title><content type='html'>&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-7cbJKdQviow/TsZ6rwjaUuI/AAAAAAAABD8/H8rKkXZlsag/s1600/WIG20+ticks+per+day.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="366" src="http://2.bp.blogspot.com/-7cbJKdQviow/TsZ6rwjaUuI/AAAAAAAABD8/H8rKkXZlsag/s400/WIG20+ticks+per+day.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Cumulative ticks per day for WIG20 shares, November 2000 - October 2011&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The above chart shows the cumulative number of the ticks per day recorded between mid November 2000 and end of October 2011 for the shares currently&amp;nbsp;constituting&amp;nbsp;&lt;a href="http://www.gpw.pl/portfele_indeksow#WIG20"&gt;WIG20 index&lt;/a&gt; (please note that the composition of index was different before September 2011 and some of the share currently traded were not available in the past)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Clearly the frequency of registered quotes hence the trades is raising. Still, it's far from the theoretical maximum.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Let's wait what happens when the Warsaw Stock Exchange introduces a new trading platform next year...&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-4900555948489482342?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/4900555948489482342/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=4900555948489482342' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4900555948489482342'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4900555948489482342'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/11/its-not-hft-yet-on-wse-yet-but.html' title='It&apos;s not HFT on the WSE yet, but...'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-7cbJKdQviow/TsZ6rwjaUuI/AAAAAAAABD8/H8rKkXZlsag/s72-c/WIG20+ticks+per+day.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-6529716095455625763</id><published>2011-10-27T19:10:00.002+02:00</published><updated>2011-10-27T19:40:12.659+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='correlation'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='WIG20'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Correlation doesn't mean easy prediction</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-V4AZXQHuhfs/TqmJKzJqzNI/AAAAAAAABDg/A6wD0Wo-RRM/s1600/fw20+esf+10yr.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://4.bp.blogspot.com/-V4AZXQHuhfs/TqmJKzJqzNI/AAAAAAAABDg/A6wD0Wo-RRM/s400/fw20+esf+10yr.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: WIG20 futures vs S&amp;amp;P500 futures over 10 years, stooq.com&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The Polish and the US stock markets are undeniably connected, which is visible on the above chart, showing performance of the WIG20 futures against the S&amp;amp;P500 futures over 10 years (the realized correlation over the period is 0.7091).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;However it doesn't mean that you can use this connection to predict short time price movements - the correlation between previous day change in the S&amp;amp;P500 futures and the current day WIG20 futures change is just 0.1380.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Since for the gaps between the closing on the previous day and the opening on the current you are unable to "catch" the whole daily change of the WIG20, the better value to compare is the change from the opening till close. In this case, the correlation with S&amp;amp;P500 futures changes to -0.1273&amp;nbsp;(minus).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; fw20c[1:10,]&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Date Open High &amp;nbsp;Low Close Volume OpenInt &amp;nbsp; &amp;nbsp; D_Change &amp;nbsp; &amp;nbsp; OC_Change&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;3 &amp;nbsp;2000-01-05 1827 1839 1807 &amp;nbsp;1811 &amp;nbsp; 5172 &amp;nbsp; &amp;nbsp;4694 -0.019683522 -0.0087960985&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;4 &amp;nbsp;2000-01-06 1802 1849 1784 &amp;nbsp;1848 &amp;nbsp; 5220 &amp;nbsp; &amp;nbsp;4801 &amp;nbsp;0.020224794 &amp;nbsp;0.0252068140&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;5 &amp;nbsp;2000-01-07 1936 1998 1935 &amp;nbsp;1982 &amp;nbsp; 5671 &amp;nbsp; &amp;nbsp;4918 &amp;nbsp;0.070002463 &amp;nbsp;0.0234824471&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;7 &amp;nbsp;2000-01-11 2010 2070 1950 &amp;nbsp;2042 &amp;nbsp; 5990 &amp;nbsp; &amp;nbsp;5622 -0.020359404 &amp;nbsp;0.0157949977&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;8 &amp;nbsp;2000-01-12 2015 2044 2010 &amp;nbsp;2030 &amp;nbsp; 4312 &amp;nbsp; &amp;nbsp;5917 -0.005893927 &amp;nbsp;0.0074165977&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;9 &amp;nbsp;2000-01-13 2110 2148 2093 &amp;nbsp;2135 &amp;nbsp; 5174 &amp;nbsp; &amp;nbsp;6033 &amp;nbsp;0.050430854 &amp;nbsp;0.0117786992&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;10 2000-01-14 2080 2137 2075 &amp;nbsp;2115 &amp;nbsp; 5024 &amp;nbsp; &amp;nbsp;5716 -0.009411834 &amp;nbsp;0.0166869188&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;13 2000-01-19 2035 2044 2005 &amp;nbsp;2036 &amp;nbsp; 5719 &amp;nbsp; &amp;nbsp;5936 -0.005388208 &amp;nbsp;0.0004912798&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;14 2000-01-20 2058 2068 2007 &amp;nbsp;2053 &amp;nbsp; 5975 &amp;nbsp; &amp;nbsp;5839 &amp;nbsp;0.008315039 -0.0024324994&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;15 2000-01-21 2043 2077 2043 &amp;nbsp;2071 &amp;nbsp; 3672 &amp;nbsp; &amp;nbsp;6266 &amp;nbsp;0.008729444 &amp;nbsp;0.0136122666&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; esfc[1:10,]&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Date &amp;nbsp; &amp;nbsp;Open &amp;nbsp; &amp;nbsp;High &amp;nbsp; &amp;nbsp; Low &amp;nbsp; Close Volume OpenInt &amp;nbsp; &amp;nbsp; D_Change&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;2 &amp;nbsp;2000-01-04 1467.00 1468.75 1409.50 1411.75 &amp;nbsp;61942 &amp;nbsp; 13967 -0.038218999&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;3 &amp;nbsp;2000-01-05 1411.50 1427.25 1385.00 1413.50 &amp;nbsp;64049 &amp;nbsp; 13007 &amp;nbsp;0.001238829&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;4 &amp;nbsp;2000-01-06 1411.00 1426.25 1395.75 1404.00 &amp;nbsp;73127 &amp;nbsp; 13870 -0.006743593&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;6 &amp;nbsp;2000-01-10 1459.75 1481.00 1455.25 1475.00 &amp;nbsp;60548 &amp;nbsp; 15339 &amp;nbsp;0.009879147&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;7 &amp;nbsp;2000-01-11 1473.75 1475.00 1447.00 1454.25 &amp;nbsp;59343 &amp;nbsp; 16080 -0.014167686&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;8 &amp;nbsp;2000-01-12 1453.50 1459.50 1438.75 1442.00 &amp;nbsp;70097 &amp;nbsp; 16982 -0.008459265&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;9 &amp;nbsp;2000-01-13 1441.50 1466.75 1441.25 1458.50 &amp;nbsp;62509 &amp;nbsp; 16832 &amp;nbsp;0.011377471&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;11 2000-01-18 1478.00 1480.25 1462.00 1469.50 &amp;nbsp;57421 &amp;nbsp; 16106 -0.005767616&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;12 2000-01-19 1468.75 1474.00 1450.25 1472.50 &amp;nbsp;65454 &amp;nbsp; 16859 &amp;nbsp;0.002039430&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;13 2000-01-20 1472.75 1485.00 1448.00 1457.00 &amp;nbsp;57788 &amp;nbsp; 18126 -0.010582109&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;(...)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; cor(esfc$D_Change,fw20c$D_Change)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 0.1380338&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; cor(esfc$D_Change,fw20c$OC_Change)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] -0.1273032&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; cor(fw20c$D_Change,fw20c$OC_Change)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 0.8551321&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://snipplr.com/view/60288/wig20--sp500-daytoday-correlation/"&gt;Source code available here.&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-6529716095455625763?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/6529716095455625763/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=6529716095455625763' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6529716095455625763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6529716095455625763'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/10/correlation-doesnt-mean-easy-prediction.html' title='Correlation doesn&apos;t mean easy prediction'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-V4AZXQHuhfs/TqmJKzJqzNI/AAAAAAAABDg/A6wD0Wo-RRM/s72-c/fw20+esf+10yr.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8556198405282764813</id><published>2011-10-25T22:31:00.002+02:00</published><updated>2011-10-26T10:50:30.569+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='random walk'/><category scheme='http://www.blogger.com/atom/ns#' term='cointegration'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Cointegrated drunk and her dog visualized</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-XKWYojB9hZs/TqcY7MD8VKI/AAAAAAAABDE/Tcf1FpQ2PP8/s1600/cointegration.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-XKWYojB9hZs/TqcY7MD8VKI/AAAAAAAABDE/Tcf1FpQ2PP8/s400/cointegration.jpeg" width="371" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Drunk and Her Dog&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;I was reading today an &lt;a href="http://www-stat.wharton.upenn.edu/~steele/Courses/434/434Context/Co-integration/Murray93DrunkAndDog.pdf"&gt;article about&amp;nbsp;cointegration, written by Michael P. Murray&lt;/a&gt;. It describes a case of a random walking drunk accompanied by an unleashed dog.&amp;nbsp;Occasionally the dog barks or the drunk calls the dog, and they try to get a little closer to each other based on the sounds.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;I thought it may be interesting to visualize the process. You can see the result above :)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The drunk and her dog start at the position [0,0]. Their final positions (in this case after 100,000 moves by each) are indicated by the crossings of the green - for the drunk - and blue - for the dog - lines.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;There are three parameters to set: the number of steps, the frequency of either dog barking or the drunk calling the dog, and the efficiency of the correction mechanism, i.e. how much they can reduce distance between themselves on each occasion they try to get closer, and how precisely they can set the course toward each other (the angel).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Although trajectories of both the drunk and the dog follow the random walk:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-kajFrxZIt4o/TqfHpbjnkqI/AAAAAAAABDM/PgE-ZzzoOqI/s1600/random+walks.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-kajFrxZIt4o/TqfHpbjnkqI/AAAAAAAABDM/PgE-ZzzoOqI/s400/random+walks.jpeg" width="371" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;They are highly correlated:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; cor(drunk_path[,1],dog_path[,1])&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 0.9951132&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; cor(drunk_path[,2],dog_path[,2])&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 0.9937595&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;And the distance between them is a stationary process:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-JGa8EDKyVQY/TqfIUPHEStI/AAAAAAAABDU/CgAQ2T_iG_0/s1600/distance.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-JGa8EDKyVQY/TqfIUPHEStI/AAAAAAAABDU/CgAQ2T_iG_0/s400/distance.jpeg" width="371" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; mean(distance);sd(distance)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 8.948513&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 6.242085&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;You can decrease the correlation of the cointegrated processes by manipulating the frequency of error correction and precision of the correction mechanism - see parameters mentioned above.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://snipplr.com/view/60196/drunk-and-her-dog-visualized/"&gt;Source code available here.&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8556198405282764813?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8556198405282764813/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8556198405282764813' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8556198405282764813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8556198405282764813'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/10/cointegrated-drunk-and-her-dog.html' title='Cointegrated drunk and her dog visualized'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-XKWYojB9hZs/TqcY7MD8VKI/AAAAAAAABDE/Tcf1FpQ2PP8/s72-c/cointegration.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-858409510821429074</id><published>2011-10-07T19:08:00.001+02:00</published><updated>2011-10-07T19:08:23.254+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Danaher'/><category scheme='http://www.blogger.com/atom/ns#' term='Berkshire Hathaway'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='Warren Buffett'/><title type='text'>Eat this Berkshire Hathaway ;)</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-rCM5_umjMHE/To8rqY3rfVI/AAAAAAAABC8/RNw55CEQrJY/s1600/danaher+vs+brk.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="246" src="http://4.bp.blogspot.com/-rCM5_umjMHE/To8rqY3rfVI/AAAAAAAABC8/RNw55CEQrJY/s400/danaher+vs+brk.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Danaher Corp. vs Berkshire Hathaway &amp;amp; S&amp;amp;P500&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Since June 1990, stock price of Warren Buffet's &lt;a href="http://www.google.com/finance?q=NYSE:BRK.A"&gt;Berkshire Hathaway&lt;/a&gt; was growing on average by 13.5% annually. As a result Berkshire shares rose by 1435% versus just 218% for S&amp;amp;P500. Pretty good,&amp;nbsp;isn't it?&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Yes, but you can find companies that dared significantly better. One of them is &lt;a href="http://www.google.com/finance?q=NYSE:DHR"&gt;Danaher Corporation&lt;/a&gt; - a&amp;nbsp;conglomerate&amp;nbsp;of various industrial and technological companies - that grew by 2961% over the same period.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Its performance is equally&amp;nbsp;impressive&amp;nbsp;over a much longer period of nearly 33 years - 37093% in total or 19.3% annually versus 1100% for S&amp;amp;P500.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-858409510821429074?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/858409510821429074/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=858409510821429074' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/858409510821429074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/858409510821429074'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/10/eat-this-berkshire-hathaway.html' title='Eat this Berkshire Hathaway ;)'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-rCM5_umjMHE/To8rqY3rfVI/AAAAAAAABC8/RNw55CEQrJY/s72-c/danaher+vs+brk.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-6074927214646439884</id><published>2011-10-02T09:50:00.000+02:00</published><updated>2011-10-02T10:01:43.283+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='option'/><category scheme='http://www.blogger.com/atom/ns#' term='Black-Scholes'/><category scheme='http://www.blogger.com/atom/ns#' term='Bank of America'/><title type='text'>Highly distorted prices of long term BofA call options</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://cute-avatar.com/emoticon/matcuoi1/crazy-smile.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://cute-avatar.com/emoticon/matcuoi1/crazy-smile.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;There is something funny going on with the long term out-of-the-money call options on Bank of America. And its not a typical example of the &lt;a href="http://en.wikipedia.org/wiki/Volatility_smile"&gt;"volatility smile"&lt;/a&gt; ;)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://finance.yahoo.com/q?s=BACD131227C00001000"&gt;$1.00 calls for December 2013&lt;/a&gt; were trading (lightly) at $0.08 on Friday. According to Black-Scholes formula, a &lt;a href="http://www.wolframalpha.com/input/?i=black+scholes&amp;amp;a=*FP.FinancialOption.OptionName-_VanillaAmerican&amp;amp;a=*FP.FinancialOption.opttype-_Call&amp;amp;f3=%241&amp;amp;f=FinancialOption.strike_%241&amp;amp;f4=27+mo&amp;amp;f=FinancialOption.exptime_27+mo&amp;amp;f5=%246.12&amp;amp;f=FinancialOption.underlying_%246.12&amp;amp;f6=55%25&amp;amp;f=FinancialOption.vol_55%25&amp;amp;f7=0.654&amp;amp;f=FinancialOption.div_0.654&amp;amp;f8=0.4&amp;amp;x=9&amp;amp;y=10&amp;amp;f=FinancialOption.rf_0.4&amp;amp;a=*FVarOpt.1-_***FinancialOption.exptime--.***FinancialOption.expdate-.*FinancialOption.currdate---.*--"&gt;theoretical value of such option is $5.12&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;At the same time, &lt;a href="http://moneycentral.msn.com/investor/options/default.asp?symbol=BAC&amp;amp;month=12&amp;amp;year=2014"&gt;$1.00 calls for December 2014&lt;/a&gt;, were quoted at $0.36, although there were no transactions.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-6074927214646439884?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/6074927214646439884/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=6074927214646439884' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6074927214646439884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6074927214646439884'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/10/highly-distorted-prices-of-long-term.html' title='Highly distorted prices of long term BofA call options'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8519062987803566013</id><published>2011-10-01T23:20:00.001+02:00</published><updated>2011-10-03T06:09:15.542+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='Greece'/><category scheme='http://www.blogger.com/atom/ns#' term='panic'/><category scheme='http://www.blogger.com/atom/ns#' term='economy'/><title type='text'>If you cannot save it, dump it</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://finviz.com/map3d.ashx?d=20110930"&gt;&lt;img border="0" height="306" src="http://finviz.com/publish/093011/sp500_large1658.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: S&amp;amp;P 500 Heatmap 2011-09-30; &lt;a href="http://finviz.com/"&gt;finviz.com&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Nobody was willing to window dress on the last day of September. S&amp;amp;P500 index felt 2.5% on Friday. Futures were down even more - 3.13%. S&amp;amp;P500 is down 7.2% for September and 14.3% for the quarter.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Maybe I'm too optimistic, but I'd assume that at least some money managers decided that if they couldn't improve their&amp;nbsp;quarterly&amp;nbsp;numbers it might be better for them to sink even more to lower the baseline for the next quarter.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Many investors believe that S&amp;amp;P500 currently is at the critical technical level and either it will defend it or sharply go down. Some of &lt;a href="http://ftalphaville.ft.com/blog/2011/09/30/689781/the-sp-at-400-is-almost-inevitable/"&gt;the most&amp;nbsp;pessimistic&amp;nbsp;analysts even see the 400 level&lt;/a&gt;...&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Definitely there are reasons to worry about the prospects of the global economy and hence stock prices. As mentioned in the previous posts, &lt;a href="http://www.reakkt.com/2011/09/waiting-for-break-out.html"&gt;investors are highly divided&lt;/a&gt;, which leads to high volatility.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Two key factors affect the markets: dragging crisis in Europe and fears about the economy. Since we shouldn't expect resolutions to these problems soon, the volatility will most probably continue. More &lt;a href="http://www.ft.com/intl/cms/s/0/c2632ee8-eba9-11e0-943a-00144feab49a.html"&gt;panic sell outs&lt;/a&gt; are likely.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Nevertheless, I'd not expect the Greek crisis to transform into another &lt;a href="http://en.wikipedia.org/wiki/Bankruptcy_of_Lehman_Brothers"&gt;Lehman crash&lt;/a&gt;, even if Greece defaults. The Greek debt is much smaller than Lehman's assets, it has different characteristic, and the parties involved had plenty of time to prepare.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;In the meantime, the economic data are mixed, with weak confidence readings overshadowing some signals of slow improvements.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;On October 11th, the Q3 earning season begins. &lt;a href="http://www.businessinsider.com/ubs-q3-earnings-preview-2011-9"&gt;The company earnings may be a little better than expected&lt;/a&gt;. &amp;nbsp;Provided that none catastrophic event materializes, there is a chance markets will raise. Although I'd not aim at the&lt;a href="http://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;cd=7&amp;amp;ved=0CFAQFjAG&amp;amp;url=http%3A%2F%2Fwww.scribd.com%2Fdoc%2F64672948%2FIdiot-Report&amp;amp;ei=54CHToqkM4m80QWPiqgD&amp;amp;usg=AFQjCNGs00u6pVqOVcWzO7U5Va071HyqDw&amp;amp;sig2=p2lvv3RTGpRg7vNlSztLaA"&gt; 1450 level at the end of the year as some analysts...&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8519062987803566013?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8519062987803566013/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8519062987803566013' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8519062987803566013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8519062987803566013'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/10/if-you-cannot-save-it-dump-it.html' title='If you cannot save it, dump it'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-5220844835543456789</id><published>2011-09-30T19:02:00.003+02:00</published><updated>2011-10-03T06:10:13.142+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='option'/><category scheme='http://www.blogger.com/atom/ns#' term='Black-Scholes'/><category scheme='http://www.blogger.com/atom/ns#' term='Warren Buffett'/><category scheme='http://www.blogger.com/atom/ns#' term='Bank of America'/><title type='text'>Warren Buffett didn't make 20% on August 26th...</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;...he potentially made over 63%!&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;And his investment is&amp;nbsp;asymmetrically depended on the performance of the Bank of America shares.&amp;nbsp;He can gain when shares go up, but doesn't lose when they go down. Unless the bank fails.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;How does it works?&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-nLSyHjqD5so/ToXyXjKnPEI/AAAAAAAABC0/sqDKT8HAc30/s1600/bac+3m+20110930.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://3.bp.blogspot.com/-nLSyHjqD5so/ToXyXjKnPEI/AAAAAAAABC0/sqDKT8HAc30/s400/bac+3m+20110930.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Bank of America, 3M, 2011-09-30; stooq.com&lt;/div&gt;&lt;br /&gt;Bank of America is down again today. So far -2.6% at $6.18. That's 11.6% below the price on the day when Warren Buffett invested $5 billion in the company ($6.99), and 16.6% below the strike price of warrants granted to him ($7.14).&lt;br /&gt;&lt;br /&gt;Nevertheless, one cannot say that Mr. Buffett is down on his investment.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.wsj.com/marketbeat/2011/08/25/bank-of-america-shares-jump-on-buffett-investment/"&gt;The Buffett's investment consists of two elements&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;preferred shares paying 6% dividend&lt;/li&gt;&lt;li&gt;10 years warrants for 700 million BofA shares with the&amp;nbsp;exercise&amp;nbsp;price of $7.14&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Preferred shares are more like a subordinate debt rather than ordinary shares. Their performance is not connected with market fluctuations. As long as BofA don't go bust, they pay a nice dividend and retain their value.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Warrants are equivalent of call options on BofA shares. Based on the historic 10 years BofA volatility of 55% and using 10 year T-bonds yield of 1.83% we can estimate the value of the warrants using Black-Scholes formula. The result is $4.5 per warrant.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Since Bank of America granted 700 million warrants to Mr. Buffett, the potential value of them is about $3.15 billion. $3.15 billion on top of $5 billion investment makes a 63% return.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There are two critical assumptions in this investment, though:&lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li&gt;Bank of America does not go bankrupt&lt;/li&gt;&lt;li&gt;Bank of America does not require a substantial&amp;nbsp;government&amp;nbsp;bail-out that wipes out existing shareholders and decimates share price&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Even if you assume a high discount rate (say 50%) for calculating the potential value of the preferred shares purchased by Buffett, the total ROI on investment is above 10%.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-5220844835543456789?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/5220844835543456789/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=5220844835543456789' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5220844835543456789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5220844835543456789'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/warren-buffet-didnt-make-20-on-august.html' title='Warren Buffett didn&apos;t make 20% on August 26th...'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-nLSyHjqD5so/ToXyXjKnPEI/AAAAAAAABC0/sqDKT8HAc30/s72-c/bac+3m+20110930.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-4509425652492713207</id><published>2011-09-30T11:50:00.001+02:00</published><updated>2011-09-30T11:50:54.555+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='kurtosis'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='economy'/><title type='text'>Waiting for the break out</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-61804DCcvUc/ToWFroo8xJI/AAAAAAAABCs/tOZHPMwzlKk/s1600/risk-on+risk-off.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-61804DCcvUc/ToWFroo8xJI/AAAAAAAABCs/tOZHPMwzlKk/s400/risk-on+risk-off.jpg" width="303" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Risk-on / risk-off investor behavior; Bloomberg BRIEF&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Thursday's Bloomberg BRIEF describes the recent bipolar investors behavior dubbed "risk-on / risk-off".&amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Such behavior seems connected with the investors' uncertainty about the prospects of the economy. While many still believe in the recovery, similar number worry about a possible "double-dip".&lt;/div&gt;&lt;br /&gt;And the prolonging crisis in Europe does not help...&lt;br /&gt;&lt;br /&gt;As a result the distribution of the daily changes of the S&amp;amp;P500 index for the previous 20 sessions seems to resemble the investors&amp;nbsp;assessment&amp;nbsp;of the economy:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-nme1y64ruqg/ToWJOeFO-TI/AAAAAAAABCw/-JoXdz0szIM/s1600/sp500+20110929+20+days.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-nme1y64ruqg/ToWJOeFO-TI/AAAAAAAABCw/-JoXdz0szIM/s400/sp500+20110929+20+days.jpeg" width="360" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: distribution of daily S&amp;amp;P500 changes, 20 days through 2011-09-29&lt;/div&gt;&lt;br /&gt;Pretty unusual distribution (BTW: kurtosis of -1.2587 is characteristic to&amp;nbsp;&lt;a href="http://en.wikipedia.org/wiki/Wigner_semicircle_distribution"&gt;Wigner semicircle distribution&lt;/a&gt;) in connection with high volatility makes the market difficult for trend-oriented investors.&lt;br /&gt;&lt;br /&gt;But the market won't stay range-bound forever, will it?&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-4509425652492713207?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/4509425652492713207/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=4509425652492713207' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4509425652492713207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4509425652492713207'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/waiting-for-break-out.html' title='Waiting for the break out'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-61804DCcvUc/ToWFroo8xJI/AAAAAAAABCs/tOZHPMwzlKk/s72-c/risk-on+risk-off.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-5503943052049726753</id><published>2011-09-26T11:15:00.001+02:00</published><updated>2011-09-27T23:46:39.791+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='probability'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Probability of Lotto</title><content type='html'>There is currently a noticable&amp;nbsp;accumulation&amp;nbsp;in the Polish Lotto - 50 million PLN or $15.2 mln / 11.3 mln EUR.&lt;br /&gt;&lt;br /&gt;Since there are 6 numbers to select from 49, according to the basic probability calculations, the chance that some single ticket will win is 1 to 13,983,816.&lt;br /&gt;&lt;br /&gt;Hence, the expected value for a single ticket would be 50 million PLN * 1/13983816 or 3.57 PLN. Seems, someone buying some 13.98 million tickets (each at 3 PLN, which requires an investment of 42 mln PLN) cannot lose, right?&lt;br /&gt;&lt;br /&gt;Not exactly.&lt;br /&gt;&lt;br /&gt;It may happen there will be more than one winner. Let's suppose, some 10 million tickets will be bought in total by various people. Then, the probabilities of 2, 3, 4 or 5 distinctive winners are as following:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; dbinom(2:5,10e6,1/choose(49,6))&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 0.1250688763 0.0298127636 0.0053298679 0.0007622907&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In other words, there is a pretty large chance (16.1%), there will be 2 or more wining tickets.&lt;br /&gt;&lt;br /&gt;OK, so what is the expected value given the number of tickets&amp;nbsp;bought?&lt;br /&gt;&lt;br /&gt;Assuming that between 1 and 50 million tickets will be bought, the expected value decreases from 3.512 to 1.319:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-1IWuyw-Ukuo/ToA_tcaLmbI/AAAAAAAABCk/sj4Afw0t6wQ/s1600/lotto+-+ev+vs+no+of+tickets.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-1IWuyw-Ukuo/ToA_tcaLmbI/AAAAAAAABCk/sj4Afw0t6wQ/s400/lotto+-+ev+vs+no+of+tickets.jpeg" width="358" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: expected value [PLN] vs number of tickets sold [mln]&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For 10 million tickets, the EV is equal to 2.9659, which is below the price of the ticket (3 PLN):&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; Nwinners &amp;lt;- 100 # max. simultaneous winners in history - 80&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; Nbets &amp;lt;- 10e6&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; Vwin &amp;lt;- 50e6&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; Wwin &amp;lt;- sum(dbinom(1:Nwinners,Nbets,1/choose(49,6))/sum(dbinom(1:Nwinners,Nbets,1/choose(49,6)))*(Vwin/(1:Nwinners)))&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; Wwin&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 41475080&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; Wwin/Vwin&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 0.8295016&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; Wwin/choose(49,6)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 2.965934&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And there is also a 10% tax on winnings...&lt;br /&gt;&lt;br /&gt;UPDATE: On March 30, 1994 there was &lt;a href="http://pl.wikipedia.org/wiki/Lotto_(gra_liczbowa)#Historia"&gt;80 winning tickets&lt;/a&gt;. The&amp;nbsp;probability&amp;nbsp;of such an event is 4.985477*10^-86, even if ALL the Poles would have bought one ticket.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; dbinom(80,38*10^6,1/choose(49,6))&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 4.985477e-86&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The probability drops to 1.529368*10^-131 with 10 million tickets bought.&lt;br /&gt;&lt;br /&gt;Just as a reference, the number of the &lt;a href="http://en.wikipedia.org/wiki/Observable_universe#Matter_content"&gt;atoms in the observable universe is estimated at 10^80&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-5503943052049726753?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/5503943052049726753/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=5503943052049726753' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5503943052049726753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5503943052049726753'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/probability-of-lotto.html' title='Probability of Lotto'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-1IWuyw-Ukuo/ToA_tcaLmbI/AAAAAAAABCk/sj4Afw0t6wQ/s72-c/lotto+-+ev+vs+no+of+tickets.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-3279586150379814550</id><published>2011-09-25T09:18:00.000+02:00</published><updated>2011-09-25T09:18:19.172+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GOLD'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><title type='text'>A bigger bubble?</title><content type='html'>Do you think gold is a bubble? If yes, what would you say about Apple?&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-BNmJtt9523w/Tn7VhbdAoaI/AAAAAAAABCg/AzpbQ2wu5Hw/s1600/appl+vs+gold.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://2.bp.blogspot.com/-BNmJtt9523w/Tn7VhbdAoaI/AAAAAAAABCg/AzpbQ2wu5Hw/s400/appl+vs+gold.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: Apple vs gold, 10 years; stooq.com&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-3279586150379814550?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/3279586150379814550/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=3279586150379814550' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/3279586150379814550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/3279586150379814550'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/bigger-bubble.html' title='A bigger bubble?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-BNmJtt9523w/Tn7VhbdAoaI/AAAAAAAABCg/AzpbQ2wu5Hw/s72-c/appl+vs+gold.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8154623444807918648</id><published>2011-09-23T17:19:00.000+02:00</published><updated>2011-09-24T21:52:32.655+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='physics'/><title type='text'>Seven</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-OlMnkB0p-oU/TnyetuhP_uI/AAAAAAAABCc/uvPU1JjzbRU/s1600/cern_opera+20110923.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="287" src="http://1.bp.blogspot.com/-OlMnkB0p-oU/TnyetuhP_uI/AAAAAAAABCc/uvPU1JjzbRU/s400/cern_opera+20110923.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;Over the last nearly three years &lt;a href="http://arxiv.org/abs/1109.4897"&gt;researches at CERN have been observing some interesting&amp;nbsp;discrepancies in time it takes neutrinos to travel between laboratories in Switzerland and Italy&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The difference is very tiny - just 60.7 ns (equivalent to 17,77 meters at c) on a distance of&amp;nbsp;731,278 meters which translates into a 0.0000248 difference in the &lt;a href="http://en.wikipedia.org/wiki/Speed_of_light"&gt;&lt;b&gt;speed of light&lt;/b&gt;&lt;/a&gt;. In other words, the measured speed of neutrinos is 292,799.3 km/s instead of 292,792 km/s, or&lt;b&gt; 7 kilometers per second larger&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Even though the physicists at CERN spent significant time on verification of their surprising measurements, its too early to declare the result definitive. It definitely requires verification at other laboratories.&lt;br /&gt;&lt;br /&gt;But if it is confirmed, this tiny rift can transform into huge hole in the contemporary physics.&lt;br /&gt;&lt;br /&gt;BTW: In 2008, researches from Fermilab published &lt;a href="http://arxiv.org/abs/0706.0437"&gt;results of their MINOS experiment&lt;/a&gt;, in which the speed of&amp;nbsp;neutrinos&amp;nbsp;was measured at +0.000051, or 299,807.3 - 15 kilometers per second larger than c. However, the possible error was much higher than in the case of OPERA in CERN.&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8154623444807918648?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8154623444807918648/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8154623444807918648' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8154623444807918648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8154623444807918648'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/seven.html' title='Seven'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-OlMnkB0p-oU/TnyetuhP_uI/AAAAAAAABCc/uvPU1JjzbRU/s72-c/cern_opera+20110923.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-7785543419252435376</id><published>2011-09-23T13:46:00.002+02:00</published><updated>2011-09-23T14:18:03.738+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='risk'/><category scheme='http://www.blogger.com/atom/ns#' term='rogue trader'/><category scheme='http://www.blogger.com/atom/ns#' term='UBS'/><title type='text'>Kweku Adoboli vs Leo Apotheker ;)</title><content type='html'>&lt;b&gt;Kweku Adoboli&lt;/b&gt; is a UBS trader accused of losing $2.3 billion in a series of rogue transactions. Since September 15th, when the loss was announced, share price of UBS felt down by 14.62%, decreasing UBS market capitalization by some &lt;b&gt;$6.8 billion&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-o2ZW4RuW6uM/TnxwANoIZZI/AAAAAAAABCU/KZ2mHyCC4MI/s1600/adoboli.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://1.bp.blogspot.com/-o2ZW4RuW6uM/TnxwANoIZZI/AAAAAAAABCU/KZ2mHyCC4MI/s1600/adoboli.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Foto: Kweku Adoboli; &lt;a href="http://www.mirror.co.uk/news/top-stories/2011/09/22/ubs-rogue-trader-kweku-adoboli-sorry-beyond-words-court-hears-115875-23438867/"&gt;Mirror&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;b&gt;Leo Apotheker&lt;/b&gt; was the CEO of HP till&amp;nbsp;yesterday. Since September 30th, 2010 when he was&amp;nbsp;appointed, the capitalization of HP felt by 47.17% or by &lt;b&gt;$40.44 billion&lt;/b&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-8m3KXTy4aZc/TnxwtYhHmPI/AAAAAAAABCY/g9Xr8wOdMRs/s1600/apotheker.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://2.bp.blogspot.com/-8m3KXTy4aZc/TnxwtYhHmPI/AAAAAAAABCY/g9Xr8wOdMRs/s1600/apotheker.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Foto: Leo Apotheker; &lt;a href="http://www.cbsnews.com/stories/2011/09/22/scitech/main20110307.shtml"&gt;CBS News&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-7785543419252435376?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/7785543419252435376/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=7785543419252435376' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7785543419252435376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7785543419252435376'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/kweku-adoboli-vs-leo-apotheker.html' title='Kweku Adoboli vs Leo Apotheker ;)'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-o2ZW4RuW6uM/TnxwANoIZZI/AAAAAAAABCU/KZ2mHyCC4MI/s72-c/adoboli.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-4578083993182128474</id><published>2011-09-22T10:34:00.000+02:00</published><updated>2011-09-22T11:27:43.176+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='too big to fail'/><category scheme='http://www.blogger.com/atom/ns#' term='systemic risk'/><category scheme='http://www.blogger.com/atom/ns#' term='Dodd-Frank'/><category scheme='http://www.blogger.com/atom/ns#' term='Basel III'/><category scheme='http://www.blogger.com/atom/ns#' term='risk'/><category scheme='http://www.blogger.com/atom/ns#' term='Warren Buffett'/><category scheme='http://www.blogger.com/atom/ns#' term='Bank of America'/><title type='text'>Banks squeezed by regulations</title><content type='html'>&lt;a href="http://www.reuters.com/article/2011/09/22/us-bankofamerica-downgrade-idUSTRE78K4P020110922"&gt;Moody's downgraded debt of Bank of America, Citibank and Wells Fargo&lt;/a&gt; yesterday, saying &lt;b&gt;the banks may not be too big to fail anymore&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;In response Bank of America shares plummeted 7.54% to $6.36, below the $6.99 price before &lt;a href="http://dealbook.nytimes.com/2011/08/25/buffett-to-invest-5-billion-in-bank-of-america/"&gt;Warren Buffett invested $5 billion in the company in August&lt;/a&gt;. The price of bank's shares is also nearly 11% below &lt;a href="http://blogs.wsj.com/marketbeat/2011/08/25/bank-of-america-shares-jump-on-buffett-investment/"&gt;the&amp;nbsp;exercise level of&amp;nbsp;&amp;nbsp;warrants granted to Buffett&lt;/a&gt;. Fortunately for Mr. Buffett, part of the short-term impact should be reduced by 6% dividend from preferred shares he&amp;nbsp;owns, and the warrants can be&amp;nbsp;exercised anywhere&amp;nbsp;over the 10 year period.&lt;br /&gt;&lt;br /&gt;Nevertheless, Moody's action reflects increasing&amp;nbsp;pressure&amp;nbsp;banks both in the U.S. and Europe are facing from new regulations introduced after the crisis of 2008 - mainly &lt;a href="http://en.wikipedia.org/wiki/Dodd%E2%80%93Frank_Wall_Street_Reform_and_Consumer_Protection_Act"&gt;Dodd-Frank&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Basel_III"&gt;Basel III&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The former was&amp;nbsp;conceived&amp;nbsp;as a way to allow safe unwinding of financial institutions without the need of&amp;nbsp;government&amp;nbsp;bail outs. The later increases capital requirements for banks.&lt;br /&gt;&lt;br /&gt;According to Basel III, banks should increase their Tier I capital (i.e. common shares + retained earnings) / Risk Weighted Assets ratio to 4% and&amp;nbsp;additionally&amp;nbsp;create a "capital conservation buffer" of 2.5%.&lt;br /&gt;&lt;br /&gt;However, there is a significant problem with with the way of calculating Risk Weighted Assets (RWA) under Basel III. The regulations assign no risk to&amp;nbsp;sovereign debt.&amp;nbsp;As a result, European banks that already at least partially implemented Basel III rules, face a difficult situation connected with their holdings of&amp;nbsp;peripheral&amp;nbsp;eurozone bonds.&lt;br /&gt;&lt;br /&gt;More conservative way of calculating capital adequacy is to simply &lt;a href="http://www.bloomberg.com/news/2011-09-22/jamie-dimon-is-right-about-basel-wrong-about-new-rules-for-banking-view.html"&gt;divide bank equity by assets&lt;/a&gt;. When you use this formula to compare U.S. banks to their European peers, you get quite a&amp;nbsp;scary picture:&lt;br /&gt;&lt;script src="//ajax.googleapis.com/ajax/static/modules/gviz/1.0/chart.js" type="text/javascript"&gt; {"dataSourceUrl":"//docs.google.com/spreadsheet/tq?key=0AhOUwcJ7GU_hdEU0Vzg4MUYyOThQdEU5NHYyOHRrakE&amp;transpose=0&amp;headers=-1&amp;range=A1%3AB11&amp;gid=2&amp;pub=1","options":{"vAxes":[{"min":null,"title":null,"max":null}],"reverseCategories":false,"title":"","backgroundColor":"#FFFFFF","legend":"bottom","logScale":false,"reverseAxis":false,"hAxis":{"maxAlternation":1},"hasLabelsColumn":true,"isStacked":false,"vAxis":{"format":"#0.00%"},"width":700,"height":306},"state":{},"chartType":"ColumnChart","chartName":"Chart 1"} &lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Chart: Equity / Assets ratio for selected banks; data as of 2011-06-30 based on Google Finance &lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-4578083993182128474?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/4578083993182128474/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=4578083993182128474' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4578083993182128474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4578083993182128474'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/banks-squeezed-by-regulations.html' title='Banks squeezed by regulations'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-2909974703210803748</id><published>2011-09-21T22:41:00.000+02:00</published><updated>2011-09-21T23:03:11.551+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Operation Twist'/><category scheme='http://www.blogger.com/atom/ns#' term='EURUSD'/><category scheme='http://www.blogger.com/atom/ns#' term='systemic risk'/><category scheme='http://www.blogger.com/atom/ns#' term='crisis'/><category scheme='http://www.blogger.com/atom/ns#' term='USDJPY'/><category scheme='http://www.blogger.com/atom/ns#' term='forex'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='Fed'/><category scheme='http://www.blogger.com/atom/ns#' term='FOMC'/><title type='text'>Problems in Europe overshadow Operation Twist</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-GKCuqNEU5FE/TnpH0Z-ztsI/AAAAAAAABCM/Am6_DyZmp-o/s1600/esf+1+day+20110921.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://2.bp.blogspot.com/-GKCuqNEU5FE/TnpH0Z-ztsI/AAAAAAAABCM/Am6_DyZmp-o/s400/esf+1+day+20110921.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: S&amp;amp;P500 futures 1 day 2011-09-21; stooq.com&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;As anticipated, Fed has announced the "Operation Twist" today. The declared scale of the operation is a little larger than anticipated. And as a result&lt;b&gt; markets have sunk by 3%... &lt;/b&gt;(still, -2.94% is &lt;a href="http://www.reakkt.com/2011/08/s-down-666.html"&gt;better than &lt;br /&gt;-6.66%&lt;/a&gt;&amp;nbsp;;)&lt;br /&gt;&lt;br /&gt;Early comments point to the wording of the FOMC statement about the &lt;i&gt;"significant downside risks to the economic outlook, including strains in global financial markets" &lt;/i&gt;(previously: &lt;i&gt;"downside risks to the economic outlook have increased"&lt;/i&gt;).&lt;br /&gt;&lt;br /&gt;Is it really so strange that FOMC confirms there is a culminating problem in Europe, or is there something more?&lt;br /&gt;&lt;br /&gt;Since reading even a pretty short &lt;a href="http://www.zerohedge.com/news/operation-twist-here-fed-buy-400-bilion-usts-6-30-year-maturity-roll-maturities-mbs"&gt;FOMC statement&lt;/a&gt; is not so easy when markets are reacting&amp;nbsp;aggressively&amp;nbsp;in the real time, many people probably haven't noticed yet&lt;b&gt; a number of&amp;nbsp;slightly&amp;nbsp;positive changes in the wording:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;AUGUST &amp;gt; SEPTEMBER&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;indicators suggest a deterioration in overall market conditions &amp;gt; indicators point to continuing weakness in&amp;nbsp;overall market conditions&lt;br /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;household spending has flattened out &amp;gt;&amp;nbsp;household spending has been increasing at only modest pace&lt;br /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;inflation picked up earlier in the year &amp;gt; inflation appears to have moderated since earlier this year&lt;br /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;The Committee now expects a somewhat slower pace of recovery over coming quarters &amp;gt;&amp;nbsp;The Committee to expect some pickup in the&amp;nbsp;pace of recovery over coming quarters&lt;br /&gt;&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;It seems, Fed has observed some weak signals of the improvements in the economic conditions. The economy is still very fragile, especially the labor market. There is also a significant risk that - when realized - can have a tremendous impact of financial markets.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Probably what has been missing in &amp;nbsp;the FOMC statement is some kind of declaration that Fed is monitoring the situation and is willing and able to act in case of negative developments. Unless there is nothing Fed can do to mitigate this particular risk and market reaction is correct?&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Meanwhile, USDJPY has managed to bounce back from the&lt;a href="http://www.reakkt.com/2011/09/comparing-two-recent-forex.html"&gt; previously mentioned 76.00 defense level&lt;/a&gt;. Will see how long it will last...&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-O6QwbizrEoE/TnpIAOkfd-I/AAAAAAAABCQ/tYrTpWKlvKQ/s1600/usdjpy+usdeur+1+day+20110921.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://2.bp.blogspot.com/-O6QwbizrEoE/TnpIAOkfd-I/AAAAAAAABCQ/tYrTpWKlvKQ/s400/usdjpy+usdeur+1+day+20110921.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: USDJPY &amp;amp; USDEUR 1 day 2011-09-21; stooq.com&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-2909974703210803748?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/2909974703210803748/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=2909974703210803748' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2909974703210803748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2909974703210803748'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/problems-in-europe-overshadow-operation.html' title='Problems in Europe overshadow Operation Twist'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-GKCuqNEU5FE/TnpH0Z-ztsI/AAAAAAAABCM/Am6_DyZmp-o/s72-c/esf+1+day+20110921.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-7595760958815136803</id><published>2011-09-21T12:53:00.000+02:00</published><updated>2011-09-21T23:04:30.728+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SNB'/><category scheme='http://www.blogger.com/atom/ns#' term='USDJPY'/><category scheme='http://www.blogger.com/atom/ns#' term='forex'/><category scheme='http://www.blogger.com/atom/ns#' term='BoJ'/><category scheme='http://www.blogger.com/atom/ns#' term='USDCHF'/><category scheme='http://www.blogger.com/atom/ns#' term='intervention'/><category scheme='http://www.blogger.com/atom/ns#' term='EURCHF'/><title type='text'>Comparing two recent forex interventions</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-bFNEaGXWTzs/Tnm6PdQRB-I/AAAAAAAABCE/iTvw8d4HRDY/s1600/usdjpy+vs+usdchf.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://1.bp.blogspot.com/-bFNEaGXWTzs/Tnm6PdQRB-I/AAAAAAAABCE/iTvw8d4HRDY/s400/usdjpy+vs+usdchf.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: USDCHF vs USDJPY 3 months, 2011-09-21&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Back in August, Bank of Japan&amp;nbsp;intervened in USDJPY.&amp;nbsp;As a result, the Japanese yen felt by nearly 3%. &lt;b&gt;For a single day...&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;A few days later, the Swiss National Bank's intervention followed. EURCHF shot up by nearly 6%. Supported by gossip about further actions, the franc continued to weaken for a number of days, &amp;nbsp;till the&amp;nbsp;beginning&amp;nbsp;of September, when the fear of another SNB interventions waned.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Then SNB stroke again and pushed EURCHF by another 9% in one day. Just as declared, the Swiss bank has remained determined to defend the 1.2000 level by all means.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Most recently a new wave of rumors hit the market. Some say, SNB may move the target rate to 1.2500 from 1.2000. It has been enough to push market above 1.2200.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;So far, SNB's actions demonstrate that central bank is able to&amp;nbsp;successfully&amp;nbsp;intervene in the forex market if only it plays on the right sight of the market (selling UNLIMITED locally currency as opposite to selling limited foreign reserves) and is determined enough to stick to its pledge.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;In the meantime, the Japanese play a strange game. They declare intervention, spend quite substantial amount of money on a single action and... back away.&lt;/div&gt;&lt;br /&gt;As a result, &lt;a href="http://www.reakkt.com/2010/09/real-test-of-usdjpy-intervention-may.html"&gt;USDJPY is more than 8% down since a year ago&lt;/a&gt;, when BoJ started its recent wave of the interventions.&lt;br /&gt;&lt;br /&gt;Most recently,&lt;a href="http://www.reakkt.com/2011/09/stabilizing-financial-markets-through.html"&gt; the decreased volatility in USDJPY suggested that BoJ may be intervening in the market in more subtle and effective way&lt;/a&gt; in order to defend the 76.00 line.&lt;br /&gt;&lt;br /&gt;As USDJPY has just resumed its march down, and currently is less than 0.5% above the imaginary &lt;a href="http://en.wikipedia.org/wiki/Maginot_Line"&gt;Maginot Line&lt;/a&gt;, the day of the test of the BoJ's resolve is&amp;nbsp;coming...&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-7595760958815136803?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/7595760958815136803/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=7595760958815136803' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7595760958815136803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7595760958815136803'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/comparing-two-recent-forex.html' title='Comparing two recent forex interventions'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-bFNEaGXWTzs/Tnm6PdQRB-I/AAAAAAAABCE/iTvw8d4HRDY/s72-c/usdjpy+vs+usdchf.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8447845690168230563</id><published>2011-09-19T13:38:00.001+02:00</published><updated>2011-09-19T13:44:28.614+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USDJPY'/><category scheme='http://www.blogger.com/atom/ns#' term='risk'/><category scheme='http://www.blogger.com/atom/ns#' term='forex'/><category scheme='http://www.blogger.com/atom/ns#' term='volatility'/><category scheme='http://www.blogger.com/atom/ns#' term='correlation'/><category scheme='http://www.blogger.com/atom/ns#' term='GOLD'/><category scheme='http://www.blogger.com/atom/ns#' term='intervention'/><category scheme='http://www.blogger.com/atom/ns#' term='EURCHF'/><category scheme='http://www.blogger.com/atom/ns#' term='USDCNY'/><title type='text'>Stabilizing financial markets through forex</title><content type='html'>Have you looked recently on the performance of the EURCHF and USDJPY crosses?&lt;br /&gt;&lt;br /&gt;They are basically flat:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-LnKP3G_Ippk/TnceKCnDCvI/AAAAAAAABB8/SoTUrSpTUIc/s1600/eurchf+vs+usdjpy+10d+20110919.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://1.bp.blogspot.com/-LnKP3G_Ippk/TnceKCnDCvI/AAAAAAAABB8/SoTUrSpTUIc/s400/eurchf+vs+usdjpy+10d+20110919.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: EURCHF vs USDJPY 10 days, 2011-09-19; Stooq.com&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Both the Swiss and Japanese currency are starting to&amp;nbsp;resemble the tightly&amp;nbsp;controlled&amp;nbsp;Chinese yuan (renminbi):&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-9mNcjGIh7JA/TncfbTrvUjI/AAAAAAAABCA/TfPQvbSWn5k/s1600/eurchf+usdjpy+usdcny+3m+20110919.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://4.bp.blogspot.com/-9mNcjGIh7JA/TncfbTrvUjI/AAAAAAAABCA/TfPQvbSWn5k/s400/eurchf+usdjpy+usdcny+3m+20110919.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Chart: EURCHF, USDJPY and USDCNY, 3 months, 2011-09-19; Stooq.com&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;As suggested earlier, &lt;a href="http://www.reakkt.com/2011/09/end-of-floating-exchange-rates-is.html"&gt;forex volatility of some crosses may&amp;nbsp;disappear&lt;/a&gt;&amp;nbsp;for some time.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Volatility still remains present in the emerging market&amp;nbsp;crosses&amp;nbsp;and... in gold, which has become a hard currency proxy of some kind over the recent years.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;However,&lt;b&gt; the latest increase in the activity of central banks, who provide virtually unlimited funds through currency swaps and&amp;nbsp;asymmetric&amp;nbsp;market operations, may lead to the further reduction in overall market volatility. There is not a central bank able to "print' gold though, so nobody can put a floor under the price of gold &lt;/b&gt;(see also &lt;a href="http://www.reakkt.com/2011/09/gold-correction-or-trend-change.html"&gt;"Gold - correction or trend change?"&lt;/a&gt;).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Central banks can directly operate on the forex and - partially - on the fixed income markets. Equities and commodities (with the exception of precious metals) are officially off-limits. Nevertheless, since all the financial markets are interconnected, actions on some markets affect the others.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Currently I still have no clear picture of what may be the long term consequences of the above mentioned central banks activities. Most probably many financial markets - not only forex - will stabilize or start raising for reduced risk. Many correlations will&amp;nbsp;disappear or reverse. Various investment strategies may stop working. But what then?&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8447845690168230563?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8447845690168230563/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8447845690168230563' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8447845690168230563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8447845690168230563'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/stabilizing-financial-markets-through.html' title='Stabilizing financial markets through forex'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-LnKP3G_Ippk/TnceKCnDCvI/AAAAAAAABB8/SoTUrSpTUIc/s72-c/eurchf+vs+usdjpy+10d+20110919.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-6632507473038531585</id><published>2011-09-16T08:24:00.000+02:00</published><updated>2011-09-16T08:26:40.567+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CME'/><category scheme='http://www.blogger.com/atom/ns#' term='USDJPY'/><category scheme='http://www.blogger.com/atom/ns#' term='GOLD'/><category scheme='http://www.blogger.com/atom/ns#' term='bubble'/><category scheme='http://www.blogger.com/atom/ns#' term='USDCHF'/><title type='text'>Gold - correction or trend change?</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;While the five central banks decide to cooperate in &lt;a href="http://www.nytimes.com/2011/09/16/business/global/borrowing-costs-stubbornly-high-at-spanish-auction.html"&gt;providing dollar liquidity&lt;/a&gt;, &lt;a href="http://www.bloomberg.com/news/2011-09-16/gold-drops-as-ecb-co-ordinates-with-fed-to-lend-banks-dollars.html"&gt;gold is falling&lt;/a&gt;:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-7n6mOlbRVDs/TnLgWkOiNZI/AAAAAAAABB4/stwe3qEJ-oM/s1600/gold+5m+20110916.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://2.bp.blogspot.com/-7n6mOlbRVDs/TnLgWkOiNZI/AAAAAAAABB4/stwe3qEJ-oM/s400/gold+5m+20110916.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Gold futures vs USDJPY and USDCHF&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Even though &lt;a href="http://www.reakkt.com/2010/07/cyclical-analysis-of-gold.html"&gt;historically Q4 was &lt;b&gt;on average&lt;/b&gt; positive for gold&lt;/a&gt;, September tends to be quite volatile, with significant downside potential.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Gold has been recently positively correlated to safe heaven currencies such as Swiss franc and Japanese yen (both in relation to U.S. dollar), and at the same time negatively correlated to equities.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Since mid-August, the raise of the yen against dollar has been stopped. In September SNB semi-fixated franc against the euro, simultaneously causing USDCHF to raise.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;In the meantime, &lt;a href="http://www.marketwatch.com/story/cme-increases-gold-margin-requirements-by-27-2011-08-24"&gt;margin requirements for gold has been increasing&lt;/a&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Basically price of gold has been recently driven by three fundamental factors: &lt;b&gt;fear about global economy, possibility of high inflation and low interest rates&lt;/b&gt;. While economy is improving extremely slowly, &lt;a href="http://www.bloomberg.com/news/2011-09-14/indian-inflation-quickens-to-13-month-high-adds-to-interest-rate-pressure.html"&gt;inflation is haunting emerging markets&lt;/a&gt;, and interest rates should remain on low level through 2013, all these factors are probably already discounted in the price of gold. Unless&amp;nbsp;a new fear factor emerges, gold may stagnate. And slow correction may easily turn into disorderly liquidation...&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;So far, the proposed &lt;a href="http://www.reakkt.com/2011/08/crude-gold.html"&gt;gold-crude pair trade&lt;/a&gt;&amp;nbsp;would be in the positive&amp;nbsp;territory.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-6632507473038531585?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/6632507473038531585/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=6632507473038531585' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6632507473038531585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6632507473038531585'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/gold-correction-or-trend-change.html' title='Gold - correction or trend change?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-7n6mOlbRVDs/TnLgWkOiNZI/AAAAAAAABB4/stwe3qEJ-oM/s72-c/gold+5m+20110916.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-4824156263047741960</id><published>2011-09-15T15:50:00.001+02:00</published><updated>2011-09-15T21:11:02.405+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='return to mean'/><category scheme='http://www.blogger.com/atom/ns#' term='mean reversion'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='UBS'/><category scheme='http://www.blogger.com/atom/ns#' term='Deutsche Bank'/><title type='text'>Bounce from the exteme oversold conditions</title><content type='html'>&lt;br /&gt;&lt;a href="http://www.db.com/"&gt;Deutsche Bank&lt;/a&gt; is raising more than 10% today:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-nfro8GYTbYA/TnIBJkL25KI/AAAAAAAABBk/alermQbCHM4/s1600/DB+plus11+20110915.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="333" src="http://1.bp.blogspot.com/-nfro8GYTbYA/TnIBJkL25KI/AAAAAAAABBk/alermQbCHM4/s400/DB+plus11+20110915.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Source: Reuters&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;Seems the &lt;a href="http://www.reakkt.com/2011/09/short-term-relief.html"&gt;relief rally&lt;/a&gt; from the &lt;a href="http://www.reakkt.com/2011/09/extreme-oversold-conditions-nearly.html"&gt;extreme oversold conditions&lt;/a&gt; has materialized.&lt;br /&gt;&lt;br /&gt;The question&amp;nbsp;remains how far it can go...&lt;br /&gt;&lt;br /&gt;BTW: I wonder&amp;nbsp;whether&amp;nbsp;this is in any way connected with the &lt;a href="http://www.bloomberg.com/news/2011-09-15/ubs-may-have-unprofitable-quarter-on-unauthorized-trade-s-2-billion-loss.html"&gt;flop at UBS&lt;/a&gt;&amp;nbsp;;)&lt;br /&gt;&lt;br /&gt;UPDATE:&lt;br /&gt;&lt;br /&gt;EOD results:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.google.com/finance?q=EPA%3ABNP"&gt;BNP Paribas +13,38%&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.google.com/finance?q=ETR%3ADBK"&gt;Deutsche Bank +5,82%&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.google.com/finance?q=EPA%3AGLE"&gt;Societe Generale +7,08%&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;The&amp;nbsp;&lt;a href="http://online.wsj.com/article/SB10001424053111904060604576572442555810356.html?mod=googlenews_wsj"&gt;coordinated action of the five central banks&lt;/a&gt;&amp;nbsp;definitely helped the European banks.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Ey2quzX1RHA/TnJMW1twccI/AAAAAAAABBo/RKWZyR-UYSg/s1600/banks+5d.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="246" src="http://1.bp.blogspot.com/-Ey2quzX1RHA/TnJMW1twccI/AAAAAAAABBo/RKWZyR-UYSg/s400/banks+5d.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Since the end of last week&amp;nbsp;the&amp;nbsp;cumulative&amp;nbsp;performance is:&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;BNP Paribas +2,35%&lt;/li&gt;&lt;li&gt;Deutsche Bank +5,17%&lt;/li&gt;&lt;li&gt;Societe Generale +5,07%&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-4824156263047741960?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/4824156263047741960/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=4824156263047741960' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4824156263047741960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4824156263047741960'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/deutsche-bank-is-raising-more-than-10.html' title='Bounce from the exteme oversold conditions'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-nfro8GYTbYA/TnIBJkL25KI/AAAAAAAABBk/alermQbCHM4/s72-c/DB+plus11+20110915.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-4941254000023445362</id><published>2011-09-13T14:40:00.001+02:00</published><updated>2011-09-13T21:48:56.990+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cauchy'/><category scheme='http://www.blogger.com/atom/ns#' term='data mining'/><category scheme='http://www.blogger.com/atom/ns#' term='WIG20'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>What distribution does the stock market follow?</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-V_TiatW3RGQ/Tm9KyAn3tGI/AAAAAAAABBg/lpoKikrxlYI/s1600/wig20+and+dchanges.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="221" src="http://1.bp.blogspot.com/-V_TiatW3RGQ/Tm9KyAn3tGI/AAAAAAAABBg/lpoKikrxlYI/s400/wig20+and+dchanges.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig WIG20 and daily changes&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.biecek.pl/NaPrzelajPrzezDataMining"&gt;Przemek Biecek's "Na przełaj przez Data Mining z pakietem R" (Across Data Mining with the R package)&lt;/a&gt;&amp;nbsp;&amp;nbsp;is a fascinating tutorial for people who would like to quickly implement selected data mining concepts in &lt;a href="http://www.r-project.org/"&gt;R&lt;/a&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Today I've browsed though the chapter about&amp;nbsp;analyzing&amp;nbsp;the distributions of daily changes of equity prices and applied it to the WIG20 index of the Warsaw Stock Exchange.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;No surprises here :)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; summary(daily_changes)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Min. &amp;nbsp; &amp;nbsp;1st Qu. &amp;nbsp; &amp;nbsp; Median &amp;nbsp; &amp;nbsp; &amp;nbsp; Mean &amp;nbsp; &amp;nbsp;3rd Qu. &amp;nbsp; &amp;nbsp; &amp;nbsp; Max.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;-0.1416000 -0.0100500 &amp;nbsp;0.0002639 &amp;nbsp;0.0006617 &amp;nbsp;0.0113000 &amp;nbsp;0.1479000&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; skewness(daily_changes)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] -0.04857761&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; kurtosis(daily_changes)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] 4.414738&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Daily changes do not follow normal distribution:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; mec &amp;lt;- mean(daily_changes)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; sdc &amp;lt;- sd(daily_changes)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; ad.test(daily_changes,pnorm,mec,sdc)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Anderson-Darling GoF Test&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;data: &amp;nbsp;daily_changes &amp;nbsp;and &amp;nbsp;pnorm&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;AD = 61.0893, p-value = 1.288e-07&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;alternative hypothesis: NA&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-bVTwbgY895w/Tm9FfqesG2I/AAAAAAAABBY/xsQ3b_lmoqQ/s1600/wig20+distribs.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="221" src="http://3.bp.blogspot.com/-bVTwbgY895w/Tm9FfqesG2I/AAAAAAAABBY/xsQ3b_lmoqQ/s400/wig20+distribs.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. observed distribution of the daily changes of WIG20 vs fitted normal, Cauchy, Laplace and Stable distributions&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Among the tested distributions, the best results can be obtained with stable distribution with the following parameters:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Model:&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;Stable Distribution&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Estimated Parameter(s):&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alpha &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; beta &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gamma &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;delta&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;1.480000e+00 6.700000e-02 1.101051e-02 6.523883e-05&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-0164auyNiWA/Tm9H2q6J-VI/AAAAAAAABBc/W4tVoqztkSA/s1600/wig20+stable+fitting.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="221" src="http://2.bp.blogspot.com/-0164auyNiWA/Tm9H2q6J-VI/AAAAAAAABBc/W4tVoqztkSA/s400/wig20+stable+fitting.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Fitting of the stable distribution&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; ad.test(daily_changes,pstable,sf_a,sf_b,sf_g,sf_d)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Anderson-Darling GoF Test&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;data: &amp;nbsp;daily_changes &amp;nbsp;and &amp;nbsp;pstable&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;AD = 1.361, p-value = 0.2134&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;alternative hypothesis: NA&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Hence, even that we can expect daily changes to remain in the (-5.5%, +5.5) range for more than 95% of the time, sometimes we can get a nasty surprise...&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; stabledist::pstable(0.055,sf_a,sf_b,sf_g,sf_d)-stabledist::pstable(-0.055,sf_a,sf_b,sf_g,sf_d) # prob. of (-5.5%, +5.5%)&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; delta&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;0.9562193&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; stabledist::pstable(-0.1,sf_a,sf_b,sf_g,sf_d) &amp;nbsp;# probability of -10% or less&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; delta&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;0.007691719&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;It is still worth keeping in mind that short term distribution can be highly distorted&amp;nbsp;(see &lt;a href="http://www.reakkt.com/2010/05/zachowanie-rozkadow-dziennych.html"&gt;here&lt;/a&gt; and &lt;a href="http://www.reakkt.com/2010/05/wig20-brak-stabilnosci-rozkadu-zmian.html"&gt;here&lt;/a&gt;)&amp;nbsp;and &lt;a href="http://www.reakkt.com/2011/09/volatility-clustering-and.html"&gt;affected by the recent volatility&lt;/a&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;You can see the complete &lt;a href="http://snipplr.com/view/58647/analysis-of-the-stock-market-daily-returns-distribution-based-on-wig20-index/"&gt;source code here&lt;/a&gt;.&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-4941254000023445362?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/4941254000023445362/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=4941254000023445362' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4941254000023445362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4941254000023445362'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/what-distribution-does-stock-market.html' title='What distribution does the stock market follow?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-V_TiatW3RGQ/Tm9KyAn3tGI/AAAAAAAABBg/lpoKikrxlYI/s72-c/wig20+and+dchanges.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1262706048982523654</id><published>2011-09-12T21:52:00.001+02:00</published><updated>2011-09-12T22:36:46.500+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Italy'/><category scheme='http://www.blogger.com/atom/ns#' term='return to mean'/><category scheme='http://www.blogger.com/atom/ns#' term='mean reversion'/><category scheme='http://www.blogger.com/atom/ns#' term='China'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='EU'/><category scheme='http://www.blogger.com/atom/ns#' term='Societe Generale'/><category scheme='http://www.blogger.com/atom/ns#' term='Deutsche Bank'/><category scheme='http://www.blogger.com/atom/ns#' term='BNP Paribas'/><category scheme='http://www.blogger.com/atom/ns#' term='Greece'/><title type='text'>Short term relief?</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;BERLIN (Dow Jones) 20:54 CET -- The European Union's current treaty doesn't foresee the possibility of an exit by Greece from the euro zone, German Finance Minister Wolfgang Schaeuble said in an interview with the ZDF public broadcaster Monday.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;--German Finance Minister Schaeuble says Greek euro exit not possible due to EU treaty&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;--Schaeuble says contingency plans for a Greek insolvency are not an actual government plan&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;--Schaeuble comments come as others in government think loudly about Greek insolvency&lt;br /&gt;--Schaeuble criticized such comments as unsettling markets&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;How will the financial markets react to that?&lt;br /&gt;&lt;br /&gt;Definitely these declarations do not end "the Greek tragedy".&lt;br /&gt;&lt;br /&gt;But &lt;a href="http://www.reakkt.com/2011/09/high-probability-trading-opportunity-in.html"&gt;given the extreme oversold&amp;nbsp;conditions&amp;nbsp;of the European banks&lt;/a&gt;,&amp;nbsp;they can initiate at least a short relief rally.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-HhUwtf5Ajtc/Tm5h35-6IQI/AAAAAAAABBU/Af7aZYThI6I/s1600/bnp+db+sg.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="193" src="http://4.bp.blogspot.com/-HhUwtf5Ajtc/Tm5h35-6IQI/AAAAAAAABBU/Af7aZYThI6I/s400/bnp+db+sg.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. BNP, DB and SG 1YR performance&lt;/div&gt;&lt;br /&gt;This may also help for some time:&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;a href="http://www.ft.com/intl/cms/s/0/90c4c7f6-dd54-11e0-9dac-00144feabdc0.html?ftcamp=rss"&gt;FT 2011-09-12 20:20 UK&amp;nbsp;Italy turns to China for help in debt crisis&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;Italy’s centre-right government is turning to cash-rich China in the hope that Beijing will help rescue it from financial crisis by making “significant” purchases of Italian bonds and investments in strategic companies.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1262706048982523654?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1262706048982523654/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1262706048982523654' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1262706048982523654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1262706048982523654'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/short-term-relief.html' title='Short term relief?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-HhUwtf5Ajtc/Tm5h35-6IQI/AAAAAAAABBU/Af7aZYThI6I/s72-c/bnp+db+sg.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-7507152383319460526</id><published>2011-09-12T11:01:00.000+02:00</published><updated>2011-09-12T11:01:05.374+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GARCH'/><category scheme='http://www.blogger.com/atom/ns#' term='volatility'/><category scheme='http://www.blogger.com/atom/ns#' term='volatility clustering'/><category scheme='http://www.blogger.com/atom/ns#' term='random walk'/><category scheme='http://www.blogger.com/atom/ns#' term='chaos'/><category scheme='http://www.blogger.com/atom/ns#' term='VaR'/><title type='text'>Volatility clustering and characteristic of distribution</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Beno%C3%AEt_Mandelbrot"&gt;Benoit Mandelbro&lt;/a&gt;t observed that &lt;i&gt;"large changes tend to be followed by large changes, of either sign, and small changes tend to be followed by small changes",&lt;/i&gt; what was named&amp;nbsp;&lt;a href="http://en.wikipedia.org/wiki/Volatility_clustering"&gt;volatility clustering&lt;/a&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;This&amp;nbsp;behavior is&amp;nbsp;not clearly visible in relation between single day changes, where randomness keeps the picture fuzzy:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-F-p04f9-6HY/Tm3AVXBzngI/AAAAAAAABBQ/5kBVeE-k8S8/s1600/vol+1day+dependency.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="207" src="http://3.bp.blogspot.com/-F-p04f9-6HY/Tm3AVXBzngI/AAAAAAAABBQ/5kBVeE-k8S8/s400/vol+1day+dependency.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Absolute one day change vs next day absolute change (S&amp;amp;P500)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;It becomes more visible when one analyzes relations between cumulative changes over n days (say: 5-10-20-30) and the identical proceeding period:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-RyjzMvATKmg/Tm29zMZ_-gI/AAAAAAAABBI/IbghjACDbRs/s1600/vol+clust.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="207" src="http://4.bp.blogspot.com/-RyjzMvATKmg/Tm29zMZ_-gI/AAAAAAAABBI/IbghjACDbRs/s400/vol+clust.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Absolute cumulative change over n days against previous n days period&amp;nbsp;(S&amp;amp;P500)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Hence we can assume that the distribution of expected price changes for a given period is not a constant, but depends on the previous volatility.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Volatility clustering is also the basis of the &lt;a href="http://en.wikipedia.org/wiki/Autoregressive_conditional_heteroskedasticity"&gt;family of&amp;nbsp;ARCH volatility models&lt;/a&gt;, used with varying successes in &lt;a href="http://en.wikipedia.org/wiki/Value_at_risk"&gt;VaR&lt;/a&gt; calculation.&amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;So what can be done to improve the performance of volatility modeling?&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-7507152383319460526?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/7507152383319460526/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=7507152383319460526' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7507152383319460526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7507152383319460526'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/volatility-clustering-and.html' title='Volatility clustering and characteristic of distribution'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-F-p04f9-6HY/Tm3AVXBzngI/AAAAAAAABBQ/5kBVeE-k8S8/s72-c/vol+1day+dependency.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-2939465364479170269</id><published>2011-09-11T18:19:00.000+02:00</published><updated>2011-09-11T18:19:20.766+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tobin tax'/><category scheme='http://www.blogger.com/atom/ns#' term='USDJPY'/><category scheme='http://www.blogger.com/atom/ns#' term='forex'/><category scheme='http://www.blogger.com/atom/ns#' term='BoJ'/><category scheme='http://www.blogger.com/atom/ns#' term='Fed'/><category scheme='http://www.blogger.com/atom/ns#' term='Japan'/><category scheme='http://www.blogger.com/atom/ns#' term='intervention'/><category scheme='http://www.blogger.com/atom/ns#' term='EURCHF'/><category scheme='http://www.blogger.com/atom/ns#' term='USDCNY'/><category scheme='http://www.blogger.com/atom/ns#' term='ECB'/><title type='text'>The end of floating exchange rates is coming?</title><content type='html'>During the weekend's G7 finance ministers' meeting,&lt;a href="http://www.reuters.com/article/2011/09/10/us-g7-japan-azumi-idUSTRE7890Q620110910"&gt; Japan was probing participants about possible new forex intervention&lt;/a&gt;&amp;nbsp;and didn't meet with any significant objections.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://mjaniec.blogspot.com/2010/09/real-test-of-usdjpy-intervention-may.html"&gt;Japans was trying to stop the&amp;nbsp;strengthening&amp;nbsp;of its currency&lt;/a&gt; without success for some time now.&lt;br /&gt;&lt;br /&gt;However, the recent &lt;a href="http://mjaniec.blogspot.com/2011/09/sterilizing-snb-intervention-with-ecb.html"&gt;action by the Swiss National Bank&lt;/a&gt; has suggested a new, potentially more fruitful approach.&lt;br /&gt;&lt;br /&gt;With inflation at 0.2% (identical to the Swiss'), Japan shouldn't be worrying about dangers connected with "printing" empty money.&lt;br /&gt;&lt;br /&gt;Should we expect then another declaration of providing UNLIMTED funds by one more central bank, soon?&lt;br /&gt;&lt;br /&gt;Even more interesting question is, how the other major central banks - such as Fed and ECB - will react to another&amp;nbsp;ultimate&amp;nbsp;intervention.&lt;br /&gt;&lt;br /&gt;Many studies in the past concluded that interventions are ineffective.&lt;br /&gt;&lt;br /&gt;But take a look on the performance of Chinese yuan (renminbi) versus US dollar over the last five years (blue line in the center of the chart):&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-OWBTGW20TTM/TmzQ57xK5SI/AAAAAAAABBA/nX3gwf8oK9o/s1600/forex+volatility.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://1.bp.blogspot.com/-OWBTGW20TTM/TmzQ57xK5SI/AAAAAAAABBA/nX3gwf8oK9o/s400/forex+volatility.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;It's true that yuan is a controlled currency, which value is basically set by the Chinese central bank, and its availability is limited to&amp;nbsp;foreigners.&lt;br /&gt;&lt;br /&gt;The famous &lt;a href="http://en.wikipedia.org/wiki/Black_Wednesday"&gt;Black Wednesday of September 16th, 1992&lt;/a&gt; demonstrated that single central bank is not able to defend the value of currency, especially when operating under certain exchange regime, for limited size of its foreign reserves.&lt;br /&gt;&lt;br /&gt;Nevertheless, there are at least two situations when central bank cannot lose:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;when it intends to weaken "its" currency - it can simply print ANY amount of money to flood the market&lt;br /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;when two central banks agree to cooperate in order to regulate the exchange rate for their currencies - they can provide each other with UNLIMTED funds using swap agreements&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the previous years, we were witnesses to various central banks' decisive actions:&lt;br /&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;strict regulation of USDCNY by PBofC&lt;br /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.federalreserve.gov/monetarypolicy/bst_liquidityswaps.htm"&gt;swap agreements provided by Fed&amp;nbsp;&lt;/a&gt;&lt;br /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;establishment of the floor in EURCHF by SNB&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;In the&amp;nbsp;coming&amp;nbsp;days, we can see ultimate&amp;nbsp;intervention in USDJPY by BoJ.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;All these moves give rise to fears about the possibility of &amp;nbsp;"currency wars".&amp;nbsp;Paradoxically, what we can see instead is closer cooperation between central banks and more regulation of the forex market.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://www.reuters.com/article/2011/09/09/financial-tax-germany-france-idUSB4E7HM00C20110909"&gt;Germany and France keep pushing for introduction of the financial transaction tax (Tobin tax)&lt;/a&gt;, which should cover forex.&amp;nbsp;Most probably it will limit the volume of the currency transactions and possibly reduce volatility.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Being the most liquid of the financial markets, &lt;a href="http://mjaniec.blogspot.com/2010/08/simple-perfect-arbitrage-opportunities.html"&gt;forex is not an easy place for arbitrageurs&lt;/a&gt;. Introduction of the new market mechanisms can disturb this balance and create new interesting opportunities.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-2939465364479170269?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/2939465364479170269/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=2939465364479170269' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2939465364479170269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2939465364479170269'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/end-of-floating-exchange-rates-is.html' title='The end of floating exchange rates is coming?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-OWBTGW20TTM/TmzQ57xK5SI/AAAAAAAABBA/nX3gwf8oK9o/s72-c/forex+volatility.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-5220657675625641866</id><published>2011-09-11T14:53:00.001+02:00</published><updated>2011-09-12T04:24:54.460+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='return to mean'/><category scheme='http://www.blogger.com/atom/ns#' term='mean reversion'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='Societe Generale'/><category scheme='http://www.blogger.com/atom/ns#' term='Deutsche Bank'/><category scheme='http://www.blogger.com/atom/ns#' term='BNP Paribas'/><title type='text'>Extreme oversold conditions nearly reached by European banks</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-TVEjgjuPF8Q/TmylbZE3T_I/AAAAAAAABA0/SWwJNtZozMg/s1600/bnp.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="207" src="http://3.bp.blogspot.com/-TVEjgjuPF8Q/TmylbZE3T_I/AAAAAAAABA0/SWwJNtZozMg/s400/bnp.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Extremes for BNP Paribas&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-KQoZ7WBfYX4/Tmylk0ycyII/AAAAAAAABA4/Y3fZgB_nu-Q/s1600/db.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="207" src="http://1.bp.blogspot.com/-KQoZ7WBfYX4/Tmylk0ycyII/AAAAAAAABA4/Y3fZgB_nu-Q/s400/db.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Extremes for Deutsche Bank&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-hXXJ9JM-fRs/TmylwBVweBI/AAAAAAAABA8/DDX6ZjYvx5s/s1600/sg.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="207" src="http://2.bp.blogspot.com/-hXXJ9JM-fRs/TmylwBVweBI/AAAAAAAABA8/DDX6ZjYvx5s/s400/sg.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Extremes for Societe Generale&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The most stable&amp;nbsp;condition indicating extreme oversold level for the &lt;a href="http://mjaniec.blogspot.com/2011/09/high-probability-trading-opportunity-in.html"&gt;three banks mentioned before&lt;/a&gt; is price deviation from long moving average. Based on the historic data, extreme oversold level is reached at -0.3 for BNP Paribas, -0.4 for Deutsche Bank, and -0.5 for&amp;nbsp;Societe Generale.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The second most indicative signal is the price change over the previous year. The threshold levels are -0.5 for BNP, -0.7 for DB and -1.0 for SG (weak signal).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;The current levels of the indicators are:&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;BNP &amp;nbsp; &amp;nbsp;DB &amp;nbsp; &amp;nbsp; SG&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;DEV MA -0.383 -0.410 -0.544&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&amp;nbsp;REL SD &amp;nbsp;0.242 &amp;nbsp;0.241 &amp;nbsp;0.364&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;b&gt;&amp;nbsp;&lt;span class="Apple-style-span" style="color: #b45f06;"&gt;YOY % &amp;nbsp;-0.618 -0.627 -0.931&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;It seems that based on the deviation from long MA, all three banks have already reached the extreme oversold level, and their annual price change is close to confirming that.&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;It doesn't mean, the prices cannot go even lower, especially in a shock situation. The extreme oversold conditions have been calculated using daily data for the last 18-24 years (depending on availability). The present may be totally different from the past, though... (so at least in the case of the French banks it may be worth waiting till &lt;a href="http://www.bloomberg.com/news/2011-09-10/bnp-paribas-societe-generale-credit-agricole-said-to-face-cut-by-moody-s.html"&gt;Moody's downgrades their debt this week&lt;/a&gt;)&lt;/div&gt;&lt;div class="separator" style="clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-5220657675625641866?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/5220657675625641866/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=5220657675625641866' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5220657675625641866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5220657675625641866'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/extreme-oversold-conditions-nearly.html' title='Extreme oversold conditions nearly reached by European banks'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-TVEjgjuPF8Q/TmylbZE3T_I/AAAAAAAABA0/SWwJNtZozMg/s72-c/bnp.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-2042337034506273634</id><published>2011-09-11T13:49:00.000+02:00</published><updated>2011-09-11T20:41:47.323+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='return to mean'/><category scheme='http://www.blogger.com/atom/ns#' term='mean reversion'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='Societe Generale'/><category scheme='http://www.blogger.com/atom/ns#' term='Deutsche Bank'/><category scheme='http://www.blogger.com/atom/ns#' term='BNP Paribas'/><category scheme='http://www.blogger.com/atom/ns#' term='Bank of America'/><title type='text'>High probability trading opportunity in European banking stocks?</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-dZve6G35TSU/TmyW2hztzbI/AAAAAAAABAw/YkgbMVJlX3A/s1600/bac+db+sg+bnp+20110911.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://1.bp.blogspot.com/-dZve6G35TSU/TmyW2hztzbI/AAAAAAAABAw/YkgbMVJlX3A/s400/bac+db+sg+bnp+20110911.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;On Friday gossip about the potential Greek default has pushed the stock price of Bank of America to the level they had been before &lt;a href="http://dealbook.nytimes.com/2011/08/25/buffett-to-invest-5-billion-in-bank-of-america/"&gt;Warren Buffett invested $5B in the company&lt;/a&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The same fear is driving down prices of the European banks. From the&amp;nbsp;beginning&amp;nbsp;of the year, Societe Generale&amp;nbsp;dropped 56.29%, Deutsche Bank 40.17% and BNP Paribas 37.25% (based on the ADRs).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;While Bank of America is&amp;nbsp;definitely&amp;nbsp;in the red this year (EPS= -1.65), the fall of the stock prices of the still profitable European banks has actually made them pretty attractive from the P/E perspective (4.05 for SG, 4.62 for BNP and 10.10 for DB).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;There is however one critical risk factor that weights heavily on the value of the European banks - the stability of the eurozone. Even if &lt;a href="http://blogs.reuters.com/felix-salmon/2011/06/17/parsing-banks-expsosure-to-greece/"&gt;the banks direct exposure to the&amp;nbsp;sovereign debt of the unstable countries may be limited&lt;/a&gt;, there still is a significant risk of domino and secondary effects caused by the default of even the smallest eurozone member country.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;On the other hand it is hard to imagine German or French government allowing their largest banks to fall...&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The previous&lt;a href="http://mjaniec.blogspot.com/2011/07/long-term-price-deviations-indicative.html"&gt; analysis of the extreme oversold levels for S&amp;amp;P500&lt;/a&gt;, may suggest that the prices of the European banks may be close to the levels offering high probability long trading opportunity. The model requires&amp;nbsp;re-calibration&amp;nbsp;for higher volatility of individual stocks. And one needs to assume that the banks will survive the possible shock.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Stay tuned :)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-2042337034506273634?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/2042337034506273634/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=2042337034506273634' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2042337034506273634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2042337034506273634'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/high-probability-trading-opportunity-in.html' title='High probability trading opportunity in European banking stocks?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-dZve6G35TSU/TmyW2hztzbI/AAAAAAAABAw/YkgbMVJlX3A/s72-c/bac+db+sg+bnp+20110911.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-5407373030047830618</id><published>2011-09-06T15:25:00.000+02:00</published><updated>2011-09-07T06:41:55.205+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SNB'/><category scheme='http://www.blogger.com/atom/ns#' term='LIBOR'/><category scheme='http://www.blogger.com/atom/ns#' term='USDJPY'/><category scheme='http://www.blogger.com/atom/ns#' term='forex'/><category scheme='http://www.blogger.com/atom/ns#' term='Fed'/><category scheme='http://www.blogger.com/atom/ns#' term='Japan'/><category scheme='http://www.blogger.com/atom/ns#' term='intervention'/><category scheme='http://www.blogger.com/atom/ns#' term='EURCHF'/><category scheme='http://www.blogger.com/atom/ns#' term='swap'/><category scheme='http://www.blogger.com/atom/ns#' term='ECB'/><category scheme='http://www.blogger.com/atom/ns#' term='Switzerland'/><title type='text'>Sterilizing SNB intervention with ECB help?</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-7hxkIo2EeQc/TmYtgyHHkqI/AAAAAAAABAg/-lCB0GoNAQE/s1600/eurchf.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://4.bp.blogspot.com/-7hxkIo2EeQc/TmYtgyHHkqI/AAAAAAAABAg/-lCB0GoNAQE/s400/eurchf.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.bloomberg.com/news/2011-09-06/swiss-national-bank-sets-minimum-exchange-rate-of-1-20-against-the-euro.html"&gt;Swiss National Bank has announced&lt;/a&gt;&amp;nbsp;today it will defend EURCHF at the 1.2000 level at any cost.&lt;br /&gt;&lt;br /&gt;It has declared it is prepared to sell UNLIMTED amounts of CHF. This means buying adequate amounts of EUR.&lt;br /&gt;&lt;br /&gt;In theory, SNB can print unlimted amount of Swiss francs.&lt;br /&gt;&lt;br /&gt;By buying euro, SNB will increase its already substantial foreign reserves. This creates a risk of loss if the value of these reserves decreases. However, by providing the floor for EURCHF exchange rate, SNB can defend the CHF-denominated value of its holdings.&lt;br /&gt;&lt;br /&gt;Hence, if EUR&amp;nbsp;strengthens, SNB makes - at least on paper - a profit on its position.&lt;br /&gt;&lt;br /&gt;And if EUR weakens, SNB can defend it by buying even more EUR with unlimited funds.&lt;br /&gt;&lt;br /&gt;There is a problem with unwinding the position&amp;nbsp;though. The larger the EUR position held by the SNB, the harder it is to sell it without affecting the markets and pushing EURCHF down.&lt;br /&gt;&lt;br /&gt;One possibility would be to park accumulated EUR at the ECB, using a swap construction similar to the&lt;a href="http://www.federalreserve.gov/monetarypolicy/bst_liquidityswaps.htm"&gt; Dollar Liquity Swap Lines previously provided by Fed&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;SNB could swap its EUR with ECB for CHF at the fixed rate of 1.2000, securing the CHF-denominated value of its foreign holdings.&lt;br /&gt;&lt;br /&gt;However, banks would need to&amp;nbsp;somehow&amp;nbsp;square the interest differential between CHF and EUR. For example, while CHF LIBOR&amp;nbsp;O/N&amp;nbsp;rate is currently (minus) -0,00333%, EUR LIBOR&amp;nbsp;O/N&amp;nbsp;stands at 0,83438%, meaning that on each one billion of EURCHF, ECB would have to pay roughly 8,4 mln EUR of interest daily.&lt;br /&gt;&lt;br /&gt;Unless both banks set the IR for the swap at 0%.&lt;br /&gt;&lt;br /&gt;BTW: Can BOJ perform similar intervention?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-5407373030047830618?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/5407373030047830618/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=5407373030047830618' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5407373030047830618'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5407373030047830618'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/09/sterilizing-snb-intervention-with-ecb.html' title='Sterilizing SNB intervention with ECB help?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-7hxkIo2EeQc/TmYtgyHHkqI/AAAAAAAABAg/-lCB0GoNAQE/s72-c/eurchf.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-2265939409516006330</id><published>2011-08-11T03:35:00.001+02:00</published><updated>2011-08-11T03:39:41.315+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pair trading'/><category scheme='http://www.blogger.com/atom/ns#' term='crude oil'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='GOLD'/><category scheme='http://www.blogger.com/atom/ns#' term='arbitrage'/><title type='text'>Crude gold</title><content type='html'>Back in July 2008 some hedge funds decided to &lt;a href="http://www.reuters.com/article/2008/07/28/us-markets-funds-commodities-idUSL855733820080728?sp=true"&gt;sell oil short and buy gold&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The strategy proved successful.&lt;br /&gt;&lt;br /&gt;It was based on an assumption that oil and gold are closely correlated and 1 ounce of gold is equivalent to 10 barrels of oil.&lt;br /&gt;&lt;br /&gt;Such relation held true till the beginning of 2008, when first the oil overshoot gold, and later felt down below the previous parity.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-17SJfIax0HA/TkMvlNn7ySI/AAAAAAAAA_s/l1u1z75kA20/s1600/gold+vs+oil+10yr.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://1.bp.blogspot.com/-17SJfIax0HA/TkMvlNn7ySI/AAAAAAAAA_s/l1u1z75kA20/s400/gold+vs+oil+10yr.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;In July 2008, one ounce of gold was enough to buy just between 6 and 7 barrels of oil. In January 2009, more than 20.&lt;br /&gt;&lt;br /&gt;Later, gold and oil reach a new equilibrium. The new gold-to-oil ratio stood at 13.7 (1100:80) barrels per ounce and 15.8 (1420:90) at the end of 2009 and 2010 respectively.&lt;br /&gt;&lt;br /&gt;Most recently the prices diverged significantly again. As for August 10th, one ounce of gold can buy 22 barrels of oil (1796:82).&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-2WiycBAWFEc/TkMvtazMK1I/AAAAAAAAA_w/9GgIVDcpVls/s1600/gold+vs+oil+1yr.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://1.bp.blogspot.com/-2WiycBAWFEc/TkMvtazMK1I/AAAAAAAAA_w/9GgIVDcpVls/s400/gold+vs+oil+1yr.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Gold is most probably entering the final phase of the bubble. It is hard to predict how far it can go during its ultimate exponential ascent. Meanwhile oil is falling in anticipation of economic slow down.&lt;br /&gt;&lt;br /&gt;Clearly both assets are on different dynamic trajectories and the gap can extend even further. However, this divergence will most probably end. And the bigger it is, the stronger reversal can occur.&lt;br /&gt;&lt;br /&gt;One leg of the strategy is easily implementable using SPDR Gold Trust ETF which very closely tracks gold futures.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-YbXffroBOwk/TkMv0ui6wbI/AAAAAAAAA_0/0BwuPKuPl7A/s1600/gold+futures+vs+GLD.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://2.bp.blogspot.com/-YbXffroBOwk/TkMv0ui6wbI/AAAAAAAAA_0/0BwuPKuPl7A/s400/gold+futures+vs+GLD.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;For crude oil you can chose either United States Oil Fund ETF or United States 12 Month Oil Fund ETF. For crude oil futures term structure, it is better to chose the later.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-01p4ySCGUx4/TkMv9lpOsDI/AAAAAAAAA_4/dTvG-3vXLRo/s1600/usl+vs+gld+1yr.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://3.bp.blogspot.com/-01p4ySCGUx4/TkMv9lpOsDI/AAAAAAAAA_4/dTvG-3vXLRo/s400/usl+vs+gld+1yr.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Alternatively one can use futures.&lt;br /&gt;&lt;br /&gt;Let's see what will happen...&lt;br /&gt;&lt;br /&gt;&lt;iframe frameborder="0" height="300" src="https://spreadsheets.google.com/spreadsheet/pub?hl=en_US&amp;amp;hl=en_US&amp;amp;key=0AhOUwcJ7GU_hdHgwZm4tZkktdUhrUjVIQnJhNnJEQ3c&amp;amp;single=true&amp;amp;gid=0&amp;amp;range=a1%3Af3&amp;amp;output=html&amp;amp;widget=true" width="500"&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-2265939409516006330?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/2265939409516006330/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=2265939409516006330' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2265939409516006330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2265939409516006330'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/08/crude-gold.html' title='Crude gold'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-17SJfIax0HA/TkMvlNn7ySI/AAAAAAAAA_s/l1u1z75kA20/s72-c/gold+vs+oil+10yr.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-200645110786611191</id><published>2011-08-10T08:23:00.001+02:00</published><updated>2011-08-10T08:31:58.596+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pair trading'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='arbitrage'/><title type='text'>Shorting Apple against the market</title><content type='html'>In June 2010 I suggested a&amp;nbsp;&lt;a href="http://mjaniec.blogspot.com/2010/06/results-of-pairs-traiding-experiment.html"&gt;pair trading experiment: Apple short vs Google long&lt;/a&gt;. It wouldn't have given positive results.&lt;br /&gt;&lt;br /&gt;As for today, the short position on Apple would return -31%, while going long Google would give +25%. Hence the net would be -6%.&lt;br /&gt;&lt;br /&gt;I'm going back to this idea, since Apple's market capitalization has exceeded Exxon's just yesterday:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.zerohedge.com/sites/default/files/images/user5/imageroot/2011/08/AAPL%20XOM%202_0_0.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="286" src="http://www.zerohedge.com/sites/default/files/images/user5/imageroot/2011/08/AAPL%20XOM%202_0_0.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Source:&amp;nbsp;&lt;a href="http://www.zerohedge.com/news/meet-americas-newest-largest-publicly-traded-company-if-only-few-minutes"&gt;Meet America's New Largest Publicly Traded Company (If Only For A Few Minutes)&lt;/a&gt;, &lt;/div&gt;&lt;div style="text-align: center;"&gt;Zero Hedge, 2011-08-09&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;I think I've made a crucial mistake in my assumptions of &lt;a href="http://mjaniec.blogspot.com/2010/06/results-of-pairs-traiding-experiment.html"&gt;the above mentioned experiment&lt;/a&gt;. I thought Google would continue bringing innovative solutions that would instigate interest in the company from both users and investors. Unfortunately, except for the launch of &lt;a href="http://plus.google.com/"&gt;Google+&lt;/a&gt;&amp;nbsp;(which outlook is still uncertain, taking into account its defensive nature against Facebook), Google did not bring any significant products to the market in the analyzed period.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Yes, the Google's recent financial results were pretty impressive. But Apple delivered both strong financial results AND hype-prone products. The &lt;a href="http://blog.recordedfuture.com/2011/05/16/when-will-apple-release-the-iphone-5/"&gt;launch of iPhone 5 is expected for September&lt;/a&gt; and this should support the Apple stock price. Especially relatively to the market.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Apple has significantly outperformed the market over the year:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-Pv67TBrmY5g/TkIXnh8F6iI/AAAAAAAAA_k/mKAaSvBY7VU/s1600/aapl+vs+market+20110809.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://3.bp.blogspot.com/-Pv67TBrmY5g/TkIXnh8F6iI/AAAAAAAAA_k/mKAaSvBY7VU/s400/aapl+vs+market+20110809.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Source: &lt;a href="http://stooq.com/"&gt;stooq.com&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Meanwhile, Google's performance was mixed:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-VBEprHakroY/TkId_trEEWI/AAAAAAAAA_o/nT0nTnUcFPg/s1600/goog+vs+market+20110809.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="275" src="http://2.bp.blogspot.com/-VBEprHakroY/TkId_trEEWI/AAAAAAAAA_o/nT0nTnUcFPg/s400/goog+vs+market+20110809.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Source: &lt;a href="http://stooq.com/"&gt;stooq.com&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;I'm not sure whether Google+ will become success Google would like it to be. I do not know whether Google has any more aces in his sleeve to show over the next 12-24 months. However, there is a high probability that Apple's has overrun the market or is very close to it.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Hence I'd like to propose another experiment: shorting Apple against the market, i.e. Nasdaq futures. Probably the best moment would be on the day of the release of iPhone 5.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;But let's check the strategy&amp;nbsp;performance&amp;nbsp;before that day:&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;iframe frameborder="0" height="200" src="https://spreadsheets.google.com/spreadsheet/pub?key=0AhOUwcJ7GU_hdFFaQUN4UlpsMjZSRkZ3QTljRnVkbEE&amp;amp;single=true&amp;amp;gid=0&amp;amp;range=a1%3Ae4&amp;amp;output=html" width="500"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-200645110786611191?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/200645110786611191/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=200645110786611191' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/200645110786611191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/200645110786611191'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/08/shorting-apple-against-market.html' title='Shorting Apple against the market'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-Pv67TBrmY5g/TkIXnh8F6iI/AAAAAAAAA_k/mKAaSvBY7VU/s72-c/aapl+vs+market+20110809.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8162018747399327188</id><published>2011-08-08T22:28:00.000+02:00</published><updated>2011-08-08T22:28:27.680+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><title type='text'>S&amp;P500 down 6,66%</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-CApNWWvT6sY/TkBFEHyZVXI/AAAAAAAAA_c/T5zgGo0P57Q/s1600/sp500+-666+20110808.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="286" src="http://3.bp.blogspot.com/-CApNWWvT6sY/TkBFEHyZVXI/AAAAAAAAA_c/T5zgGo0P57Q/s400/sp500+-666+20110808.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;S&amp;amp;P500 index has fallen 6,66% today.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;It's 10,99% down from the&amp;nbsp;beginning&amp;nbsp;of the year.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;As a result we have a nice waterfall formation on the chart:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-UTOJqI4bAY4/TkBGLxB1GJI/AAAAAAAAA_g/MftyKGHnV28/s1600/sp500+waterfall.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-UTOJqI4bAY4/TkBGLxB1GJI/AAAAAAAAA_g/MftyKGHnV28/s400/sp500+waterfall.jpg" width="385" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8162018747399327188?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8162018747399327188/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8162018747399327188' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8162018747399327188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8162018747399327188'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/08/s-down-666.html' title='S&amp;P500 down 6,66%'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-CApNWWvT6sY/TkBFEHyZVXI/AAAAAAAAA_c/T5zgGo0P57Q/s72-c/sp500+-666+20110808.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-449203959758712313</id><published>2011-08-05T15:31:00.000+02:00</published><updated>2011-08-05T15:31:05.102+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Stooq'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Downloading market data from Stooq to R</title><content type='html'>&lt;a href="http://www.stooq.com/"&gt;Stooq&lt;/a&gt; provides multiple market data for free in the CSV format. I often use them in my&amp;nbsp;analyses&amp;nbsp;in &lt;a href="http://www.r-project.org/"&gt;R&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;However there was a small problem with automatically downloading market data from Stooq.&lt;br /&gt;&lt;br /&gt;The CSV files are generated dynamically, so there is no static URL available. The name of the instrument for downloading is passed in cookie.&lt;br /&gt;&lt;br /&gt;Therefore, I've written a code that circumvents this limitation:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;# http://www.rhinocerus.net/forum/lang-php/662887-how-read-download-attachment-uri.html - inspiration :)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;library(RCurl)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;getStooqData &amp;lt;- function(asset_code,static_cookie=TRUE) {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;data_tmp &amp;lt;- tempfile() # "data.csv"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;cookie_tmp &amp;lt;- "cookie.txt"&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;u1 &amp;lt;- paste("http://stooq.com/q/d/?s=",asset_code,sep="")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;u2 &amp;lt;- paste("http://stooq.com/q/d/l/?s=",asset_code,"&amp;amp;i=d",sep="")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;if (!static_cookie) {&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;h &amp;lt;- c(paste("GET ",u1," HTTP/1.0",sep=""),&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;Accept="image/gif",Accept="image/x-xbitmap",Accept="image/jpeg",Accept="mage/pjpeg",Accept="application/x-shockwave-flash",Accept="application/vnd.ms-excel",Accept="application/msword",Accept="*/*",&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;'Accept-Language'="pl, en-us;q=0.7",'User-Agent'="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)",'Proxy-Connection'="Keep-Alive")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;u1Opts &amp;lt;- curlOptions(header=TRUE,httpheader=h,cookiejar=cookie_tmp)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;curlPerform(url=u1,.opts=u1Opts,verbose=TRUE)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;h &amp;lt;- c(paste("GET",u2,"HTTP/1.0"),&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;Accept="image/gif",Accept="image/x-xbitmap",Accept="image/jpeg",Accept="mage/pjpeg",Accept="application/x-shockwave-flash",Accept="application/vnd.ms-excel",Accept="application/msword",Accept="*/*",&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;'Accept-Language'="pl, en-us;q=0.7",'User-Agent'="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)",'Proxy-Connection'="Keep-Alive")&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;u2Opts &amp;lt;- curlOptions(header=TRUE,httpheader=h,cookiefile=cookie_tmp)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;else {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;h &amp;lt;- c(paste("GET",u2,"HTTP/1.0"),&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;Accept="image/gif",Accept="image/x-xbitmap",Accept="image/jpeg",Accept="mage/pjpeg",Accept="application/x-shockwave-flash",Accept="application/vnd.ms-excel",Accept="application/msword",Accept="*/*",&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;'Accept-Language'="pl, en-us;q=0.7",'User-Agent'="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1)",'Proxy-Connection'="Keep-Alive",Cookie=paste("cookie_uu=p;cookie_user=%3F0001dllg000011500d1300%7C",asset_code,sep=""))&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;u2Opts &amp;lt;- curlOptions(header=TRUE,httpheader=h)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;reader &amp;lt;- basicTextGatherer()&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;w &amp;lt;- getURLContent(url=u2,.opts=u2Opts)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;write(w,file=data_tmp)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;stooq_data &amp;lt;- read.csv(data_tmp)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;stooq_data&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;stooq_data &amp;lt;- getStooqData("es.f",static_cookie=TRUE)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In most cases, the function should work with &lt;i&gt;static_cookie&lt;/i&gt; set to TRUE. However, a possibility that the cookie will change exists, so I've added some additional code that actually downloads a cookie before downloading the data.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-449203959758712313?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/449203959758712313/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=449203959758712313' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/449203959758712313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/449203959758712313'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/08/downloading-market-data-from-stooq-to-r.html' title='Downloading market data from Stooq to R'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8950208135118533774</id><published>2011-08-02T16:49:00.002+02:00</published><updated>2011-08-02T16:54:31.019+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='trend following'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='chaos'/><category scheme='http://www.blogger.com/atom/ns#' term='quantitative trading'/><title type='text'>Some improvements with MD2 and S&amp;P500</title><content type='html'>Seems, the &lt;a href="http://mjaniec.blogspot.com/2011/08/no-bugs-so-far.html"&gt;MD2 trading strategy&lt;/a&gt;&amp;nbsp;can SOMETIMES work with S&amp;amp;P500, too:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-neuwOlimP18/TjgMm4jCGdI/AAAAAAAAA_Q/ew6Gd9n1FSo/s1600/md2+sp500+1000+sessions.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="345" src="http://4.bp.blogspot.com/-neuwOlimP18/TjgMm4jCGdI/AAAAAAAAA_Q/ew6Gd9n1FSo/s400/md2+sp500+1000+sessions.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. MD2 strategy (2 variants) for S&amp;amp;P500, 1000 sessions, no commission&lt;/div&gt;&lt;div style="text-align: center;"&gt;blue line - market&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;black line - strategy&lt;/div&gt;&lt;div style="text-align: center;"&gt;important assumption: perfect asset divisibility&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The results as measured by returns are still unstable, but after some modifications, they improve :)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Results for the first variant:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;market &amp;nbsp; = &amp;nbsp;1345.02 &amp;nbsp; -6.143497 %&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;strategy = &amp;nbsp;2041.307 &amp;nbsp; 42.44396 %&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Results for the second variant:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;market &amp;nbsp; = &amp;nbsp;1345.02 &amp;nbsp; -6.143497 %&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;strategy = &amp;nbsp;2301.505 &amp;nbsp; 60.60075 %&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Still, both the lack of stability and returns are not satisfactory.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8950208135118533774?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8950208135118533774/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8950208135118533774' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8950208135118533774'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8950208135118533774'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/08/some-improvements-with-md2-and-s.html' title='Some improvements with MD2 and S&amp;P500'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-neuwOlimP18/TjgMm4jCGdI/AAAAAAAAA_Q/ew6Gd9n1FSo/s72-c/md2+sp500+1000+sessions.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1694173834665668123</id><published>2011-08-01T11:57:00.001+02:00</published><updated>2011-08-02T16:56:08.917+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EURUSD'/><category scheme='http://www.blogger.com/atom/ns#' term='USDJPY'/><category scheme='http://www.blogger.com/atom/ns#' term='forex'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='chaos'/><category scheme='http://www.blogger.com/atom/ns#' term='quantitative trading'/><title type='text'>No bugs so far</title><content type='html'>So far I was unable to identify any serious bugs in &lt;a href="http://mjaniec.blogspot.com/2011/07/i-wonder-where-is-bug-this-time.html"&gt;the code of previously mentioned strategy&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The strategy seems to work (i.e is able to beat the market) for longer horizons (&amp;gt;500 sessions) for EURUSD and USDJPY.&lt;br /&gt;&lt;br /&gt;It does not work for SP500 (UPDATE 2011-08-02: &lt;a href="http://mjaniec.blogspot.com/2011/08/some-improvements-with-md2-and-s.html"&gt;seems it sometimes does...&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-btMMZC0xmZI/TjZ2zIoHshI/AAAAAAAAA_I/6MuJT2NgjRA/s1600/MD2+usdjpy+500.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-btMMZC0xmZI/TjZ2zIoHshI/AAAAAAAAA_I/6MuJT2NgjRA/s400/MD2+usdjpy+500.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. MD2 strategy for USDJPY, 500 sessions&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;blue line - market&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;black line - strategy&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;What's even more interesting, it seems there is not short term relation between the signal used and daily fluctuations of the assets:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-oTObiiqLe4k/TjZ3LJsXjHI/AAAAAAAAA_M/MCUL9CtpT5c/s1600/md2+relation.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-oTObiiqLe4k/TjZ3LJsXjHI/AAAAAAAAA_M/MCUL9CtpT5c/s400/md2+relation.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Relationship between MD2 signal and daily changes, EURUSD&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Currently I'm working on improving the strategy. I'm also going to test it on high-frequency data.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1694173834665668123?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1694173834665668123/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1694173834665668123' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1694173834665668123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1694173834665668123'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/08/no-bugs-so-far.html' title='No bugs so far'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-btMMZC0xmZI/TjZ2zIoHshI/AAAAAAAAA_I/6MuJT2NgjRA/s72-c/MD2+usdjpy+500.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-4708782087332372667</id><published>2011-07-30T20:00:00.002+02:00</published><updated>2011-07-30T20:11:36.621+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EURUSD'/><category scheme='http://www.blogger.com/atom/ns#' term='forex'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='chaos'/><category scheme='http://www.blogger.com/atom/ns#' term='quantitative trading'/><title type='text'>I wonder where is a bug this time...</title><content type='html'>In April 2010 I've started working on a &lt;a href="http://mjaniec.blogspot.com/2010/04/pierwszy-test-strategii-high-frequency.html"&gt;short-term forex trading&amp;nbsp;strategy&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The initial results were amazing, just too good to be true.&lt;br /&gt;&lt;br /&gt;Shortly it turned out that there was a bug in the code indeed :)&lt;br /&gt;&lt;br /&gt;In the meantime, I had some other things to do, so the work on this promising strategy was stopped for nearly 1,5 years.&lt;br /&gt;&lt;br /&gt;Recently I've came back to it.&lt;br /&gt;&lt;br /&gt;I think, there still must be a bug somewhere...&lt;br /&gt;&lt;br /&gt;Even that&amp;nbsp;the generated strategy results are definitely less stable than before, they are still impressive for most of the tested periods:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-JTYY_k7o5ek/TjREezZMnwI/AAAAAAAAA_E/CXPtSYqUuOo/s1600/there+must+be+a+bug.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-JTYY_k7o5ek/TjREezZMnwI/AAAAAAAAA_E/CXPtSYqUuOo/s400/there+must+be+a+bug.jpeg" width="370" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Simulated results of the MD2 forex strategy, EURUSD&lt;br /&gt;blue line - market&lt;br /&gt;black line - strategy&lt;/div&gt;&lt;br /&gt;The&amp;nbsp;simulated strategy&amp;nbsp;return for EURUSD over 501 sessions through July 22nd, 2011 is 53,81% vs 0,87% market return.&lt;br /&gt;&lt;br /&gt;I'll hunt for bugs tomorrow :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-4708782087332372667?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/4708782087332372667/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=4708782087332372667' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4708782087332372667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4708782087332372667'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/07/i-wonder-where-is-bug-this-time.html' title='I wonder where is a bug this time...'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-JTYY_k7o5ek/TjREezZMnwI/AAAAAAAAA_E/CXPtSYqUuOo/s72-c/there+must+be+a+bug.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1985871350842832660</id><published>2011-07-28T10:39:00.001+02:00</published><updated>2011-07-28T10:40:49.600+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='RSI'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><title type='text'>Insignificance of RSI</title><content type='html'>&lt;a href="http://en.wikipedia.org/wiki/Relative_Strength_Index"&gt;RSI or Relative&amp;nbsp;Strength&amp;nbsp;Indicator&lt;/a&gt; is one of the popular technical analysis indicators.&lt;br /&gt;&lt;br /&gt;It is assumed that RSI above 70 signals market is overbought, while its level below 30 suggests oversold condition.&lt;br /&gt;&lt;br /&gt;Let's take a look at the relation between RSI(14) and historical daily changes of S&amp;amp;P500:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-lPVlMp-VA_s/TjEfgH4XAiI/AAAAAAAAA-w/ph_-hapx3G4/s1600/sp500+RSI14+1d.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-lPVlMp-VA_s/TjEfgH4XAiI/AAAAAAAAA-w/ph_-hapx3G4/s400/sp500+RSI14+1d.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. daily changes versus RSI&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;It doesn't gets any &amp;nbsp;better at different time scales...&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1985871350842832660?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1985871350842832660/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1985871350842832660' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1985871350842832660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1985871350842832660'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/07/insignificance-of-rsi.html' title='Insignificance of RSI'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-lPVlMp-VA_s/TjEfgH4XAiI/AAAAAAAAA-w/ph_-hapx3G4/s72-c/sp500+RSI14+1d.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-2275639604308861942</id><published>2011-07-28T10:08:00.000+02:00</published><updated>2011-07-28T10:08:38.769+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EURUSD'/><category scheme='http://www.blogger.com/atom/ns#' term='return to mean'/><category scheme='http://www.blogger.com/atom/ns#' term='mean reversion'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><title type='text'>Change of deviation from moving average seems neutral to returns</title><content type='html'>Relation between daily deviation from moving average to moving average of deviation seems to have no effect on asset returns:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-f1DTL2tEDzg/TjEXqcPOq7I/AAAAAAAAA-k/nULbx1EKkBc/s1600/deviation+from+ma+deviation+eurusd+15-5-3.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-f1DTL2tEDzg/TjEXqcPOq7I/AAAAAAAAA-k/nULbx1EKkBc/s400/deviation+from+ma+deviation+eurusd+15-5-3.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. daily deviation from moving average / average daily deviation from moving average: deviation from EMA15, EMA5 of deviation, return over next 3 days (15-5-3), EURUSD&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-GevmZoiYD0w/TjEXswZdtKI/AAAAAAAAA-o/Ig89v3BqI5o/s1600/deviation+from+ma+deviation+eurusd+45-25-10.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-GevmZoiYD0w/TjEXswZdtKI/AAAAAAAAA-o/Ig89v3BqI5o/s400/deviation+from+ma+deviation+eurusd+45-25-10.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. daily deviation from moving average / average daily deviation from moving average, EURUSD 45-25-10&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-AAZAek7QOmc/TjEXvOnfEoI/AAAAAAAAA-s/5nlihbFij8k/s1600/deviation+from+ma+deviation+eurusd+250-25-5.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-AAZAek7QOmc/TjEXvOnfEoI/AAAAAAAAA-s/5nlihbFij8k/s400/deviation+from+ma+deviation+eurusd+250-25-5.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. daily deviation from moving average / average daily deviation from moving average, EURUSD 250-25-5&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-2275639604308861942?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/2275639604308861942/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=2275639604308861942' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2275639604308861942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2275639604308861942'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/07/change-of-deviation-from-moving-average.html' title='Change of deviation from moving average seems neutral to returns'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-f1DTL2tEDzg/TjEXqcPOq7I/AAAAAAAAA-k/nULbx1EKkBc/s72-c/deviation+from+ma+deviation+eurusd+15-5-3.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1377859197507615082</id><published>2011-07-28T09:29:00.001+02:00</published><updated>2011-07-28T09:30:48.958+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EURUSD'/><category scheme='http://www.blogger.com/atom/ns#' term='return to mean'/><category scheme='http://www.blogger.com/atom/ns#' term='mean reversion'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='GOLD'/><title type='text'>Returns remain random at moderate deviations from moving average</title><content type='html'>It was not possible to spot any significant patterns when&amp;nbsp;analyzing short term (3-10 days)&amp;nbsp;price changes versus deviations from short- and mid-term (5, 10 ,50 ,100 days) moving averages for S&amp;amp;P500, EURUSD and gold futures:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/--ibZzVSpkj4/TjEO6yaBkII/AAAAAAAAA-Y/nl2t6z-95q4/s1600/sp500+devs+from+MA.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/--ibZzVSpkj4/TjEO6yaBkII/AAAAAAAAA-Y/nl2t6z-95q4/s400/sp500+devs+from+MA.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. returns versus deviation from moving average, S&amp;amp;P500&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-NLc0cmlMJ4o/TjEO9oqUnQI/AAAAAAAAA-c/woyUj2-cDI8/s1600/eurusd+devs+from+MA.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-NLc0cmlMJ4o/TjEO9oqUnQI/AAAAAAAAA-c/woyUj2-cDI8/s400/eurusd+devs+from+MA.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. returns versus deviation from moving average, EURUSD&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-a292HGcATB0/TjEO_rMjiBI/AAAAAAAAA-g/96BMmlo9TWI/s1600/gold+devs+from+MA.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-a292HGcATB0/TjEO_rMjiBI/AAAAAAAAA-g/96BMmlo9TWI/s400/gold+devs+from+MA.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. returns versus deviation from moving average, gold futures&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1377859197507615082?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1377859197507615082/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1377859197507615082' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1377859197507615082'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1377859197507615082'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/07/returns-remain-random-at-moderate.html' title='Returns remain random at moderate deviations from moving average'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/--ibZzVSpkj4/TjEO6yaBkII/AAAAAAAAA-Y/nl2t6z-95q4/s72-c/sp500+devs+from+MA.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-7022631537052920542</id><published>2011-07-28T08:09:00.001+02:00</published><updated>2011-07-28T09:32:57.080+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EURUSD'/><category scheme='http://www.blogger.com/atom/ns#' term='return to mean'/><category scheme='http://www.blogger.com/atom/ns#' term='mean reversion'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='GOLD'/><category scheme='http://www.blogger.com/atom/ns#' term='WIG20'/><title type='text'>Long term price deviations indicative for stock indexes, not so much for currencies or commodities</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-pTbWSRc79Sw/TjD2_ZSx-XI/AAAAAAAAA-I/Sor0FShHL3s/s1600/long+term+signals.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-pTbWSRc79Sw/TjD2_ZSx-XI/AAAAAAAAA-I/Sor0FShHL3s/s400/long+term+signals.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. long term behavior of S&amp;amp;P500&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;I've mentioned previously that&lt;a href="http://mjaniec.blogspot.com/2011/07/simple-return-to-mean-as-investment.html"&gt; it seems S&amp;amp;P500 tends to reverse to its mean when an extreme deviation occurs&lt;/a&gt;.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;b&gt;The first potential buy signal is generated when price deviates more than 20-30% from the 250 days moving average.&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;There are two more indicators worth observing for long term signals:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;relative standard deviation (SD) - i.e. standard deviation / average&lt;/li&gt;&lt;li&gt;long term nominal change - i.e. change of the price over 250 sessions (more or less one year)&lt;/li&gt;&lt;/ul&gt;&lt;b&gt;In the case of relative SD, a buy signal is generated when the indicator exceeds 0.3.&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Another &lt;b&gt;buy signal emerges when price drops -40% / -50% over a year.&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;What's interesting, a weak signal also appears when a price increases by 50% over a year. There were very few instances of such a situation, though.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;You can observe similar long term relations for other stock indexes, such as WIG20 (Warsaw Stock Exchange, Poland):&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-_UEH6QVAa2c/TjD6qgCyZEI/AAAAAAAAA-M/yp9q9lkwPfA/s1600/long+term+signals+wig20.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-_UEH6QVAa2c/TjD6qgCyZEI/AAAAAAAAA-M/yp9q9lkwPfA/s400/long+term+signals+wig20.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. long term behavior of WIG20&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The picture is not so obvious for currencies and commodities, though:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-rnKkcZtqU5c/TjD7afw4TZI/AAAAAAAAA-Q/ZnGjwvdludw/s1600/long+term+signals+eurusd.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-rnKkcZtqU5c/TjD7afw4TZI/AAAAAAAAA-Q/ZnGjwvdludw/s400/long+term+signals+eurusd.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. long term behavior of EURUSD&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-wY3FZ1A0748/TjD7_qBYiPI/AAAAAAAAA-U/9jlLP7tFKS0/s1600/long+term+signals+gold.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-wY3FZ1A0748/TjD7_qBYiPI/AAAAAAAAA-U/9jlLP7tFKS0/s400/long+term+signals+gold.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. long term behavior of gold futures&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-7022631537052920542?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/7022631537052920542/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=7022631537052920542' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7022631537052920542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7022631537052920542'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/07/long-term-price-deviations-indicative.html' title='Long term price deviations indicative for stock indexes, not so much for currencies or commodities'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-pTbWSRc79Sw/TjD2_ZSx-XI/AAAAAAAAA-I/Sor0FShHL3s/s72-c/long+term+signals.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-2998969243609940372</id><published>2011-07-25T13:33:00.001+02:00</published><updated>2011-07-27T20:48:26.847+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><title type='text'>The virtue of patience</title><content type='html'>Interesting: over the recent more or less 10 years (5000 sessions), anyone patient enough - i.e. ready to hold his position open over up to 250 sessions - who invested in the S&amp;amp;P500 index, would have lost a maximum of 4,1%, even that the market took a two huge dives in that period:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-mxqadbkK8Gg/Ti1TVINpjbI/AAAAAAAAA90/mYDw0m4_vQA/s1600/returns%2Bover%2B250%2Bsessions.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-mxqadbkK8Gg/Ti1TVINpjbI/AAAAAAAAA90/mYDw0m4_vQA/s400/returns%2Bover%2B250%2Bsessions.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Legend:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;black line - return at the end of 250 days period&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;blue line - maximum return over a 250 days period&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;red line - maximum loss over a 250 days period&lt;/div&gt;&lt;br /&gt;Of course, he would have to close his position at the right moment... ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-2998969243609940372?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/2998969243609940372/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=2998969243609940372' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2998969243609940372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2998969243609940372'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/07/virtue-of-patience.html' title='The virtue of patience'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-mxqadbkK8Gg/Ti1TVINpjbI/AAAAAAAAA90/mYDw0m4_vQA/s72-c/returns%2Bover%2B250%2Bsessions.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1597084537080124533</id><published>2011-07-25T07:05:00.003+02:00</published><updated>2011-07-25T07:40:02.900+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EIA'/><category scheme='http://www.blogger.com/atom/ns#' term='NatGas'/><category scheme='http://www.blogger.com/atom/ns#' term='energy'/><title type='text'>A trillion dollars opportunity</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://bi.gazeta.pl/im/4/9963/z9963054X,Gaz-lupkowy-w-Polsce---jak-przybywalo-koncesji-na.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://bi.gazeta.pl/im/4/9963/z9963054X,Gaz-lupkowy-w-Polsce---jak-przybywalo-koncesji-na.jpg" width="273" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Source: &lt;a href="http://wyborcza.biz/biznes/1,101716,9962730,Goraczka_gazu.html"&gt;"Gorączka gazu", Gazeta Wyborcza, 2011-07-18&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;The&amp;nbsp;&lt;a href="http://www.eia.gov/analysis/studies/worldshalegas/"&gt;Energy Information Agency estimates&lt;/a&gt;&amp;nbsp;technically recoverable shale gas resources in Poland at 5.295 trillion cubic meters (5.295e12 m^3).&lt;br /&gt;&lt;br /&gt;Based on the current &lt;a href="http://stooq.com/q/?s=ng.f"&gt;spot price of the natural gas&lt;/a&gt; ($4.3780/MMBtu) in the US where shale gas extraction shook the dynamics of the gas market, this translates into around 841 billion USD of potential revenues.&lt;br /&gt;&lt;br /&gt;Given the current global economic situation and the&amp;nbsp;idiosyncrasies&amp;nbsp;of the European gas market this is a rather conservative price estimate (I will return to it later).&lt;br /&gt;&lt;br /&gt;1 MMbtu / 1027 Btu/cf = 973.71 cf (cubic feet, feet^3)&lt;br /&gt;(see:&amp;nbsp;&lt;a href="http://www.think-energy.net/energy_units.htm"&gt;http://www.think-energy.net/energy_units.htm&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.wolframalpha.com/input/?i=973.71+cf+in+m^3"&gt;973.71 cf = 27.572 m^3&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;1000 m^3 / 27.572 m^3 (1 MMbtu) = 36.2687&lt;br /&gt;&lt;br /&gt;1000 m^3 * NG.F = $4.3780 * 36.2687 = $158.784 / 1000 m^3&lt;br /&gt;&lt;br /&gt;&lt;script type="text/javascript" id="WolframAlphaScript5a77f528519cd43703fd9a8401cd1c34" src="http://www.wolframalpha.com/widget/widget.jsp?id=5a77f528519cd43703fd9a8401cd1c34"&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.wolframalpha.com/input/?i=5.295e12*158.784%2F1000"&gt;5.295e12 m^3 * $158.784 / 1000 m^3 = $840 761 280 000&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;OK, so let's go back to some more pricing analysis.&lt;br /&gt;&lt;br /&gt;The average price of the natural gas sold by Gazprom reached&lt;a href="http://theenergycollective.com/rodadams/61545/gazprom-profiting-mightily-german-nuclear-exit"&gt; $306 at the end of 2010 and is expected to increase to $400 in 2011&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Meanwhile the &lt;a href="http://www.wolframalpha.com/input/?i=natural+gas+futures"&gt;average natural gas spot price over 10 years in the US was $5.69/Btu&lt;/a&gt; or $206.369/1000 m^3.&lt;br /&gt;&lt;br /&gt;As the production of shale gas in Europe increases and LNG-based geographical arbitrage equalizes prices among regions, the European prices will come down over time.&lt;br /&gt;&lt;br /&gt;Hence the long term average spot price is probably the better estimate of the value of reserves. Then the gas reserves of 5e12 m^3 translate into &lt;a href="http://www.wolframalpha.com/input/?i=5.295e12*206.369%2F1000"&gt;nearly 1,1 trillion USD&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;script id="WolframAlphaScriptf00740bdbf175e2ba5521bc0bdfc2d12" src="http://www.wolframalpha.com/widget/widget.jsp?id=f00740bdbf175e2ba5521bc0bdfc2d12" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;br /&gt;If only reserves are as large as estimated by EIA...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1597084537080124533?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1597084537080124533/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1597084537080124533' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1597084537080124533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1597084537080124533'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/07/trillion-dollars-opportunity.html' title='A trillion dollars opportunity'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1435045609772388661</id><published>2011-07-24T12:44:00.011+02:00</published><updated>2011-07-24T21:13:59.898+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='return to mean'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><title type='text'>Simple return to mean as investment signal?</title><content type='html'>Financial instruments fluctuate around their means. Sometimes the price of an instrument is above this instrument's mean, and sometimes the other way. Price tend to return to the mean. But can you use this mechanism for buying an selling financial instruments?&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Let's check the most simple average-based rule on the S&amp;amp;P500 index over the previous 10,000 sessions.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;RULE: buy or short sell the index when the price deviates by X% from its mean.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;Test 1: EMA=15, position holding period = 3&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Buying at deviation from the mean equal to -0.2 (20%) would bring nearly a 10% gain, but there was just one such situation over the whole period being analyzed:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;t= -0.2 n= 1 avg= 0.09904726 min= 0.09904726 max= 0.09904726&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-UepdItv7buU/TivwIO-7_WI/AAAAAAAAA9Q/MHjbggWGHxE/s1600/ma15f3.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-UepdItv7buU/TivwIO-7_WI/AAAAAAAAA9Q/MHjbggWGHxE/s400/ma15f3.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Short term deviation doesn't look like a viable signal.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;u&gt;Test 2: EMA=200, position holding period = 3&lt;/u&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;No signals generated (testing only at 0.X, so 0.35 is not covered):&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-FaK4PwL0zC0/TivyJBPxRqI/AAAAAAAAA9U/wQQgY4b6qOw/s1600/ma200f3.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-FaK4PwL0zC0/TivyJBPxRqI/AAAAAAAAA9U/wQQgY4b6qOw/s400/ma200f3.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Large deviation from long term average does not influence short period movements.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;u&gt;Test 3: EMA=200, position holding period = 25&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;One weak signal: deviation = -0.3 increased probability of positive return.&amp;nbsp;One could expect a 9,6% return, but there is also a risk of a loss of -7,1%.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;t= -0.3 u= 13 d= 3 avg= 0.0964092 min= -0.07157303 max= 0.2284035&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-8SUSKGcUxpw/Tivzoy09aSI/AAAAAAAAA9Y/k0eKMBAZn8c/s1600/ma200f25.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-8SUSKGcUxpw/Tivzoy09aSI/AAAAAAAAA9Y/k0eKMBAZn8c/s400/ma200f25.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;u&gt;Test 4: EMA=45, position holding period = 10&lt;/u&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Another case with weak signal. This time at deviation = -0.2.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;t= -0.2 u= 8 d= 2 avg= 0.05415763 min= -0.02528302 max= 0.1521247&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-S-Tb96-EnOk/Tiv0-B4uZhI/AAAAAAAAA9c/qzEl5nHg62c/s1600/ma45f10.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-S-Tb96-EnOk/Tiv0-B4uZhI/AAAAAAAAA9c/qzEl5nHg62c/s400/ma45f10.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Conclusion: Price deviations from the moving average (mean) &amp;nbsp;"larger" than -0.2 significantly increase probability of an increase in price in the case of S&amp;amp;P500, but such deviations are rare events.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;UPDATE 1:&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Additional test: 35000+ quotations, MA=200, holding period = 25.&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;br /&gt;Both "strong" and "weak" signal has been generated. Average expected return at each deviation added to the chart:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-69Z2Nwru2HU/TiwHyf_W2PI/AAAAAAAAA9g/GhIxDy9yblw/s1600/ma200f25_full.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-69Z2Nwru2HU/TiwHyf_W2PI/AAAAAAAAA9g/GhIxDy9yblw/s400/ma200f25_full.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;UPDATE 2:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;It is getting to start getting more interesting when we consider long moving averages and long expected position holding period. Under such conditions, both the soft and hard signals give pretty solid expected gains with limited loss potential.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;u style="background-color: yellow;"&gt;Test: EMA=250, holding period=250&lt;/u&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;soft signal:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;t= -0.2 u= 178 d= 3 avg= 0.2415313 min= -0.1348127 max= 0.5206657&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;hard signal:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;t= -0.3 n= 29 avg= 0.3260642 min= 0.1503819 max= 0.5206657&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-Ocv8TniTmjw/TixVMl0doxI/AAAAAAAAA9k/Ye0ggUNvFMY/s1600/ma250f250_10k.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/-Ocv8TniTmjw/TixVMl0doxI/AAAAAAAAA9k/Ye0ggUNvFMY/s400/ma250f250_10k.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;u&gt;Test: EMA=100, holding period=250&lt;/u&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;t= -0.2 n= 41 avg= 0.2482144 min= 0.04344005 max= 0.5206657&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-BGbDSJuT93k/TixXNSSUOqI/AAAAAAAAA9o/W14a8Ncziq8/s1600/ma100f250_10k.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/-BGbDSJuT93k/TixXNSSUOqI/AAAAAAAAA9o/W14a8Ncziq8/s400/ma100f250_10k.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;UPDATE 3:&lt;br /&gt;&lt;br /&gt;Measuring price deviation from moving average in terms of standard deviations makes the picture more messy:&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Test: SMA=250, holding period=250, deviation in terms of standard deviations:&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-AqwTqeOc6SI/Tixs1dXbaNI/AAAAAAAAA9s/F0SmqoG9GCI/s1600/ma250f250sd_10k.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/-AqwTqeOc6SI/Tixs1dXbaNI/AAAAAAAAA9s/F0SmqoG9GCI/s400/ma250f250sd_10k.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1435045609772388661?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1435045609772388661/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1435045609772388661' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1435045609772388661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1435045609772388661'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/07/simple-return-to-mean-as-investment.html' title='Simple return to mean as investment signal?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-UepdItv7buU/TivwIO-7_WI/AAAAAAAAA9Q/MHjbggWGHxE/s72-c/ma15f3.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-915864379471072078</id><published>2011-05-30T09:50:00.001+02:00</published><updated>2011-05-30T10:00:21.686+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google Prediction API'/><category scheme='http://www.blogger.com/atom/ns#' term='machine learning'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Google Prediction API v1.2 for R</title><content type='html'>Google has recently made available a new version (v1.2) of &lt;b&gt;&lt;a href="http://code.google.com/apis/predict/"&gt;Google Prediction API&lt;/a&gt;&lt;/b&gt;. (see &lt;a href="http://googleenterprise.blogspot.com/2011/05/build-smarter-apps-with-improved-google.html"&gt;announcement from Google I/O 2011&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;Hence the &lt;a href="https://code.google.com/p/google-prediction-api-r-client/"&gt;previously available implementation of Google Prediction API for R&lt;/a&gt; has stopped working :(&lt;br /&gt;&lt;br /&gt;I've spent some time and adapted it to new version of the API as well as made some small extensions and modification for Windows/&lt;a href="http://www.r-project.org/"&gt;R 2.13.0&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;You can find the source code and R package at:&amp;nbsp;&lt;a href="http://code.google.com/p/r-google-prediction-api-v12/"&gt;http://code.google.com/p/r-google-prediction-api-v12/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Sample usage of the package:&lt;br /&gt;&lt;span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; font-family: arial, sans-serif; font-size: 14px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre class="prettyprint" style="background-color: #eeeeee; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; font-size: 13px; max-width: 70em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em;"&gt;&lt;span class="com" style="color: #880000;"&gt;# install package&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;install&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;packages&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"googlepredictionapi_0.12.tar.gz"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; repos&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;NULL&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; type&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"source"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;br /&gt;library&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;rjson&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;library&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;RCurl&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;library&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;googlepredictionapi&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;#--- initialize&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# turn off SSL check - see: http://code.google.com/p/r-google-analytics/issues/detail?id=1#c5 &amp;amp; http://www.omegahat.org/RCurl/FAQ.html&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;options&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;RCurlOptions&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; list&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;capath &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; system&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;file&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"CurlSSL"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"cacert.pem"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="kwd" style="color: #000088;"&gt;package&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"RCurl"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;),&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; ssl&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;verifypeer &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; FALSE&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;))&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# put your own email, password and API key below&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;myEmail &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"***"&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;myPassword &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"***"&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;myAPIkey &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"***"&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# put path to python.exe on your computer and path do gsutil directory&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;myPython &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"c:/Python27/python.exe"&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;myGSUtilPath &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"c:/gsutil/"&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;br /&gt;myVerbose &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; FALSE&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;#--- work&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# upload local CVS file to Google Storage and initiate training; local file must be in R working directory&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="kwd" style="color: #000088;"&gt;my&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;model &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;PredictionApiTrain&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;data&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"./language_id_pl.txt"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;remote&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;file&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"gs://prediction_example/prediction_models/languages"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# alternative: initiate training of a model already uploaded to Google Storage&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="kwd" style="color: #000088;"&gt;my&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;model &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;PredictionApiTrain&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;data&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"gs://prediction_example/prediction_models/languages"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;tillDone&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;FALSE&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# tillDone - repeat checking till model is trained&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# check whether model is trained; if tillDone=TRUE was set above, there is no need for that&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;result &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;PredictionApiCheckTrainingStatus&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"prediction_example"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"prediction_models/languages"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;verbose&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;TRUE&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# you can adapt the result returned by PredictionApiCheckTrainingStatus to 'predictionapimodel' class used in predictions&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="kwd" style="color: #000088;"&gt;my&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;model &lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;&amp;lt;-&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt; &lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;WrapModel&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;result&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;br /&gt;summary&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="kwd" style="color: #000088;"&gt;my&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;model&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# check new data against model (I have added some Polish-language texts to the Google Prediction API 'Hello World' example)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;predict&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="kwd" style="color: #000088;"&gt;my&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;model&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"'Prezydent Obama spotkał się z parlamentarzystami'"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# please note, this package returns all labels and scores for a given data in a format:&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# [1] "Polish" &amp;nbsp; "French" &amp;nbsp; "Spanish" &amp;nbsp;"English" &amp;nbsp;"0.36195" &amp;nbsp;"0.26396" &amp;nbsp;"0.260067" "0.114022"&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# some other prediction request&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;predict&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="kwd" style="color: #000088;"&gt;my&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;.&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;model&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"'This is a test'"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt; &lt;/span&gt;&lt;span class="com" style="color: #880000;"&gt;# list objects in a Google Storage bucket&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="typ" style="color: #660066;"&gt;PredictionApiListObjects&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;(&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"prediction_example"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="str" style="color: #008800;"&gt;"prediction_models/languages"&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;,&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;verbose&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;=&lt;/span&gt;&lt;span class="pln" style="color: black;"&gt;TRUE&lt;/span&gt;&lt;span class="pun" style="color: #666600;"&gt;)&lt;/span&gt;&lt;/pre&gt;&lt;pre class="prettyprint" style="background-color: #eeeeee; font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; font-size: 13px; max-width: 70em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.5em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.5em;"&gt;&lt;span class="pun" style="color: #666600;"&gt; &lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-915864379471072078?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/915864379471072078/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=915864379471072078' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/915864379471072078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/915864379471072078'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/05/google-prediction-api-v12-for-r.html' title='Google Prediction API v1.2 for R'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-7322636651980738912</id><published>2011-05-15T15:26:00.000+02:00</published><updated>2011-05-15T15:26:54.462+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='text mining'/><category scheme='http://www.blogger.com/atom/ns#' term='LSA'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Testing LSA in R</title><content type='html'>&lt;a href="http://en.wikipedia.org/wiki/Latent_semantic_analysis"&gt;Latent Semantic Analysis (LSA)&lt;/a&gt; is a&amp;nbsp;technique&amp;nbsp;used in text mining for identifying concepts in documents.&lt;br /&gt;&lt;br /&gt;It can be used, among others, for&amp;nbsp;querying&amp;nbsp;documents for concepts related to specified keywords, or estimating similarities between groups of terms (such as phrases).&lt;br /&gt;&lt;br /&gt;Since there is &lt;a href="http://cran.r-project.org/web/packages/lsa/index.html"&gt;a package implementing LSA in R&lt;/a&gt; available, I've decided to put it to a very simple test in the two areas mentioned above:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. LSA-based search&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; q &amp;lt;- fold_in(query("sushi hamster", rownames(myNewMatrix)),myLSAspace)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; qd &amp;lt;- 0&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; for (i in 1:ncol(myNewMatrix)) {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+ qd[i] &amp;lt;- cosine(as.vector(q),as.vector(myNewMatrix[,i]))&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+ }&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; cor(q,myNewMatrix,method="spearman")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; D1 D2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; D3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; D4&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;SUSHI HAMSTER -0.5882353 &amp;nbsp;1 -0.7647059 -0.5882353&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; qd&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1] &amp;nbsp;0.05031141 &amp;nbsp;0.99187467 -0.22654816 &amp;nbsp;0.22207399&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. phrases similarity&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; ComparePhrases &amp;lt;- function(p1, p2) {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+ q1 &amp;lt;- fold_in(query(p1, rownames(myNewMatrix)),myLSAspace)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+ q2 &amp;lt;- fold_in(query(p2, rownames(myNewMatrix)),myLSAspace)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+ cosine(as.vector(q1),as.vector(q2))&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;+ }&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; ComparePhrases("cat dog","monster dog")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[,1]&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1,] 0.995967&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;gt; ComparePhrases("sushi hamster","monster dog")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[,1]&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;[1,] -0.1948665&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The complete source code is&amp;nbsp;&lt;a href="http://snipplr.com/view/53604/testing-lsa-in-r/"&gt;available here&lt;/a&gt;.&lt;br /&gt;&amp;nbsp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-7322636651980738912?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/7322636651980738912/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=7322636651980738912' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7322636651980738912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7322636651980738912'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/05/testing-lsa-in-r.html' title='Testing LSA in R'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-9053738507476504294</id><published>2011-05-11T01:27:00.000+02:00</published><updated>2011-05-11T01:27:19.567+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='text mining'/><category scheme='http://www.blogger.com/atom/ns#' term='TextRank'/><category scheme='http://www.blogger.com/atom/ns#' term='PageRank'/><category scheme='http://www.blogger.com/atom/ns#' term='keyword extraction'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>TextRank implementation in R</title><content type='html'>&lt;b&gt;TextRank&lt;/b&gt; is a graph algorithm for keywords extraction and summarization based on &lt;b&gt;PageRank&lt;/b&gt; developed by &lt;b&gt;Larry Page&lt;/b&gt; from &lt;b&gt;Google&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;You can read the description of the algorithm and its evaluation in the paper &lt;a href="http://acl.ldc.upenn.edu/acl2004/emnlp/pdf/Mihalcea.pdf"&gt;&lt;b&gt;"Text Rank: Bringing Order into Texts"&lt;/b&gt; &lt;/a&gt;by &lt;b&gt;Rada Mihalcea&lt;/b&gt; and &lt;b&gt;Paul Tarau&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;I have made a quick and dirty implementation of &lt;b&gt;TextRank&lt;/b&gt; in &lt;b&gt;R&lt;/b&gt; (&lt;a href="http://www.r-project.org/"&gt;http://www.r-project.org/&lt;/a&gt;) for keywords extraction only.&lt;br /&gt;&lt;br /&gt;My implementation has two differences to the algorithm presented in the above mentioned paper:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;it calculates weights of the edges based on the number of instances when two nodes are connected (it is not used in the calculation of ranks though)&lt;br /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;it allows&amp;nbsp;circular references, where a node has an edge to itself (used in the calculation)&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;I have used three R libraries to speed up implementation:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;b&gt;tm&lt;/b&gt; (text mining) for preprocessing text to be analyzed&lt;br /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;b&gt;openNLP&lt;/b&gt; for part of speach tagging&lt;br /&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;b&gt;graph&lt;/b&gt; for constructing graphs&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;I'd like to emphasize once more that this is a really quick and dirty implementation.&lt;br /&gt;&lt;br /&gt;Please find &lt;a href="http://snipplr.com/view/53331/textrank--keywords-extraction/"&gt;source code here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-9053738507476504294?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/9053738507476504294/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=9053738507476504294' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/9053738507476504294'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/9053738507476504294'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/05/textrank-implementation-in-r.html' title='TextRank implementation in R'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-7693403824636068251</id><published>2011-04-23T21:48:00.000+02:00</published><updated>2011-04-23T21:48:27.097+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='software'/><category scheme='http://www.blogger.com/atom/ns#' term='artificial intelligence'/><title type='text'>Is software the real bottleneck?</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;i&gt;"The real bottleneck is software. Creating software can be done only the old-fashioned way. A human—sitting quietly&amp;nbsp;in a chair with a pencil, paper, and laptop—is going to have to write the codes, line for line, that make these imaginary&amp;nbsp;worlds come to life. One can mass-produce hardware and increase its power by piling on more and more chips, but you&amp;nbsp;cannot mass-produce the brain."&lt;/i&gt;&lt;br /&gt;&lt;a href="http://www.amazon.com/Physics-Future-Science-Shape-Destiny/dp/0385530803"&gt;Michio Kaku "The Physics of the Future"&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It's true that currently all the software is created in the old fashioned way - i.e written by humans. However, the whole idea of artificial intelligence and singularity is closely connected with changing that.&lt;br /&gt;&lt;br /&gt;The goal is to allow machines (or rather software powering them) to improve themselves by analyzing and changing the initial code written by people.&lt;br /&gt;&lt;br /&gt;It is about machine learning and machine adaptation (you should replace software for machine in both cases).&lt;br /&gt;&lt;br /&gt;As software code becomes even longer and more complex, another software layers piling upon themselves, hardware gets more powerful allowing implementation of more advanced algorithms, the number of connections in various kinds of networks grows, people will have increasing problem with keeping pace with all these changes.&lt;br /&gt;&lt;br /&gt;They will have to allow software to modify&amp;nbsp;itself. And the bottleneck mentioned by Michio Kaku should&amp;nbsp;disappear&amp;nbsp;at the dawn of singularity...&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-7693403824636068251?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/7693403824636068251/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=7693403824636068251' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7693403824636068251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/7693403824636068251'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/04/is-software-real-bottleneck.html' title='Is software the real bottleneck?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1053325415876719734</id><published>2011-04-21T22:59:00.001+02:00</published><updated>2011-04-21T23:33:43.983+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='chaos'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Deviations from normal distribution depending on sample size</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-3FSqqLhisiE/TbCY1b1RfOI/AAAAAAAAAyQ/hNbg35UzQkw/s1600/normdistr+dev.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="225" src="http://3.bp.blogspot.com/-3FSqqLhisiE/TbCY1b1RfOI/AAAAAAAAAyQ/hNbg35UzQkw/s400/normdistr+dev.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;It's obvious when you visualize it :)&lt;br /&gt;&lt;br /&gt;Depending on the number of observations in the sample&amp;nbsp;(N), the perceived distribution&amp;nbsp;(black)&amp;nbsp;may look quite different from what you'd expect from the random sample generation based on the normal distribution (red).&lt;br /&gt;&lt;br /&gt;Source &lt;a href="http://snipplr.com/view/52462/deviations-from-normal-distribution-based-on-number-of-observations/"&gt;available here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;One more comparison for binomial distribution:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-6fy9eA-QQRc/TbCihyEhiOI/AAAAAAAAAyU/WpcrGbgSLFg/s1600/rbinom+divergence.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/-6fy9eA-QQRc/TbCihyEhiOI/AAAAAAAAAyU/WpcrGbgSLFg/s400/rbinom+divergence.png" width="375" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1053325415876719734?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1053325415876719734/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1053325415876719734' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1053325415876719734'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1053325415876719734'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/04/deviations-from-normal-distribution.html' title='Deviations from normal distribution depending on sample size'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-3FSqqLhisiE/TbCY1b1RfOI/AAAAAAAAAyQ/hNbg35UzQkw/s72-c/normdistr+dev.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-6895965819842567267</id><published>2011-04-21T06:27:00.000+02:00</published><updated>2011-04-21T06:27:54.895+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='personalization'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>I would have forgotten if not Google! ;)</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-a8Fi3KZBmBc/Ta-xidyYpYI/AAAAAAAAAyM/q9x6a3A3-ZQ/s1600/happy+birthday2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="180" src="http://1.bp.blogspot.com/-a8Fi3KZBmBc/Ta-xidyYpYI/AAAAAAAAAyM/q9x6a3A3-ZQ/s400/happy+birthday2.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;It's this day of the year. And I would have forgotten if not Google ;)&lt;br /&gt;&lt;br /&gt;Another sign of how many information are gathered and processed by the company.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-6895965819842567267?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/6895965819842567267/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=6895965819842567267' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6895965819842567267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6895965819842567267'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/04/i-would-have-forgotten-if-not-google.html' title='I would have forgotten if not Google! ;)'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-a8Fi3KZBmBc/Ta-xidyYpYI/AAAAAAAAAyM/q9x6a3A3-ZQ/s72-c/happy+birthday2.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-6591346521126452694</id><published>2011-04-17T08:39:00.005+02:00</published><updated>2011-04-17T09:24:53.031+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='text mining'/><category scheme='http://www.blogger.com/atom/ns#' term='Levenshtein'/><category scheme='http://www.blogger.com/atom/ns#' term='longest common substring'/><category scheme='http://www.blogger.com/atom/ns#' term='Levenshtein distance'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><category scheme='http://www.blogger.com/atom/ns#' term='LCS'/><title type='text'>Analyzing search keyphrases similarities with different methods</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Have you ever wondered what kind of similar keyphrases people use when searching for something and how do they compare?&lt;br /&gt;I have :)&lt;br /&gt;&lt;br /&gt;Using a subset of keyphrases used by visitors of &lt;a href="http://inlevel.com/"&gt;inlevel.com&lt;/a&gt; (some 550 items), I wrote a simple &lt;a href="http://www.r-project.org/"&gt;R program&lt;/a&gt; that tries to assign potentially similar phrases to each of the keyphrases used.&lt;br /&gt;&lt;br /&gt;I employed three methods for this task:&lt;br /&gt;&lt;ol style="text-align: left;"&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Levenshtein_distance"&gt;Levenshtein distance&lt;/a&gt; - see &lt;a href="http://rwiki.sciviews.org/doku.php?id=tips:data-strings:levenshtein"&gt;source code here&lt;/a&gt;&lt;/li&gt;&lt;li&gt;length of &lt;a href="http://en.wikipedia.org/wiki/Longest_common_substring_problem"&gt;longest common substring&lt;/a&gt; (LCS) - &lt;a href="http://snipplr.com/view/52222/longest-common-substring/"&gt;source code of my implementation here&lt;/a&gt;&lt;/li&gt;&lt;li&gt;phrases starting with base phrase - very rude &lt;a href="http://snipplr.com/view/52223/find-phrases-containing-some-base-phrase/"&gt;implementation available here&lt;/a&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;Check the small selection of the results of this&amp;nbsp;exercise:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-_49E-iy448s/TaqMF8s_dZI/AAAAAAAAAyE/cpqGaUpphC8/s1600/keyphrases+similarities.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="70" src="http://2.bp.blogspot.com/-_49E-iy448s/TaqMF8s_dZI/AAAAAAAAAyE/cpqGaUpphC8/s400/keyphrases+similarities.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;You can &lt;a href="http://www.mediafire.com/?98ro5s18avwde71"&gt;download all the results here&lt;/a&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;As you will notice, each of the method gives different results. None single set of the results is&amp;nbsp;definitively better than the others.&amp;nbsp;Combining them in some way seems the most interesting solution.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Correcting spelling mistakes before analyzing dependencies seems important for improving results. Some other methods can be added as well.&amp;nbsp;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-6591346521126452694?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/6591346521126452694/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=6591346521126452694' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6591346521126452694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6591346521126452694'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2011/04/analyzing-search-keyphrases-with.html' title='Analyzing search keyphrases similarities with different methods'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-_49E-iy448s/TaqMF8s_dZI/AAAAAAAAAyE/cpqGaUpphC8/s72-c/keyphrases+similarities.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-557167381331511690</id><published>2010-12-24T13:37:00.000+01:00</published><updated>2010-12-24T13:37:59.625+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='text mining'/><category scheme='http://www.blogger.com/atom/ns#' term='KEA'/><category scheme='http://www.blogger.com/atom/ns#' term='TextRank'/><category scheme='http://www.blogger.com/atom/ns#' term='sentence extraction'/><category scheme='http://www.blogger.com/atom/ns#' term='keyword extraction'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>First steps in text mining with R</title><content type='html'>Everyone is preparing for Christmas Eve's Dinner. &amp;nbsp;No one is calling, little email. Looks like a perfect time to start researching text mining in R :)&lt;br /&gt;&lt;br /&gt;The problem I'm trying to solve:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;extract keywords from multiple texts&lt;/li&gt;&lt;li&gt;try to summarize texts &amp;gt; sentence extraction&lt;/li&gt;&lt;li&gt;group and relate products based on their descriptions &amp;gt; classification / clustering&lt;/li&gt;&lt;li&gt;add relevant information to text based on similar / related text&lt;/li&gt;&lt;/ul&gt;I've started with tm package.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://text-analysis.googlecode.com/files/Text_Mining_Infrastructure_in_R.pdf"&gt;http://text-analysis.googlecode.com/files/Text_Mining_Infrastructure_in_R.pdf&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://text-analysis.googlecode.com/files/Text_Mining_Infrastructure_in_R.pdf"&gt;&lt;/a&gt;&lt;a href="http://cran.r-project.org/web/packages/tm/vignettes/tm.pdf"&gt;http://cran.r-project.org/web/packages/tm/vignettes/tm.pdf&lt;/a&gt; - introduction to tm package&lt;/li&gt;&lt;li&gt;&lt;a href="http://cran.r-project.org/doc/Rnews/Rnews_2008-2.pdf"&gt;http://cran.r-project.org/doc/Rnews/Rnews_2008-2.pdf&lt;/a&gt; - introduction to text mining in R&lt;/li&gt;&lt;li&gt;&lt;a href="http://epub.wu.ac.at/1923/1/document.pdf"&gt;http://epub.wu.ac.at/1923/1/document.pdf&lt;/a&gt; - text mining in R and its applications&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Then I've jumped to &lt;a href="http://acl.ldc.upenn.edu/acl2004/emnlp/pdf/Mihalcea.pdf"&gt;TextRank algorithm&lt;/a&gt; for keywords &amp;amp; sentence extraction. Seems, TextRank is not present in tm, but there is &lt;a href="https://github.com/sharethis/textrank"&gt;Java source code available&lt;/a&gt; so should be possible to call it from R.&lt;br /&gt;&lt;br /&gt;Will need to compare TextRank to KEA. The later is implemented for R in &lt;a href="http://cran.r-project.org/web/packages/RKEA/vignettes/kea.pdf"&gt;RKEA&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Looks promising.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-557167381331511690?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/557167381331511690/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=557167381331511690' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/557167381331511690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/557167381331511690'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/12/first-steps-in-text-mining-with-r.html' title='First steps in text mining with R'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8931688813823405357</id><published>2010-11-28T20:28:00.000+01:00</published><updated>2010-11-28T20:28:42.777+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='text mining'/><category scheme='http://www.blogger.com/atom/ns#' term='Web Harvest'/><category scheme='http://www.blogger.com/atom/ns#' term='content extraction'/><category scheme='http://www.blogger.com/atom/ns#' term='data extraction'/><category scheme='http://www.blogger.com/atom/ns#' term='keyword extraction'/><title type='text'>Extracting content from web pages for text mining</title><content type='html'>For the last three days I was looking for ways and tools to extract content (text) and data (for example emails, but that's just a&amp;nbsp;beginning) from web pages.&lt;br /&gt;&lt;br /&gt;The best tool I've found so far is &lt;b&gt;Web Harves&lt;/b&gt;t:&amp;nbsp;&lt;a href="http://web-harvest.sourceforge.net/"&gt;http://web-harvest.sourceforge.net/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Definitely it's not easy too use (it took me nearly a day to understand how exactly did it work), but looks the most powerful among the tools I've evaluated.&lt;br /&gt;&lt;br /&gt;I've started with modifying the &lt;a href="http://web-harvest.sourceforge.net/samples.php?num=6"&gt;example of the simple site crawler&lt;/a&gt;, to make it more flexible and make it collect all emails found on a specified web site.&lt;br /&gt;&lt;br /&gt;Source of my version of site crawler/email collector is available here:&amp;nbsp;&lt;a href="http://www.mediafire.com/?c5cjndslu90c8eo"&gt;http://www.mediafire.com/?c5cjndslu90c8eo&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Then, I've written a simple configuration file to collect email addresses from first 100 links returned by Google search for some specified&amp;nbsp;key phrase.&lt;br /&gt;&lt;br /&gt;Source code is available here:&amp;nbsp;&lt;a href="http://www.mediafire.com/?jkwu6bbs6ef7ohd"&gt;http://www.mediafire.com/?jkwu6bbs6ef7ohd&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Now, I'm moving to the topic I've had in my mind, when I started working on this project - i.e. extracting text content from web pages and&amp;nbsp;analyzing it.&lt;br /&gt;&lt;br /&gt;First step: researching topic: &lt;a href="http://lackoftalent.org/michael/papers/596.pdf"&gt;Michael J. Giarlo "A Comparative Analysis of Keyword Extraction Techniques&lt;/a&gt;"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8931688813823405357?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8931688813823405357/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8931688813823405357' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8931688813823405357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8931688813823405357'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/11/extracting-content-from-web-pages-for.html' title='Extracting content from web pages for text mining'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-5318965751961506130</id><published>2010-09-18T18:00:00.001+02:00</published><updated>2010-09-18T22:52:30.073+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USDJPY'/><category scheme='http://www.blogger.com/atom/ns#' term='forex'/><category scheme='http://www.blogger.com/atom/ns#' term='BoJ'/><category scheme='http://www.blogger.com/atom/ns#' term='quantitative easing'/><category scheme='http://www.blogger.com/atom/ns#' term='Japan'/><category scheme='http://www.blogger.com/atom/ns#' term='intervention'/><category scheme='http://www.blogger.com/atom/ns#' term='FOMC'/><title type='text'>Real test of USDJPY intervention may come on Tuesday, after FOMC decision</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: left;"&gt;On September 15th, BoJ intervened on the forex. USDJPY jumped 3,3%, to the level from the end of August. Can this action stop the strenghtening of Japanese yen?&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Pgh60OD1yVU/TJTZMadVvbI/AAAAAAAAAr0/yLQxWPgTAIU/s1600/usdjpy+1m+20100917.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="266" src="http://1.bp.blogspot.com/_Pgh60OD1yVU/TJTZMadVvbI/AAAAAAAAAr0/yLQxWPgTAIU/s400/usdjpy+1m+20100917.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Source: &lt;a href="http://stooq.com/q/?s=usdjpy&amp;amp;c=1m"&gt;Stooq&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;An interesting &lt;a href="http://www.rbnz.govt.nz/research/workshops/111791/IntFeb02.pdf"&gt;study on Japanese forex interventions in 1990s&lt;/a&gt; was prepared by Takatoshi Ito from Institute of Economic Research, Hitotsubashi University.&lt;br /&gt;&lt;br /&gt;The amount of money used by the Bank of Japan for the intervention should be disclosed on November 8th on the page dedicated to Foreign Exchange Intervention Operations maintained by the Ministry of Finance in Japan:&amp;nbsp;&lt;a href="http://www.mof.go.jp/english/e1c021.htm"&gt;http://www.mof.go.jp/english/e1c021.htm&lt;/a&gt;&lt;br /&gt;The amount of the intervention is estimated at &lt;a href="http://www.ihsglobalinsight.com/SDA/SDADetail19246.htm"&gt;1 trillion JPY (11,7 billion USD&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;The first test of the effectiveness of the intervention may come on Tuesday, September 21st, when FOMC announces its interest rate decision and possibly further plans for quantitative easing.&lt;br /&gt;&lt;br /&gt;&lt;iframe frameborder="0" height="250" src="https://spreadsheets.google.com/pub?key=0AhOUwcJ7GU_hdEhYckNjakRlemhycnZsX21tUWMzVmc&amp;amp;hl=en&amp;amp;single=true&amp;amp;gid=0&amp;amp;range=a1%3Af3&amp;amp;output=html&amp;amp;widget=true" width="500"&gt;&lt;/iframe&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-5318965751961506130?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/5318965751961506130/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=5318965751961506130' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5318965751961506130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5318965751961506130'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/09/real-test-of-usdjpy-intervention-may.html' title='Real test of USDJPY intervention may come on Tuesday, after FOMC decision'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Pgh60OD1yVU/TJTZMadVvbI/AAAAAAAAAr0/yLQxWPgTAIU/s72-c/usdjpy+1m+20100917.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-3027800897860973422</id><published>2010-09-18T13:16:00.001+02:00</published><updated>2010-09-18T13:16:49.082+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='neural networks'/><category scheme='http://www.blogger.com/atom/ns#' term='technical analysis'/><category scheme='http://www.blogger.com/atom/ns#' term='MoneyBee'/><category scheme='http://www.blogger.com/atom/ns#' term='GStock'/><category scheme='http://www.blogger.com/atom/ns#' term='distributed computing'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><category scheme='http://www.blogger.com/atom/ns#' term='artificial intelligence'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithmic trading'/><title type='text'>Finanace and distributed computing does not mix?</title><content type='html'>Browsing through the list of distributing computing projects on Wikipedia, I've found just two financial projects - &lt;a href="http://www.moneybee.de/"&gt;MoneyBee&lt;/a&gt; and &lt;a href="http://www.gstock.com/"&gt;GStock&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;The first of them - &lt;b&gt;MoneyBee&lt;/b&gt; - was conceived as a way to forecast stock markets using neural networks. It was launched in September 2000. According to the information on the MoneyBee's website, the project failed and is suspended.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Fig. MoneyBee Screensaver&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.iwi.uni-hannover.de/lv/seminar_ss03/Linck/images/Moneyb2.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="306" src="http://www.iwi.uni-hannover.de/lv/seminar_ss03/Linck/images/Moneyb2.gif" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;Source:&amp;nbsp;&lt;a href="http://www.iwi.uni-hannover.de/lv/seminar_ss03/Linck/Moneybee.htm"&gt;Moneybee - example of distributed computing&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;GStock&lt;/b&gt; launched in 2006 and is still operational. It uses technical analysis to generate buy and sell signals for over 4000 stocks. According to &lt;a href="http://www.gstock.com/page.php?pg=learn_more"&gt;information on the project's website&lt;/a&gt;, the signals given by the system were correct in 2 out of 3 instances.&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Fig. Exemplary GStock chart with generated signals for Google Inc. over 1 year period&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_Pgh60OD1yVU/TJSXARU2e4I/AAAAAAAAArs/OSqTvBVSzgI/s1600/gstock+-+google+1Y.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="317" src="http://2.bp.blogspot.com/_Pgh60OD1yVU/TJSXARU2e4I/AAAAAAAAArs/OSqTvBVSzgI/s400/gstock+-+google+1Y.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Source:&amp;nbsp;&lt;a href="http://www.gstock.com/stock-picks/GOOG-Google-Inc.html"&gt;http://www.gstock.com/stock-picks/GOOG-Google-Inc.html&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Sources:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/List_of_distributed_computing_projects"&gt;list of distributing computing projects on Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/MoneyBee"&gt;information about MoneyBee project on Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.viswiki.com/en/MoneyBee"&gt;MoneyBee on VisWiki&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://en.wikipedia.org/wiki/Gstock"&gt;information about GStock project on Wikipedia&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.iwi.uni-hannover.de/lv/seminar_ss03/Linck/Moneybee.htm"&gt;Moneybee - example of distributed computing&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-3027800897860973422?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/3027800897860973422/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=3027800897860973422' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/3027800897860973422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/3027800897860973422'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/09/finanace-and-distributed-computing-does.html' title='Finanace and distributed computing does not mix?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Pgh60OD1yVU/TJSXARU2e4I/AAAAAAAAArs/OSqTvBVSzgI/s72-c/gstock+-+google+1Y.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-5089563373142330537</id><published>2010-09-17T22:39:00.002+02:00</published><updated>2011-04-17T08:47:53.324+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='forex'/><category scheme='http://www.blogger.com/atom/ns#' term='GOLD'/><title type='text'>Gold price far from record in EUR and CHF terms - future uncertain</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Gold in USD, EUR and CHF, 1 year, 2010-09-17&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Pgh60OD1yVU/TJPPcO7jHWI/AAAAAAAAArk/X8OHyx8J8Ms/s1600/gold+20100917.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="266" src="http://1.bp.blogspot.com/_Pgh60OD1yVU/TJPPcO7jHWI/AAAAAAAAArk/X8OHyx8J8Ms/s400/gold+20100917.png" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Source: &lt;a href="http://stooq.com/q/?s=xauusd&amp;amp;d=20100917&amp;amp;c=1y&amp;amp;t=l&amp;amp;a=ln&amp;amp;b=1&amp;amp;r=xaueur+xauchf"&gt;Stooq&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Depending on the currency in which you price gold, it has reached the new height in absolute terms (USD), is correcting after a strong fall in July (EUR), or stabilizing after it (CHF).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Based on your choice of currency, you may try to predict the future performance of the gold price. And it's not clear at all.&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-5089563373142330537?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/5089563373142330537/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=5089563373142330537' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5089563373142330537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5089563373142330537'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/09/gold-price-far-from-record-in-eur-and.html' title='Gold price far from record in EUR and CHF terms - future uncertain'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Pgh60OD1yVU/TJPPcO7jHWI/AAAAAAAAArk/X8OHyx8J8Ms/s72-c/gold+20100917.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-4324828003518164363</id><published>2010-09-03T08:45:00.001+02:00</published><updated>2010-09-03T08:49:12.305+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ETF'/><category scheme='http://www.blogger.com/atom/ns#' term='GPW'/><category scheme='http://www.blogger.com/atom/ns#' term='Lyxor'/><category scheme='http://www.blogger.com/atom/ns#' term='futures'/><category scheme='http://www.blogger.com/atom/ns#' term='volatility'/><category scheme='http://www.blogger.com/atom/ns#' term='tracking error'/><category scheme='http://www.blogger.com/atom/ns#' term='WIG20'/><category scheme='http://www.blogger.com/atom/ns#' term='arbitrage'/><title type='text'>Lyxor ETF WIG20 - the first ETF coming to Warsaw Stock Exchange</title><content type='html'>Lyxor Asset Management, a division of Societe Generale Group, plans to launch the first Polish &lt;a href="http://en.wikipedia.org/wiki/Exchange-traded_fund"&gt;ETF (Exchange Traded Fund)&lt;/a&gt; in September.&lt;br /&gt;&lt;br /&gt;Lyxor ETF WIG20 will track movements of 20 biggest Polish stocks included in the main index of the &lt;a href="http://www.gpw.pl/"&gt;Warsaw Stock Exchange&lt;/a&gt; - WIG20.&lt;br /&gt;&lt;br /&gt;Key parameters:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;quoted on the WSE&lt;/li&gt;&lt;li&gt;price = WIG20 * 1/10&lt;/li&gt;&lt;li&gt;0,5% annual management fee&lt;/li&gt;&lt;li&gt;selling short?&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Introduction of this ETF may allow implementation of some arbitrage strategies using either stocks or index futures. Especially if ETF's tracking error will be noticeable, what can happen in times of higher volatility.&lt;br /&gt;&lt;br /&gt;see presentation about the ETF:&amp;nbsp;&lt;a href="http://www.lyxoretf.pl/fileadmin/user_upload/ETF/PL/Brochures/LYXOR_ETF_WIG20.pdf"&gt;www.lyxoretf.pl/fileadmin/user_upload/ETF/PL/Brochures/LYXOR_ETF_WIG20.pdf&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;more information: &lt;a href="http://www.lyxoretf.pl/"&gt;www.lyxoretf.pl&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-4324828003518164363?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/4324828003518164363/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=4324828003518164363' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4324828003518164363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4324828003518164363'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/09/lyxor-etf-wig20-first-etf-coming-to.html' title='Lyxor ETF WIG20 - the first ETF coming to Warsaw Stock Exchange'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-3108401651337688037</id><published>2010-09-02T22:26:00.005+02:00</published><updated>2010-09-03T08:48:04.270+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USA'/><category scheme='http://www.blogger.com/atom/ns#' term='China'/><category scheme='http://www.blogger.com/atom/ns#' term='EU'/><category scheme='http://www.blogger.com/atom/ns#' term='bubble'/><category scheme='http://www.blogger.com/atom/ns#' term='economy'/><title type='text'>Comparing states of economies of US, EU and China with SENSEnews</title><content type='html'>I've just started a trial with semantic news service &lt;a href="http://sensenews.com/"&gt;SENSEnews&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As the first test, I've generated charts visualizing six months information flows about the US, EU and Chinese economies.&lt;br /&gt;&lt;br /&gt;I've added some additional queries about performance of euro or probability of bubble forming in Chine to the default set of queries predefined in the system.&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://sensenews.com/"&gt;&lt;img src="http://sensenews.com/alerts/sc.ashx?p=FCUJZQ" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://sensenews.com/"&gt;&lt;img src="http://sensenews.com/alerts/sc.ashx?p=R11X7P" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://sensenews.com/"&gt;&lt;img src="http://sensenews.com/alerts/sc.ashx?p=W4WTF2" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;div style="text-align: left;"&gt;As an example, I'm showing below results generated by SENSEnews for the query about possible bubble in China:&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;/div&gt;&lt;div style="margin-top: 2px;"&gt;&lt;div style="text-align: left;"&gt;&lt;span id="al-title_4197" style="cursor: pointer;"&gt;&lt;b&gt;Is there a bubble in China?&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;span id="results_4197"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="results_4197"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="results_4197"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="results_4197"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="results_4197"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="results_4197"&gt;&lt;div id="did_375242" style="margin-bottom: 10px;"&gt;&lt;div class="articleItem"&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://sensenews.com/alerts/alerts.aspx?groupId=815&amp;amp;message=addedMsg" target="_blank"&gt;boobdex&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: #fff8c1; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;$LVS Just because there is a bubble in China, means Asians want to game even more to make back the money they lost&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: green;"&gt;Twitter - Sep, 02 12:03 (EST)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;img src="http://sensenews.com/alerts/images/s10.gif" /&gt; &lt;span class="deleteItem"&gt;delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="did_375241" style="margin-bottom: 10px;"&gt;&lt;div class="articleItem"&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://c.moreover.com/click/here.pl?z3113259059&amp;amp;z=950244866" target="_blank"&gt;China's Property Market in 'Very Big Bubble,' StarRock Says&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Property  bubbles exist in some of Chinas large cities, the Peoples Daily  reported Aug. 23, citing Ba Shusong, deputy head of the financial  institute of the State Councils Development Research Center.&lt;span style="background-attachment: scroll; background-clip: initial; background-color: #fff8c1; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt; He said there is no evidence of a nationwide property bubble in China.&lt;/span&gt;  China, which hasnt raised interest rates since December 2007, may start  increasing borrowing costs from the fourth quarter because of  accelerating inflation, large wage increases and loose liquidity  conditions, RBC Capital Markets said after the release of July inflation  data on Aug. 11. The inflation rate accelerated to 3.3 percent in July,  the fastest pace in 21 months, pushed up by floods that destroyed  crops. The government is still studying property tax and plans to  introduce property tax reform, Xinhua News Agency reported Aug. 24,  citing Xu Lin, director of the finance department at the National  Development and Reform Commission.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: green;"&gt;BusinessWeek - Sep, 02 10:01 (EST)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;img src="http://sensenews.com/alerts/images/s10.gif" /&gt; &lt;span class="deleteItem"&gt;delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="did_375240" style="margin-bottom: 10px;"&gt;&lt;div class="articleItem"&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://c.moreover.com/click/here.pl?z3113013024&amp;amp;z=950244866" target="_blank"&gt;S&amp;amp;P warn that real estate bubble is lurking in China&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: #fff8c1; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;Asharp  pickup in real state prices in China is a key risk to the nation's  economic growth and is leading to a classic bubble situation, according  to Standard &amp;amp; Poor's.&lt;/span&gt; It is forecasting that prices will rise  10.3% this year to an unsustainable level and they will need to come  down if they are not to affect economic performance. 'The property  market looks darn good, it's been going up, and this is a classic  bubble. Prices are rising to an unsustainable level,' said David Wyss,  chief economist at S&amp;amp;P. The property sector contributes about 20% to  the Chinese economy through real estate investments and related  industries, according to Citic Bank International. Since April, China  has restricted pre-sales by developers and curbed loans for third home  purchases to try to cool the market after excess liquidity stemming from  record credit growth last year buoyed demand. But property prices are  showing signs of slowing. They have gone up 10.3% from a year earlier in  July, the slowest pace in six months.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: green;"&gt;Arendator.ru - Sep, 02 08:16 (EST)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;img src="http://sensenews.com/alerts/images/s10.gif" /&gt; &lt;span class="deleteItem"&gt;delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="did_375239" style="margin-bottom: 10px;"&gt;&lt;div class="articleItem"&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://sensenews.com/alerts/alerts.aspx?groupId=815&amp;amp;message=addedMsg" target="_blank"&gt;7Steps2Wealth&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: #fff8c1; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;China's  Property Market in 'Very Big Bubble,' StarRock Says: 2 (Bloomberg) --  China's property market is in a "ver... http://bit.ly/9e2V3Z&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: green;"&gt;Twitter - Sep, 02 04:42 (EST)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;img src="http://sensenews.com/alerts/images/s5.gif" /&gt; &lt;span class="deleteItem"&gt;delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="did_375238" style="margin-bottom: 10px;"&gt;&lt;div class="articleItem"&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://sensenews.com/alerts/alerts.aspx?groupId=815&amp;amp;message=addedMsg" target="_blank"&gt;chooze2move&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: #fff8c1; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;S&amp;amp;P warn that real estate bubble is lurking in China | Asia | News http://goo.gl/3QAz&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: green;"&gt;Twitter - Sep, 02 00:30 (EST)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;img src="http://sensenews.com/alerts/images/s10.gif" /&gt; &lt;span class="deleteItem"&gt;delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="did_375237" style="margin-bottom: 10px;"&gt;&lt;div class="articleItem"&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://c.moreover.com/click/here.pl?z3109982020&amp;amp;z=950244866" target="_blank"&gt;S&amp;amp;P warn that real estate bubble is lurking in China&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: #fff8c1; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;::  Analysts warn that flat property lending outlook in UK could result in  real estate double dip :: The price of detached properties in the UK  have risen the most in past year, report says :: :: UK property market  prices falling as downward trend kicks in, latest figures show :: Cuba  approves 99 year leases for foreign property i&lt;/span&gt;nvestors ::  Singapore govt introduces new measures to cool real estate market ::  Regulations for all new built property in Wales could add up to 10% to  costs, consultants warn :: US real estate foreclosures fall marginally  but mortgage delinquencies increase to bring more gloom&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: green;"&gt;Property Wire - Sep, 01 13:14 (EST)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;img src="http://sensenews.com/alerts/images/s10.gif" /&gt; &lt;span class="deleteItem"&gt;delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="did_375236" style="margin-bottom: 10px;"&gt;&lt;div class="articleItem"&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://ct.moreover.com/ct?haid=ae513c46a463f67b12833436408065107db4d9dfa4157&amp;amp;co=a5444f39574c49adbba8c4c03a669c21-2903154017" target="_blank"&gt;10 Things You Need To Know Before The Opening Bell (AAPL, BKC, SPY, GLD)&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Gus  Lubin | Sep. 1, 2010, 7:26 AM | 916 | 1 A A A x Email Article From To  Email Sent! You have successfully emailed the post. Good morning. Here's  what you need to know: Asian markets were mostly positive in overnight  trading, with the Nikkei recovering 1.17%. European markets are all  higher in early trading, and U.S. futures point to a higher opening. See  overnight action in charts &amp;gt; ADP Employment numbers come out at 8:15  AM. Forecasts expect 13K added jobs, after 42K added in July. Follow  the action at Money Game &amp;gt; ISM Manufacturing data comes out at 10 AM,  with analysts expecting a decline to 52.9 from 55.5. Also watch the EIA  petroleum data at 10 AM. Recent economic data has been neutral-to-weak.  Check out the gritty details behind the Philly Fed number &amp;gt; The  surge in gold reached $1,254, approaching record highs . The yen rise  also continues as investors fear global deterioration.&lt;span style="background-attachment: scroll; background-clip: initial; background-color: #fff8c1; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt; See how to know if gold is a bubble &amp;gt; China announced plans for new regulations to curb still-soaring home prices.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: green;"&gt;Business Insider - Sep, 01 12:20 (EST)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;img src="http://sensenews.com/alerts/images/s8.gif" /&gt; &lt;span class="deleteItem"&gt;delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="did_375235" style="margin-bottom: 10px;"&gt;&lt;div class="articleItem"&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://ct.moreover.com/ct?haid=994a797cbd220f5a1283343437591581aa699b11b4191&amp;amp;co=a5444f39574c49adbba8c4c03a669c21-2903154017" target="_blank"&gt;10 Things You Need To Know Before The Opening Bell (AAPL, BKC, SPY, GLD)&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Gus  Lubin | Sep. 1, 2010, 7:26 AM | 847 | 1 A A A x Email Article From To  Email Sent! You have successfully emailed the post. Good morning. Here's  what you need to know: Asian markets were mostly positive in overnight  trading, with the Nikkei recovering 1.17%. European markets are all  higher in early trading, and U.S. futures point to a higher opening. See  overnight action in charts &amp;gt; ADP Employment numbers come out at 8:15  AM. Forecasts expect 13K added jobs, after 42K added in July. Follow  the action at Money Game &amp;gt; ISM Manufacturing data comes out at 10 AM,  with analysts expecting a decline to 52.9 from 55.5. Also watch the EIA  petroleum data at 10 AM. Recent economic data has been neutral-to-weak.  Check out the gritty details behind the Philly Fed number &amp;gt; The  surge in gold reached $1,254, approaching record highs . The yen rise  also continues as investors fear global deterioration.&lt;span style="background-attachment: scroll; background-clip: initial; background-color: #fff8c1; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt; See how to know if gold is a bubble &amp;gt; China announced plans for new regulations to curb still-soaring home prices.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: green;"&gt;Clusterstock - Sep, 01 12:17 (EST)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;img src="http://sensenews.com/alerts/images/s8.gif" /&gt; &lt;span class="deleteItem"&gt;delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="did_375234" style="margin-bottom: 10px;"&gt;&lt;div class="articleItem"&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://c.moreover.com/click/here.pl?z3109755622&amp;amp;z=950244866" target="_blank"&gt;10 Things You Need To Know Before The Opening Bell (AAPL, BKC, SPY, GLD)&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;Good  morning. Here's what you need to know: Asian markets were mostly  positive in overnight trading, with the Nikkei recovering 1.17%.  European markets are all higher in early trading, and U.S. futures point  to a higher opening. See overnight action in charts &amp;gt; ADP Employment  numbers come out at 8:15 AM. Forecasts expect 13K added jobs, after 42K  added in July. Follow the action at Money Game &amp;gt; ISM Manufacturing  data comes out at 10 AM, with analysts expecting a decline to 52.9 from  55.5. Also watch the EIA petroleum data at 10 AM. Recent economic data  has been neutral-to-weak. Check out the gritty details behind the Philly  Fed number &amp;gt; The surge in gold reached $1,254, approaching record  highs . The yen rise also continues as investors fear global  deterioration.&lt;span style="background-attachment: scroll; background-clip: initial; background-color: #fff8c1; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt; See how to know if gold is a bubble &amp;gt; China announced plans for new regulations to curb still-soaring home prices.&lt;/span&gt; Fear of a property bubble outweighed positive economic data, as the Shanghai Composite whipsawed and ended down 0.60%.&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: green;"&gt;Business Insider - Sep, 01 11:46 (EST)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;img src="http://sensenews.com/alerts/images/s8.gif" /&gt; &lt;span class="deleteItem"&gt;delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="did_375233" style="margin-bottom: 10px;"&gt;&lt;div class="articleItem"&gt;&lt;div style="text-align: left;"&gt;&lt;a href="http://sensenews.com/alerts/alerts.aspx?groupId=815&amp;amp;message=addedMsg" target="_blank"&gt;ceacom&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="background-attachment: scroll; background-clip: initial; background-color: #fff8c1; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;"&gt;S&amp;amp;P  warn that &lt;b&gt;real estate&lt;/b&gt; bubble is lurking in China |  Asia | &lt;b&gt;News&lt;/b&gt; http://bit.ly/anOPvi&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;span style="color: green;"&gt;Twitter - Sep, 01 07:43 (EST)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;img src="http://sensenews.com/alerts/images/s10.gif" /&gt; &lt;span class="deleteItem"&gt;delete&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-3108401651337688037?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/3108401651337688037/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=3108401651337688037' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/3108401651337688037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/3108401651337688037'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/09/comparing-states-of-economies-of-us-eu.html' title='Comparing states of economies of US, EU and China with SENSEnews'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1917995965872139950</id><published>2010-08-26T08:26:00.001+02:00</published><updated>2010-08-26T08:54:43.350+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fourier transforms'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Different frequency fft waves for S&amp;P500</title><content type='html'>I've added a graph showing fft (Fast Fourier Transform) based waves of different number of frequencies:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Pgh60OD1yVU/THYI7GX4Y0I/AAAAAAAAArc/TknpRasa0nA/s1600/sp500+fourier+extrapolation+and+diff+fq+ffr+waves.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="355" src="http://1.bp.blogspot.com/_Pgh60OD1yVU/THYI7GX4Y0I/AAAAAAAAArc/TknpRasa0nA/s400/sp500+fourier+extrapolation+and+diff+fq+ffr+waves.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1917995965872139950?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1917995965872139950/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1917995965872139950' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1917995965872139950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1917995965872139950'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/08/different-frequency-fft-waves-for-s.html' title='Different frequency fft waves for S&amp;P500'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Pgh60OD1yVU/THYI7GX4Y0I/AAAAAAAAArc/TknpRasa0nA/s72-c/sp500+fourier+extrapolation+and+diff+fq+ffr+waves.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-4185542538147770238</id><published>2010-08-26T00:16:00.001+02:00</published><updated>2010-08-26T08:30:54.806+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fourier transforms'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='signal analysis'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>What Fourier says about S&amp;P500?</title><content type='html'>Based on the Fourier-based extrapolation of the current trend of S&amp;amp;P500, the stock market will raise or fall :)&lt;br /&gt;&lt;br /&gt;I've implemented extrapolation of trend based on Fourier analysis, and - as you can see below - depending on the range of data used for calculations, S&amp;amp;P500 will raise or fall:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;b&gt;Fig 1. Fourier extrapolation of S&amp;amp;P500 based on 100 daily quotations&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_Pgh60OD1yVU/THWRrlhR6OI/AAAAAAAAArM/latnppTQBno/s1600/sp500+wave+100.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_Pgh60OD1yVU/THWRrlhR6OI/AAAAAAAAArM/latnppTQBno/s400/sp500+wave+100.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;b&gt;Fig. 2&amp;nbsp;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;Fourier extrapolation of S&amp;amp;P500&lt;/b&gt;&lt;/span&gt;&amp;nbsp;based on 400 daily quotations&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;a href="http://3.bp.blogspot.com/_Pgh60OD1yVU/THWR-VtKgzI/AAAAAAAAArU/38CivJWIS7U/s1600/sp500+wave+400.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_Pgh60OD1yVU/THWR-VtKgzI/AAAAAAAAArU/38CivJWIS7U/s400/sp500+wave+400.jpeg" width="400" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;In both cases,&amp;nbsp;&lt;a href="http://www.jstor.org/stable/2337018"&gt;Quinn-Fernandes algorithm for frequency estimation&lt;/a&gt; was used and 20 harmonics matched.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;I adapted &lt;a href="http://www.mql5.com/en/code/viewcode/130/1303/fourier_extrapolator_of_price.mq5"&gt;MQL5 (MetaStock) code of Extrapolator indicator written by qpwr&lt;/a&gt;. &lt;b&gt;Thanks a lot!&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;(the code is not yet optimized for R)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.mediafire.com/?uwq9hppy9s1w9vg"&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;Download source code (R).&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-4185542538147770238?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/4185542538147770238/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=4185542538147770238' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4185542538147770238'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/4185542538147770238'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/08/what-fourier-says-about-s.html' title='What Fourier says about S&amp;P500?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Pgh60OD1yVU/THWRrlhR6OI/AAAAAAAAArM/latnppTQBno/s72-c/sp500+wave+100.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1446441996500639879</id><published>2010-08-23T22:40:00.000+02:00</published><updated>2010-08-23T22:40:25.601+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EURUSD'/><category scheme='http://www.blogger.com/atom/ns#' term='correlation'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Best correlation trajectory match for EURUSD</title><content type='html'>Another test of correlation-based matching of trajectories. This time EURUSD.&lt;br /&gt;&lt;br /&gt;Best match with correlation of 0.9295 was found at the&amp;nbsp;beginning&amp;nbsp;of 1980 (red line):&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_Pgh60OD1yVU/THLa2fjUA0I/AAAAAAAAAqo/AUUWv6mik1o/s1600/eurusd+trajectory+20100820.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="336" src="http://2.bp.blogspot.com/_Pgh60OD1yVU/THLa2fjUA0I/AAAAAAAAAqo/AUUWv6mik1o/s400/eurusd+trajectory+20100820.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;In addition to the best match, two second best correlation matches were added (green lines).&lt;br /&gt;&lt;br /&gt;Even though, based on the best correlation match (and one of the others) you might expect pretty significant growth, one of the presented second best matches suggests continued correction.&lt;br /&gt;&lt;br /&gt;The next step would be to verify whether such matching has any sense at all :)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.mediafire.com/?1fhio1blobk1b77"&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;Download source code (R) and data.&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1446441996500639879?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1446441996500639879/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1446441996500639879' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1446441996500639879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1446441996500639879'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/08/best-correlation-trajectory-match-for.html' title='Best correlation trajectory match for EURUSD'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_Pgh60OD1yVU/THLa2fjUA0I/AAAAAAAAAqo/AUUWv6mik1o/s72-c/eurusd+trajectory+20100820.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-2296420209196395973</id><published>2010-08-23T14:55:00.000+02:00</published><updated>2010-08-23T14:55:55.503+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='correlation'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>S&amp;P500 - current trajectory similar to situation from 1959/1960</title><content type='html'>If one believes in market repeating&amp;nbsp;itself, one could say that the current situation is the most similar to one from the break of 1959/1960:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_Pgh60OD1yVU/THJvFnkhbCI/AAAAAAAAAqY/5YbFRzGht1w/s1600/sp500+trajectory+match1+20100820.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="340" src="http://4.bp.blogspot.com/_Pgh60OD1yVU/THJvFnkhbCI/AAAAAAAAAqY/5YbFRzGht1w/s400/sp500+trajectory+match1+20100820.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The correlation between the current and 1959/1960's periods is 0.9292. If market goes the same way as in the past, we should expect a small market increase of around 0,5%&amp;nbsp;over the next 10 days.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The time will tell :)&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-2296420209196395973?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/2296420209196395973/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=2296420209196395973' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2296420209196395973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2296420209196395973'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/08/s-current-trajectory-similar-to.html' title='S&amp;P500 - current trajectory similar to situation from 1959/1960'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_Pgh60OD1yVU/THJvFnkhbCI/AAAAAAAAAqY/5YbFRzGht1w/s72-c/sp500+trajectory+match1+20100820.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-6362537686478133214</id><published>2010-08-22T22:58:00.005+02:00</published><updated>2011-10-06T12:59:09.094+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='EURUSD'/><category scheme='http://www.blogger.com/atom/ns#' term='EURPLN'/><category scheme='http://www.blogger.com/atom/ns#' term='liquidity'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithmic trading'/><category scheme='http://www.blogger.com/atom/ns#' term='arbitrage'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><category scheme='http://www.blogger.com/atom/ns#' term='spread'/><category scheme='http://www.blogger.com/atom/ns#' term='pair trading'/><category scheme='http://www.blogger.com/atom/ns#' term='high-frequency trading'/><category scheme='http://www.blogger.com/atom/ns#' term='forex'/><category scheme='http://www.blogger.com/atom/ns#' term='USDJPY'/><category scheme='http://www.blogger.com/atom/ns#' term='EURJPY'/><category scheme='http://www.blogger.com/atom/ns#' term='USDPLN'/><title type='text'>Simple perfect arbitrage opportunities on forex</title><content type='html'>Forex is the most liquid of the financial markets. Therefore it is deemed totally deprived from simple arbitrage opportunities.&lt;br /&gt;&lt;br /&gt;However, it turns out that one can find - although rarely - perfect arbitrage opportunities even on the most liquid currency crosses.&lt;br /&gt;&lt;br /&gt;For example, I've&amp;nbsp;analyzed intraday data (with 10 mins. frequency) for EURJPY, USDJPY and EURUSD for the period of&amp;nbsp;&amp;nbsp;March 2nd, 2009 - August 20th, 2010. That gives some 54,700 datapoints for each of the crosses.&lt;br /&gt;&lt;br /&gt;I defined a perfect arbitrage opportunity for these three crosses, as a situation when difference between EURJPY and USDJPY*EURUSD exceeds 0.1 yen. Then one would be able to sell short EURJPY and at the same time buy USDJPY together with EURUSD (or vice versa) and produce risk free return after adjusting for total spread of 0.1 yen.&lt;br /&gt;&lt;br /&gt;In that period I've found 25 instances (out of 54,703 quotations, or 0,0457%) when arbitrage opportunity appeared:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_Pgh60OD1yVU/THGIbc-W_vI/AAAAAAAAApo/tX9nUUomgZA/s1600/eurjpyusd+arbitrage+opps+hist.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_Pgh60OD1yVU/THGIbc-W_vI/AAAAAAAAApo/tX9nUUomgZA/s400/eurjpyusd+arbitrage+opps+hist.jpeg" width="392" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Nevertheless, some of them were substantial - the largest giving 1,31% risk free return!&lt;br /&gt;&lt;br /&gt;Visualization of the difference between EURJPY and USDJPY*EURUSD shows, that the arbitrage gap is very rare&amp;nbsp;phenomenon indeed:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_Pgh60OD1yVU/THGJvu2eWSI/AAAAAAAAApw/DdD1zEUWD6c/s1600/eurjpyusd+arbitrage+gap.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/_Pgh60OD1yVU/THGJvu2eWSI/AAAAAAAAApw/DdD1zEUWD6c/s400/eurjpyusd+arbitrage+gap.jpeg" width="392" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The difference between crosses is concentrated in a very narrow range that hardly ever creates arbitrage opportunities. Still, the distribution has very long tails (or at least one of them):&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_Pgh60OD1yVU/THGKabmf95I/AAAAAAAAAp4/RPN-ohGl1Rw/s1600/eurjpyusd+arbitrage+hist.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/_Pgh60OD1yVU/THGKabmf95I/AAAAAAAAAp4/RPN-ohGl1Rw/s400/eurjpyusd+arbitrage+hist.jpeg" width="392" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;The situation changes a little when you take a look at some less liquid crosses - for example EURPLN vs USDPLN*EURUSD.&lt;br /&gt;&lt;br /&gt;The number of arbitrage opportunities increases noticeably (to 6,42% of all analyzed quotations), as well as the rate of potential risk free return (note: total spread set at 0.105 zł):&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Pgh60OD1yVU/THGL3ajApBI/AAAAAAAAAqA/8u5wzFmvjgk/s1600/eurplnusd+arbitrage+opps+hist.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/_Pgh60OD1yVU/THGL3ajApBI/AAAAAAAAAqA/8u5wzFmvjgk/s400/eurplnusd+arbitrage+opps+hist.jpeg" width="392" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;The difference between base cross (EURPLN) and its equivalent pair (USDPLN*EURUSD) becomes much more volatile:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_Pgh60OD1yVU/THGNFYNib-I/AAAAAAAAAqI/WMN6PmYUVq8/s1600/eurplnusd+arbitrage+gap.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_Pgh60OD1yVU/THGNFYNib-I/AAAAAAAAAqI/WMN6PmYUVq8/s400/eurplnusd+arbitrage+gap.jpeg" width="392" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;However the distribution of differences looks much more "normal":&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Pgh60OD1yVU/THGNnQvA86I/AAAAAAAAAqQ/pqP5SSWFwRQ/s1600/eurplnusd+arbitrage+hist.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://1.bp.blogspot.com/_Pgh60OD1yVU/THGNnQvA86I/AAAAAAAAAqQ/pqP5SSWFwRQ/s320/eurplnusd+arbitrage+hist.jpeg" width="313" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;b&gt;Clearly, there still exist perfect simple arbitrage opportunities on forex. It's possible to exploit them using algorithmic trading. They are rare and often they generate low individual returns. But they are risk free.&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Data source: &lt;a href="http://stooq.com/"&gt;stooq.com&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;a href="http://www.mediafire.com/?8i25bcwryrz2lpc"&gt;&lt;span class="Apple-style-span" style="background-color: yellow;"&gt;Download source code (R) and data&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-6362537686478133214?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/6362537686478133214/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=6362537686478133214' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6362537686478133214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/6362537686478133214'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/08/simple-perfect-arbitrage-opportunities.html' title='Simple perfect arbitrage opportunities on forex'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Pgh60OD1yVU/THGIbc-W_vI/AAAAAAAAApo/tX9nUUomgZA/s72-c/eurjpyusd+arbitrage+opps+hist.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-716926708165909278</id><published>2010-08-22T01:23:00.002+02:00</published><updated>2010-08-22T01:45:12.408+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google Prediction API'/><category scheme='http://www.blogger.com/atom/ns#' term='Garry Kasparov'/><category scheme='http://www.blogger.com/atom/ns#' term='pattern recognition'/><category scheme='http://www.blogger.com/atom/ns#' term='data mining'/><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><category scheme='http://www.blogger.com/atom/ns#' term='quantitative trading'/><category scheme='http://www.blogger.com/atom/ns#' term='machine learning'/><category scheme='http://www.blogger.com/atom/ns#' term='business intelligence'/><category scheme='http://www.blogger.com/atom/ns#' term='black box'/><category scheme='http://www.blogger.com/atom/ns#' term='algorithmic trading'/><title type='text'>The coming black boxes inside business organizations</title><content type='html'>&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;Google has recently made available a set of tools for&amp;nbsp;analyzing&amp;nbsp;data using machine learning techniques called&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;a href="http://code.google.com/apis/predict/" style="color: #3d81ee; text-decoration: none;"&gt;Google Prediction API&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;As you can read in&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;a href="http://www.technologyreview.com/computing/26093/" style="color: #3d81ee; text-decoration: none;"&gt;the recent article in MIT Technology Review&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;:&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;blockquote style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.3em; margin-bottom: 1em; margin-left: 20px; margin-right: 20px; margin-top: 1em;"&gt;&lt;i&gt;For example, a bank or credit-card company wanting to use machine learning to build systems that make decisions based on historical transactions is unlikely to have the specialized staff and necessary infrastructure for what is a computationally intensive approach. [...]&lt;/i&gt;&lt;/blockquote&gt;&lt;blockquote style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.3em; margin-bottom: 1em; margin-left: 20px; margin-right: 20px; margin-top: 1em;"&gt;&lt;i&gt;Google's black box (...) contains a whole suite of different algorithms. When data is uploaded, all of the algorithms are automatically applied to find out which works best for a particular job, and the best algorithm is then used to handle any new information submitted. [...]&lt;/i&gt;&lt;/blockquote&gt;&lt;blockquote style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 1.3em; margin-bottom: 1em; margin-left: 20px; margin-right: 20px; margin-top: 1em;"&gt;&lt;i&gt;Google does, however, get (...) information [about&amp;nbsp;effectiveness&amp;nbsp;of various techniques] that it can use to improve its machine-learning algorithms. "We don't look at users' data, but we do see the same metrics on prediction quality that they do, to help us improve the service," says Green. The engineers running Prediction API will know if a particular algorithm is rarely used, or if a new one needs to be added to the mix to better process certain types of data.&lt;/i&gt;&lt;/blockquote&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;Source:&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;a href="http://www.technologyreview.com/computing/26093/" style="color: #3d81ee; text-decoration: none;"&gt;Tom Simonite "Google Offers Cloud-Based Learning Engine", Technology Review, 2010-08-20&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;As machine learning and other pattern-recognition technologies become more available and effective, companies will use them more often.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;We can learn some lessons from the investment area, where algorithmic trading has already overtaken human discretion at least in terms of number of transactions executed on the US stock exchanges.It's true that quite often trading algorithms are still quite simple, but they are getting better as Moore's law increases the computing power available for them. It seems inevitable that one day algorithmic trading will dominate the investment industry, and human investors will share&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;a href="http://en.wikipedia.org/wiki/Deep_Blue_versus_Garry_Kasparov" style="color: #3d81ee; text-decoration: none;"&gt;&amp;nbsp;the fate of chess master Garry Kasparov defeated by IBM's Deep Blue&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;.&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;Similarly, proliferation of quantitative methods in business may lead to some interesting results. First, managers will be often and often required to know these new technology-enabled methods. Second, the decision making processes, starting with operational aspects, may slowly morph into hardly penetrable black boxes, processing increasing amounts of information generated and gathered by business organizations.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #666666; font-family: Arial, sans-serif; font-size: 13px; line-height: 20px;"&gt;Originally posted at: &lt;a href="http://blog.inlevel.com/"&gt;blog.inlevel.com&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-716926708165909278?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/716926708165909278/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=716926708165909278' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/716926708165909278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/716926708165909278'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/08/coming-black-boxes-inside-business.html' title='The coming black boxes inside business organizations'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-3002475007733887780</id><published>2010-08-16T21:03:00.000+02:00</published><updated>2010-08-16T21:03:43.924+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='news'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><title type='text'>According to today's breaking news, S&amp;P500 will raise or fall :)</title><content type='html'>&lt;div class="g-section news sfe-break-bottom-16"&gt;Two consequitive news found at &lt;a href="http://finance.google.com/"&gt;finance.google.com&lt;/a&gt;&amp;nbsp;today:&lt;/div&gt;&lt;div class="g-section news sfe-break-bottom-16"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="g-section news sfe-break-bottom-16"&gt; &lt;span class="name"&gt; &lt;a href="http://www.chinapost.com.tw/commentary/the-china-post/special-to-the-china-post/2010/08/16/268842/1200-target.htm" id="n-cn-" rel="nofollow"&gt;1,200 target reachable for the S&amp;amp;P 500&amp;nbsp;index&lt;/a&gt; &lt;/span&gt; &lt;br /&gt;&lt;div class="byline"&gt; &lt;span class="src"&gt;China Post&lt;/span&gt; - &lt;span class="date"&gt;16 hours ago&lt;/span&gt; &lt;/div&gt;&lt;div class="g-c" id="Article8"&gt; &lt;!-- google_ad_section_end --&gt; &lt;div style="width: 100%;"&gt;The recent economic reports have shown that  the economic recovery is petering out, prompting a few economists to  consider the possibility of the economy falling into recession. Robert  Shiller ...&lt;/div&gt;&lt;div style="width: 100%;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;!-- google_ad_section_start --&gt; &lt;span class="nwp"&gt; &lt;/span&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="g-section news sfe-break-bottom-16"&gt; &lt;span class="name"&gt; &lt;a href="http://www.dailyfinance.com/story/investing/why-the-sandp-500-stock-index-may-fall-below-1-000/19594094/" id="n-cn-" rel="nofollow"&gt;Why the S&amp;amp;P 500 Stock Index May Fall Below&amp;nbsp;1,000&lt;/a&gt; &lt;/span&gt; &lt;br /&gt;&lt;div class="byline"&gt; &lt;span class="src"&gt;DailyFinance&lt;/span&gt; - &lt;span class="date"&gt;Aug 15, 2010&lt;/span&gt; &lt;/div&gt;&lt;div class="g-c" id="Article9"&gt; &lt;!-- google_ad_section_end --&gt; &lt;div style="width: 100%;"&gt;The S&amp;amp;P 500 made one sharp move down this  year from 1,200 in late April to just about 1,000 in the first week in  July. The index may be heading below 1,000 in the next month from the  1,079 where ...&lt;/div&gt;&lt;div style="width: 100%;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="width: 100%;"&gt;Current index level: 1077.&lt;/div&gt;&lt;div style="width: 100%;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-3002475007733887780?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/3002475007733887780/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=3002475007733887780' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/3002475007733887780'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/3002475007733887780'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/08/according-to-todays-breaking-news-s.html' title='According to today&apos;s breaking news, S&amp;P500 will raise or fall :)'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8996484284188552641</id><published>2010-07-13T10:01:00.002+02:00</published><updated>2010-07-15T05:56:03.065+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='distorted market theory'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='chaos'/><title type='text'>PQ7: two tubulent years, +107,60%</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. PQ7 net results (after transaction fees and taxes) for 2 years between mid July 2008 and mid July 2010&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Pgh60OD1yVU/TD6GyWSnVyI/AAAAAAAAAnk/5KSBLzP8C0s/s1600/pq7+performane+200807_201007.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="218" src="http://1.bp.blogspot.com/_Pgh60OD1yVU/TD6GyWSnVyI/AAAAAAAAAnk/5KSBLzP8C0s/s400/pq7+performane+200807_201007.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Final result after 2 years: +107,60% (approx. 37% annulized)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;It has been two years since I've started a proprietary trading experiment called PQ7.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Its goal was to test some hypotheses regarding financial markets and... survive :)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;It so happened that the PQ7 experiment coincided with one of the most volatile periods in the history of modern financial markets, what is reflected in performance of the strategy.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;I have learned a lot during this period. I know now what I more of less do not know :)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;The experiment will continue for the next 12-18 months with modified - hopefully less volatile - trading strategy.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;More updates to come.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8996484284188552641?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8996484284188552641/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8996484284188552641' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8996484284188552641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8996484284188552641'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/07/pq7-two-tubulent-years-10760.html' title='PQ7: two tubulent years, +107,60%'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Pgh60OD1yVU/TD6GyWSnVyI/AAAAAAAAAnk/5KSBLzP8C0s/s72-c/pq7+performane+200807_201007.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-2566692288870971549</id><published>2010-07-10T16:37:00.005+02:00</published><updated>2010-07-10T17:15:39.646+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='cyclical analysis'/><category scheme='http://www.blogger.com/atom/ns#' term='GOLD'/><category scheme='http://www.blogger.com/atom/ns#' term='bubble'/><category scheme='http://www.blogger.com/atom/ns#' term='random walk'/><category scheme='http://www.blogger.com/atom/ns#' term='R'/><title type='text'>Cyclical analysis of gold prices</title><content type='html'>Some investors believe that it is a good time for buying more gold now, for Q4 is usually positive for gold.&lt;br /&gt;&lt;br /&gt;This believe is based, among other, on the assumption jewelery demand increases at the end of the year.&lt;br /&gt;&lt;br /&gt;Indeed, if you take a look at the average monthly returns over the last 41 years (1969-2010), price of gold was increasing in September, November and December:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Fig. Average monthly changes&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_Pgh60OD1yVU/TDh-JqR-0PI/AAAAAAAAAl8/VDu9yEDsZr0/s1600/gold+monthly+avg.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://3.bp.blogspot.com/_Pgh60OD1yVU/TDh-JqR-0PI/AAAAAAAAAl8/VDu9yEDsZr0/s400/gold+monthly+avg.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;Both Q3 and Q4 were on average positive for gold, and stronger then Q1 and Q2:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Fig. Average daily changes in particular quarters&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_Pgh60OD1yVU/TDh-wRNyxLI/AAAAAAAAAmE/rP0WPt0jbfE/s1600/gold+quaterly+daily+changes.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/_Pgh60OD1yVU/TDh-wRNyxLI/AAAAAAAAAmE/rP0WPt0jbfE/s400/gold+quaterly+daily+changes.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;However if you take a closer look at the distribution of monthly changes, the pictures gets less clearer. September was historically a very volatile month, and while average returns for 3 out of 4 months in Q4 were usually positive, the probability of loss was still substantial:&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;Fig. Distribution of monthly changes&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_Pgh60OD1yVU/TDiAoaz4MVI/AAAAAAAAAmM/QQtAcWWB2ac/s1600/gold+monthly+distribution.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://4.bp.blogspot.com/_Pgh60OD1yVU/TDiAoaz4MVI/AAAAAAAAAmM/QQtAcWWB2ac/s400/gold+monthly+distribution.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;The randomness of changes is even more visible, when you combine two&amp;nbsp;consecutive&amp;nbsp;months - now average bi-monthly returns are very close to zero.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Distribution of bi-monthly changes&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_Pgh60OD1yVU/TDiBKf2KNwI/AAAAAAAAAmU/fvwBTHiqQmg/s1600/gold+bimonthly+distribution.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/_Pgh60OD1yVU/TDiBKf2KNwI/AAAAAAAAAmU/fvwBTHiqQmg/s400/gold+bimonthly+distribution.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;And still more when you analyze daily data - here you can see that daily changes oscillate around zero each month, without a clear tendency:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Distribution of daily changes in particular months&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_Pgh60OD1yVU/TDiBpLuHvuI/AAAAAAAAAmc/6c9Q_p9gX4E/s1600/gold+daily+changes+in+months+distribution.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/_Pgh60OD1yVU/TDiBpLuHvuI/AAAAAAAAAmc/6c9Q_p9gX4E/s400/gold+daily+changes+in+months+distribution.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;You can also take a closer look at the distribution of changes in potentially the most beneficial months, such as September and November - in the former positive average return was generated by infrequent high results, and in the later the distribution is rather symmetrical with some outliers on the negative side:&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Histogram of changes in September&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_Pgh60OD1yVU/TDiCXmHQPEI/AAAAAAAAAmk/ZwEQxcMOdLU/s1600/gold+sept+hist.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://1.bp.blogspot.com/_Pgh60OD1yVU/TDiCXmHQPEI/AAAAAAAAAmk/ZwEQxcMOdLU/s400/gold+sept+hist.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Fig. Histogram of changes in November&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_Pgh60OD1yVU/TDiCZtSprfI/AAAAAAAAAms/aG5P9-uKSvE/s1600/gold+nov+hist.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="400" src="http://2.bp.blogspot.com/_Pgh60OD1yVU/TDiCZtSprfI/AAAAAAAAAms/aG5P9-uKSvE/s400/gold+nov+hist.jpeg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;Hence, based on the available historic data I cannot agree that the probability of gain from investing in gold now and holding it till the end of the year is significantly higher then making a loss on such an investment.&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;I just can't see a visible cyclical / seasonal pattern in gold prices. But maybe somebody else can and would correct me?&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;To see daily chart of gold futures prices go to:&amp;nbsp;&lt;a href="http://www.wolframalpha.com/input/?i=gold&amp;amp;a=*C.gold-_*Commodity-"&gt;http://www.wolframalpha.com/input/?i=gold&amp;amp;a=*C.gold-_*Commodity-&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can also find my bookmarks for articles about gold at:&amp;nbsp;&lt;a href="http://delicious.com/reakkt/gold"&gt;http://delicious.com/reakkt/gold&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-2566692288870971549?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/2566692288870971549/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=2566692288870971549' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2566692288870971549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/2566692288870971549'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/07/cyclical-analysis-of-gold.html' title='Cyclical analysis of gold prices'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Pgh60OD1yVU/TDh-JqR-0PI/AAAAAAAAAl8/VDu9yEDsZr0/s72-c/gold+monthly+avg.jpeg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-8520726312088631475</id><published>2010-06-28T12:40:00.004+02:00</published><updated>2010-06-28T13:02:51.765+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Moody&apos;s'/><category scheme='http://www.blogger.com/atom/ns#' term='default'/><category scheme='http://www.blogger.com/atom/ns#' term='CSO'/><category scheme='http://www.blogger.com/atom/ns#' term='CDS'/><category scheme='http://www.blogger.com/atom/ns#' term='risk'/><category scheme='http://www.blogger.com/atom/ns#' term='BP'/><category scheme='http://www.blogger.com/atom/ns#' term='credit risk'/><category scheme='http://www.blogger.com/atom/ns#' term='spread'/><title type='text'>Reorganizacja BP w ramach przepisów upadłościowych może być mniejszym złem</title><content type='html'>&lt;script src="http://charts.wikinvest.com/wikinvest/wikichart/javascript/scripts.php" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;div id="wikichartContainer_E5B2EFBA-4E7A-3F6B-97CC-7E25D9162D04"&gt;&lt;div id="wikichartContainer_E5B2EFBA-4E7A-3F6B-97CC-7E25D9162D04_noFlash" style="display: none; width: 400px;"&gt;&lt;a href="http://get.adobe.com/flashplayer/"&gt;&lt;img alt="Flash" src="http://cdn.wikinvest.com/wikinvest/images/adobe_flash_logo.gif" style="border-width: 0px;" /&gt;&lt;br /&gt;Flash Player 9 or higher is required to view the chart&lt;br /&gt;&lt;strong&gt;Click here to download Flash Player now&lt;/strong&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;script type="text/javascript"&gt;if (typeof(embedWikichart) != "undefined") {embedWikichart("http://charts.wikinvest.com/WikiChartMini.swf","wikichartContainer_E5B2EFBA-4E7A-3F6B-97CC-7E25D9162D04","400","400",{"rollingDate":"5 days","ticker":"NYSE:BP","showNewsIcons":"true","embedCodeDate":"2010-6-28","partner":"wikinvest"},{});}&lt;/script&gt;&lt;br /&gt;&lt;div style="font-family: Verdana; font-size: 9px; text-align: right; width: 400px;"&gt;&lt;a href="http://www.wikinvest.com/chart/NYSE:BP" style="color: #0000ee; text-decoration: underline;"&gt;View the full BP chart&lt;/a&gt; at &lt;a href="http://www.wikinvest.com/"&gt;Wikinvest&lt;/a&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;Od początku bieżącego roku, akcje&lt;a href="http://www.google.com/finance?q=NYSE:BP" style="color: #2a5db0;" target="_blank"&gt;&amp;nbsp;BP plc spadły o około 50%.&lt;/a&gt;&amp;nbsp;Kapitalizacja spółki obniżyła się do 85 mld USD. Tymczasem szacunki kosztów związanych z wyciekiem ropy w Zatoce Meksykańskiej&amp;nbsp;&lt;a href="http://www.telegraph.co.uk/finance/newsbysector/energy/oilandgas/7836982/BP-oil-spill-could-cost-100bn.html" style="color: #2a5db0;" target="_blank"&gt;sięgają 100 mld USD&lt;/a&gt;. BP zgodziło się na wpłacenie na rachunek powierniczy 20 mld USD (&lt;a href="http://finance.yahoo.com/q/is?s=BP+Income+Statement&amp;amp;annual" style="color: #2a5db0;" target="_blank"&gt;przy rocznym zysku netto w ostatnich 3 latach w przedziale 16,8-21,7 mld USD)&lt;/a&gt;, istotnie zmniejszając swoją płynność finansową.&amp;nbsp;Przy niemożliwych do oszacowania ostatecznych kosztach kryzysu, coraz bardziej prawdopodobnym rozwiązaniem wydaje się bankructwo BP, co przynajmniej według amerykańskich przepisów (&lt;a href="http://en.wikipedia.org/wiki/Chapter_11,_Title_11,_United_States_Code" style="color: #2a5db0;" target="_blank"&gt;Chapter 11 - reorganizacja przy ochronie przed wierzycielami&lt;/a&gt;), pozwoliłoby na ograniczenie ryzyka firmy i... umożliwiło jej przetrwanie. Wywołałoby to jednak zdarzenie kredytowe, mające znaczenie dla długu firmy oraz instrumentów pochodnych związanych z ryzykiem kredytowym BP.&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;W połowie czerwca&amp;nbsp;&lt;a href="http://www.zerohedge.com/article/bp-cds-curve-goes-nuts-1-year-passes-1000-bps-no-offers-market" style="color: #2a5db0;" target="_blank"&gt;spread na CDS-ach dotyczących rocznego długu skoczył do ponad 1000 bps&lt;/a&gt;, czyli 10 punktów procentowych, przy równoczesnej czasowej utracie płynności rynku. 10% spread oznaczał, że ubezpieczenie każdych 10 mln USD długu spółki kosztowało&amp;nbsp;&lt;b&gt;rocznie&lt;/b&gt;&amp;nbsp;1 mln USD. Spready na inne okresy również gwałtownie wzrosły i utrzymują się na alarmującym poziomie (&amp;gt;500 bps). Agencje ratingowe obniżyły rating długu firmy, w przypadku Fitch niemal do poziomu obligacji śmieciowych (S&amp;amp;P: A, Moody's: Aa2, Fitch: BBB).&amp;nbsp;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;Według sprawozdania rocznego BP na koniec 2009 r.,&amp;nbsp;&lt;a href="http://finance.yahoo.com/q/bs?s=BP+Balance+Sheet&amp;amp;annual" style="color: #2a5db0;" target="_blank"&gt;długoterminowy dług spółki wynosił 28,7 mld USD&lt;/a&gt;. To jednak nie dług spółki może stanowić największe zagrożenie. Znacznie groźniejsze mogą być różnorodne instrumenty pochodne związane z ryzykiem kredytowym firmy.&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;Jak wynika z noty analitycznej opublikowanej 21. czerwca br. przez agencję Moody's, około 18% wszystkich obserwowanych przez agencję CSO (&lt;a href="http://www.investopedia.com/terms/s/syntheticcdo.asp" style="color: #2a5db0;" target="_blank"&gt;Collateralized Synthetic Obligations&lt;/a&gt;, czyli instrumentów pochodnych opartych na ubezpieczeniach na dług CDS; więcej na temat konstrukcji CDS można przeczytać w&amp;nbsp;&lt;a href="http://db.riskwaters.com/public/showPage.html?page=11387" style="color: #2a5db0;" target="_blank"&gt;["CDS guide: new structures. CDSs as building blocks", credit ,2003-04"]&lt;/a&gt;) zawiera ekspozycje na ryzyko kredytowe BP i spółki związane.&amp;nbsp;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;Pozornie niewielka ekspozycja zawarta w tych CSO&amp;nbsp;(2% dla BP, ok. 3,5% dla wszystkich spółek związanych z obecnym kryzysem naftowym) może paradoksalnie być przyczyną większych kłopotów.&amp;nbsp;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;Po pierwsze - związane z BP dłużne instrumenty pochodne stanowią część ogromnego rynku derywatyw kredytowych (&lt;a href="http://www.bis.org/statistics/otcder/dt21.pdf" style="color: #2a5db0;" target="_blank"&gt;BIS oszacował nominalną wartość CDS-ów na koniec 2009 r. na 32,7 billionów USD&lt;/a&gt;). W przypadku wymuszonej zdarzeniem kredytowym likwidacji "zarażonych" ryzykiem BP CSO, może dojść do wyprzedaży części aktywów związanych z pozostałymi firmami zapakowanymi w ten sam instrument. Zazwyczaj dotyka to najpierw najbardziej płynne aktywa. Dodatkowym skutkiem byłby silny skok kosztów długu firm zapakowanych w "skażone" derywatywy.&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;Po drugie - ukryta w złożonych i nieprzejrzystych instrumentach pochodnych ekspozycja na BP stanowi istotny element niepewności, dotyczący tego, kto i ile będzie musiał zapłacić w przypadku bankructwa BP. I czym sfinansuje swoje zobowiązania?&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;Kolejnym obszarem ryzyka jest rola BP w handlu instrumentami pochodnymi związanymi z energią, walutami i stopami procentowymi. BP jest prawdopodobnie największym podmiotem zaangażowanym w handel pierwszymi z tych instrumentów. Na koniec 2009 r. bilans spółki wykazywał łącznie ponad 17 mld USD w finansowych instrumentach pochodnych (mniej więcej po połowie w aktywach i pasywach). Bez znajomości struktury pozycji zawartych przez firmę, nie da się jednak oszacować skutków ewentualnego bankructwa firmy dla rynku instrumentów pochodnych. Zabezpieczanie tych pozycji przez przeciwne strony kontraktów zawartych z BP (w tym prawdopodobnie duże banki inwestycyjne) niemal na pewno podniesie zmienność na rynku, szczególnie w zakresie notowań energii.&amp;nbsp;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;Ostatnim elementem, który trzeba uwzględnić w analizie, są różnego rodzaju formalne i nieformalne gwarancje udzielone przez BP swoim kontrahentom i partnerom - np. związane z realizacją zobowiązań umownych. Likwidacja firmy doprowadziłaby do zerwania misternej i rozległej sieci powiązań między firmą i gospodarką. Skutki takiego zdarzenia są nieobliczalne i mogłoby ono dosłownie wstrzymać na pewien czas światową gospodarkę - np. w rezultacie odcięcia klientów BP od dostaw surowców niezbędnych do prowadzenia działalności. Z tego punktu widzenia, bezpieczniejszym rozwiązaniem wydaje się reorganizacja firmy pod ochroną przepisów upadłościowych. A to - o czym była mowa wcześniej - prowadzi do szoku na rynku instrumentów związanych z długiem. Może to jednak być mniejsze zło, a rynek finansowy można przynajmniej czasowo uspokoić kolejnym zastrzykiem płynności.&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;u&gt;Źródła:&lt;/u&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;"BP and Counterparty Risk", Wall Street Pit, 2010-06-26&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;a href="http://wallstreetpit.com/33059-bp-and-counterparty-risk" style="color: #2a5db0;" target="_blank"&gt;http://wallstreetpit.com/&lt;wbr&gt;&lt;/wbr&gt;33059-bp-and-counterparty-risk&lt;/a&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;"BP Bankruptcy in U.K. Is Obama’s Worst Nightmare: Caroline Baum"&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;Bloomberg, 2010-06-24&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;a href="http://www.bloomberg.com/news/2010-06-25/bp-bankruptcy-in-u-k-is-obama-s-worst-nightmare-caroline-baum.html" style="color: #2a5db0;" target="_blank"&gt;http://www.bloomberg.com/news/&lt;wbr&gt;&lt;/wbr&gt;2010-06-25/bp-bankruptcy-in-u-&lt;wbr&gt;&lt;/wbr&gt;k-is-obama-s-worst-nightmare-&lt;wbr&gt;&lt;/wbr&gt;caroline-baum.html&lt;/a&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;"BP Default Swaps Rise on Concerns Storm May Disrupt Oil Cleanup", Bloomberg Businessweek, 2010-06-22&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;a href="http://www.businessweek.com/news/2010-06-22/bp-default-swaps-rise-on-concerns-storm-may-disrupt-oil-cleanup.html" style="color: #2a5db0;" target="_blank"&gt;http://www.businessweek.com/&lt;wbr&gt;&lt;/wbr&gt;news/2010-06-22/bp-default-&lt;wbr&gt;&lt;/wbr&gt;swaps-rise-on-concerns-storm-&lt;wbr&gt;&lt;/wbr&gt;may-disrupt-oil-cleanup.html&lt;/a&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;"Death by (collateralised) BP association", FT Alphaville, 2010-06-22&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;a href="http://ftalphaville.ft.com/blog/2010/06/22/267496/death-by-collateralised-bp-association/" style="color: #2a5db0;" target="_blank"&gt;http://ftalphaville.ft.com/&lt;wbr&gt;&lt;/wbr&gt;blog/2010/06/22/267496/death-&lt;wbr&gt;&lt;/wbr&gt;by-collateralised-bp-&lt;wbr&gt;&lt;/wbr&gt;association/&lt;/a&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;"BP's Bankruptcy Would Impair 117 (18% Of Total) Collateralized Synthetic Obligations, Lead To Pervasive Losses", zerohedge, 2010-06-21&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;a href="http://www.zerohedge.com/article/bps-bankruptcy-would-impair-117-18-total-collateralized-synthetic-obligations-lead-pervasive" style="color: #2a5db0;" target="_blank"&gt;http://www.zerohedge.com/&lt;wbr&gt;&lt;/wbr&gt;article/bps-bankruptcy-would-&lt;wbr&gt;&lt;/wbr&gt;impair-117-18-total-&lt;wbr&gt;&lt;/wbr&gt;collateralized-synthetic-&lt;wbr&gt;&lt;/wbr&gt;obligations-lead-pervasive&lt;/a&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;"A Bankrupt BP - Worse For The Financial World Than Lehman Brothers?", Oil Price.com, 2010-06-22&amp;nbsp;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;a href="http://oilprice.com/Energy/Energy-General/A-Bankrupt-BP-Worse-For-The-Financial-World-Than-Lehman-Brothers.html" style="color: #2a5db0;" target="_blank"&gt;http://oilprice.com/Energy/&lt;wbr&gt;&lt;/wbr&gt;Energy-General/A-Bankrupt-BP-&lt;wbr&gt;&lt;/wbr&gt;Worse-For-The-Financial-World-&lt;wbr&gt;&lt;/wbr&gt;Than-Lehman-Brothers.html&lt;/a&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;"Has BP Sprung A Counterparty Risk Leak?", zerohedge, 2010-06-09&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;a href="http://www.zerohedge.com/article/has-bp-sprung-counterparty-risk-leak" style="color: #2a5db0;" target="_blank"&gt;http://www.zerohedge.com/&lt;wbr&gt;&lt;/wbr&gt;article/has-bp-sprung-&lt;wbr&gt;&lt;/wbr&gt;counterparty-risk-leak&lt;/a&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;"CDS guide: new structures. CDSs as building blocks", credit ,2003-04&lt;/div&gt;&lt;div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"&gt;&lt;a href="http://db.riskwaters.com/public/showPage.html?page=11387" style="color: #2a5db0;" target="_blank"&gt;http://db.riskwaters.com/&lt;wbr&gt;&lt;/wbr&gt;public/showPage.html?page=&lt;wbr&gt;&lt;/wbr&gt;11387&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Link&lt;/b&gt;: &lt;a href="http://www.nasdaq.com/aspxcontent/options2.aspx?symbol=bp&amp;amp;selected=bp&amp;amp;qm_page=27053&amp;amp;qm_symbol=BP"&gt;notowania opcji 2012-01 BP&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-8520726312088631475?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/8520726312088631475/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=8520726312088631475' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8520726312088631475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/8520726312088631475'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/06/reorganizacja-bp-w-ramach-przepisow.html' title='Reorganizacja BP w ramach przepisów upadłościowych może być mniejszym złem'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-960656189545534909</id><published>2010-06-18T19:35:00.003+02:00</published><updated>2010-06-28T12:49:13.402+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='quantitative easing'/><title type='text'>Thanks to quantitive easing we will get more beautiful money! ;)</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://www.logo24.pl/Logo24/1,86375,7991564,100_dolcow_w_3D.html"&gt;&lt;img border="0" height="198" src="http://bi.gazeta.pl/im/8/7991/z7991558X.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Thanks to the quantitative easing there is much more money. And now they're going to be beautiful - the new $100 note will have a cool 3D stripe! ;)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;More info:&amp;nbsp;&lt;a href="http://www.newmoney.gov/newmoney/default.aspx"&gt;http://www.newmoney.gov/newmoney/default.aspx&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-960656189545534909?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/960656189545534909/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=960656189545534909' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/960656189545534909'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/960656189545534909'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/06/thanks-to-quantitive-easing-we-may-get.html' title='Thanks to quantitive easing we will get more beautiful money! ;)'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-1739793910429166191</id><published>2010-06-16T18:10:00.002+02:00</published><updated>2010-06-16T18:14:20.742+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GDP'/><category scheme='http://www.blogger.com/atom/ns#' term='correlation'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='risk premium'/><category scheme='http://www.blogger.com/atom/ns#' term='economy'/><title type='text'>Correlation between S&amp;P500 and the US economy</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_Pgh60OD1yVU/TBjygNgofeI/AAAAAAAAAl0/ZtmZjiBpgUU/s1600/SP500+economy+correlation.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="282" src="http://3.bp.blogspot.com/_Pgh60OD1yVU/TBjygNgofeI/AAAAAAAAAl0/ZtmZjiBpgUU/s400/SP500+economy+correlation.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;As I've written in &lt;a href="http://mjaniec.blogspot.com/2010/06/where-is-risk-premium-ii.html"&gt;my previous post&lt;/a&gt;, there was not any straightforward correlation between annual S&amp;amp;P500 returns and GDP nor FFR.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;However, when you compare one year's market return to the product of the next year's GDP and FFR (actually 1+FFR), the correlation jumps to 0.61.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;GDP*(1+FFR) can be interpreted as the sum of the economic growth and risk free rate in a given time.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Hence we can assume that stock market is predicting future economic situation and future risk free rate. And it's doing it pretty well :)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Nevertheless, due to high volatility, even that market predictions of the future economy state were pretty good, returns produced by the market were only marginally better than the risk free rates as expressed by FFR.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;XLS file:&amp;nbsp;&lt;a href="http://www.mediafire.com/?mmmyummkzry"&gt;http://www.mediafire.com/?mmmyummkzry&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-1739793910429166191?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/1739793910429166191/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=1739793910429166191' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1739793910429166191'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/1739793910429166191'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/06/correlation-between-s-and-us-economy.html' title='Correlation between S&amp;P500 and the US economy'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Pgh60OD1yVU/TBjygNgofeI/AAAAAAAAAl0/ZtmZjiBpgUU/s72-c/SP500+economy+correlation.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-422609448586834124</id><published>2010-06-15T10:09:00.004+02:00</published><updated>2010-06-15T10:32:01.375+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fixed income'/><category scheme='http://www.blogger.com/atom/ns#' term='Moody&apos;s'/><category scheme='http://www.blogger.com/atom/ns#' term='distorted market theory'/><category scheme='http://www.blogger.com/atom/ns#' term='risk'/><category scheme='http://www.blogger.com/atom/ns#' term='GDP'/><category scheme='http://www.blogger.com/atom/ns#' term='correlation'/><category scheme='http://www.blogger.com/atom/ns#' term='SP500'/><category scheme='http://www.blogger.com/atom/ns#' term='PQ7'/><category scheme='http://www.blogger.com/atom/ns#' term='AAA'/><category scheme='http://www.blogger.com/atom/ns#' term='risk premium'/><title type='text'>Where is the risk premium II?</title><content type='html'>In the recent 55 years between 1955 and 2009, the average effective Fed Funds Rate was 5,52%. In the same period, the average annual return of S&amp;amp;P500 index reached 6,40% - that's a difference of just 88 pp!&lt;br /&gt;&lt;br /&gt;Meanwhile, in the recent 34years between 1976 and 2009, the average yield of Moody's AAA bonds was 8,36% vs 7,63% returned by S&amp;amp;P500. The Fed Funds Rate averaged 6,13%. Even that the risk premium for S&amp;amp;P500 was a little higher&amp;nbsp;- 151 pp -&amp;nbsp;than in the first analyzed period, it was below the premium on AAA bonds!&lt;br /&gt;&lt;br /&gt;It is also worth mentioning that no straight correlations between GDP, Fed Funds Rate and GDP existed&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;correlation &amp;nbsp; &amp;nbsp; &amp;nbsp;GDP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fed Funds Rate&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;S&amp;amp;P500 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.0383 &amp;nbsp; &amp;nbsp;-0.0689&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"&gt;GDP &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -0.0627&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;GDP vs Fed Funds Rate vs S&amp;amp;P500 [%] (1955-2009)&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_Pgh60OD1yVU/TBcyXXOYcNI/AAAAAAAAAls/A8hDm3TKU5o/s1600/sp500_gdp_ffr.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="333" src="http://3.bp.blogspot.com/_Pgh60OD1yVU/TBcyXXOYcNI/AAAAAAAAAls/A8hDm3TKU5o/s400/sp500_gdp_ffr.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;XLS file:&amp;nbsp;&lt;a href="http://www.mediafire.com/?yonzywyzizj"&gt;http://www.mediafire.com/?yonzywyzizj&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Data sources: FFR &amp;amp; AAA - &lt;a href="http://www.federalreserve.gov/releases/h15/data.htm"&gt;Federal Reserve&lt;/a&gt;, GDP - &lt;a href="http://www.bea.gov/national/nipaweb/TableView.asp?SelectedTable=3&amp;amp;ViewSeries=NO&amp;amp;Java=Yes&amp;amp;Request3Place=N&amp;amp;3Place=N&amp;amp;FromView=YES&amp;amp;Freq=Year&amp;amp;FirstYear=1954&amp;amp;LastYear=2009&amp;amp;3Place=N&amp;amp;Update=Update&amp;amp;JavaBox=no#"&gt;BEA&lt;/a&gt;, S&amp;amp;P500 - &lt;a href="http://stooq.com/q/d/?s=s%2526p500&amp;amp;c=0&amp;amp;d1=19550101&amp;amp;d2=20091231&amp;amp;i=y"&gt;Stooq&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Note: the previous post, &lt;a href="http://mjaniec.blogspot.com/2010/06/where-is-risk-premium.html"&gt;"Where is the risk premium?"&lt;/a&gt; was temporarily removed for revision and update.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-422609448586834124?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/422609448586834124/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=422609448586834124' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/422609448586834124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/422609448586834124'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/06/where-is-risk-premium-ii.html' title='Where is the risk premium II?'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_Pgh60OD1yVU/TBcyXXOYcNI/AAAAAAAAAls/A8hDm3TKU5o/s72-c/sp500_gdp_ffr.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-5645948766101818196</id><published>2010-06-14T01:22:00.001+02:00</published><updated>2010-06-14T02:44:54.993+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='fourier transforms'/><category scheme='http://www.blogger.com/atom/ns#' term='signal analysis'/><title type='text'>Starting playing with signal analysis for modeling returns</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: left;"&gt;I'm starting to test applications of trigonometric functions for modeling returns.&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;Below a nice graph from Wolfram Alpha:&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;&lt;a href="http://www.wolframalpha.com/input/?i=sin(x)%2Bsin(x*x%2Bx),+from+0+to+20"&gt;&lt;img border="0" height="196" src="http://1.bp.blogspot.com/_Pgh60OD1yVU/TBV7VBclJ3I/AAAAAAAAAkc/ERCxrA2pgl4/s320/MSP657019b36b10g44357b5000018eb95bbi13e98i7.gif" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;source:&amp;nbsp;&lt;a href="http://www.wolframalpha.com/input/?i=sin(x)%2Bsin(x*x%2Bx),+from+0+to+20"&gt;http://www.wolframalpha.com/input/?i=sin(x)%2Bsin(x*x%2Bx),+from+0+to+20&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: left;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-5645948766101818196?l=www.reakkt.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://www.reakkt.com/feeds/5645948766101818196/comments/default' title='Komentarze do posta'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5442569662076128890&amp;postID=5645948766101818196' title='Komentarze (0)'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5645948766101818196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5442569662076128890/posts/default/5645948766101818196'/><link rel='alternate' type='text/html' href='http://www.reakkt.com/2010/06/starting-playing-with-signal-analysis.html' title='Starting playing with signal analysis for modeling returns'/><author><name>Maciej Janiec</name><uri>https://profiles.google.com/106033815554310116556</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh5.googleusercontent.com/-iVkC2OCC3rI/AAAAAAAAAAI/AAAAAAAAAzI/q5CTkvrTLd4/s512-c/photo.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_Pgh60OD1yVU/TBV7VBclJ3I/AAAAAAAAAkc/ERCxrA2pgl4/s72-c/MSP657019b36b10g44357b5000018eb95bbi13e98i7.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5442569662076128890.post-4121949458844546540</id><published>2010-06-13T20:52:00.010+02:00</published><updated>2010-06-28T13:05:17.303+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BP'/><category scheme='http://www.blogger.com/atom/ns#' term='Black Swan'/><category scheme='http://www.blogger.com/atom/ns#' term='Greece'/><title type='text'>The fall of a country called BP?</title><content type='html'>&lt;script src="http://charts.wikinvest.com/wikinvest/wikichart/javascript/scripts.php" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;div id="wikichartContainer_F8E3A616-227A-95B4-C26F-3290570468BF"&gt;&lt;div style="margin-top: 22px; text-align: center; width: 390px;"&gt;&lt;a href="http://get.adobe.com/flashplayer/"&gt;&lt;img alt="Flash" src="http://cdn.wikinvest.com/wikinvest/images/adobe_flash_logo.gif" style="border-width: 0px;" /&gt;&lt;br /&gt;Flash Player 9 or higher is required to view the chart&lt;br /&gt;&lt;b&gt;Click here to download Flash Player now&lt;/b&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;script type="text/javascript"&gt;if (typeof(embedWikichart) != "undefined") {embedWikichart("http://charts.wikinvest.com/WikiChartMini.swf","wikichartContainer_F8E3A616-227A-95B4-C26F-3290570468BF","390","245",{"startDate":"13-12-2009","endDate":"13-06-2010","embedCodeDate":"2010-6-13","ticker":"BP","showAnnotations":"true","liveQuote":"true"},{});}&lt;/script&gt;&lt;br /&gt;&lt;div style="font-family: Verdana; font-size: 9px; text-align: right; width: 390px;"&gt;&lt;a href="http://www.wikinvest.com/chart/BP" style="color: #0000ee; text-decoration: underline;"&gt;View the full NYSE:BP chart&lt;/a&gt; at &lt;a href="http://www.wikinvest.com/"&gt;Wikinvest&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;From the beginning of the year, and especially from the start&amp;nbsp;&lt;a href="http://en.wikipedia.org/wiki/Deepwater_Horizon_oil_spill"&gt;the Deepwater Horizon oil spill&lt;/a&gt;&amp;nbsp;on April 20th, the market capitalization of &lt;a href="http://www.google.com/finance?q=NYSE:BP"&gt;BP plc&lt;/a&gt;&amp;nbsp;has fallen by some 41,4% to around $106,4 billion. Roughly $75 billion of equity value was destroyed. So far, estimates of total costs to BP reach $30 billion, and &lt;a href="http://www.reuters.com/article/idUSTRE6573FD20100613"&gt;some US senators want BP to put $20 billion in an escrow&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Compare this with around &lt;a href="http://www.fxstreet.com/technical/market-view/weekly-market-commentary/2010-04-30.html"&gt;EUR 189 billion ($228 billion) of Greek debt outstanding&lt;/a&gt;, and &lt;a href="http://online.wsj.com/article/SB10001424052748703798904575069712153415820.html"&gt;$166.8 billion of bank's exposure to Greek debt&lt;/a&gt;. Prospects of Greek default sent financial markets tumbling. But the default did not happen, so far. Meanwhile, the BP equity actually evaporated and probability of further loses to investors - both equity holders, creditors (&lt;a href="http://finance.yahoo.com/q/bs?s=BP+Balance+Sheet&amp;amp;annual"&gt;$29 billion long term debt, $24 billion other liabilities&lt;/a&gt;) and derrivative counterparts - seems pretty high.&lt;br /&gt;&lt;br /&gt;The potential bankrupcy of BP could be similar in size to the default of Greece.&lt;br /&gt;&lt;br /&gt;Among &lt;a href="http://www.zerohedge.com/article/here-are-todays-very-unhappy-campers"&gt;the top holders of BP shares&lt;/a&gt; are pension and investment funds. These large institutions are usually slow to move. Also, the size of their positions makes the maneuvering difficult. Most probably, they will have to swallow the most of the potential loss. Or rather ultimately the people whose money they manage will have to do so.&lt;br /&gt;&lt;br /&gt;This will influence consumer confidence, propensity to save and willingness to invest in equities.&lt;br /&gt;&lt;br /&gt;UPDATE 2010-06-14, 10:50 CET&lt;br /&gt;&lt;br /&gt;&lt;div class="font-null"&gt;&lt;i&gt;Senior US politicians are pushing President Barack  Obama to seek $100bn in damages against BP for the Gulf of Mexico oil  spill in an attempt to kill the company. &lt;/i&gt;&lt;/div&gt;&lt;div class="font-null"&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div class="font-null"&gt;&lt;i&gt;If such an action were to be taken and won, the  Ftse 100 flagbearer would almost certainly collapse into bankruptcy.  Many prominent US figures would welcome this as suitable punishment for  the environmental devastation off the Louisiana coast.&lt;/i&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="font-null"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="font-null"&gt;source:&amp;nbsp;&lt;a href="http://www.independent.co.uk/news/business/news/obama-urged-to-punish-bp-with-100bn-action-1998853.html"&gt;http://www.independent.co.uk/news/business/news/obama-urged-to-punish-bp-with-100bn-action-1998853.html&lt;/a&gt;&lt;/div&gt;&lt;div class="font-null"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5442569662076128890-412194
