<?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/"
	>

<channel>
	<title>Across The Blue Ocean</title>
	<atom:link href="http://www.neelsagar.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neelsagar.co.uk</link>
	<description>Music.Technology.Games.Maths.Economics.Life</description>
	<lastBuildDate>Sat, 04 Feb 2012 16:25:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Lines of best fit: how to derive the simple OLS estimators</title>
		<link>http://www.neelsagar.co.uk/simple-ols-estimators/</link>
		<comments>http://www.neelsagar.co.uk/simple-ols-estimators/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 14:49:59 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Economics]]></category>
		<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.neelsagar.co.uk/?p=1733</guid>
		<description><![CDATA[If you ever encounter some data in your life, you&#8217;re likely to come across a scatter diagram, which plots two variables against each other. You&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever encounter some data in your life, you&#8217;re likely to come across a scatter diagram, which plots two variables against each other. You&#8217;re also quite likely to see a &#8216;line of best fit&#8217; going through those points, which describes the apparent trend or correlation between the two variables, as suggested by the data points you&#8217;ve observed.</p>
<p>It&#8217;s quite possible that in your early school days, you had to draw a line of best fit through some data by eye, with a pencil and ruler. Not necessarily a bad way to do it, but it&#8217;s not going to be the <em>optimal</em> line every time (unless you&#8217;re extremely lucky). Of course, these days, you can just ask a computer program to do it for you &#8211; no doubt many of you have used the &#8216;add trendline&#8217; feature in MS Excel.</p>
<p>Depending on how advanced your mathematics/statistics education is, you may have drawn a &#8216;line of best fit&#8217; (or <strong>regression</strong> line) using a formula. This formula gives you an easy way of working out the exact slope and intercept of your regression line, given information about the data you&#8217;ve collected. But have you ever wondered why this works? Where does this magical formula come from?</p>
<h4>Some Terminology</h4>
<p style="text-align: center;"><a href="http://www.neelsagar.co.uk/simple-ols-estimators/ols3/" rel="attachment wp-att-1742"><img class="aligncenter  wp-image-1742" title="OLS3" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/OLS3.png" alt="" width="648" height="486" /></a></p>
<p>I cooked up a graph to help you understand some of the things that I&#8217;ll be talking about. Firstly, we call y the <strong>regressand</strong> (or dependent variable) and x the <strong>regressor</strong> (or independent variable). This means that given some value of x, we want to see how the value of y depends on it.</p>
<p>If it helps, you can give x and y names. For example, x could represent years of experience at knitting socks, and y could represent the overall quality of sock produced by a particular granny. Each point on the graph represents the experience and output quality information of a specific granny.</p>
<p>Here&#8217;s where it gets interesting. There must be some underlying true relationship between x and y (it could be that there is no relationship, but that still counts). We don&#8217;t know what that true relationship is, because we only have a sample of n data points. Or, we don&#8217;t know the real relationship between years of granny&#8217;s knitting and quality of sock, because we can&#8217;t track down every single granny in the world that knits. That true relationship could be linear, or it could be something far more complicated. However, suppose I have magical powers and actually know the true relationship in this instance. I&#8217;ve represented that with a <strong>blue</strong> line.</p>
<p>Of course, not every point lies on that line. This is because there are probably other factors which we can&#8217;t observe that cause a &#8216;disturbance&#8217; to the data. Your granny&#8217;s knitting ability may not only depend on years spent knitting, she may have had joint replacements that affect her motor skills or she may have inherited an instinctive genetic ability to perform a cross-stitch. Either way, the difference between the actual data observations and the true relationship is known as the <strong>disturbance</strong> (or error) term.</p>
<p>Let&#8217;s denote the disturbances of the true line as <strong>ε</strong>, the intercept (where it crosses the vertical axis) <strong>α</strong> and the slope of the line <strong>β</strong>. Then, for each observation i=1,2,&#8230;,n (or each granny), the true relationship between x and y is given by:</p>
<p><img class="aligncenter size-full wp-image-1771" title="latex-image-1" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-1.png" alt="" width="177" height="23" /></p>
<p>The equation of the true line is given by the first two terms on the right hand side. The disturbances are what takes us off the line and to a particular data point.</p>
<p>Now, as I said before, in reality, we wouldn&#8217;t know what the true relationship was. We wouldn&#8217;t know the &#8216;true line&#8217;, so we have to estimate it. This is what we call the &#8216;line of best fit&#8217; or regression line.</p>
<p>In the graph, the fitted line is in <strong>red</strong>. As you can see, the line is a bit different to the true line, but this is because we are working from a sample and don&#8217;t have all the data. The fitted line allows us to predict, on average, what we can expect y to be given an x value. In terms of grannies, our line tells us that for a granny with p years of knitting experience, we can predict that she will produce socks of quality q. The equation for our fitted line is:</p>
<p><img class="aligncenter size-full wp-image-1784" title="latex-image-2" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-2.png" alt="" width="131" height="29" /></p>
<p>The &#8216;hat&#8217; symbol on the letters means that they are <strong>estimates</strong> of the true values. Of course, if we wanted to get the <em>actual</em> data points, we&#8217;d have to move off the line. The distance that we move off the line is known as a <strong>residual</strong>. The residual is basically an estimate of the disturbance term, and so it&#8217;s not quite the same as the disturbance itself. So, to get the original value of y, we must add on our residuals to the fitted line for each observation i:</p>
<p><img class="aligncenter size-full wp-image-1787" title="latex-image-3" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-3.png" alt="" width="177" height="29" /></p>
<p>How can we draw a line that fits the data best? There are many ways of doing it, but the general idea is always the same. We want to try to draw the line so that we <em>minimise the distance</em> between our line and all the data points that we have. This, by definition, will be the line that best fits the data. The method we will use is the most common one, the method of <strong>least squares</strong>, invented by Gauss in the 18th century.</p>
<p>The idea is this: to get the line as close to all the data points as possible, we want to <em>minimise the residuals</em>. However, if we just add up the residuals, they&#8217;ll cancel each other out, because some will be positive (when the data point is above the fitted line) and others will be negative (when the point is below the fitted line). So we instead take the squares of the residuals and minimise the sum of them all. Nice neat idea.</p>
<p>In summary then, what we need are estimates for α and β such that the residual sum of squares (RSS) is minimised. All of a sudden, our problem has become a 2-variable optimisation problem, and so we can use calculus to solve it.</p>
<h4>Deriving the Ordinary Least Squares (OLS) Estimators</h4>
<p>The thing we want to minimise is the RSS, which is:</p>
<p><img class="aligncenter size-full wp-image-1794" title="latex-image-4" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-4.png" alt="" width="282" height="67" /></p>
<p>Here, I&#8217;ve just substituted for ε by rearranging the previous fitted equation. We can continue simplifying by explicitly squaring what&#8217;s inside the brackets:</p>
<p><img class="size-full wp-image-1799 aligncenter" title="latex-image-5" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-5.png" alt="" width="502" height="67" /></p>
<p><img class="wp-image-1818 aligncenter" title="latex-image-6" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-6.png" alt="" width="599" height="67" /></p>
<p>Note that to simplify, I&#8217;ve used some shorthand to represent the sample means of x and y:</p>
<p><img class="aligncenter size-full wp-image-1823" title="latex-image-7" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-7.png" alt="" width="221" height="81" /></p>
<p>To minimise the expression for RSS that we&#8217;ve obtained, we partially differentiate with respect to the variables we want to get optimal values for:</p>
<p><img class="size-full wp-image-1828 aligncenter" title="latex-image-8" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-8.png" alt="" width="419" height="51" /></p>
<p><img class="size-full wp-image-1834 aligncenter" title="latex-image-8b" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-10.png" alt="" width="528" height="67" /></p>
<p>The first simplifies nicely to give us the expression for the OLS estimator of α:</p>
<p><img class="aligncenter size-full wp-image-1831" title="latex-image-9" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-9.png" alt="" width="116" height="29" />The second requires a little more fiddling:</p>
<p><img class="aligncenter size-full wp-image-1849" title="latex-image-11" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-11.png" alt="" width="265" height="67" />Substituting for α:</p>
<p><img class="aligncenter size-full wp-image-1852" title="latex-image-12" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-12.png" alt="" width="339" height="67" />Rearranging:</p>
<p><img class="aligncenter size-full wp-image-1853" title="latex-image-13" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-13.png" alt="" width="196" height="115" />Or equivalently (and a bit more neatly):</p>
<p><img class="aligncenter size-full wp-image-1856" title="latex-image-14" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/02/latex-image-14.png" alt="" width="244" height="115" />And so, we&#8217;re done! We now have the OLS estimators for the case where there is one regressor. This analysis can be extended to allow for any number of regressors with the use of vectors and matrices, but I won&#8217;t go into this here since I think we&#8217;ve done enough for one day. Happy line drawing!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/simple-ols-estimators/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The irrationality of √2: a proof</title>
		<link>http://www.neelsagar.co.uk/the-irrationality-of-%e2%88%9a2-a-proof/</link>
		<comments>http://www.neelsagar.co.uk/the-irrationality-of-%e2%88%9a2-a-proof/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 17:51:02 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://www.neelsagar.co.uk/?p=1698</guid>
		<description><![CDATA[My favourite bits of maths are related to pure number theory. It&#8217;s the stuff that we owe the Ancient Greeks a whole lot to. A [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.neelsagar.co.uk/the-irrationality-of-%e2%88%9a2-a-proof/sqrt2/" rel="attachment wp-att-1708"><img class="alignright size-medium wp-image-1708" title="sqrt2" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/01/sqrt2-300x260.png" alt="" width="300" height="260" /></a>My favourite bits of maths are related to pure number theory. It&#8217;s the stuff that we owe the Ancient Greeks a whole lot to. A lot of the things they came up with form the cornerstone of mathematical theory today.</p>
<p>The Greeks were obsessed with the beauty of numbers. They liked everything to work out nice and neat, and this meant that their proofs and theorems were very elegant on the outside (though they incorporated a lot of imaginative and abstract thinking behind the scenes).</p>
<p>Unfortunately, this meant that they got a little irritated when things <em>didn&#8217;t</em> work out so nicely. One such instance came down to Pythagoras when, after championing his theorem about the sides of a right-angled triangle, he came across a problem in trying to work out the length of the hypotenuse when the other two sides were of length 1. That problem was √2. &#8216;Haha&#8217;, I thought, when I first heard that story many years ago. &#8216;Stupid Pythagoras&#8217;. Yet, the puzzle was not an easy one to solve.</p>
<p>Of course, you probably know that √2 is an irrational number, because this would have been something that you were told. This means that you cannot express it as a nice fraction, and, as a result, writing it out as a decimal number is also futile because it will go on forever.</p>
<p>However, to actually <em>show</em> that it is impossible to write out √2 explicitly is easier said than done. When I thought of it as being a nice proof to look at, it turned out to be a lot more difficult to crack than I expected! The proof emphasises the beauty of number theory, and will hopefully also make the point that there&#8217;s a lot more going on behind the things we take for granted than it may seem.</p>
<h5>The Hard Bit</h5>
<p>There is a preliminary proof that I need to do in order to prove that √2 is irrational. I&#8217;ll try to take this slow, because conceptually, it is not so easy.</p>
<p>I need to show that:</p>
<p style="text-align: center;"><strong>For any positive integers p and q, we have that p<sup>2</sup> ≠ 2q<sup>2</sup></strong></p>
<p>Eh? &#8216;Why should this be the case?&#8217; you say. Good question. It&#8217;s not obvious, which is why we want to prove it. Try putting in some numbers for p. 3<sup>2</sup> = 9 but  9/2 = 4.5 which we cannot obtain by squaring a number. 4<sup>2</sup> = 16, 16/2 = 8 and 8 is not a square number either. Try this with more numbers if you want. Eventually, you might resign yourself to the fact that it probably cannot be done.</p>
<p>To prove this, we are going to assume that it <em>is</em> true first of all. In other words:</p>
<p style="text-align: center;"><strong>Suppose p<sup>2</sup> = 2q<sup>2</sup> for some positive integers p and q</strong></p>
<p>If this is true, then it means that <strong>p<sup>2</sup> is even</strong> (because it is a multiple of 2). But if p<sup>2</sup> is even, then it means that <strong>p must also be even</strong>. It is quite easy to prove that squaring an odd number will always give you an odd number, so I won&#8217;t do this here (although if anyone is having trouble with this then leave a comment).</p>
<p>Let&#8217;s call the <em>smallest value of p</em> such that the above relationship is satisfied <strong>P</strong>. So, for this P, we have that:</p>
<p style="text-align: center;"><strong>P<sup>2</sup> = 2Q<sup>2</sup></strong></p>
<p>for some positive integer Q.</p>
<p>P is even, as we know that all values of p are even. Therefore, since even numbers are just multiples of 2, we can write:</p>
<p style="text-align: center;"><strong>P = 2M</strong></p>
<p>for some positive integer M.</p>
<p>Now we can substitute in for P in the original expression, so that:</p>
<p style="text-align: center;"><strong>(2M)<sup>2</sup> = 2Q<sup>2</sup></strong></p>
<p style="text-align: center;"><strong>4M<sup>2</sup> = 2Q<sup>2</sup></strong></p>
<p style="text-align: center;"><strong>2M<sup>2</sup> = Q<sup>2</sup></strong></p>
<p>Can you see what this tells us about Q? Well, Q<sup>2</sup> is a multiple of 2, so Q<sup>2</sup> must be even. And from what I said before, if Q<sup>2</sup> is even, then <strong>Q must also be even</strong>. So, just like we did with P, we can write Q in terms of some positive integer N:</p>
<p style="text-align: center;"><strong>Q = 2N</strong></p>
<p>Now, we can substitute that into the previous expression involving M and Q:</p>
<p style="text-align: center;"><strong>2M<sup>2</sup> = (2N)<sup>2</sup></strong></p>
<p style="text-align: center;"><strong>2M<sup>2</sup> = 4N<sup>2</sup></strong></p>
<p style="text-align: center;"><strong>M<sup>2</sup> = 2N<sup>2</sup></strong></p>
<p>Want to guess what&#8217;s coming next? M<sup>2</sup> is a multiple of 2, so M<sup>2</sup> is even, and therefore <strong>M is also even</strong>! Does this expression look familiar? The relationship between M and N is <em>exactly the same</em> as the relationship between P and Q.</p>
<p>This means that M is another possible value for p. But what is M? Let&#8217;s look back up our equations. We defined M such that P = 2M. Hence:</p>
<p style="text-align: center;"><strong>P &gt; M</strong></p>
<p style="text-align: left;">Uh oh! We have a contradiction! We defined P as the smallest possible value of p. But M is also a possible value of p, and M is smaller than P. So P cannot be the smallest possible value of p!</p>
<p style="text-align: left;">If we use this argument recursively, it will go on forever. This means that <em>there is no smallest value of p</em> because we can always find one smaller. But if you have a set of numbers, there has to be a smallest one&#8230; unless the set is empty! Therefore, we have just shown that the set of numbers that satisfies <strong>p<sup>2</sup> = 2q<sup>2</sup></strong> is empty. In other words, this relationship is impossible to satisfy!</p>
<h5 style="text-align: left;">The Easy Bit</h5>
<p style="text-align: left;">That was probably a bit difficult to get your head around (if not, then you should take up mathematics at a high level if you aren&#8217;t doing so already!). Now, we can prove that √2 is irrational, and this is actually quite easy in comparison.</p>
<p style="text-align: left;">A rational number is one we can write as a fraction p/q for some integers p and q. Of course, since √2 is positive, p and q must also be positive. So what we want to prove is that:</p>
<p style="text-align: center;"><strong>There exist <em>no positive integers p and q</em> such that √2 = p/q</strong></p>
<p>As we did with the previous proof, the way to approach this is by contradiction.</p>
<p style="text-align: center;"><strong>Suppose there exist some positive integers p and q such that √2 = p/q</strong></p>
<p style="text-align: left;">Squaring both sides gives us:</p>
<p style="text-align: center;"><strong>2 = (p/q)<sup>2</sup></strong></p>
<p style="text-align: center;"><strong>2 = p<sup><strong>2</strong></sup>/q<sup>2</sup></strong></p>
<p style="text-align: center;"><strong>2<strong>q<sup>2</sup></strong> = p<sup><strong>2</strong></sup></strong></p>
<p>Aha! We have proved earlier that there cannot exist positive integers p and q such that this equality is satisfied. Therefore we have a contradiction. Hence, our assertion that √2 = p/q <strong>must be false</strong>. Of course, this means that √2 is not a rational number. Thus, √2 is an irrational number!</p>
<p>And with that, we&#8217;ve opened up a whole new realm of numbers &#8211; ones that we need to use but that we can&#8217;t write out explicitly. Isn&#8217;t maths exciting?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/the-irrationality-of-%e2%88%9a2-a-proof/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iWeb is dead. Long live WordPress!</title>
		<link>http://www.neelsagar.co.uk/iweb-is-dead-long-live-wordpress/</link>
		<comments>http://www.neelsagar.co.uk/iweb-is-dead-long-live-wordpress/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 16:15:54 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.neelsagar.co.uk/?p=1651</guid>
		<description><![CDATA[It seems that Apple have all but killed off their iLife website creation application iWeb. The last ‘real’ version was to be found in iLife [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that Apple have all but killed off their iLife website creation application iWeb. The last ‘real’ version was to be found in iLife ’09 about 3 years ago. Although there was an iWeb ’11, the actual application was practically the same version as the one they released two years prior to it. With the announcement of iCloud and the simultaneous death of Apple’s online storage and hosting platform MobileMe (something which even Steve Jobs admitted was a bit of a failure), it seemed pretty clear that iWeb – which was designed to tie in heavily with MobileMe – would meet its demise.</p>
<h4>The Problem with iWeb</h4>
<p>iWeb was actually one of the reasons that I was able to start this website with very limited prior knowledge of web design. I liked it. It’s very unintimidating for the newcomer, and that’s clearly what Apple were going for. I’m much happier and more comfortable when I can see how everything is going to look and how everything connects visually. I also like making little tweaks on the fly. For this iWeb was much more accessible to me than, say, something like Dreamweaver. It’s effectively a website-oriented version of PowerPoint, or a desktop publishing program.</p>
<div id="attachment_1654" class="wp-caption aligncenter" style="width: 513px"><img class="size-full wp-image-1654" title="iweb screen" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/01/iweb-screen.jpg" alt="" width="503" height="555" /><p class="wp-caption-text">Pretty on the outside. Horrible under the hood.</p></div>
<p>However, quite early on, I spotted a few very strange behaviours when I tried to create content. iWeb likes to give you the freedom to do anything. “How wonderful! Why can’t I do that with practically any other website design application?” I thought to myself. Turns out there’s a reason why you can’t.</p>
<p>Firstly, I was using some very cool fonts for parts of my site. Indeed, the in-built theme I started out with used Futura for pretty much everything. Unfortunately, this is <em>not</em> a web-safe font (and most non-Mac users wouldn’t have the font on their system anyway). Luckily, I changed this quickly, but I was rather confused as to why there was not a restriction put in place regarding font selection. What was even worse is that I started putting drop shadows on titles, and that screws things up to the point where text is saved as an image file! My first site creation attempt was a slow and buggy mess – and that was before I tried viewing it on Internet Explorer 6!</p>
<p>Secondly, the impression I got that I could drag and drop anything anywhere was misleading. Once the site was published, I ended up with shapes being split up and scattered across the page, and images overlapping text instead of the text wrapping around it.</p>
<p>Both these cases are examples of the wool iWeb puts over your eyes with regard to how web pages actually function. Because web pages are designed in terms of style sheets and frames, manual placement of individual elements wherever you want for each individual page should not be possible without some horrible and inefficient coding. And horrible and inefficient it all was.</p>
<p>iWeb treats each page as an individual – not as part of a template that runs throughout your site. This means that to create new pages in a unified style, you had to keep duplicating pages. This wasn’t much effort in itself, but because iWeb treats each page as unique, even if it is following exactly the same style as all your other pages, it means that common elements are stored and loaded separately for each page.</p>
<p>As an example of how silly this is, consider my signature image in the header of this page. It appears in every page (and in the same place) so the smart thing would be to remember this positioning and have one copy of the image on the server. Then, that image could be referenced for each page load. Because it is the same image, your browser wouldn’t have to keep reloading it, as it would be stored in your local cache. Instead of this process (which is what happens now), iWeb would save a new copy of that header image for <strong>each and every page</strong> I had on my website! This means that every time you navigated to a new page in my site, it would have to pull out the same image but from a different location. As far as your browser knows, this is a completely separate image, so it has to fully load it each time! This happened <em>for every single image element in my pages</em>, meaning that my site was horribly slow to load and used up far more storage space than it should have.</p>
<p>Finally, iWeb was designed to tie in closely with MobileMe. It meant that Apple wanted you to pay an extortionate yearly subscription fee for hosting your site. In return for this, your site would function with all the bells and whistles that they intended. I had no intention of doing this, of course, so I had to sacrifice automatic FTP updating and things like an inbuilt commenting system – something that is practically essential in a blog-based site.</p>
<h4>Alternatives to iWeb</h4>
<p>I stuck with iWeb for a long time for a few reasons. Firstly, I’d reached a steady state where I’d learnt how to get what I wanted out of the program by invading it a little. I discovered the deeply buried theme files and edited them to my liking. I’d learnt what fonts to use and how to avoid putting things in my pages that would create major slow-downs. The limitations and inefficiencies were frustrating, but I somehow hoped that some of these issues would be addressed even slightly in future program updates. Once I heard that iWeb was pretty much dead, and that there was therefore no potential for improvement, I thought it would be a wise time to ditch it altogether. I knew the process would be painful initially, but I was looking forward to having a much cleaner and more functional website.</p>
<p>Hence, I started looking at some alternatives. I wanted something that would allow me to create and maintain a site with dynamic content easily, which meant something with a large visual editing component. However, with the knowledge I’d amassed over time regarding web design, I was less afraid of dabbling with a little code if necessary.</p>
<h5>Desktop Based Applications</h5>
<p>Naturally, the first applications I tried to look for were direct iWeb equivalents. I tried a few of them out to see how easy it would be to customise my site to my liking, and what sorts of new things I’d be able to do (as well as the obvious issue of how easy it would be to transfer over a whole other website).</p>
<h6>RapidWeaver</h6>
<p>This was the first application I found when searching for an ‘iWeb killer’ and it’s one that I’ve come across in the past. It is less of a WYSIWYG experience compared to iWeb, but one that allows your end product to be more standards compliant. However, I found it to be way too fiddly to get things looking right. Whilst there are a lot of customisation options, you are still bound to built-in themes. These can be edited in a similar way to iWeb’s themes – via the back end. However, this usually involves editing chunks of code, which can become tricky and unintuitive.</p>
<p>Failing this, there are a lot of ‘plugins’ that can be downloaded for RapidWeaver that allow you to add tables and frames to your page. However, I found it strange and silly that many of these things aren’t built into the application itself. As an example, without the ‘Stacks’ plugin, there is no easy way of arranging your page into columns or framed segments. This wouldn’t necessarily be a problem on its own, but <strong>everything </strong>that even marginally improves RapidWeaver’s functionality must be paid for. This includes themes. Just to recreate my iWeb site on RapidWeaver, I would probably have had to spend in excess of $100. iWeb, whilst unwieldy, at least did it all for free.</p>
<div id="attachment_1679" class="wp-caption aligncenter" style="width: 531px"><a href="http://www.neelsagar.co.uk/iweb-is-dead-long-live-wordpress/rapidweaver-plugins-2/" rel="attachment wp-att-1679"><img class="size-full wp-image-1679" title="rapidweaver plugins" src="http://www.neelsagar.co.uk/wp-content/uploads/2012/01/rapidweaver-plugins1.jpg" alt="" width="521" height="489" /></a><p class="wp-caption-text">Yup, time to empty your wallet.</p></div>
<h6>Sandvox</h6>
<p>Put simply, Sandvox is ‘iWeb Plus’. It’s pretty much exactly like iWeb, but with a few more features. It also generates cleaner code. For someone familiar with iWeb, it was instantly usable. However, I came across niggles in designing pages that were somewhat similar to RapidWeaver. Still, I liked the application, but I never really felt like it was much of a step up from iWeb, and there wouldn’t have been much point in expending the effort of migrating my site to practically the same program. It would have been like moving from solitary confinement to solitary confinement in a room that was a couple of square metres larger. Sandvox doesn’t really give you very many possibilities of expansion beyond the iWeb experience, and is certainly less advanced than RapidWeaver.</p>
<h6>Goldfish and Freeway Pro</h6>
<p>These applications gave me a much more desktop publisher-like experience than the former two. This was nice, as it appeared to give me more flexibility. However, I found that the freedom was actually a bit too great. I felt like I was designing isolated sheets of A4 rather than a contiguous, flowing web page. These tools were probably not designed for dynamic content such as blogs, and so it seemed like I could only really create a blog by creating individual static pages and manually linking pages together. This was actually a step down from iWeb in terms of functionality (though the page generation may well have been cleaner)!</p>
<h5>Remote Solutions</h5>
<p>RapidWeaver seemed to be the best option as far as the desktop clients were concerned, but I still wasn’t prepared to put my faith in it entirely. As I had pretty much exhausted the list of programs that I was after, my next step was to look at content management systems that were remotely stored and edited, rather than locally on my computer. I never really liked the idea of online editing, but there&#8217;s no harm in giving these solutions a try.</p>
<h6>Blogger, WordPress.com, Tumblr etc.</h6>
<p>I’ll give a brief mention to these ‘ready-made’ blogging infrastructures. I considered them when I first created this website, but discounted them almost immediately because I didn’t like the lack of control I was afforded. I would be lumped in with millions of other users with no real means of differentiation or sense of identity. A blog, which to me is a form of expression, becomes redundant when you surrender the extent to which you can express yourself. This is the reason why I still look down upon these platforms, and why I wasn’t going to consider using them this time either.</p>
<h6>WordPress</h6>
<p>I’d mucked about with WordPress in the past, and although I liked it, this was at a time when I was less comfortable at fixing and playing around with code directly to get what I wanted. At the time, WordPress was on version 2, and quite a bit less intuitive than it is now. (Note that WordPress is a content management system that is found on WordPress.org, but WordPress.com is a closed version of WordPress that is designed to function as a fixed, ‘ready-made’ blogging tool like Blogger)</p>
<p>Once I tried it again, I knew it was the right direction for my site. It is completely flexible, as you are directly in touch with the source files right from the get go. At the very least, you need to understand how everything pieces together so that you know where to look if something goes wrong, or if you want to change anything. The great thing about this is that it forced me to get my hands dirty and play around with code. By doing this, you get a real sense of the things you should and shouldn’t do when designing your site.</p>
<p>Like RapidWeaver, WordPress relies on themes and plugins. However, because WordPress is open-source, there is a huge support base for all related things on the internet, and almost every add-on or bit of code is freely available. Once you get more proficient at PHP and CSS editing, the only real limit to the things you can do is your knowledge of the code and your imagination. This is the kind of open-ended potential I was after. If you visited the old site, hopefully you’ll appreciate the difference!</p>
<p>Drupal and Joomla seem to be the two main contenders to WordPress’ online content management system throne. I haven’t really looked into these two enough to be able to comment on them, but I do feel that these types of open-source, remote packages represent the best option for those looking to make an individual and powerful website that is very easy to maintain and update with rich content.</p>
<h4>What next for Apple and website creation?</h4>
<p>One word – iCloud. Apple announced this as the replacement to MobileMe a few months ago, and it was this that effectively signalled the end of the road for iWeb. As I’ve discussed earlier, iWeb really creates horrible websites from a usability standpoint, and this goes quite against Apple’s own ‘clean yet functional’ design philosophy. Although you’ll still be able to use iWeb to create your own sites as long as you have the application on your Mac, the fact that Apple have stopped including it in new Macs with the release of OS X Lion suggests that they really want you to stop using it, and won’t really offer any support to people who run into problems with it.</p>
<p>One option is for Apple to call it a day when it comes to web/blog designing tools. They may just accept that there are enough good alternatives out there for them not to get involved. But does that really sound like Apple to you? After all, if anybody is capable of consolidating available technologies into a neat and elegant package, it’s Apple.</p>
<p>With iCloud, I think Apple may well go the way of self-contained blogging hosts like Tumblr and Blogger. By ditching the application-based method of content creation, they can make sure that everything runs optimally and smoothly within their own environment. This includes things like proper indexing, search engine optimisation and so on. With no software on the user end, it makes it easier for Apple to keep themselves up-to-date, and also gives them the degree of control that they desire over how people should and shouldn’t go about doing things.</p>
<p>Apart from the fact that they are easily capable of creating something that looks and feels a lot more polished than something like Blogger, the other big draw to a platform created by Apple is down to the fact that so many people are already part of the iTunes infrastructure as a result of the iPod, iPhone and iPad. Because of this, and because of the syncing features that Apple are planning to offer with iCloud, they can allow you to access this repository of data to add dynamic content to your website. For example, people could have their top 10 most played songs on iTunes listed on their front page, and this list would be dynamic as it would pull data from your desktop and mobile versions of iTunes. It would allow you to put a map with a live geolocation flag indicating your position via your iPhone. It would allow you to post new content easily from any iDevice. It could pull up your current availability from iCal and the calendar on your iDevice.</p>
<p>Yes, all of this technology is currently available, but it will be much easier to implement successfully if everyone is already part of the shared information infrastructure – which is certainly the case with iTunes.</p>
<p>All I can say is – watch this space. If this is the direction that Apple choose to go in, then it could even give social networking sites like Twitter a run for their money. Whilst I’m happy with my decision to switch to WordPress, I’m also interested (as always) to see how the future of content creation will unfold.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/iweb-is-dead-long-live-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What’s going on with consumption?</title>
		<link>http://www.neelsagar.co.uk/whats-going-on-with-consumption/</link>
		<comments>http://www.neelsagar.co.uk/whats-going-on-with-consumption/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 15:26:25 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Economics]]></category>

		<guid isPermaLink="false">http://db239e0c-5544-4207-a776-350396d1aa4c</guid>
		<description><![CDATA[I was blown away by BBC’s article on the top economic graphs of 2011 for the UK: http://www.bbc.co.uk/news/in-pictures-16090055 Not only do they paint a very [...]]]></description>
			<content:encoded><![CDATA[<p>I was blown away by BBC’s article on the top economic graphs of 2011 for the UK: <a href="http://www.bbc.co.uk/news/in-pictures-16090055">http://www.bbc.co.uk/news/in-pictures-16090055</a></p>
<p>Not only do they paint a very interesting picture, I think they do a good job of summarising the headaches (and also some excitement through curiosity) that economists have been experiencing in the last couple of years.</p>
<p>There were two graphs that caught my eye in particular. The first one, looks at debt in the UK from private institutions and households, and compares this to public debt.</p>
<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/12/bbc-graph-1.jpg"><img class="aligncenter size-full wp-image-611" title="bbc graph 1" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/12/bbc-graph-1.jpg" alt="" width="600" height="400" /></a></p>
<p>There are 3 obvious facts we can get from this graph at first glance. Since the global financial crisis:</p>
<ol>
<li>Companies and households in the UK have massively increased savings (and most of this seems to have come from households).</li>
<li>The government has massively increased debt, almost to an equal magnitude as the private savings increase.</li>
<li>The underlying trend of a small financial surplus seems to have remained stationary for the rest of the world.</li>
</ol>
<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/12/bbc-graph-2.jpg"><img class="aligncenter size-full wp-image-610" title="bbc graph 2" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/12/bbc-graph-2.jpg" alt="" width="600" height="386" /></a></p>
<p>The second graph is a little simpler. It shows that real income in the UK has dipped a little since the crisis, but the overall trend, whilst flattening slightly, doesn’t appear to have been affected hugely. The big message here though, is that consumption has plunged since 2008, and has remained low since 2009. It is now well below real income, where it was previously roughly in line with it.</p>
<h5>Why is this significant?</h5>
<p>Well, the other bit of information missing here is the Bank of England’s interest rate. Interest rates have been at an historic low of 0.5% since March 2009 (see graph below). According to standard consumer theory, a lower interest rate reduces the yield we get on our savings, whilst simultaneously decreasing the cost of borrowing. So, one would expect that following such a dramatic reduction in interest rates, consumption would have risen (or at least not fallen as much). Indeed, there was a small recovery during 2009, but that seems to have worn off.</p>
<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/03/500px-UK_interest_rates_May_1997_to_present_.jpg"><img class="aligncenter size-full wp-image-537" title="UK_interest_rates,_May_1997_to_2011" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/03/500px-UK_interest_rates_May_1997_to_present_.jpg" alt="" width="416" height="244" /></a></p>
<div id="id6">
<div>
<div>
<p>Okay, well, suppose we argue that interest rates had their effect and they aren’t much use in increasing consumption. The second key thing that consumer theory teaches us is that an increase in government spending is likely to increase consumption. But the first graph shows the complete contradiction to this conjecture &#8211; namely government debt has increased, but consumption has fallen and saving has increased instead.</p>
<p>So what’s going on? There are obviously a lot of forces involved in consumption so it would be impossible to identify and go through every possible reason for these events. However, I have a strong belief that the best way to explain things is by looking at the individual level to see how people’s behaviour shapes what happens in an economy. In light of this, I want to identify 3 factors in particular that I think have a big part to play in explaining this seemingly strange consumption scenario.</p>
<h5>Lots of interest rates</h5>
<p>This is an important argument from the monetary economist’s point of view. After all, what is  the Bank of England’s interest rate actually for? When you go to the bank to check out a loan or savings account, interest rates can and do fluctuate when the central bank (CB) changes their rate. But how much do the rates the banks give out correspond to the base rate? Take a look next time. The answer is ‘not necessarily that much’.</p>
<p>Loosely speaking, the Bank of England’s rates are the rates at which commercial banks borrow. But banks need to make a profit, so when they lend you money, the interest rate will be higher than what they borrowed at. Similarly, when you save with them, you may not always get a rate which is as high as the CB rate. The difference is largely dependent on competitiveness and the profits the banks are looking to make.</p>
<p>For example, suppose the CB rate is 3% and so your local bank is charging 4% on a loan. If the CB rate was cut to 0.5% (like it is now), your bank might ordinarily cut interest rates to 1.5% on your loan if it wants to maintain a constant differential. However, if the banks think ‘screw it, we need to make more money’, which is likely given the fact that the banking system has been in tatters the past few years, they may well keep lending rates at 4% and absorb the extra profit.</p>
<p>What this means overall is that the CB’s interest rate might not have as large an impact on the interest rates seen by the average consumer when they go to get a loan or open a savings account. This is especially likely to be the case at a time when bank behaviour is not following a regular pattern. This might be one possible reason for consumption falling and remaining low despite historically low interest rates.</p>
<h5>Uncertainty</h5>
<p>Whilst the previous reason is an important one, the issue of uncertainty provides, to me, a much more powerful explanation. This is because it delves into the psyche a little more.</p>
<p>Most people are risk averse. This means that wherever possible, you’d like to take away as much risk and uncertainty from your life as possible. Think about it. It’s pretty unlikely that you will spontaneously combust whilst on holiday, or that your house will be blown away by a hurricane (thought this depends on where you live), but most people would rather insure against these events just in case. If I were to offer you a job for a year that had 2 salary options:</p>
<ol>
<li value="1">You get £30,000</li>
<li value="2">I flip a coin and you get £0 if it comes up heads, but you get £100,000 if it comes up tails</li>
</ol>
<p>then I’m pretty sure you’re unlikely to pick the second one because although it is the better option mathematically, the prospect of you earning nothing for an entire year’s work is probably too risky (unless you’re particularly sadistic) for you to even consider.</p>
<p>In light of this, the one thing that the crisis has done for the average person more than anything else is spread FUD (fear, uncertainty and doubt) about everything from their job to their house. I would argue that the media has blown things out of proportion and scared people more than they ought to be to an extent, but the fear is there regardless. Certainly, high unemployment levels of late should be a cause for concern if nothing else.</p>
<p>Economists such as Chris Carroll have argued that people hold a ‘Buffer Stock’ of savings in light of this uncertainty. It has been shown that farmers and others who work in jobs with an uncertain level of income tend to have higher than average savings rates. Now that fear over income has become more widespread, a lot of people think that their long term (permanent) income might fall. This means that people are likely to increase their savings and cut consumption, fearing that ever-looming ‘rainy day’. This behaviour is likely to be much more deep rooted than the transitory effect of an interest rate change, and so might explain the unresponsiveness of consumption to CB rates.</p>
<h5>Irrationality, Behavioural Economics and un-classical motives</h5>
<p>And so we move on to my favourite area &#8211; behaviour. I think a lot of the classical theory that has defined and been embedded in economics, whilst useful, falls flat on its face when we consider that people are not exemplars of rationality in general. (This is a sensitive issue in academic economics and my view will probably earn me the wrath of old-school economists, but at least you can’t say that academia is boring now&#8230;)</p>
<p>It’s important to note that by irrational, I don’t mean ‘stupid’. I mean that people tend to do things like take revenge on other people even when it harms themselves because it gives them satisfaction to do so. I mean that people reward fairness and sharing in experiments rather than selfishly take all the money even when they have the opportunity to do so. I mean that people consistently disprove the fact that we are all out to maximise income by taking jobs that pay much less than they are able to get elsewhere in favour of ‘job satisfaction’, among other psychological factors.</p>
<p>Certainly, uncertainty and fear play into behaviour, and the two are intrinsically linked. However, consider everything that has been made out of the importance of reducing debt in the last year or so. Before the crisis, consumption had been historically pretty high. It is likely that a lot of people had borrowed to finance that consumption. Now, with the added uncertainty, the psychological effect on the individual is likely to be that they should focus on eliminating debt and saving more, even when it might not be financially optimal to do so. In this way, I think that on an individual level, people pay much less attention to interest rates in making consumption decisions than might be suggested by classical theory (although it is true that changes in interest rates are known to have only temporary macroeconomic effects).</p>
<p>The uncertainty is also likely to make people more patient. Although there is a desire for people to smooth their consumption over time as classical theory predicts, they tend to respond to temporary shocks in income with immediate changes in consumption. Suppose you got a one-off £500 bonus for Christmas. It’s a temporary change to your income. It doesn’t make you significantly richer in the long run. The theory suggests that you shouldn’t really change your spending habit over Christmas at all. But I’m sure that you would splash out on something with the bonus. The data also suggests that this is what most people would do. This is partly linked to the idea of ‘present bias’. People generally like to have things sooner rather than later, although the degree of bias depends on the individual. Hence, if patience has increased as a result of the crisis, then people would be more conservative with small increases in income and not spend it all at once.</p>
<p>If income falls a little, then more patient people would also not change their spending behaviour much. But the data suggests that people reduced their consumption whether incomes temporarily increased or decreased. What this suggests to me is that there might be an aspect of ‘loss aversion’ embedded in here. Because of the uncertainty in income, you’d expect more saving and less consumption. If patience increased, it might mean that people didn’t change their behaviour much&#8230; but because people are intrinsically pretty scared of losing money, even temporarily, the ‘safe’ option is just to keep consumption low and save more (bringing us back to the Buffer Stock idea) rather than keep it constant even in the face of temporary losses.</p>
<p>There are plenty of other theories we could concoct using behaviour as a basis. There’s the ‘people are sheep’ idea, where people copy their friends and family in terms of making financial decisions. Some people saving might make others save too. I think this is always a factor in behaviour, but considering everyone is in a slightly different situation, I’m not sure that high saving is quite akin to lemmings following each other off a cliff.</p>
<p>How about stress? People’s lives are under a lot of strain when they’re worrying about their job and the value of their house. It is possible that people have realised that the added worry that results from our consumer-oriented lifestyle is not worth the added stress it brings in terms of commitments and obligations. There has been a lot of emphasis on happiness over GDP in recent years. People may be coming to terms with the fact that there are things which make them happy that don’t require money: being with someone special or family, taking a long walk in nice surroundings, visiting the library to catch up on some reading, and so on.</p>
<p>A recent related idea, put forward in Dan Ariely’s book ‘The Upside of Irrationality’, is how ‘breaking up’ good experiences seems to increase average happiness, whereas indulging in a lot of good things at once means that we adapt to them after a while, such that they no longer become novel and stop bringing us the buzz that we first experienced. Maybe people are just cottoning on to the fact that there is more to life than extravagant consumption, and that consumption levels aren’t just low for the short haul. This, I accept, is a little idealistic, but I think the fact remains that there is more to be said about the motives of humans than simple material gain.</p>
<h5>Conclusion</h5>
<p>I’ve just touched on some ideas here to get you thinking more deeply about what is going on beneath the surface of the superficial news stories that you are likely to come across.</p>
<p>From a policy perspective, it’s pretty difficult to gauge what to do given that the issues are so complex. I think the main points to take from this are that:</p>
<ul>
<li>It’s important to people to know what will happen in the future, and whatever we can do to ensure stability, we should do. This is something that economists and governments are all too aware of, but it’s something that should nevertheless be stressed.</li>
<li>We, as a society, should devote more time and energy to find out what really makes people tick. This means lots of hard thinking, but also the potential for lots of fun discoveries and experiments.</li>
<li>We also then need to figure out how best to target individual behaviour. Large scale decisions like cutting interest rates by a little are unlikely to get John Smith to do much above and beyond what he was already planning to do in line with his own motives.</li>
</ul>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/whats-going-on-with-consumption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Dramatic Turn of Events&#8230; or merely melodrama?</title>
		<link>http://www.neelsagar.co.uk/a-dramatic-turn-of-events-or-merely-melodrama/</link>
		<comments>http://www.neelsagar.co.uk/a-dramatic-turn-of-events-or-merely-melodrama/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 14:33:12 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Review]]></category>

		<guid isPermaLink="false">http://0c515d3c-3eec-49fb-96f3-b9ba9f237fd0</guid>
		<description><![CDATA[If there’s one thing Dream Theater has as a band, it’s resilience. Still going after 25 years despite numerous setbacks and a few notable member [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/11/Dream-Theater-A-Dramatic-Turn-Of-Events.jpg"><img class="alignright size-full wp-image-604" title="Dream-Theater-A-Dramatic-Turn-Of-Events" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/11/Dream-Theater-A-Dramatic-Turn-Of-Events.jpg" alt="" width="259" height="259" /></a>If there’s one thing Dream Theater has as a band, it’s resilience. Still going after 25 years despite numerous setbacks and a few notable member changes. <em>A Dramatic Turn of Events</em> sees them sticking to the ‘new album every 2 years’ formula &#8211; a formula that turned drummer Mike Portnoy away a year ago after being instrumental (forgive the pun) to Dream Theater’s inception and musical direction. Now, with new drummer Mike Mangini picking up the sticks, how does their latest offering fare?</p>
<h5>Mike vs Mike</h5>
<p>It’s pretty difficult to think about the album without taking a close look at Mike Mangini’s new drumming, simply because Mike Portnoy had shaped Dream Theater’s rhythms for decades. Mangini gained a bit of fame in the 90s and early 2000s with Steve Vai. Whilst he is the better technician of the two by miles, I’m not a big fan of his tone.</p>
<p>Tone is something you hear guitar players talking about all the time. Every player wants to find exactly the right tone for his guitar, and this can involve years of finding the right combination of equipment. In addition to this, a lot of tone comes from the individual. How you move your fingers has a dramatic impact on how notes come out of the fretboard. Although it is not talked about as commonly, drummers have exactly the same individual influence on their tone too.</p>
<p>Portnoy’s fat, chunky style combines speed and decent technique with very solid, groove-oriented playing. I take particular enjoyment from listening to Dream Theater’s drum parts. They stick in the mind as much as a guitar solo would.</p>
<p>However, I cannot say the same of Mangini’s parts in A Dramatic Turn of Events. Firstly, his sound is very ‘weak’. This could be the result of a poor recording arrangement (the production values on A Dramatic Turn of Events are pretty bad, similar to those found on <em>Octavarium</em>). But if you listen to Steve Vai’s <em>Alive in an Ultra World</em> album, the drum tone is very similar. This leads me to believe that it is just a consequence of his playing style.</p>
<p>Superior technique does not a better drummer make. There’s something instinctive about the notes you choose to play or the drums you choose to hit when you hear some music, regardless of what you are able to play. I felt that Mangini’s note choice just didn’t seem right to my ears when I’d heard him before. In the opening seconds of the album, whilst I waited for the drums to kick in, I was left feeling quite disappointed when they actually did. More evidence that Mangini’s sound is not to my taste came my way many years ago when I saw Virgil Donati playing with Steve Vai on <em>Live at the Astoria</em> and really stamping his authority by improving on Mangini’s old parts in every way.</p>
<p>Throughout the album, the feeling I got from the percussion was very robotic. Almost like the drummer was a ‘hired gun’, given a wage for his labour and then sent home. The drums just do their job in keeping the songs going, and although they are flawless in doing so, they don’t add any new dimension to the music. This can be qualified by word that a lot of the drum parts were set before Mangini came into the band and so he may not have had much room for experimentation. If this is true, then many of my comments on the drumming may not hold. But if it is, then the question would be: why wasn’t Mike allowed to experiment a little more?</p>
<p>On a slight tangent, I was quite disappointed whilst watching the documentary that followed the band on their search for a new drummer. Virgil Donati was trying to innovate and improvise a lot of part to traditional songs, and it seems like this approach was shunned in favour of staying in a zone that is more familiar to the rest of the guys.</p>
<p>My view on the drummer issue is that Dream Theater are lacking without Mike Portnoy, and Mike Portnoy needs Dream Theater to showcase his talents to the fullest.</p>
<h5>The Songs</h5>
<p><em><a href="http://www.youtube.com/watch?v=2xAYJLr0UiI&amp;feature=related">On The Backs Of Angels</a></em> kicks the album off with a trademark heavy and technical instrumental section after a bit of a build up. There are a few things that strike me about the sound of the album already. Firstly, as mentioned in the previous section, the production values are awful. I’m not sure what’s going on here, but in comparison with the last couple of albums, it’s a huge step down. <em>Octavarium</em> had a similar muddiness going on with it too. Secondly, the choice of drum grooves doesn’t please my ears too much. Finally, the lyrics and vocals seem a little ‘forced’.</p>
<p>However, this song is one of the better ones on the album. The guitar pre-chorus at 3:40 is beautifully executed, and Jordan Rudess’ synth and piano wizardry is breathtaking. It’s the closest thing to a modernised version of <em>Pull Me Under that</em> I can think of.</p>
<p>In general, this song is a good representation of the direction that DT has gone towards in the past few years. Good technical sections let down by a very stereotypical and cliched metal chorus, as well as John Petrucci trying a little too hard with his solos, to the point where some musicality is sacrificed in favour of the ‘look how fast I am!’ effect.</p>
<p><em><a href="http://www.youtube.com/watch?v=DKh3jRvM5jU&amp;feature=related">Build Me Up, Break Me Down</a></em> starts off with a riff that sounds a lot like something out of an Alter Bridge song. This song is another good example of the run-of-the-mill metal that seems to have seeped into Dream Theater. Listening to the verse with its processed vocals and then listening to any song from <em>Images and Words</em> makes me want to cry a little. Nothing in particular to like about this song, apart from possibly the anthem-like chorus which, although a little cheesy, is somewhat infectious after a few listens.</p>
<p>Ahh, a piano opening that is reminiscent of Muse’s <em>Butterflies and Hurricanes</em> kicks off <em><a href="http://www.youtube.com/watch?v=kGX8gphVXww&amp;feature=related">Lost Not Forgotten</a></em>. The initial drum groove reminds me a lot of Virgil Donati’s work. It’s well executed, but the kick drums sound a little too thin and poppy, lacking any real body. The early harmonies and unisons between keyboard and drums really showcase what I mean by losing some of the musicality over just showcasing technique. The sweep picking sections remind me of DragonForce &#8211; or in other words, a pinball machine crossed with a Super Nintendo. This is not a good thing in my book (although the Super Nintendo had its fair share of brilliantly arranged music). The later guitar and synth solos are also quite forgettable, although technically brilliant as usual.</p>
<p>Halfway through the song, there is a really nice bass break and an uplifting staccato guitar and vocal melody. Speaking of which, John Myung really doesn’t seem to get to flex his bass muscles as much as he should these days.</p>
<p><em><a href="http://www.youtube.com/watch?v=QgVBBu_keuA&amp;feature=related">This Is The Life</a></em> is a powerful rock ballad, in the same vein as something like <em>The Answer Lies Within</em> from <em>Octavarium</em>. An emotive song, it sets a great mood. No objections here &#8211; this is one of the things Dream Theater continues to do very well.</p>
<p>You don’t particularly want to start a song with something that sounds rather like a frog vomiting quite violently. <em><a href="http://www.youtube.com/watch?v=Av2OaPEnsnI">Bridges In The Sky</a></em>, however, manages to do just that. I’m not sure what they were thinking here. The choir section following it does do a good job of setting a dark mood for the song overall. The riff is quite reminiscent of the 7 string chunkathon that is <em>Dark Eternal Night</em>. The vocal lines in this song are particularly strained, though this is likely the fault of the low key rather than James LaBrie’s voice.</p>
<p>Other than this, it is really a case (once again) of rock chorus and pretentious instrumental sections. The continuum solos are getting a little repetitive, Jordan.</p>
<p>Another Alter Bridge riff? Nope, this time it’s <em><a href="http://www.youtube.com/watch?v=rmaRo2UAH_g&amp;feature=related">Outcry</a></em>. It gets better (read: worse) when the drum machine kicks in, and Alter Bridge turns into Linkin Park. Another cliched chorus. Sigh. But then we have the extended instrumental section. Whilst another frenzied encounter, there’s something about this one that actually sounds musical. It is abstract, yet well orchestrated. <em>Systematic Chaos</em> &#8211; to use a cheap pun. Aside from the opening, Outcry actually develops into a solid effort, the kind that people have come to expect from Dream Theater. Maybe we’ve been spoilt by the abundance of them in previous albums.</p>
<p><em><a href="http://www.youtube.com/watch?v=ICqQEG6bmqU&amp;feature=related">Far From Heaven</a></em> is a piano and vocal ballad, following the style of <em>Wait For Sleep</em> and <em>Vacant</em>. However, the lyrics aren’t as chilling and the delivery not as sweet. It’s pleasant, but very forgettable.</p>
<p>There seems to be pattern emerging in the intros to the songs on this album. They all seem to remind me of other bands! <em><a href="http://www.youtube.com/watch?v=yn-2jOMtORw&amp;feature=related">Breaking All Illusions</a></em> starts with a string chord progression that sounds a lot like Coldplay’s <em>Viva La Vida</em> (Somewhat ironic, since this song also attracted a lawsuit from Joe Satriani for copying the lead from <em>If I Could Fly</em>). The chorus uses this chord progression too, and actually, hardly any of the choruses on the album have lifted the song in the way they’re supposed to.</p>
<p>However, as with <em>Outcry</em>, this song actually develops into something brilliant. In fact, it’s the stand-out masterpiece of the album by a long, long way. This is cemented by some of the best lyrics on the album and very addictive riffs. Truly progressive, the song shifts gears multiple times. As an example around the 5:00 mark, you hear a delightful Middle-Ages style keyboard interlude, followed shortly by piano and organ breaks, as well as a disco-style guitar groove.</p>
<p>But by far the best thing in this song, and on the entire album, is John Petrucci’s guitar solo. He always seems to pull one out of the bag when you start losing faith. This is the Dream Theater of old. This is what we all like to hear.</p>
<p>In recent years, JP’s tone has become cleaner to the point of becoming slightly sterile. I can understand why to some extent: because he’s utilising more speed and technique these days, ‘clean distortion’ is what’s required to stop the notes bleeding into each other. However, I really miss the character of the ‘dirtier’ crunchy distorted tone that he used on older albums.</p>
<p>We end the album with <em><a href="http://www.youtube.com/watch?v=7plQ_CeMbF4&amp;feature=related">Beneath The Surface</a></em>, another melodic ballad. This one incorporates some very nice guitar work, and the vocals are up to par. The synth solo sounds a little out of place on this track, and the strings are a little over the top later on in the song. It is a beautiful way to end the album though.</p>
<h5>Overall Thoughts</h5>
<p>For me, Dream Theater peaked around the <em>Six Degrees of Inner Turbulence</em> album 10 years ago. <em>Octavarium</em> was their last true masterpiece in my opinion. Since then, a lot of the traditional progressive elements that defined Dream Theater have been washed away.</p>
<p>A <em>Dramatic Turn of Events</em> is a mixed bag. At times, it brings back some old-school progressive moments, but these moments are marred by completely forgettable sections that get lost in the sea of modern metal material. Dream Theater has certainly lost some of the production and ‘big picture’ orchestration that I think Mike Portnoy brought to the table. Without him, the technique remains, but it seems to be lacking direction.</p>
<p>But things were sounding a bit fatigued to me even in previous efforts when Mike was still around. Maybe, as Mike felt prior to leaving the band, the machine is a little tired of churning out albums at regular intervals. His suggestion of a 2 or 3 year break doesn’t seem like a bad idea. Even if the talent is still there, sometimes you just need time for reflection before you get hit by inspiration once again.</p>
<p>I’ll leave you with this tongue-in-cheek take on the album:</p>
<p style="text-align: center;"><iframe width="650" height="366" src="http://www.youtube.com/embed/_XX9NapOh4U?fs=1&#038;feature=oembed" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/a-dramatic-turn-of-events-or-merely-melodrama/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Psychology of Playing Fast</title>
		<link>http://www.neelsagar.co.uk/the-psychology-of-playing-fast/</link>
		<comments>http://www.neelsagar.co.uk/the-psychology-of-playing-fast/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 13:58:46 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://5f46d373-b6a9-4b7a-8058-68eb3084e3cd</guid>
		<description><![CDATA[Being able to pull off a really fast piece of proficient playing on a musical instrument is something almost everyone would like to be able [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/10/mab.jpg"><img class="alignright size-full wp-image-601" title="mab" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/10/mab.jpg" alt="" width="399" height="259" /></a>Being able to pull off a really fast piece of proficient playing on a musical instrument is something almost everyone would like to be able to do. How we go about doing this is surprisingly simple and quite well known. You practice something you want to be able to play fast at a slow tempo. Then, gradually, you crank up the tempo using a metronome (or something similar) and after some time, you should be able to reach the tempo you’d like to be able to play at. The same process goes for any fast-twitch reflex type action &#8211; for example, a deft dribble with a basketball or even slight-of-hand for a magic trick (although you probably wouldn’t use a metronome in those cases!).</p>
<p>Physically, you are training your muscles to develop ‘muscle memory’. In other words, by repeating the action over and over again, you are essentially ‘programming’ it into your muscles so that it feels natural. If you have gotten this far with any bit of physical skill, you might realise that you don’t actually need to think as much about what you’re doing once you get quick enough.</p>
<p>This is what I’ve been thinking about, and I want to offer a few of my thoughts on the matter. Apologies in advance for the lack of coherence to follow&#8230;</p>
<h5>What goes through our mind?</h5>
<p>The point that interests me the most is the one I just mentioned. I find it a little strange that we actually think less about something the better we get at it. Surely, in the process of acquiring greater skill, wouldn’t you think that the brain is doing more work because it has to handle more information in a given space of time?</p>
<p>What seems to be going on here is a form of subliminal processing. It reminds me a lot of reading. Remember when you were a kid and learning to read? You might have followed each word with your finger and pronounced each word carefully by combining the individual letters in it. How about now? I’m sure you can just look at the word and subconsciously know what it is without actively having to look at each letter. In fact, you may have come across the famous Cambridge study which found that people only need the first and the last letters of a word to be in place to recognise the rest of it. For example:</p>
<p style="text-align: center;"><em>The fcat taht you can udnretnasd tihs whiutot mcuh dfiflcituy is qtiue azmiang, dno’t you tnihk?</em></p>
<p>The same sort of thing seems to be going on when you’re internalising some sort of muscular motion by way of playing the guitar.</p>
<h5>Fast Hearing</h5>
<p>Returning back to music (and I’ll use the guitar as my example here), suppose you’ve just learnt a 4 bar riff inside out. You can play it at practically any tempo without any errors. If I asked you to play it now, would you sit there and think ‘hmm, I need to play an A and then move my finger 2 frets to play a B&#8230;’? You might have done that when you were first learning it, but you wouldn’t do that any more. Instead, your fingers would automatically get into position and your brain would do the processing in the background. You would have become so efficient at the process that the amount of conscious thinking that is required by you is minimal.<br />
And in fact, I think that this is a very important step in being able to play something quickly and accurately. The brain just isn’t fast enough to actively think about each note separately. You will only become fast when you can relegate those thought processes until they become as natural as breathing. Think of The Matrix if you want an exaggerated version of the kind of thing I’m thinking of! I would conjecture that the faster the player, the lower the level of conscious activity in the brain will be. Efficiency of the mind, if you will.</p>
<p>The same goes for hearing music. When you play the notes, you will likely only ‘zone in’ at key points in the riff. You might consciously pay attention once each bar at places where your brain deems it necessary to focus in order to get your bearings right. It’s somewhat of an ongoing calibration process that only needs to come to the forefront when something significant (physiologically or musically) is about to happen in the piece. As a result, you won’t actually ‘hear’ each note, but you’ll intrinsically know whether it’s right or not.</p>
<p>Ever notice how the listeners of more complex genres of music are largely comprised of musicians in their own right? I think this is far from coincidence and links into this subconscious ‘fast hearing’ phenomenon. Where the untrained ear just hears a blur or flurry of random, seemingly unrelated notes, those who have this ability to process quickly in the back of their minds seem to be able to pick out the relevant parts and make sense of the aural information coming their way. I know that in my case, I’ve gone from thinking that a Red Hot Chili Peppers solo was unfathomably fast and incomprehensible to being able to mentally pick out runs that Dream Theater use in their music, just by internalising a lot of the extraneous information that comes with playing certain things on the guitar.</p>
<h5>OK, so is there a point here?</h5>
<p>Well, yes and no. I’ve pointed out something that I find quite fascinating: the way our mind becomes proficient at something by effectively minimising the level of conscious effort required. To me, it seems like a very fundamental optimisation exercise, and is a great example of how nature seeks to simplify and streamline everything as much as possible (which, as a side note, I think is why mathematics captures natural processes so effortlessly).</p>
<p>Although this information is not going to make you the next Michael Angelo Batio, I think that understanding the principles by which our minds work is important if we want to achieve a higher level of proficiency in anything we choose to do. At the very least, I hope this brain dump has provoked a bit of curiosity!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/the-psychology-of-playing-fast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Fractional Bedtime Fiction</title>
		<link>http://www.neelsagar.co.uk/a-fractional-bedtime-fiction/</link>
		<comments>http://www.neelsagar.co.uk/a-fractional-bedtime-fiction/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 10:11:47 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://95661eec-0db8-48f0-ae2e-8c4771a1feed</guid>
		<description><![CDATA[Once upon a time, the great country of Englonia was ruled by the benevolent leader Neelios. He was famed for his mathematical methods of problem [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/09/200px-Ceremonial_counties_of_England.svg_.png"><img class="aligncenter size-full wp-image-594" title="200px-Ceremonial_counties_of_England.svg" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/09/200px-Ceremonial_counties_of_England.svg_.png" alt="" width="200" height="245" /></a></p>
<p>Once upon a time, the great country of Englonia was ruled by the benevolent leader <strong>Neelios</strong>. He was famed for his mathematical methods of problem solving, and peasants and landowners alike would come to Neelios for justice and fairness to be calculated for them. Of course, his success was, in part, due to the strong support he received from his five noble and wise aides.</p>
<p><strong>Drove</strong> ‘the Car’ was in charge of healthcare and had almost supernatural healing powers for those especially in need. <strong>Nijller</strong> was a master craftsman. There wasn’t an arm, a leg or an antique table that he couldn’t slice up and restore to its original glory. <strong>Natalya</strong> was a master of communication and instilled a great love for language throughout the nation. Legend has it that she was once a cat. However, to this day, nobody knows the truth behind the mystery or where she actually came from. <strong>V-Ray</strong> was a cyborg. A keeper of the peace and master of justice, he enforced and optimised the law. Finally, <strong>Aware</strong> was a master of aesthetics and design. He also moonlighted as the court jester.</p>
<p>After many years of harmonious leadership, Neelios unfortunately became very ill. According to Drove’s diagnosis, there wasn’t much time left for him. Not wanting to leave things unsettled, Neelios had to decide how the 48 counties of Englonia would be allocated before he died. With his last gasp, he announced how the country would be split:</p>
<blockquote><p><span style="font-size: small;">“I have decided what will become of Englonia after I depart. I give V-Ray control of Greater Londonium, our nation’s capital.</span></p></blockquote>
<p>Of the remaining 47 counties: Drove shall receive half, Nijller will receive a third, Natalya shall get a twelfth and Aware will get a sixteenth.”</p>
<p>And with that, Neelios passed on. His corpse was traded overseas for chocolate.</p>
<p style="text-align: center;">&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Everyone was very excited by the prospect of ruling their own lands. Whilst V-Ray toddled off to Londonium, the remaining four were left to think about the delegation process. They sat around a round table and contemplated over cappuccinos and chocolate croissants. After a short while, Nijller scrunched up his face. The others asked him what was wrong.</p>
<blockquote><p><span style="font-size: small;">“Well” said Nijller, “I’ve just calculated our shares of the counties. It doesn’t look good.”</span></p></blockquote>
<p>Drove agreed, but Natalya and Aware weren’t too sure why. Maths wasn’t their strongest suit. Drove explained the issue to them.</p>
<blockquote><p><span style="font-size: small;">“Our shares of the 47 counties were: 1/2, 1/3, 1/12 and 1/16. However, when we work out how many counties that means for us each: I would end up with 23.5, Nijller would get 15.66666&#8230;, Natalya would get 3.91666666&#8230; and Aware would get 2.9375!”</span></p></blockquote>
<p>Natalya sniggered because apparently Neelios wasn’t as great at calculations as he thought. But amusement quickly turned to bickering and frustration as the quartet argued about how this would work.</p>
<p style="text-align: center;">&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Whilst Nijller was trying to cut Cornwallinium into thirds, Aware (who was quite unaware of the sheer magnitude of the task surrounding the others, and who had said nothing thus far) exclaimed,</p>
<blockquote><p><span style="font-size: small;">“What if we ask V-Ray if we can borrow Londonium for a bit?”</span></p>
<p><span style="font-size: small;">“You’ve gotta be kidding me!” cried Drove. “You think we’re going to kick him out of his only county? The one Neelios specifically held for him? I don’t think that will go down too well&#8230;”</span></p></blockquote>
<p>But Aware was on to something.</p>
<blockquote><p><span style="font-size: small;">“We’d give it back to him tomorrow!” he replied.</span></p></blockquote>
<p>Whilst Drove and Nijller proceeded to give Aware wedgies for his absurdness, Natalya began to think about his crazy scheme.</p>
<blockquote><p><span style="font-size: small;">“Hang on!” said Natalya, with some authority. “If we borrow Londonium, then we’d have 48 counties to divide right? I think that could make things easier.”</span></p></blockquote>
<p>She called V-Ray to explain the situation.</p>
<blockquote><p><span style="font-size: small;">“Okay, I’ll let you borrow Londonium. But if I don’t get it back tomorrow and find out you’ve divided it among you, I’ll kill the lot of you.” V-Ray said, worryingly calmly.</span></p></blockquote>
<p>He was a cyborg after all. Nobody wanted to mess with those bionic biceps. Natalya agreed.</p>
<p>After calming down Nijller and Drove (and sorting out Aware’s underwear), Natalya proceeded to explain why she had done what she did (it apparently wasn’t because she used to be a cat).</p>
<blockquote><p><span style="font-size: small;">“We have 48 counties now. Drove, you get half so that’s 24 for you.”</span></p>
<p><span style="font-size: small;">“Great!” said Drove.</span></p>
<p><span style="font-size: small;">“Nijller, you get a third, so that’s 48/3 = 16.” Nijller could dig that.</span></p>
<p><span style="font-size: small;">“I get a twelfth so that’s 48/12 = 4 counties, and Aware gets 48/16 = 3 counties!”</span></p></blockquote>
<p>Natalya was delighted that her plan was so effective, and blew raspberries at Drove and Nijller. The pleasure was short-lived, however, as the fear of death by V-Ray’s v-ray set in.</p>
<p>Nijller started doing some sums.</p>
<blockquote><p><span style="font-size: small;">“24+16+4+3. That’s exactly 47 counties! Perfect! There’s exactly one left over!”</span></p></blockquote>
<p>Natalya quickly called V-Ray to return Londonium to him. All that was left was for the four to decide who got what. At least they had a lot more chocolate to help them through that decision&#8230;</p>
<p style="text-align: center;">&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>And so, the problem had been solved. The famous five lived happily ever after and made their counties even better than they were before. Englonia had turned into a haven, and it was all thanks to some clever mathematics, a little bit of inspiration and a lot of chocolate.</p>
<p style="text-align: center;">The End</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/a-fractional-bedtime-fiction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>House price vs wage: which city is the most expensive place to live?</title>
		<link>http://www.neelsagar.co.uk/house-price-vs-wage/</link>
		<comments>http://www.neelsagar.co.uk/house-price-vs-wage/#comments</comments>
		<pubDate>Sun, 21 Aug 2011 08:37:44 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Economics]]></category>

		<guid isPermaLink="false">http://5d97829e-d71b-40a7-a5f9-45b8f0c63fae</guid>
		<description><![CDATA[I’d noticed recently that a few people had mentioned the expensive cost of housing in relation to the average salary in their area. So I [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-584" title="800px-Kowloon-_Hong_Kong" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/08/800px-Kowloon-_Hong_Kong.jpg" alt="" width="472" height="265" /></p>
<p>I’d noticed recently that a few people had mentioned the expensive cost of housing in relation to the average salary in their area. So I was interested to find out which places were particularly bad in the grand scheme of things.</p>
<p>To do this, I picked some major cities from around the (reasonably developed) world. I used payscale.com to get data for the median salaries for these cities, and predominantly numbeo.com for data on housing.</p>
<h5>Methodology</h5>
<p>Initially, I thought I’d find out the average house price for each city by looking at country-specific statistics websites. Unfortunately, what seems to be a fairly easy figure to work out is very difficult to come by, especially in the less developed countries within my sample! Many countries don’t seem to have great statistical reporting, and many others had independent firms with research on house prices that you had to pay vast amounts of money to see. For the data I did find on average house prices, it was often unclear how it was calculated, so it was difficult to compare figures credibly between countries.</p>
<p>Luckily, I managed to come across a source (Numbeo) which gave average house prices per square metre for individual cities. This way, I could compare equally sized properties between them. I’m still not too sure about the accuracy of the data sets, but this was the fairest comparison I could manage with the data I had.</p>
<p>Numbeo gives two prices per square metre: one for properties inside the city centre and one for properties on the outskirts. Not to choose one over the other, I averaged the two to come up with an overall average per square metre price for each city. A little research showed that a good ball-park figure for the average size of a property would be 100m2. Of course, the average property size will vary between cities. For example, congested Tokyo has very small apartments compared to the much larger places that you’d find on average in many US cities. Still, using a fixed area makes it easier to compare costs of living more accurately.</p>
<p>Once I had the average price of 100m2 worth of housing in each city, I simply divided it by the median annual salary. This gives us a nice index which tells us roughly how many years you’d have to work in a particular city to be able to afford to buy 100m<sup>2</sup> worth of property.</p>
<h5>Results</h5>
<h6>Salary</h6>
<p>The top 3 cities in my sample by median salary:</p>
<ol>
<li>Geneva, Switzerland &#8211; £77,313</li>
<li>Zurich, Switzerland &#8211; £76,588</li>
<li>Tokyo, Japan &#8211; £48,728</li>
</ol>
<p>I was shocked by the gulf between the Swiss salaries and everyone else. However, everything is famously expensive in Switzerland, so taking into account food, utilities, transport and housing, they may be justified such a high salary.</p>
<p>The bottom 3 cities in my sample by median salary:</p>
<ol start="102">
<li>Karachi, Pakistan &#8211; £8,579</li>
<li>Dhaka, Bangladesh &#8211; £7,883</li>
<li>Colombo, Sri Lanka &#8211; £6,847</li>
</ol>
<p>I didn’t include many African countries in my sample. Clearly, many of their salaries are likely to be lower.</p>
<h6>Housing</h6>
<p>The 3 most expensive cities in my sample by average cost of a 100m<sup>2</sup> property:</p>
<ol>
<li>Hong Kong &#8211; £1,302,967.50</li>
<li>Tokyo, Japan &#8211; £909,432.50</li>
<li>Rome, Italy &#8211; £768,687.50</li>
</ol>
<p>I was quite surprised at the fact that Rome beat out London, Paris and Singapore.</p>
<p>The 3 cheapest cities in my sample by average cost of a 100m<sup>2</sup> property:</p>
<ol start="102">
<li>Karachi, Pakistan &#8211; £35,460</li>
<li>Lahore, Pakistan &#8211; £28,694.50</li>
<li>Dhaka, Bangladesh &#8211; £18,464.50</li>
</ol>
<h6>Ratio of salary to housing</h6>
<p>The 5 cities with the greatest proportional disparity between salary and housing:</p>
<ol>
<li>Hong Kong &#8211; 43.98</li>
<li>Singapore &#8211; 25.55</li>
<li>Rome, Italy &#8211; 25.45</li>
<li>Taipei, Taiwan &#8211; 25.13</li>
<li>Moscow, Russia &#8211; 20.76</li>
</ol>
<p>This means that, theoretically speaking, it would take you 44 years of working in Hong Kong to buy 100m<sup>2</sup> worth of property! Of course, this ridiculous figure is the reason why apartments in Hong Kong are so tiny. This is the reason why I would have preferred to get actual median house price data. 100m<sup>2</sup> is simply not a realistic property area for Hong Kong. Clearly, actual average home prices would be lower to reflect the smaller average size. Nonetheless, it is a rather frightening statistic (if not of living costs, then certainly of the extreme density and lack of space).</p>
<p>The 5 cities with the smallest proportional disparity between salary and housing:</p>
<ol start="100">
<li>Montreal, Canada &#8211; 3.55</li>
<li>Istanbul, Turkey &#8211; 3.25</li>
<li>Atlanta, USA &#8211; 3.21</li>
<li>Ankara, Turkey &#8211; 2.83</li>
<li>Chicago, USA &#8211; 2.69</li>
</ol>
<p>So it seems North America and Turkey are the way to go if you want to live comfortably!</p>
<p>A final interesting statistic to come out of this was the difference between inner city and outer city housing prices. In almost all cities, the city centre was more expensive to buy property in than the outskirts. However, in 3 cases (Johannesburg, Durban and Santiago), property costs more outside the city centre than inside. One explanation may be that the inner city areas in these places have higher levels of deprivation than the outer city areas, when the opposite may hold in most other places. However, I do not know enough about these places to make an accurate judgement. If you have any thoughts or experience in this area, feel free to leave a comment.</p>
<p>The full dataset can be downloaded here: <a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/08/salary-vs-house-price.xlsx">salary vs house price</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/house-price-vs-wage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Musical Interlude &#8211; Always With Me, Always With You</title>
		<link>http://www.neelsagar.co.uk/musical-interlude-awmawy/</link>
		<comments>http://www.neelsagar.co.uk/musical-interlude-awmawy/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 19:07:39 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://b12f68df-a3a2-4d6c-b330-250ecf9ff54b</guid>
		<description><![CDATA[Here’s a video of me playing Joe Satriani’s classic &#8211; Always With Me, Always With You. Enjoy.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/08/Surfing-With-The-Alien.jpg"><img class="aligncenter size-full wp-image-578" title="Surfing With The Alien" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/08/Surfing-With-The-Alien.jpg" alt="" width="175" height="178" /></a></p>
<p style="text-align: center;">Here’s a video of me playing Joe Satriani’s classic &#8211; Always With Me, Always With You. Enjoy.</p>
<p style="text-align: center;"><iframe src="http://player.vimeo.com/video/27252072" width="640" height="480" frameborder="0"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/musical-interlude-awmawy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Marcus Wareing at The Berkeley</title>
		<link>http://www.neelsagar.co.uk/marcus-wareing-at-the-berkeley/</link>
		<comments>http://www.neelsagar.co.uk/marcus-wareing-at-the-berkeley/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 10:58:36 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Review]]></category>

		<guid isPermaLink="false">http://7f26ec1f-35f6-40fb-be3a-1d54687153de</guid>
		<description><![CDATA[Last week, my good friend Mr Fonz and I treated ourselves to a nice lunch at Marcus Wareing’s restaurant at The Berkeley Hotel in Knightsbridge. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-575" title="marcus wareing 1" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/07/marcus-wareing-1.jpg" alt="" width="268" height="358" />Last week, my good friend Mr Fonz and I treated ourselves to a nice lunch at <a href="http://www.the-berkeley.co.uk/marcus_wareing.aspx">Marcus Wareing’s restaurant</a> at The Berkeley Hotel in Knightsbridge. It was an interesting experience, particularly because of the fact that I’m usually not much of a ‘frills’ sort of person. We opted for the set lunch at £38 each for 3 courses, simply because it’s a nice way to sample the delights of a Michelin 2-starred restaurant at a reasonable price (the a la carte and dinner menus would have set us back at least £100 each!).</p>
<h5>A bit of history</h5>
<p>Marcus was a prized disciple of the famously foul-mouthed Gordon Ramsay. Under Ramsay, Marcus opened up Petrus at The Berkeley. It was a very successful restaurant, gaining 2 Michelin stars. However, Marcus and Gordon had a rather high-profile falling out. Because the restaurant was owned by Ramsay’s company, he still owned the rights to the name. Marcus managed to buy out the restaurant in a legal battle, but lost the Petrus name to Ramsay. As a result, he renamed the restaurant after himself and Ramsay opened a new Petrus down the road.</p>
<h5>The Environment</h5>
<p>As you’d expect from a restaurant situated within a hotel that charges around £250 a night, ‘posh’ and ‘pretentious’ was the atmosphere that you got. It was a great experience, although I did feel a little out of place there, especially when your average hotel resident was walking around casually in a 3 piece suit.</p>
<p>The restaurant itself is actually a modestly sized room. It was nicely decorated, but didn’t feel over the top. The overall atmosphere was cozy and understated. A pleasant place to enjoy your meal; some might expect a little more for the kind of status it holds.</p>
<h5>The Service</h5>
<p>If the decor was subtle, the service was definitely not. I was escorted to the toilets because they were not so obvious to find. When I came back, my napkin had been replaced and neatly folded. If my glass of water dropped to beneath about 25% full, someone would magically appear from nowhere to top it up. I’m not used to this. At first, I felt compelled to thank them each time, but eventually forced myself not to to save energy and awkwardness. I guess some of the more affluent diners were used to this and so had higher expectations, therefore saying less.</p>
<p>Everyone was delightfully friendly, even when we started asking seemingly unorthodox questions about what some of the terms in the menu meant (speck is ham, apparently), and why they did some of the things they did. I suppose they are paid to behave in this way, but my expectations are usually not that high so I was impressed nonetheless.</p>
<p>The only criticism of this type of attention is that if you’re not used to it, it can seem overbearing, therefore making it difficult to relax. To start off with, there was someone at our table every time I tried to start a conversation. I don’t see why all the top restaurants can’t tone it down at least a little.</p>
<h5>Starter</h5>
<p>With each of our 3 courses, we were first given a mini ‘experimental’ dish to try out, which was a nice little bonus. First up for us were some sesame ‘crisps’ with an aubergine dip. Nothing special, but they would have been fine if they didn’t contain the salt content of the Dead Sea. After most of the water had left my body via osmosis, we were brought a selection of interestingly flavoured breads along with butter. I love bread, and so I lapped this up. They didn’t quite have that warm and ‘freshly baked’ taste that I’ve experienced before, but it was exceedingly good bread.</p>
<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/07/bread.jpg"><img class="size-full wp-image-573 aligncenter" title="bread" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/07/bread.jpg" alt="" width="318" height="209" /></a></p>
<p>For our actual starter, we both ordered the pea ravioli with bits of apricot and ham/bacon. Oh, and pea flowers with a pea sauce. Garnished with peas. Obviously, they had a posher name for it, but I don’t have the foggiest idea what it was. Note to posh restaurants: name your dishes things so that people don’t have to ask what’s in them. Or put in a layman’s translation.</p>
<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/07/pea-soup.jpg"><img class="aligncenter size-full wp-image-574" title="pea soup" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/07/pea-soup.jpg" alt="" width="316" height="200" /></a></p>
<p>The presentation was nice, but I’m not that fussed about what it looks like. Taste is paramount. I tucked in. Oh look, more Dead Sea salt. I’m sure the ravioli would have been nice but all I could taste was salt, and I believe it came mostly from the sauce. As you can see, the sauce was difficult to avoid. It also had a strange aftertaste to it that I wasn’t too keen on. This was definitely the worst dish of the 3, and I did mention the excessive saltiness to the waiter.</p>
<h5>Main Course</h5>
<p>The experimental dish before the main came in the form of a cappuccino-like object made from sour cream and other foamed delights. I’d always imagined that I’d only be drinking food when I end up feeding through a straw in hospital, but once again, the world of fine dining breaks down all preconceptions. The texture was nice, being that I enjoy frothed coffee-like beverages, but I’d rather have it have tasted of coffee too, rather than some sour (and honestly, slightly salty!) stuff.</p>
<p>For the main, I plumped for pollock and Mr Fonz chose the chicken. My favourite course. The fish fillet was in a nice neat little cube surrounded with greenish beans and other garnishes. The pollock was cooked perfectly &#8211; the best cooked fish I think I’ve eaten. It had a perfectly crispy skin on top. No harsh flavours, no excessive saltiness. A very well prepared dish. Apparently, the chicken was also very well cooked. Thumbs up here then.</p>
<h5>Dessert</h5>
<p>The experimental dessert dish looked like a strip of toothpaste. Except it was pineapple flavoured ice-cream, and was extremely refreshing. Not much to say here. A nice, but small, treat.</p>
<p>For dessert, both of us chose the custard tart. I can’t remember what the other option was, but I remember it sounding pretty boring, so this one was a no-brainer. As you can see, I’d say this was the nicest looking dish we were faced with:</p>
<p><img class="aligncenter size-full wp-image-572" title="tart" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/07/tart.jpg" alt="" width="300" height="276" /></p>
<p>The custard tart was served with some strawberry (or raspberry) sauce, dollops of cream and strawberry ice-cream. Finally, the green blobs you see were tarragon flavoured ice-cream. Yes, you heard me correctly. The custard tart was very nicely done &#8211; it had a gentle flavour and lovely, smooth consistency. For me, the best part of any tart is the pastry, and again, this was done to perfection. Solid enough to hold together and add crispiness, but brittle enough to break and crumble. However, it did seem a bit ‘boring’ for a dessert in this sort of establishment, and considering that this was the better of the choices, it was a little disappointing. I guess that’s what we got for taking the so-called ‘cheap’ lunch option.</p>
<p>The one thing neither of us could stomach was the tarragon ice-cream. Up until this, although I’d had issues with saltiness and some of the flavours, there wasn’t anything that I’d left. I really tried to like it, but in the end, my tongue could take no more. As it melted, I frantically tried to stop it from running into my precious tart with mixed success. Mr Fonz also left his share, and we both shared our puzzlement at this choice of flavour with the waiter. Politely, I exclaimed “I think it’s a bit of an acquired taste”. That it was, but I’d like to see some statistics on what percentage of diners had genuinely ‘acquired’ a taste for it.</p>
<p>Finally, we were brought a selection of freshly-made chocolates. We tried each of the 7 or 8 flavours in a mini tasting competition and concluded that the banana caramel truffle was the unanimous winner. Some of the flavours were quite ridiculously overpowering (fennel?!), and I think this sums up the whole dining experience. Simple and effective ideas were somewhat tarnished by needless pretence (by way of adding strong flavours) where it wasn’t needed.</p>
<p>Oh, and finally finally, we were given the painful bill. I must say though, that by London prices, it wasn’t bad. Also, I appreciate the practice that some of the more exclusive restaurants are employing &#8211; to add a 12.5% service charge automatically to the bill. I don’t see why waiters aren’t paid a fixed fee like any other profession. The process of tipping seems haphazard and unfair.</p>
<h5>In summary&#8230;</h5>
<p>Marcus Wareing at The Berkeley turned out to be a mixed bag of delights and, well, salt. It was certainly a unique culinary experience. But I have been to places that are cheaper and have left me more satisfied in the stomach (notable example: <a title="http://www.pearl-restaurant.com/" href="http://www.pearl-restaurant.com/">Pearl by Jun Tanaka</a>, which I think dominated Marcus Wareing in every way). Sure, a lot of what we paid for were the frills that came with the dining, and they were entertaining. I’m also sure that the reputation and Michelin rating added a premium to the price. For me though, none of the frills are worth it if the core &#8211; the food &#8211; is not up to par. After all, the food is why I go out to eat in the first place.</p>
<p>To try to balance the argument, I’d considered that maybe the full dinner and a la carte menus had better dishes. From what I read, the dishes did indeed sound more interesting. But, as Mr Fonz was quick to point out, a highly acclaimed restaurant should have the same excellence in taste throughout its inventory.</p>
<p>Marcus Wareing at The Berkeley. A restaurant whose food was preceded by its reputation.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/marcus-wareing-at-the-berkeley/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shuffling Cycles</title>
		<link>http://www.neelsagar.co.uk/shuffling-cycles/</link>
		<comments>http://www.neelsagar.co.uk/shuffling-cycles/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 21:15:26 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://0ee10675-038c-4a75-be5d-3efb91960bcb</guid>
		<description><![CDATA[Playing cards and number theory go together like young boys and bishops. Here’s an interesting application of mathematical cycles that involves card shuffling. The type [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/07/Card_shuffling.jpg"><img class="alignright size-full wp-image-565" title="Card_shuffling" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/07/Card_shuffling.jpg" alt="" width="256" height="172" /></a>Playing cards and number theory go together like young boys and bishops. Here’s an interesting application of mathematical cycles that involves card shuffling.</p>
<p>The type of shuffle in the photo above is called a ‘riffle shuffle’. I’m sure you’ve all seen it before. You split the deck into two parts and interlock the parts together by using a fanning motion. The way most people do it in general is quite randomly and haphazardly, which is fair enough because the idea is to mix the cards up as much as possible.</p>
<p>However, you can be a bit more precise. You can perform a ‘perfect’ riffle shuffle by splitting the deck into 2 exact halves (26 cards each) and interlocking the cards so that the cards from the 2 halves alternate into the final pile. To be a little more precise, if we call the two halves A and B, then we want to combine the cards so that every other card in the deck after the shuffle is from pile A.</p>
<p>Now, you may already have realised that there are exactly 2 ways of doing this. Suppose half A is the top half of the unshuffled deck and B is the bottom half. Then you can perform the shuffle with either:</p>
<ol>
<li>The top card from B ending up on the top in the shuffled deck</li>
<li>The top card from A ending up on the top in the shuffled deck</li>
</ol>
<p>Situation 1 is called ‘middle card top’, and 2 is called ‘top card top’, because these are the cards that will end up on the top of the shuffled deck.</p>
<p>It may seem like a trivial point, but magicians will know that this is not so! If we keep repeating the ‘middle card top’ shuffle, then we’d have to do it 52 times to return the deck to its original order. However, if we repeated the ‘top card top’ shuffle, we’d only have to repeat it 8 times to get back to the starting deck! This seems a little surprising!</p>
<p>Can we prove formally that this will happen every time without physically shuffling the cards and making a mess? Of course we can!</p>
<h5>Middle card top</h5>
<p>Let’s give each card in our unshuffled deck a number from 1-52 i.e. the top card is numbered 1, the second 2 and so on.</p>
<p>After a middle card top shuffle, the 27th card will be the top card in the shuffled deck. The 28th card will be in position 3, the 29th in position 5 etc. Therefore, the ordering of the shuffled deck after one iteration is:</p>
<p>27, 1, 28, 2, 29, 3, 30, 4, 31, 5, 32, 6, 33, 7, 34, 8, 35, 9, 36, 10, 37, 11, 38, 12, 39, 13, 40, 14, 41, 15, 42, 16, 43, 17, 44, 18, 45, 19, 46, 20, 47, 21, 48, 22, 49, 23, 50, 24, 51, 25, 52, 26.</p>
<p>The clever bit is that we don’t have to repeat this 52 times! We can see how the cards will cycle after shuffles by noticing that the 1st card becomes the 27th. The 27th card then becomes the 40th according to the ordering above. If we follow the above chain, we can write down the cycle in the following form:</p>
<p>(1, 27, 40, 20, 10, 5, 29, 41, 47, 50, 25, 39, 46, 23, 38, 19, 36, 18, 9, 31, 42, 21, 37, 45, 49, 51, 52, 26, 13, 33, 43, 48, 24, 12, 6, 3, 28, 14, 7, 30, 15, 34, 17, 35, 44, 22, 11, 32, 16, 8, 4, 2)</p>
<h5>What does this tell us?</h5>
<p>The first thing you should notice is that we have one big chain of numbers that loops around. The length of this loop is 52. This means that to get card 1 back in the top position, it has to travel through each of the other positions in the cycle. In other words, we have to repeat the shuffle exactly 52 times to get each of the cards back to their starting positions.</p>
<p>Now that we know what to do, it should be easier to look at the second shuffle.</p>
<h5>Top card top</h5>
<p>After one iteration of this shuffle, we get the ordering:</p>
<p>1, 27, 2, 28, 3, 29, 4, 30, 5, 31, 6, 32, 7, 33, 8, 34, 9, 35, 10, 36, 11, 37, 12, 38, 13, 39, 14, 40, 15, 41, 16, 42, 17, 43, 18, 44, 19, 45, 20, 46, 21, 47, 22, 48, 23, 49, 24, 50, 25, 51, 26, 52.</p>
<p>Writing this in cycle form, we can immediately see that there will be multiple cycles, because the first card always stays on top. Similarly, card 52 is still card 52 after an iteration of the shuffle. Writing out all of the cycles gives:</p>
<p>(1) (2,27,14,33,17,9,5,3) (4,28,40,46,49,25,13,7) (6,29,15,8,30,41,21,11) (10,31,16,34,43,22,37,19) (12,32,42,47,24,38,45,23) (18,35) (20,36,44,48,50,51,26,39) (52)</p>
<p>We can see that there are two cycles of length 1, one cycle of length 2 and six cycles of length 8. The lowest common multiple of 1, 2 and 8 is 8. Therefore, to reach the starting position, we only need to perform 8 shuffles of the top card top kind.</p>
<p>Remember folks, dexterity and maths are the key to becoming a successful close-up card trick expert!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/shuffling-cycles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why LA Noire should have been more like Heavy Rain</title>
		<link>http://www.neelsagar.co.uk/why-la-noire-should-have-been-more-like-heavy-rain/</link>
		<comments>http://www.neelsagar.co.uk/why-la-noire-should-have-been-more-like-heavy-rain/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 09:01:50 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Games]]></category>

		<guid isPermaLink="false">http://b243ad78-3bb5-4b4a-9936-2618cbaec80f</guid>
		<description><![CDATA[First things first &#8211; let me say that LA Noire is an enjoyable experience with a gripping plot. I had a lot of fun playing [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/LA_Noire_interrogation.jpg"><img class="size-full wp-image-561 aligncenter" title="LA_Noire_interrogation" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/LA_Noire_interrogation.jpg" alt="" width="444" height="250" /></a></p>
<p>First things first &#8211; let me say that LA Noire is an enjoyable experience with a gripping plot. I had a lot of fun playing through it. That said, as a piece of interactive gaming, it falls short in a couple of key areas.</p>
<h5>Open world?</h5>
<p>LA Noire is a Rockstar game at heart. It uses the same engine and open-world mechanic that made the Grand Theft Auto games so rich and lasting. But you have to understand why GTA games ‘work’. Sure, they have a vast map area to explore, but the key to longevity and fun comes from the missions and objectives that it has you do. During the course of a GTA game, you work for different people located around different areas of the map. Each phase of the game helps you get familiar with a part of the map. Other ‘side-missions’ are designed well too &#8211; again, because they take advantage of your environment.</p>
<p>Like GTA, LA Noire has a huge map to explore. But the point is, none of the cases you have to solve involve exploring any of it. You just go from crime scene to various locations until you close up the case. Yes, there are things like hidden cars to find if you so wish, thereby allowing you to explore the map further, but why should you bother? Unless you’re someone who likes to tick everything off a list, there is absolutely no value in the game to finding anything ‘hidden’, in that you gain no advantage by doing so.</p>
<p>Driving from location to location is fun at first. You soak up all that 1940s LA atmosphere and enjoy the erratic yet sluggish handling of the classic vehicles. But very, very quickly, it gets boring and I found myself skipping all the journeys after not very long (thankfully it gives you the option to do so).</p>
<p>All of this leads me back to the title of this article. Heavy Rain &#8211; the PS3 exclusive released last year &#8211; was a revolutionary mystery solving interactive movie-like experience. It based its gameplay on a variety of context-sensitive QTEs (quick-time events). You know: press the correct button when it flashes on screen and sometimes choose from different actions/responses to situations.</p>
<p>Heavy Rain’s gameplay had its criticisms too, but it knew what it was. The game was totally linear in that it popped you in different scenes according to the story. The problem with LA Noire is that, at its core, it is a mystery solving, linear interactive story just as Heavy Rain was. But rather than accept this fact and optimise the gameplay experience to focus just on the things you can do in each scene, they had to give you the illusion of an open world sandbox type game, which it is most certainly not. As a result of this, the crime solving, clue gathering scenes which make up most of the game are so one-dimensional in gameplay terms that it is unbelievable. Walk around a room or area, wait for the controller to vibrate and press X. Rinse and repeat until the music stops so you know you’ve found all the clues. Then move on to the next area.</p>
<p>The compelling plot is what holds the thing together, but without that, the game would be a joke. Also, most of the locales you visit (especially in the homicide portion of the game) are so similar that it’s unbelievable. If Team Bondi had canned the whole open map and spent that development time on making each scene unique and fun to play, the game might just have been a classic.</p>
<h5>Interrogation</h5>
<p>Other than clue finding, the other main game mechanic in LA Noire is performing interrogations on suspects and witnesses. The big draw to this feature, and indeed, the thing that makes it all possible is the amazing facial motion capture system. For the first time in a game, faces look believable and lifelike. The acting is also excellent, and this helps to immerse you in the plot and characters further. LA Noire has definitely raised the bar on facial animation, and I hope that more story-driven games will use the technology in future.</p>
<p>With that said, it is unfortunate that the interrogations are repetitive and give you the same three options each time: Truth, Doubt and Lie. The idea is that the subject can either tell the truth or lie/withhold information. If you have proof they are lying, you select ‘Lie’ and choose the piece of evidence that is relevant. If you have no proof but don’t trust them, you’d select ‘Doubt’.</p>
<p>Unfortunately, the 3 options are limiting. Shifty eyes mean that the subject is probably lying, and apart from the odd few difficult suspects, it’s usually fairly easy to tell. However, this doesn’t mean you’ll get it right! As Yahtzee explains in his excellent <a href="http://www.escapistmagazine.com/videos/view/zero-punctuation/3347-L-A-Noire">Zero Punctuation review of the game</a>, the problem is that the options are completely ambiguous. Sometimes you know that the guy is lying and have loads of evidence against him, but selecting the wrong one will have the game shoot you down like the loser it thinks you are. Other times, you might feel that part of their statement is inaccurate so you choose Doubt, only to have your character go completely schizophrenic with accusations. In reality, there could be more than one right answer, but the game is quick to make it clear that there is only one correct path. Not that it makes a whole lot of difference if you get things wrong anyway &#8211; the game still progresses quite normally.</p>
<p>This is another area where LA Noire could have learnt from Heavy Rain. I appreciate that it may be more difficult from a development point of view, but having situation specific responses a la those found in RPGs would really have made interrogation more interesting and given the acting a real chance to shine through. If they’d removed all the peripheral rubbish and stuck to making the core gameplay a bit better, it may not have been much of an extra development burden.</p>
<p>They might also have been able to make the game longer. At about 12 or 13 hours, it really doesn’t compare to other Rockstar games that use the same open world mechanic. But it is at heart a different game to GTA IV or Red Dead Redemption, and so they shouldn’t really be compared. That’s why I think that they should have approached the game more like Heavy Rain, and less like a cookie-cutter Rockstar title (hell, they already stole a trademark plot device from it). Maybe it would have elevated LA Noire from a decent game to an all-time great.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/why-la-noire-should-have-been-more-like-heavy-rain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Pigeonhole Principle: Fun with Functions</title>
		<link>http://www.neelsagar.co.uk/the-pigeonhole-principle/</link>
		<comments>http://www.neelsagar.co.uk/the-pigeonhole-principle/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 12:27:11 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Mathematics]]></category>

		<guid isPermaLink="false">http://b4e9c915-96e8-408c-8ade-d9c302969661</guid>
		<description><![CDATA[Maths is full of cool theorems. The Pigeonhole Principle is one of my favourites because of the fact that it is so powerful and quite [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/800px-Pigeon-hole_messagebox_3.jpg"><img class="aligncenter size-full wp-image-555" title="pigeonhole" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/800px-Pigeon-hole_messagebox_3.jpg" alt="" width="383" height="288" /></a></p>
<p>Maths is full of cool theorems. The Pigeonhole Principle is one of my favourites because of the fact that it is so powerful and quite tricky to prove, yet so intuitive and easy to understand. Before I can talk about it though, I need to introduce you to the world of mathematical functions.</p>
<h5>Functions</h5>
<p>In maths, a function is a ‘mapping’ from one ‘space’ to another. The ones that people are used to seeing are things like f(x) = x<sup>2</sup> but functions don’t have to involve algebra at all. I find that it’s easiest to explain them using diagrams and by giving real names to things, so here goes&#8230;</p>
<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/functions.jpg"><img class="aligncenter size-full wp-image-554" title="functions" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/functions.jpg" alt="" width="426" height="468" /></a></p>
<p>Have a look at the diagram above. There are 2 spaces or sets, which in this case are the countries England and Australia. England is the <strong>domain</strong> &#8211; the place that we are mapping <strong>from</strong>, whilst Australia is the <strong>co-domain</strong> (also called range), and it is the place that we are mapping <strong>to</strong>. England and Australia both contain cities, which are represented by the nodes within each set.</p>
<p>In this scenario, a <strong>function</strong> is a <strong>set of roads</strong> that takes us from somewhere in England to somewhere in Australia. All the English cities must take us somewhere &#8211; so a set of roads is a valid function only if each city in England has a road going to some Australian city. The roads are one-way only in our case, so sadly no Aussies can return to the homeland.</p>
<p>There are a few types of road arrangement that have special names:</p>
<h5>Injection</h5>
<p>An injection or ‘injective function’ is when each element in the co-domain is mapped to by <strong>at most one</strong> of the elements in the domain. In our example, to have an injection, we are not allowed to have an Australian city that has 2 (or more) roads coming into it from different English cities. We couldn’t have roads from both London and Manchester going to Sydney, for example.</p>
<p>The diagram below shows one possible injective function. Sydney, Canberra and Perth each have one road coming into them from distinct English cities. Melbourne has no roads coming into it, but that’s fine for an injection because nobody really cares about Melbourne anyway&#8230;</p>
<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/injection.jpg"><img class="aligncenter size-full wp-image-553" title="injection" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/injection.jpg" alt="" width="418" height="471" /></a></p>
<h5>Surjection</h5>
<p>A surjection or ‘surjective function’ is when <strong>every</strong> element in the co-domain is mapped to. So now we need to show love to all the Australian cities &#8211; even Melbourne. Each city in Australia must have a road coming into it to have a surjection. Importantly, they don’t all have to come from unique cities in England. As you can see below, all 3 Australian cities are mapped to, but notice that London has 2 roads coming out of it whilst Sydney has 2 going into it. This wouldn’t be allowed in an injection, but it is okay for a surjection.</p>
<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/surjection.jpg"><img class="aligncenter size-full wp-image-552" title="surjection" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/surjection.jpg" alt="" width="429" height="457" /></a></p>
<h5>Bijection</h5>
<p>Finally, if a function is <strong>injective and surjective</strong>, then it is bijective. In other words, each English city must have one road coming out of it and each Australian city must have one road going into it. Each English city is ‘paired’ with an Australian one.</p>
<p>Notice a key feature of the bijection: <em>you cannot have a bijection when there are different numbers of cities in each country</em>. If you look back at the injection example where we had Canberra as well, there is no way to pair all of the cities together between the two countries.</p>
<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/bijection.jpg"><img class="aligncenter size-full wp-image-551" title="bijection" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/bijection.jpg" alt="" width="404" height="451" /></a></p>
<div id="id8">
<div>
<div>
<h5>The Pigeonhole Principle</h5>
<p>Here comes the interesting bit. The theorem is named after the pigeonholes in which you put mail, and for good reason. Formally the theorem states that:</p>
<blockquote><p><span style="font-size: small;">“For two sets A and B: if set A contains <strong>n</strong> elements, set B contains <strong>m</strong> elements and n&gt;m then there can be no injection from A to B.”</span></p></blockquote>
<p>Pretty simple isn’t it? In essence, it says that if England had more cities than Australia, we couldn’t create an injective mapping between them.</p>
<p>Suppose we took our bijection diagram and added poor old Luton Town to England. Remember, the definition of an injection is that each Australian city can only have 1 or 0 roads coming into it. Also, the definition of a function states that every English place must have a road coming out of it. Then we must create a road from Luton going to somewhere in Australia. But wherever we link Luton to, that place will already have a road going into it from somewhere else. Hence, the pigeonhole principle tells us that it is impossible to have an injection in this case.</p>
<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/no-injection.jpg"><img class="aligncenter size-full wp-image-550" title="no injection" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/06/no-injection.jpg" alt="" width="382" height="453" /></a></p>
<p>This is clearly a simple example, but the pigeonhole principle becomes pretty cool when trying to think of more complicated and interesting problems. Suppose you were in a room with 365 other people (making it 366 in total). You can then proceed to wow everyone with your new found mathematical knowledge and say “Ahh, the pigeonhole principle tells me that set A (the room) has 366 elements (people), but set B (the year) only has 365 (days). Therefore, there is no injection from A to B! So at least one of you must have the same birthday as me!”</p>
<p>Perhaps a more subtle example might be: suppose you pick any 12 positive integers. Then you must be able to subtract one of the numbers from another one to get a multiple of 11.</p>
<p>Why? If you have a set of 12 numbers, if you divide the numbers in the set by 11, you must get a remainder of somewhere in between 0 and 10. That’s 11 different remainders that are possible. But there are 12 numbers in the set and so the pigeonhole principle tells you that at least 2 of the numbers have the same remainder after division by 11. If you subtract one from the other, you’ll get a number which is exactly divisible by 11, and hence is a multiple of 11!</p>
<p>Try to work through that example by choosing 12 actual numbers and checking it out if it didn’t make sense the first time. When you do get it, you’ll realise the power of the pigeon!</p>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/the-pigeonhole-principle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asymmetric information and high school effort grades</title>
		<link>http://www.neelsagar.co.uk/asymmetric-information-and-high-school-effort-grades/</link>
		<comments>http://www.neelsagar.co.uk/asymmetric-information-and-high-school-effort-grades/#comments</comments>
		<pubDate>Sat, 09 Apr 2011 15:37:37 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Economics]]></category>

		<guid isPermaLink="false">http://cd113be4-94cf-4952-8096-82a81fc57240</guid>
		<description><![CDATA[In high school, I remember thinking how our grading system was a total farce. We weren’t graded on ‘results’, allegedly. Instead, our teachers gave us [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-544" title="effort" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/04/effort.jpg" alt="" width="358" height="301" /></p>
<p>In high school, I remember thinking how our grading system was a total farce. We weren’t graded on ‘results’, allegedly. Instead, our teachers gave us a grading based on our ‘effort’. There were 5 grades in total:</p>
<p style="padding-left: 30px;">C &#8211; Commendable<br />
G &#8211; Good<br />
S &#8211; Satisfactory<br />
D &#8211; Disappointing<br />
U &#8211; Unsatisfactory</p>
<p>To me this was complete nonsense, because effort is not observable! What the teachers did was to look at the end product, and use that to infer some ‘perceived’ level of effort to base their grading upon. This isn’t the same thing as actually judging effort. I knew this because, quite often, my end product was pretty good and although it required minimal effort, I ended up with the top grade of C. Similarly, there were times where I put in a lot of effort, but got a poor effort grade because my end product was not so good.</p>
<h5>Asymmetric Information</h5>
<p>This situation is a classic example of ‘asymmetric information’. This is where one person (or party) can do some action, or has some information, that the other person cannot observe fully.</p>
<p>In terms of effort, this means that students could get away with putting in much less effort because teachers cannot accurately observe or measure it. On the flip side, teachers may misread a student’s effort based on their work.</p>
<h5>My effort</h5>
<p>I’m going to construct a fairly trivial model in the context of my high school effort grades to make things a little bit interesting.</p>
<p><a href="http://www.neelsagar.co.uk/wp-content/uploads/2011/04/effort-table.png"><img class="aligncenter size-full wp-image-543" title="effort table" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/04/effort-table.png" alt="" width="460" height="208" /></a></p>
<div id="id5">
<div>
<div>
<p>The table above shows the effort grades as I described before. In the 2nd column, I have assigned values to each grade, so that, for example, I’d get a reward of 3 if I got a G. In the 3rd column, is the minimum effort level I need to put in to obtain each grade, given a perfect world where effort was directly linked to grade. So if I put in somewhere in between 50% and 75% effort, I should get an S grade.</p>
<p>Again, for simplicity, suppose I am doing a piece of schoolwork that has just 2 outcomes: good (<strong>g</strong>) and bad (<strong>b</strong>). These outcomes are chosen from the 5 reward values that correspond to each effort grade. The probability of my work being good is <strong>e</strong> (i.e. the amount of effort I put in) and the probability of it being bad is <strong>1 &#8211; e</strong>.</p>
<p>Of course, putting in effort is costly for me. I want to get away with as little as possible. Suppose the cost of the effort I put in is given by the function <strong>2e<sup>2</sup></strong>. This means my expected payoff is:</p>
<p style="text-align: center;"><strong>ge + (1-e)b &#8211; 2e<sup>2</sup></strong></p>
<p>What would my optimal effort be? We just need to differentiate this function with respect to e and set it equal to 0 to obtain my optimal effort level e*:</p>
<p style="text-align: center;"><strong>e* = (g-b)/4</strong></p>
<p>What does this mean? My effort level depends on the difference between the grade that I get when I do good work and the grade that I get when I do bad work. Suppose my teacher decided to give me a C if I did good work and an D if I did bad work. This kind of thing happened often with teachers that were ‘nice’ and didn’t want to make students feel too bad if the work wasn’t good. They assumed that people still put in some effort and so wouldn’t give us a U unless we did something particularly crazy. Then g-b=3. So my optimal effort would be e=3/4, or 75%.</p>
<p>As a result of the teacher’s benevolence, I could get away with putting in less than 100% effort, and still stand a chance of achieving a C grade! According to the table above, this shouldn’t be possible since a C grade should only be given to students who put in 100% effort.</p>
<p>However, the flip side is that you could get particularly unfair teachers. They might only ever give a G if your work was good, and wouldn’t hesitate to give you a U if your work was bad. In this case, g-b is still the same as before, and so my effort is still 75%. But I’m in a worse situation. No matter whether my work is good or bad, this teacher will always give me a worse effort grade than the nice teacher. And yet I’m still exerting the same effort!</p>
<p>Of course, there were also some teachers who almost always gave me the same grade, regardless of my work. Quite common was the ‘G’ teacher. They didn’t want to spoil kids by giving them a C and making them feel too happy, but they didn’t want to demoralise either. This means that I’d have no incentive to put any effort in whatsoever!</p>
<h5>The bottom line</h5>
<p>This model is perhaps mathematically a bit silly. It’s not hugely sophisticated. But it explains my point quite simply and elegantly. Sure, your effort is vaguely linked to the effort grade you get. But at the end of the day, regardless of how much effort you actually put in, your grade mainly depends on:</p>
<ol>
<li value="1">The personality of the teacher</li>
<li value="2">Your actual end product</li>
</ol>
<p>There’s no objectivity or concreteness in trying to grade effort &#8211; something that you can’t reliably observe! Just one of the many reasons that I don’t miss high school at all&#8230;</p>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/asymmetric-information-and-high-school-effort-grades/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Interest Rates &#8211; or you say “jump”, I say “how high?”</title>
		<link>http://www.neelsagar.co.uk/interest-rates/</link>
		<comments>http://www.neelsagar.co.uk/interest-rates/#comments</comments>
		<pubDate>Tue, 22 Mar 2011 20:08:22 +0000</pubDate>
		<dc:creator>Neel</dc:creator>
				<category><![CDATA[Economics]]></category>

		<guid isPermaLink="false">http://52c7c323-3cb3-494d-960a-11684a5bdb03</guid>
		<description><![CDATA[As you can see from the graph above, UK interest rates have flatlined at 0.5% since the recession took full effect in 2009. At the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-537" title="500px-UK_interest_rates,_May_1997_to_present_" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/03/500px-UK_interest_rates_May_1997_to_present_.jpg" alt="" width="416" height="244" />As you can see from the graph above, UK interest rates have flatlined at 0.5% since the recession took full effect in 2009. At the time, economic activity was low, unemployment was rising and banks didn’t want to lend money to anyone. An interest rate cut was needed, and this is exactly what happened (although much <a title="A brief note on the UK interest rate cut" href="http://www.neelsagar.co.uk/a-brief-note-on-the-uk-interest-rate-cut/" target="_blank">later than I anticipated</a>).</p>
<p>It is true that the economy is suffering from unemployment and reduced consumer confidence even now, which is why budget cuts and <a href="Entries/2011/1/25_VATs_not_looking_too_good.html">tax rises</a> are arguably not helping matters. This is likely to be the reason that the Bank of England, up until now, have decided to keep interest rates at the lowly 0.5% for well over a year.</p>
<p>I was planning to predict an interest rate rise sometime this year and I might have sounded a little smarter if I wrote this article when I intended to in January! Now, it seems that people are all but certain that rates will go up at some point this year. Why is this?</p>
<h5>Inflation!</h5>
<p>Ahh yes, inflation. The magic word in monetary policy. The retail price index measure of inflation was announced as being at 5.5% p.a. and the consumer price index was announced as being at 4.4% p.a today. That is some way over the 2% target set by the government.</p>
<p>Food prices have been noticeably higher in recent months, but so have many other regular items of expenditure &#8211; from fuel to clothing.</p>
<p>This seems to confirm the fact that the original Phillips Curve relationship, which stated that there was a trade-off between unemployment and inflation, was really a phenomenon of the past (or a short run effect at best). This was also evident in the boom phase of the early 2000s, which saw low inflation and low unemployment &#8211; the polar opposite of what we are experiencing now.</p>
<p>According to the Taylor rule of monetary policy and the Fisher equation, optimal policy suggests a rise in interest rates higher than the increase in inflation is necessary to bring the real interest rate down, creating disinflationary pressure. So why have the Monetary Policy Committee been so cautious to raise interest rates?</p>
<h5>Delicate economy</h5>
<p>The obvious concern is the fact that the economy is still suffering the effects of the recession &#8211; possibly more so now in the so called ‘recovery’ phase. The risk is that with higher interest rates, it will put an even tighter squeeze on already suffering households by increasing lean and mortgage repayments and hence discouraging consumption. With the recent announcement that consumer confidence has fallen, raising interest rates is certainly risky.</p>
<h5>Expectations and Credibility</h5>
<p>Something that may go unnoticed by the average person is that monetary policy can actually happen just because people expect the Bank of England to do something. Because it is well known that they have a duty to maintain a 2% target level of inflation, when inflation gets high, people expect interest rates to go up. When this happens, they start adjusting their behaviour before anything actually happens.</p>
<div id="attachment_538" class="wp-caption aligncenter" style="width: 500px"><img class="size-full wp-image-538" title="chart" src="http://www.neelsagar.co.uk/wp-content/uploads/2011/03/chart.jpg" alt="" width="490" height="250" /><p class="wp-caption-text">Source: www.bloomberg.com</p></div>
<div id="id3">
<div>
<div>
<p>A good indicator for what people expect to happen with interest rates is the yield curve for government bonds. The yield curve above shows that there are higher yields for longer term bonds. In other words, this means that people expect interest rates to increase over time. If you flipped the graph vertically, it would imply lower interest rates in future. This is known as an ‘inverted yield curve’.</p>
<p>The fact that people expect interest rates to increase may mean that they start saving more now, that banks increase saving and borrowing rates, that investment begins to fall and so on. This means that the Bank need not actually do anything to achieve (partially at least) the results that they want.</p>
<p>Great right? Well, if the Bank decides to do nothing after all, they will begin to lose credibility. This would be a very bad thing. Increased uncertainty increases risk for firms, banks and individuals and this can do horrible things to the economy. We certainly don’t want to go back to the situation in the recession where everyone was left cowering in the corner &#8211; nobody was lending and nobody was spending.</p>
<h5>The Prediction</h5>
<p>To maintain face and faith, I’m confident that the Bank will have to interest rates at some point this year (I was confident of this in January, and I’m even more so now). The question is ‘by how much?’</p>
<p>It’s definitely a delicate decision, and one that somewhat justifies the cautious approach that has been taken. However, I think interest rates have been somewhat ‘undervalued’ and so I’d expect them to be at least at 1% by the end of 2011, if not higher.</p>
<p>If that happens, remember, you heard it here!</p>
<p><span style="font-size: x-small;">If not, I’ll be whistling innocently in the corner somewhere far away&#8230;</span></p>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.neelsagar.co.uk/interest-rates/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

