<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>случайные блуждания</title>
	<atom:link href="http://sanya.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sanya.wordpress.com</link>
	<description>"Побеждающий людей - силен, побеждающий себя - могущественнен" Лао-цзы</description>
	<lastBuildDate>Fri, 25 Feb 2011 08:55:00 +0000</lastBuildDate>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sanya.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>случайные блуждания</title>
		<link>http://sanya.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sanya.wordpress.com/osd.xml" title="случайные блуждания" />
	<atom:link rel='hub' href='http://sanya.wordpress.com/?pushpress=hub'/>
		<item>
		<title>IBM Ponder This Challenge</title>
		<link>http://sanya.wordpress.com/2007/04/24/ibm-ponder-this-challenge/</link>
		<comments>http://sanya.wordpress.com/2007/04/24/ibm-ponder-this-challenge/#comments</comments>
		<pubDate>Tue, 24 Apr 2007 14:32:21 +0000</pubDate>
		<dc:creator>sanya</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sanya.wordpress.com/2007/04/24/ibm-ponder-this-challenge/</guid>
		<description><![CDATA[Puzzle for February 2007. Consider the following two person game. Each player receives a random number uniformly distributed between 0 and 1. Each player can choose to discard his number and receive a new random number between 0 and 1. This choice is made without knowing the other players number or whether the other player [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=55&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Puzzle for February 2007.</p>
<p>Consider the following two person game. Each player receives a random<br />
number uniformly distributed between 0 and 1. Each player can choose to<br />
discard his number and receive a new random number between 0 and 1.<br />
This choice is made without knowing the other players number or whether<br />
the other player chose to replace his number. What strategy should a<br />
player follow to ensure he will win at least 50% of the time?</p>
<p>REVISED, 2/5/07 &#8212; After each player has had an opportunity to replace<br />
his number the numbers are compared and the player with the higher<br />
number wins.&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sanya.wordpress.com/55/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sanya.wordpress.com/55/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanya.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanya.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanya.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanya.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanya.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanya.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanya.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanya.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanya.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanya.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanya.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanya.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanya.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanya.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=55&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanya.wordpress.com/2007/04/24/ibm-ponder-this-challenge/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/264c1b1e0ec240948d186f6a1dd64dd2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sanya</media:title>
		</media:content>
	</item>
		<item>
		<title>начало, дубль 1001</title>
		<link>http://sanya.wordpress.com/2007/04/21/%d0%bd%d0%b0%d1%87%d0%b0%d0%bb%d0%be-%d0%b4%d1%83%d0%b1%d0%bb%d1%8c-1001/</link>
		<comments>http://sanya.wordpress.com/2007/04/21/%d0%bd%d0%b0%d1%87%d0%b0%d0%bb%d0%be-%d0%b4%d1%83%d0%b1%d0%bb%d1%8c-1001/#comments</comments>
		<pubDate>Sat, 21 Apr 2007 13:16:26 +0000</pubDate>
		<dc:creator>sanya</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sanya.wordpress.com/2007/04/21/%d0%bd%d0%b0%d1%87%d0%b0%d0%bb%d0%be-%d0%b4%d1%83%d0%b1%d0%bb%d1%8c-1001/</guid>
		<description><![CDATA[Ну что же, в очередной раз столкнувшись с кризисом приходится начинать все сначала. Есть несколько вещей, которые мешают моей продуктивной работе. По значимости: лень &#8211; я увиливаю от работы, не могу заняться ею procrastination &#8211; я постоянно откладываю важные дела &#8220;на потом&#8221;. Рассуждения из серии &#8220;ну у меня еще 10 часов есть в запасе, домашку [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=54&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ну что же, в очередной раз столкнувшись с кризисом приходится начинать все сначала. Есть несколько вещей, которые мешают моей продуктивной работе. По значимости:
<ol>
<li>лень &#8211; я увиливаю от работы, не могу заняться ею</li>
<li>procrastination &#8211; я постоянно откладываю важные дела &#8220;на потом&#8221;. Рассуждения из серии &#8220;ну у меня еще 10 часов есть в запасе, домашку делать часов 6-7, так что должен успеть&#8221;</li>
<li>неорганизованность, несобранность. Начиная делать что-то я быстро отвлекаюсь на всякую ерунду. &#8220;посмотрю жж, почитаю почту&#8221;</li>
<li>нервы. сорвав какой-нибудь план я начинаю нервничать, так что последствия этого состояния бывают намного хуже последствий срыва плана. Например, таким образом я заболел перед экзаменом по макроэкономике и написал его с температурой на 5-. Писал бы нормальный, получил бы 5.</li>
<li>отношения. У меня очень много времени уходит на отношения. Причем самое плохое, что это время не идет единым куском. Через каждые 10 минут, либо я, либо Оля заговариваем о чем-нибудь и это парализует любую работу. Фактически, как я понял, проанализировав свою учебу, я никогда не сделал ничего существенного если Оля была рядом. Только когда она спала, или ее не было.</li>
</ol>
<p>Со всем этим надо бороться. Начну с самого простого. Я сделаю сейчас домашку по макро (просроченную!!!). Потом придумаю свою систему time-management&#8217;а.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sanya.wordpress.com/54/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sanya.wordpress.com/54/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanya.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanya.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanya.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanya.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanya.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanya.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanya.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanya.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanya.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanya.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanya.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanya.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanya.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanya.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=54&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanya.wordpress.com/2007/04/21/%d0%bd%d0%b0%d1%87%d0%b0%d0%bb%d0%be-%d0%b4%d1%83%d0%b1%d0%bb%d1%8c-1001/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/264c1b1e0ec240948d186f6a1dd64dd2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sanya</media:title>
		</media:content>
	</item>
		<item>
		<title>personal development goals</title>
		<link>http://sanya.wordpress.com/2007/04/21/personal-development-goals/</link>
		<comments>http://sanya.wordpress.com/2007/04/21/personal-development-goals/#comments</comments>
		<pubDate>Sat, 21 Apr 2007 04:59:59 +0000</pubDate>
		<dc:creator>sanya</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sanya.wordpress.com/2007/04/21/personal-development-goals/</guid>
		<description><![CDATA[у меня серьезные проблемы из-за моей неорганизованности. С этим нужно что-то делать. Цели на ближайшее время в плане personal development: Научиться вставать в 5 утра каждый день. Это важно! Вставать по первому звонку будильника Не откладывать важные дела, создать какую-нибудь систему планирования Постараюсь регулярно писать сюда, как удается их реализовать<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=53&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>у меня серьезные проблемы из-за моей неорганизованности. С этим нужно что-то делать. Цели на ближайшее время в плане personal development:
<ol>
<li>Научиться вставать в 5 утра каждый день. Это важно!</li>
<li>Вставать по первому звонку будильника</li>
<li>Не откладывать важные дела, создать какую-нибудь систему планирования</li>
</ol>
<p>Постараюсь регулярно писать сюда, как удается их реализовать</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sanya.wordpress.com/53/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sanya.wordpress.com/53/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanya.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanya.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanya.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanya.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanya.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanya.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanya.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanya.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanya.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanya.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanya.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanya.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanya.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanya.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=53&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanya.wordpress.com/2007/04/21/personal-development-goals/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/264c1b1e0ec240948d186f6a1dd64dd2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sanya</media:title>
		</media:content>
	</item>
		<item>
		<title>problem 4 (wilmott.com) &#8212; 2</title>
		<link>http://sanya.wordpress.com/2007/04/15/problem-4-wilmottcom-2/</link>
		<comments>http://sanya.wordpress.com/2007/04/15/problem-4-wilmottcom-2/#comments</comments>
		<pubDate>Sun, 15 Apr 2007 14:37:20 +0000</pubDate>
		<dc:creator>sanya</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sanya.wordpress.com/2007/04/15/problem-4-wilmottcom-2-8/</guid>
		<description><![CDATA[Problem There is a 60% chance of rain on Saturday and 30% chance of rain on Sunday. Estimate the range (min,max) of the dry weekend propability. Solution We have two events A and B (dry Saturday and dry Sunday). and . We need to calculate P(AB). Since we don’t know correlation between A and B, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=52&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><b><font>Problem</font></b><i><font><br />
There is a 60% chance of rain on Saturday and 30% chance of rain on Sunday. Estimate the  range (min,max) of the dry weekend propability.<br />
</font></i><b><font>Solution </font></b><font></p>
<p>We have two events A and B (dry Saturday and dry Sunday). <img src='http://s0.wp.com/latex.php?latex=P%28A%29+%3D+1+-0.6+%3D0.4&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(A) = 1 -0.6 =0.4' title='P(A) = 1 -0.6 =0.4' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=P%28B%29+%3D+1+-+0.3+%3D+0.7&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(B) = 1 - 0.3 = 0.7' title='P(B) = 1 - 0.3 = 0.7' class='latex' />. We need to calculate P(AB). </font><font> Since we don’t know correlation between A and B, we can only have an estimates <img src='http://s0.wp.com/latex.php?latex=p_%7Bmin%7D%3D0.7%2B0.4-1%3D0.1&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_{min}=0.7+0.4-1=0.1' title='p_{min}=0.7+0.4-1=0.1' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=p_%7Bmax%7D+%3D+min%280.7%2C+0.4%29+%3D+0.4&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='p_{max} = min(0.7, 0.4) = 0.4' title='p_{max} = min(0.7, 0.4) = 0.4' class='latex' />. And thus the problem solved. We can also calculate the covariation. Let’s introduce two RVs <img src="http://l.wordpress.com/latex.php?latex=%5Cxi_1+%5Csim+Bernoulli%28P%28A%29%29&amp;bg=ffffff&amp;fg=000000&amp;s=0" alt="\xi_1 \sim Bernoulli(P(A))" class="latex" /> and</font><font> <img src="http://l.wordpress.com/latex.php?latex=%5Cxi_2+%5Csim+Bernoulli%28P%28B%29%29&amp;bg=ffffff&amp;fg=000000&amp;s=0" alt="\xi_2 \sim Bernoulli(P(B))" class="latex" />. Since we have <img src='http://s0.wp.com/latex.php?latex=P%28%5Cxi_1%5C%2C%5Cxi_2%3D1%29+%3D+E%28%5Cxi_1%5C%2C%5Cxi_2%29%3DE%28%5Cxi_1%29E%28%5Cxi_2%29%2Bcov%28%5Cxi_1%2C+%5Cxi_2%29&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='P(&#92;xi_1&#92;,&#92;xi_2=1) = E(&#92;xi_1&#92;,&#92;xi_2)=E(&#92;xi_1)E(&#92;xi_2)+cov(&#92;xi_1, &#92;xi_2)' title='P(&#92;xi_1&#92;,&#92;xi_2=1) = E(&#92;xi_1&#92;,&#92;xi_2)=E(&#92;xi_1)E(&#92;xi_2)+cov(&#92;xi_1, &#92;xi_2)' class='latex' />. And finally <img src='http://s0.wp.com/latex.php?latex=cov%28%5Cxi_1%2C+%5Cxi_2%29_%7Bmin%7D%3D+-0.18&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='cov(&#92;xi_1, &#92;xi_2)_{min}= -0.18' title='cov(&#92;xi_1, &#92;xi_2)_{min}= -0.18' class='latex' /> and <img src='http://s0.wp.com/latex.php?latex=cov%28%5Cxi_1%2C+%5Cxi_2%29_%7Bmax%7D%3D0.4-0.28%3D0.12&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='cov(&#92;xi_1, &#92;xi_2)_{max}=0.4-0.28=0.12' title='cov(&#92;xi_1, &#92;xi_2)_{max}=0.4-0.28=0.12' class='latex' /> which coinsides with intuition: covariation could be either negative or positive.<br />
</font></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sanya.wordpress.com/52/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sanya.wordpress.com/52/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanya.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanya.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanya.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanya.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanya.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanya.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanya.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanya.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanya.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanya.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanya.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanya.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanya.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanya.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=52&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanya.wordpress.com/2007/04/15/problem-4-wilmottcom-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/264c1b1e0ec240948d186f6a1dd64dd2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sanya</media:title>
		</media:content>

		<media:content url="http://l.wordpress.com/latex.php?latex=%5Cxi_1+%5Csim+Bernoulli%28P%28A%29%29&#38;bg=ffffff&#38;fg=000000&#38;s=0" medium="image">
			<media:title type="html">\xi_1 \sim Bernoulli(P(A))</media:title>
		</media:content>

		<media:content url="http://l.wordpress.com/latex.php?latex=%5Cxi_2+%5Csim+Bernoulli%28P%28B%29%29&#38;bg=ffffff&#38;fg=000000&#38;s=0" medium="image">
			<media:title type="html">\xi_2 \sim Bernoulli(P(B))</media:title>
		</media:content>
	</item>
		<item>
		<title>небольшой disclaimer</title>
		<link>http://sanya.wordpress.com/2007/04/15/%d0%bd%d0%b5%d0%b1%d0%be%d0%bb%d1%8c%d1%88%d0%be%d0%b9-disclaimer/</link>
		<comments>http://sanya.wordpress.com/2007/04/15/%d0%bd%d0%b5%d0%b1%d0%be%d0%bb%d1%8c%d1%88%d0%be%d0%b9-disclaimer/#comments</comments>
		<pubDate>Sun, 15 Apr 2007 06:07:44 +0000</pubDate>
		<dc:creator>sanya</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[лытдыбр]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sanya.wordpress.com/2007/04/15/%d0%bd%d0%b5%d0%b1%d0%be%d0%bb%d1%8c%d1%88%d0%be%d0%b9-disclaimer/</guid>
		<description><![CDATA[В последнее время меня сильно захватила идея стать Quantitative Analyst. А поскольку на Analyst я, честно говорю, не слишком-то тяну, то хочется сначала стать хотя бы Quantitative Developer. Хватит ли меня на это или нет &#8211; неизвестно, тем более что учеба в рэшке отнимает много времени. Посмотрим. План &#8220;занятий&#8221; следующий. Основные 3 области которые будут [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=43&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>В последнее время меня сильно захватила идея стать Quantitative Analyst. А поскольку на Analyst я, честно говорю, не слишком-то тяну, то хочется сначала стать хотя бы Quantitative Developer. Хватит ли меня на это или нет &#8211; неизвестно, тем более что учеба в рэшке отнимает много времени. Посмотрим.</p>
<p>План &#8220;занятий&#8221; следующий. Основные 3 области которые будут спрашивать на собеседовании: математика (PT, Stochastic, PDE); программирование (C++, data structures, algorithms); finance (derivatives etc)</p>
<p>Второе я как бы немного знаю, нужно будет только немного подтянуть к собеседованию. Первое &#8211; знаю не очень хорошо, вот поэтому и буду ботать. Финансам надеюсь научат в рэшке хоть на каком-то уровне.</p>
<p>Такие дела. Постараюсь в этот блог писать о прогрессе.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sanya.wordpress.com/43/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sanya.wordpress.com/43/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanya.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanya.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanya.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=43&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanya.wordpress.com/2007/04/15/%d0%bd%d0%b5%d0%b1%d0%be%d0%bb%d1%8c%d1%88%d0%be%d0%b9-disclaimer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/264c1b1e0ec240948d186f6a1dd64dd2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sanya</media:title>
		</media:content>
	</item>
		<item>
		<title>Richard Hamming &#8220;You and Your Research&#8221;</title>
		<link>http://sanya.wordpress.com/2006/04/25/richard-hamming-you-and-your-research/</link>
		<comments>http://sanya.wordpress.com/2006/04/25/richard-hamming-you-and-your-research/#comments</comments>
		<pubDate>Tue, 25 Apr 2006 09:16:40 +0000</pubDate>
		<dc:creator>sanya</dc:creator>
				<category><![CDATA[лытдыбр]]></category>

		<guid isPermaLink="false">http://sanya.wordpress.com/2006/04/25/richard-hamming-you-and-your-research/</guid>
		<description><![CDATA[http://www.cs.virginia.edu/~robins/YouAndYourResearch.pdf Очень интересный текст. Вкратце: чуви задает каждому 3 вопроса Какие самые важные проблемы в твоей области? Работаешь ли ты над одной из них? Почему нет? Very inspiring :) Все, ушел работать над телепортационно-антигравитационной машиной времени :) Now playing: Destinys Child &#8211; Say My Name<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=16&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[</p>
<p><strong><a href="http://www.cs.virginia.edu/~robins/YouAndYourResearch.pdf">http://www.cs.virginia.edu/~robins/YouAndYourResearch.pdf</a></strong></p>
<p>Очень интересный текст. Вкратце: чуви задает каждому 3 вопроса</p>
<ul>
<li>Какие самые важные проблемы в твоей области?</li>
<li>Работаешь ли ты над одной из них?</li>
<li>Почему нет?</li>
</ul>
<p>Very inspiring :) Все, ушел работать над телепортационно-антигравитационной машиной времени :)</p>
<p><strong>Now playing:</strong> Destinys Child &#8211; Say My Name</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sanya.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sanya.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanya.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanya.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanya.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanya.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanya.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanya.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanya.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanya.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanya.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanya.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanya.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanya.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanya.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanya.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=16&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanya.wordpress.com/2006/04/25/richard-hamming-you-and-your-research/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/264c1b1e0ec240948d186f6a1dd64dd2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sanya</media:title>
		</media:content>
	</item>
		<item>
		<title>Как мы готовимся к экзаменам</title>
		<link>http://sanya.wordpress.com/2006/03/28/%d0%9a%d0%b0%d0%ba-%d0%bc%d1%8b-%d0%b3%d0%be%d1%82%d0%be%d0%b2%d0%b8%d0%bc%d1%81%d1%8f-%d0%ba-%d1%8d%d0%ba%d0%b7%d0%b0%d0%bc%d0%b5%d0%bd%d0%b0%d0%bc/</link>
		<comments>http://sanya.wordpress.com/2006/03/28/%d0%9a%d0%b0%d0%ba-%d0%bc%d1%8b-%d0%b3%d0%be%d1%82%d0%be%d0%b2%d0%b8%d0%bc%d1%81%d1%8f-%d0%ba-%d1%8d%d0%ba%d0%b7%d0%b0%d0%bc%d0%b5%d0%bd%d0%b0%d0%bc/#comments</comments>
		<pubDate>Tue, 28 Mar 2006 18:29:34 +0000</pubDate>
		<dc:creator>sanya</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[лытдыбр]]></category>

		<guid isPermaLink="false">http://sanya.wordpress.com/2006/03/28/%d0%9a%d0%b0%d0%ba-%d0%bc%d1%8b-%d0%b3%d0%be%d1%82%d0%be%d0%b2%d0%b8%d0%bc%d1%81%d1%8f-%d0%ba-%d1%8d%d0%ba%d0%b7%d0%b0%d0%bc%d0%b5%d0%bd%d0%b0%d0%bc/</guid>
		<description><![CDATA[На днях увидел старую статейку, которую уже когда-то давно просматривал. Суть: чувак написал compile-time вычисление синусов. Вещь это полезная, ибо например, если я напишу int a = 2+2*2, умный компилятор поймет, что это константа и я имел в виду int a = 6. Но если я напишу double x = sin(0), то он уже ничего [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=14&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>На днях увидел старую <a href="http://osl.iu.edu/%7Etveldhui/papers/Template-Metaprograms/meta-art.html">статейку</a>, которую уже когда-то давно просматривал. Суть: чувак написал compile-time вычисление синусов. Вещь это полезная, ибо например, если я напишу int a = 2+2*2, умный компилятор поймет, что это константа и я имел в виду int a = 6. Но если я напишу double x = sin(0), то он уже ничего понимать не будет, ибо синусам&nbsp;не обучен. Они&nbsp;для него&nbsp;это – нечто сидящее в . Потому – compile-time синусы вещь в хозяйстве полезная&nbsp;и неплохо бы, если с ними часто приходится работать, было обучить компилятор их понимать и вычислять.&nbsp;Естественно, это можно сделать через шаблоны, что чувак и делает. Затем, он утверждает, что написал massively inlined версию FFT server, которая работает аж в 3 (три!!!) раза быстрее обычной (что само по себе очень сомнительно). Вот его код:</p>
<blockquote><p>template<br />class Sine {<br />public:<br />&nbsp;&nbsp;&nbsp; static inline float sin()<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (I*2*M_PI/N) * SineSeries::accumulate();<br />&nbsp;&nbsp;&nbsp; }<br />};</p>
<p>
<p>// Compute J terms in the series expansion.&nbsp; K is the loop variable.<br />template<br />class SineSeries {<br />public:<br />&nbsp;&nbsp;&nbsp; enum { go = (K+1 != J) };</p>
<p>
<p>&nbsp;&nbsp;&nbsp; static inline float accumulate()<br />&nbsp;&nbsp;&nbsp; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 1-(I*2*M_PI/N)*(I*2*M_PI/N)/(2*K+2)/(2*K+3) *<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SineSeries::accumulate();<br />&nbsp;&nbsp;&nbsp; }<br />};</p>
<p>
<p>// Specialization to terminate loop<br />template <br />class SineSeries {<br />public:<br />&nbsp;&nbsp;&nbsp; static inline float accumulate()<br />&nbsp;&nbsp;&nbsp; { return 1; }<br />};</p>
</blockquote>
<p>Создавать template  … нельзя по понятным причинам (например,  и  одна специализация или разные?), потому параметр здесь передается в виде i*2pi/n. </p>
<p>
<p>Как вы можете видеть, синус здесь вычисляется через ряд&nbsp; sin x = x &#8211; x^3/3! + x^5/5! &#8211; x^7/7! + &#8230; В школе и институте меня всегда учили, что так считать синус очень-очень плохо. Собственно, чем такой способ плох можно увидеть вычислив не предложенные в статье Sine::sin(); а хотя бы Sine::sin(); Получим мы значение около 8.545132. Таким синус бывает только в военное время. Следовательно, надо либо увеличивать число членов в ряде (по дефолту оно 10), либо писать на темплейтах что-то типа (x mod 2*pi). Очутившись перед выбором, я конечно выбрал третий вариант. А именно: воспользовавшись школьной формулой </p>
<div align="center"><img src='http://s0.wp.com/latex.php?latex=sin%5C%2Cx+%3D+3sin%5Cfrac%7Bx%7D%7B3%7D+-+4%5Csin%5E3%5Cfrac%7Bx%7D%7B3%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0' alt='sin&#92;,x = 3sin&#92;frac{x}{3} - 4&#92;sin^3&#92;frac{x}{3}' title='sin&#92;,x = 3sin&#92;frac{x}{3} - 4&#92;sin^3&#92;frac{x}{3}' class='latex' /></div>
<p>и применяя ее рекурсивно, уменьшать аргумент синуса до тех пор, пока он не станет малым, например 0.1. А для таких малых значений sin(x) = x. Для того, чтобы это реализвать, мне понадобилось проверять условие в малости. Набрав в гугле “compile time if c++” я нашел <a href="http://wiki.hkgamedev.org/images/b/bc/Compile_time_sparse_vectors_in_C--.pdf">статью</a>, в которой показано как это делать. В принципе способ очень простой, мог бы и сам догадаться. В итоге получился следующий код: <br />
<blockquote>
<p>&nbsp;#define M_PI 3.141592<br />template <br />struct if_less {};</p>
<p>
<p>template <br />struct if_less //less than tolerance<br />{<br />&nbsp; template <br />&nbsp; static inline double st(void) { return (i*2*M_PI/n);}<br />};</p>
<p>
<p>template <br />struct if_less //greater than tolerance<br />{<br />&nbsp; template <br />&nbsp; static inline double st(void)<br />&nbsp; {<br />&nbsp;&nbsp;&nbsp; double s = sine_rec::calc();<br />&nbsp;&nbsp;&nbsp; return (3*s &#8211; 4*s*s*s);<br />&nbsp; }<br />};</p>
<p>template <br />struct sine_rec<br />{<br />&nbsp; static inline double calc()<br />&nbsp; {<br />&nbsp;&nbsp;&nbsp; return if_less::st();<br />&nbsp; }<br />};</p></blockquote>
<p>который делает все то же самое, но быстрее и надежнее :)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/sanya.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/sanya.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sanya.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sanya.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sanya.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sanya.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sanya.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sanya.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sanya.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sanya.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sanya.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sanya.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sanya.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sanya.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sanya.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sanya.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sanya.wordpress.com&amp;blog=165038&amp;post=14&amp;subd=sanya&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sanya.wordpress.com/2006/03/28/%d0%9a%d0%b0%d0%ba-%d0%bc%d1%8b-%d0%b3%d0%be%d1%82%d0%be%d0%b2%d0%b8%d0%bc%d1%81%d1%8f-%d0%ba-%d1%8d%d0%ba%d0%b7%d0%b0%d0%bc%d0%b5%d0%bd%d0%b0%d0%bc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/264c1b1e0ec240948d186f6a1dd64dd2?s=96&#38;d=identicon" medium="image">
			<media:title type="html">sanya</media:title>
		</media:content>
	</item>
	</channel>
</rss>
