<?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>Twenty Third Floor &#187; modelling</title>
	<atom:link href="http://twentythirdfloor.co.za/category/modelling/feed/" rel="self" type="application/rss+xml" />
	<link>http://twentythirdfloor.co.za</link>
	<description>Creating a technical business advantage through analysis, research and insight.</description>
	<lastBuildDate>Sun, 05 Feb 2012 21:04:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How not to calibrate a model</title>
		<link>http://twentythirdfloor.co.za/2011/10/30/how-not-to-calibrate-a-model/</link>
		<comments>http://twentythirdfloor.co.za/2011/10/30/how-not-to-calibrate-a-model/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 11:12:45 +0000</pubDate>
		<dc:creator>David Kirk</dc:creator>
				<category><![CDATA[complexiy]]></category>
		<category><![CDATA[data analysis]]></category>
		<category><![CDATA[measurement]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[optimisation]]></category>
		<category><![CDATA[predictive modelling]]></category>

		<guid isPermaLink="false">http://twentythirdfloor.co.za/?p=1593</guid>
		<description><![CDATA[Any model is a simplification of reality. If it isn&#8217;t, then it isn&#8217;t a model as rather is the reality. A MODEL ISN&#8217;T REALITY Any simplified model I can imagine will also therefore not match reality exactly. The closer the &#8230; <a href="http://twentythirdfloor.co.za/2011/10/30/how-not-to-calibrate-a-model/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<h3><span class="Apple-style-span" style="font-size: 15px; letter-spacing: normal; line-height: 24px; text-transform: none;">Any model is a simplification of reality. If it isn&#8217;t, then it isn&#8217;t a model as rather is the reality.</span></h3>
<h3>A MODEL ISN&#8217;T REALITY</h3>
<p>Any simplified model I can imagine will also therefore not match reality exactly. The closer the model gets to the real world in more scenarios, the better it is.</p>
<h3>Not all model parameters are created equal</h3>
<p>Part of the approach to getting a model to match reality as closely as possible is calibration. Models will typically have a range of parameters. Some will be well-established and can be set confidently without much debate. Others will have a range of reasonable or possible values based on empirical research or theory. Yet others will be relatively arbitrary or unobservable.</p>
<p>We don&#8217;t have to guess these values, even for the unobservable parameters. Through the process of calibration, the outputs of our model can be matched as closely as possible to actual historical values by changing the input parameters. The more certain we are of the parameters <em>a priori </em>the less we vary the parameters to calibrate the model. The parameters with most uncertainty are free to move as much as possible to fit the desired outputs.</p>
<p>During this process, the more structure or relationships that can be specified the better. The danger is that with relatively few data points (typically) and relatively many parameters (again typically) there will be multiple parameter sets that fit the data with possibly only very limited difference in &#8220;goodness of fit&#8221; for the results. The more information we add to the calibration process (additional raw data, more narrowly constrained parameters based on other research, tighter relationships between parameters) the more likely we are to derive a useful, sensible model that not only fits out calibration data well but also will be useful for predictions of the future or different decisions.</p>
<h3>How not to calibrate a model</h3>
<p><a href="http://www.scientificamerican.com/article.cfm?id=finance-why-economic-models-are-always-wrong">Scientific American has a naive article outlining &#8220;why economic models are always wrong&#8221;</a>. I have two major problems with the story:<span id="more-1593"></span></p>
<ol>
<li>All models are wrong. Some are useful (George Box). &#8220;wrongness&#8221; isn&#8217;t a problem with a model, but lack of usefulness is. The headline demonstrates a starting point poorly informed about the point of economic models.</li>
<li>The calibration approach criticised in the article is an extremely poor way to calibrate a model. No serious researcher thinks that is the right way to calibrate a model. So the article merely creates a straw man and then demonstrates how easy it is to knock the argument over.</li>
</ol>
<h3>Calibration and back-testing on separate data sets</h3>
<p>The right way to calibrate a model is to separate the data-set into at least two independent subsets. Firstly, the &#8220;training set&#8221; or portion from which we will calibrate our parameters to get them to match as closely as possible the data. Again, this should make use of all information available and may give rise to several competing models that appear to fit the data similarly well.</p>
<p>The next step is crucial. We back-test the derived models against the second subset of data. This data comes from the same reality (perhaps a different time period) as used to calibrate the model, but the model won&#8217;t trivially match the data because none of that data was used to calibrate the model in the first place.</p>
<h3>The importance of back-testing</h3>
<p>Back-testing is critically important in the model building process, but back-testing against the same data used to calibrate the model is worth than useless (since it takes time and effort and an create a false sense of accuracy or reliability in the model.) Separating the data into two or more subsets is absolutely required, although it has the unfortunate side-effect of reducing the size of the data-set available for calibration.</p>
<h3>Yes, it really matters.</h3>
<p>A common example of the dangers of bad models fitting data well is with Economic Scenario Generators. These simulate economic scenarios to be used in valuing complex financial securities. If a model is properly calibrated, it will recreate the observable market prices of a wide range of instruments. However, the model could be a black-box neural network, a carefully constructed theoretical model with plausible relationships and constraints, or the proverbial ten thousand (possibly inebriated) monkeys. If all three models are perfectly calibrated to observable market prices, is any of the models inferior to any of the others?</p>
<p>Clearly the answer is yes, but only when it comes to extrapolation. I have far more confidence in the model&#8217;s ability to create &#8220;market consistent&#8221; valuations for instruments that do not have observable prices in the market if I understand how the mechanics of the model make sense on a level other than pure calibration.</p>
<h3>Trivial 3 point example</h3>
<div id="attachment_1594" class="wp-caption alignnone" style="width: 1230px"><a href="http://twentythirdfloor.co.za/blog_files/wp-content/uploads/2011/10/model-fitting.png"><img class="size-full wp-image-1594" title="model fitting" src="http://twentythirdfloor.co.za/blog_files/wp-content/uploads/2011/10/model-fitting.png" alt="3 point example of fitted models" width="1220" height="850" /></a><p class="wp-caption-text">Perfect fit of two models to 3 data points</p></div>
<p>The example above shows a perfect of a quadratic and cubic model to 3 data points. From this graph, both models appear exactly the same.</p>
<p>However, if we use the model to extrapolate to future time periods, the results are very different. Without additional data to back-test the results on, it&#8217;s not possible to tell whether either or any of these models is appropriate, but clearly both can&#8217;t be correct.</p>
<div id="attachment_1595" class="wp-caption alignnone" style="width: 1230px"><a href="http://twentythirdfloor.co.za/blog_files/wp-content/uploads/2011/10/model-fitting-extrapolation.png"><img class="size-full wp-image-1595" title="model fitting - extrapolation" src="http://twentythirdfloor.co.za/blog_files/wp-content/uploads/2011/10/model-fitting-extrapolation.png" alt="Example showing extrapolation of two models diverging from each other" width="1220" height="850" /></a><p class="wp-caption-text">Extrapolation of the two models shows divergent results</p></div>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://twentythirdfloor.co.za/2008/09/15/mark-up-a-new-one-for-the-back-testing-books/" rel="bookmark" class="crp_title">Mark up a new one for the back-testing books</a></li><li><a href="http://twentythirdfloor.co.za/2006/10/21/additional-analysis-of-seomoz-web-popularity-data/" rel="bookmark" class="crp_title">Additional Analysis of SEOmoz web popularity data</a></li><li><a href="http://twentythirdfloor.co.za/2010/10/07/why-youre-mis-estimating-the-equity-risk-premium-6/" rel="bookmark" class="crp_title">Why you&#8217;re mis-estimating the Equity Risk Premium #6</a></li><li><a href="http://twentythirdfloor.co.za/2006/10/15/models-theres-wrong-and-then-there-is-wrong/" rel="bookmark" class="crp_title">Models: there&#8217;s wrong and then there is Wrong</a></li><li><a href="http://twentythirdfloor.co.za/2010/02/01/new-operational-risk-guidance-from-solvency-ii/" rel="bookmark" class="crp_title">New operational risk guidance from Solvency II</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://twentythirdfloor.co.za/2011/10/30/how-not-to-calibrate-a-model/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multi-tasking lowers productivity</title>
		<link>http://twentythirdfloor.co.za/2010/11/09/multi-tasking-lowers-productivity/</link>
		<comments>http://twentythirdfloor.co.za/2010/11/09/multi-tasking-lowers-productivity/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 08:45:45 +0000</pubDate>
		<dc:creator>David Kirk</dc:creator>
				<category><![CDATA[insight]]></category>
		<category><![CDATA[measurement]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[optimisation]]></category>

		<guid isPermaLink="false">http://twentythirdfloor.co.za/?p=865</guid>
		<description><![CDATA[I have to multi-task. I am the bottle-neck for too many problems already and my team needs input from me before they can continue in many areas. But I know it doesn&#8217;t make me efficient. Switching between tasks takes time. &#8230; <a href="http://twentythirdfloor.co.za/2010/11/09/multi-tasking-lowers-productivity/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have to multi-task. I am the bottle-neck for too many problems already and my team needs input from me before they can continue in many areas.</p>
<p>But I know it doesn&#8217;t make me efficient. Switching between tasks takes time. You forget important details, and struggle to get the depth of understanding and focus required for complex issues. The cross-pollination of ideas and solutions doesn&#8217;t come close to making up for these drawbacks.</p>
<p>From the research:</p>
<blockquote><p>Descriptive evidence suggests that judges who keep fewer trials active and wait to close the open ones before starting new ones, dispose more rapidly of a larger number of cases per unit of time. In this way, their backlog remains low even though they receive the same workload as other judges who juggle more trials at any given time.</p></blockquote>
<p>Did you read those magic words? &#8220;&#8230;backlog remains low&#8230;&#8221; I don&#8217;t know anyone who doesn&#8217;t wish for the luxury of a shorter backlog of work.</p>
<p>The paper itself is fairly complex, analysing theoretical models of human task scheduling.  You should probably add it to your pile of things to read in the middle of other work.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://twentythirdfloor.co.za/2007/06/04/some-of-the-magic-behind-optimising-googles-search-algorithms/" rel="bookmark" class="crp_title">Some of the magic behind optimising Google&#8217;s search algorithms</a></li><li><a href="http://twentythirdfloor.co.za/2007/02/04/follow-up-on-gold-hedging-western-areas-south-deep-and-goldfields/" rel="bookmark" class="crp_title">Follow up on gold hedging: Western Areas, South Deep and GoldFields</a></li><li><a href="http://twentythirdfloor.co.za/2008/07/24/actuarial-consulting-career-part-2-system-development/" rel="bookmark" class="crp_title">Actuarial consulting career part 2 &#8211; system development</a></li><li><a href="http://twentythirdfloor.co.za/2006/10/15/models-theres-wrong-and-then-there-is-wrong/" rel="bookmark" class="crp_title">Models: there&#8217;s wrong and then there is Wrong</a></li><li><a href="http://twentythirdfloor.co.za/2010/10/14/i-promise-to-pay-the-bearer/" rel="bookmark" class="crp_title">I promise to pay the bearer</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://twentythirdfloor.co.za/2010/11/09/multi-tasking-lowers-productivity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Property investment &#8211; the value of data over opinions</title>
		<link>http://twentythirdfloor.co.za/2010/09/01/property-investment-the-value-of-data-over-opinions/</link>
		<comments>http://twentythirdfloor.co.za/2010/09/01/property-investment-the-value-of-data-over-opinions/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 06:10:56 +0000</pubDate>
		<dc:creator>David Kirk</dc:creator>
				<category><![CDATA[business tools]]></category>
		<category><![CDATA[creating value]]></category>
		<category><![CDATA[data analysis]]></category>
		<category><![CDATA[insight]]></category>
		<category><![CDATA[investments]]></category>
		<category><![CDATA[managing uncertainty]]></category>
		<category><![CDATA[market risk]]></category>
		<category><![CDATA[measurement]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[predictive modelling]]></category>
		<category><![CDATA[property]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://twentythirdfloor.co.za/?p=595</guid>
		<description><![CDATA[Lightstone have a trick up their sleeves. Their raison d&#8217;être is collecting, analysing, understanding and packaging data for themselves and others to use to understand past, current and future property valuations. Their housing price index is more robust (and more &#8230; <a href="http://twentythirdfloor.co.za/2010/09/01/property-investment-the-value-of-data-over-opinions/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p id="firstHeading"><a href="http://www.lightstone.co.za/LSC/Content/Home/default.aspx">Lightstone </a>have a trick up their sleeves. Their <em>raison d&#8217;être </em>is<em> </em>collecting, analysing, understanding and packaging data for themselves and others to use to understand past, current and future property valuations.</p>
<p><a href="http://www.lightstone.co.za/LSC/Content/NewsRoom/HousePriceIndex.aspx">Their housing price index</a> is more robust (and more independent) than those of the banks based off their own data and target markets. Rather than consider only the average price of houses sold in that particular month (which is a function of house price growth / decline <strong>but also how the type, condition, size and location of the houses sold that month differ from the prior month and year</strong>) they consider repeat sales where the same property has been bought and sold more than once.</p>
<p>This data is combined or &#8220;chain-linked&#8221; to provide a continuous measure of house price inflation over time.</p>
<p style="text-align: center;">
<div id="attachment_596" class="wp-caption aligncenter" style="width: 491px"><a href="http://www.lightstone.co.za/LSC/Content/NewsRoom/HousePriceIndex.aspx"><img class="size-full wp-image-596 " title="House Price Inflation 2010" src="http://twentythirdfloor.co.za/blog_files/wp-content/uploads/2010/09/House-Price-Inflation-2010.png" alt="House Price Inflation 2010" width="481" height="313" /></a><p class="wp-caption-text">House Price Inflation 2010 source: lightstone.co.za</p></div>
<p>The result of all of this data, best-in-class methodology and analysis? When Lightstone says &#8220;<a href="http://www.realestateweb.co.za/realestateweb/view/realestateweb/en/page206?oid=64347&amp;sn=Detail&amp;pid=1">opportunities abound in local market</a>&#8221; I actually listen. Since their business model is to sell information, I&#8217;m more likely to trust what they say.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://twentythirdfloor.co.za/2009/02/16/or-is-this-a-property-crash/" rel="bookmark" class="crp_title">Or is this a property crash?</a></li><li><a href="http://twentythirdfloor.co.za/2008/06/03/so-this-is-what-a-downturn-looks-like/" rel="bookmark" class="crp_title">So this is what a downturn looks like</a></li><li><a href="http://twentythirdfloor.co.za/2010/10/14/interactive-house-price-data-including-south-africa/" rel="bookmark" class="crp_title">Interactive house price data (including South Africa)</a></li><li><a href="http://twentythirdfloor.co.za/2008/10/15/lack-of-faith-in-absa-house-price-index/" rel="bookmark" class="crp_title">Lack of faith in ABSA house price index</a></li><li><a href="http://twentythirdfloor.co.za/2009/02/12/now-thats-a-property-crash/" rel="bookmark" class="crp_title">Now that&#8217;s a property crash</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://twentythirdfloor.co.za/2010/09/01/property-investment-the-value-of-data-over-opinions/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Most decisions are made without all the information</title>
		<link>http://twentythirdfloor.co.za/2010/08/30/most-decisions-are-made-without-all-the-information/</link>
		<comments>http://twentythirdfloor.co.za/2010/08/30/most-decisions-are-made-without-all-the-information/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 07:45:30 +0000</pubDate>
		<dc:creator>David Kirk</dc:creator>
				<category><![CDATA[Actuarial and Risk]]></category>
		<category><![CDATA[creating value]]></category>
		<category><![CDATA[insight]]></category>
		<category><![CDATA[managing uncertainty]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[optimisation]]></category>
		<category><![CDATA[predictive modelling]]></category>

		<guid isPermaLink="false">http://twentythirdfloor.co.za/?p=578</guid>
		<description><![CDATA[Tyler Reed blogs about entrepreneurs having to make decisions with limited information. It&#8217;s almost all unknown I don&#8217;t disagree.  It&#8217;s just that almost every meaningful decision ever made is made without all the information. Unknowns can be categorised a hundred &#8230; <a href="http://twentythirdfloor.co.za/2010/08/30/most-decisions-are-made-without-all-the-information/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Tyler Reed blogs about entrepreneurs <a href="http://tyler.im/business/making-decisions-with-limited-information.html">having to make decisions with limited information</a>.</p>
<h3>It&#8217;s almost all unknown</h3>
<p>I don&#8217;t disagree.  It&#8217;s just that almost every meaningful decision ever made is made without all the information.</p>
<p>Unknowns can be categorised a hundred different ways. One way is to think about:</p>
<ol>
<li>Unknown past information</li>
<li>Uncertainty around the current situation or position</li>
<li>Unknown future outcomes</li>
</ol>
<p>Even a game like chess, where the past history of the game is easily known by good players, the current position is clearly visible and all the possible moves are knowable, it is  not possible have all the information about how your opponent will  react to your move.</p>
<h3>How to deal with decision making under uncertainty &#8211; part 1</h3>
<p>Tyler suggests that gut-based decision making can be effective much of the time &#8211; and it can. It there genuinely is no time for anything more than an instinctive reaction, you probably are best going with your gut.</p>
<p>Even if you have plenty of time, listening to your guy to formulate an idea is a great idea. Insight comes partly from experience and the reinforced neural pathways of our learning brain. If you stop with the gut though, you are missing out. There is a tremendous amount of research showing how ridiculously badly our instincts perform in many areas, <strong>particularly those relating to uncertainty and complexity!<span id="more-578"></span></strong></p>
<p>The way to use your instincts is to create hypotheses or theories to test and evaluate with real information and analysis. Prove that your instinct is right and you&#8217;re good to go. Try really hard and not disprove it, without coming up with better ideas, well maybe it&#8217;s worth giving it a shot anyway. Realising that your immediate feelings were deeply flawed? Priceless.<strong></strong></p>
<h3>How to deal with decision making under uncertainty &#8211; part 2</h3>
<p>Tyler also gives four suggestions if you don&#8217;t want to merely follow your instincts blindly.</p>
<ol>
<li>Stop and Think</li>
<li>Ask for Advice</li>
<li>Give it Time</li>
<li>Relax and Have Fun</li>
</ol>
<p>These probably aren&#8217;t the four worst ways to make decisions, but they&#8217;re certainly not the best.</p>
<p><em>Stop and Think</em> is merely an invitation not to follow your gut. No news here.</p>
<p><em>Ask for Advice</em> is actually pretty good. It&#8217;s just not the correct first step though (more on that in a moment).</p>
<p><em>Give it Time</em> can also work, but on its own its just a different way of using your instincts. You&#8217;ll never know if, how or why you changed your mind. You also put yourself at extreme risk of confirmation bias.</p>
<p><em>Relax and Have Fun</em> certainly sounds like a good idea, although whether it will give rise to good decisions depends very much on the time of industry and type of problem. In the same way that brainstorming is a good method for marketing and social appeal of ideas (it was invented by <a href="http://en.wikipedia.org/wiki/Alex_Faickney_Osborn">Alex Oxborn, an advertising manager</a>) but not great for most other problems, relaxing and having fun offers no real promise of sophisticated decision making with uncertainty and complexity.</p>
<h3>How should you make decisions with limited information?</h3>
<p>I&#8217;m not going to say there is one correct way, but the following points are helpful:</p>
<ul>
<li><strong>Work out, very specifically, what problem you&#8217;re trying to solve or what question you&#8217;re trying to answer.</strong> Sometimes framing the question clearly can provide its own insights. Further, if you are to work collaboratively with others, or seek advice, you&#8217;ll have to have a very clear idea of what you&#8217;re trying to achieve. Communication is critical to teamwork.</li>
<li><strong>Work out what information you have, what you need</strong>, what you could get, where you can get it and what the costs might be of obtaining this information. Now you can ask for advice because you know what you&#8217;re asking for.</li>
<li><strong>Use your instincts and initial thoughts and feelings</strong> to generate some avenues of investigation or hypotheses to test</li>
<li><strong>Actively work to generate new ideas and possible solutions or lines of investigation</strong>. Here, brainstorming might be useful as one method. Consider similar problems, examples or analogies from other people, other organisations, other industries, other countries and cultures, other time periods. This is where you get to be creative. Don&#8217;t worry too much about whether or not the ideas are workable &#8211; that comes later.</li>
<li><strong>Categorise and prioritise the information, questions and hypotheses</strong>. As you finish generating ideas, you need to start synthesizing the ideas into useful units.</li>
<li><strong>Critical evaluate the ideas, using logic, analysis, modelling and frameworks</strong>. Evaluation here requires both sides of the coin. What are the problems, the flaws, the risks, the reasons it can&#8217;t work. Then, what can we change, tweak, fix or improve to get around these problems or otherwise improve the scenario.</li>
</ul>
<p>Throughout, ensure you keep the big picture in mind, that you remember what you&#8217;re trying to achieve. The dangers of under-analysis are only trumped by too much, misdirected meandering analysis.  Keep it focussed.</p>
<p>The steps above don&#8217;t necessarily have to be done in order, and typically each step can be revisited several times during the process. These ideas borrow heavily from <a href="http://en.wikipedia.org/wiki/Six_Thinking_Hats">Edward de Bono&#8217;s Six Hats of Thinking</a>.</p>
<p>The point here is that complexity and uncertainty requires a more, not less, structured approach to use as much information as possible and to avoid many of the heuristic mistakes humans make. This is true in general, but even more so if you need to work in a team or need to convince external parties of your process to lend credibility to your decisions.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://twentythirdfloor.co.za/2008/07/27/5-mistakes-when-you-leave-the-science-out-of-marketing/" rel="bookmark" class="crp_title">5 Mistakes you make when you leave the science out of marketing</a></li><li><a href="http://twentythirdfloor.co.za/2007/07/30/fooled-by-the-black-swan/" rel="bookmark" class="crp_title">Fooled by the Black Swan</a></li><li><a href="http://twentythirdfloor.co.za/2007/06/04/some-of-the-magic-behind-optimising-googles-search-algorithms/" rel="bookmark" class="crp_title">Some of the magic behind optimising Google&#8217;s search algorithms</a></li><li><a href="http://twentythirdfloor.co.za/2006/10/07/measuring-marketing-for-law-firms/" rel="bookmark" class="crp_title">Measuring marketing for law firms</a></li><li><a href="http://twentythirdfloor.co.za/2007/06/27/unreal-currency-risks-in-zimbabwe/" rel="bookmark" class="crp_title">Unreal currency risks in Zimbabwe&#8230; and how to manage currency risk if you still can.</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://twentythirdfloor.co.za/2010/08/30/most-decisions-are-made-without-all-the-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Things to Learn from Monopoly</title>
		<link>http://twentythirdfloor.co.za/2010/08/28/5-things-to-learn-from-monopoly/</link>
		<comments>http://twentythirdfloor.co.za/2010/08/28/5-things-to-learn-from-monopoly/#comments</comments>
		<pubDate>Sat, 28 Aug 2010 07:30:43 +0000</pubDate>
		<dc:creator>David Kirk</dc:creator>
				<category><![CDATA[Actuarial and Risk]]></category>
		<category><![CDATA[business tools]]></category>
		<category><![CDATA[competition]]></category>
		<category><![CDATA[creating value]]></category>
		<category><![CDATA[economics]]></category>
		<category><![CDATA[financial risk]]></category>
		<category><![CDATA[insight]]></category>
		<category><![CDATA[managing uncertainty]]></category>
		<category><![CDATA[measurement]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[optimisation]]></category>

		<guid isPermaLink="false">http://twentythirdfloor.co.za/?p=571</guid>
		<description><![CDATA[I haven&#8217;t played Monopoly in a while (preferring Settlers of Catan, Carcasonne, Tigris and Euphrates and even Cranium), but after a recent conversation I started thinking about the game dynamics. There is surprisingly much that is relevant to the current &#8230; <a href="http://twentythirdfloor.co.za/2010/08/28/5-things-to-learn-from-monopoly/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t played Monopoly in a while (preferring Settlers of Catan, Carcasonne, Tigris and Euphrates and even Cranium), but after a recent conversation I started thinking about the game dynamics. There is surprisingly much that is relevant to the current story of our economy.</p>
<h3>1 The Competition Commission is necessary</h3>
<p>Monopolies serve to increase prices for consumers. In Monopoly, the &#8220;rents&#8221; charged are instantly higher as soon as a player has a monopoly on property in a certain area.</p>
<p>Worse than the increase in prices and decrease in supply, the additional profit for suppliers is not equal to the cost to consumers from higher prices, resulting in an overall &#8220;dead weight loss of monopoly&#8221; or an overall cost to society.<span id="more-571"></span></p>
<p>To date, the Competition Commission has focussed on cartels and price collusion. We can only hope soon they will consider issues of local loop unbundling to provide real competition to the effective monopoly Telkom has on ADSL lines.</p>
<h3>2 The easy availability of credit is a useful and dangerous tool</h3>
<p>An important consideration in Monopoly is to prevent competitors from owning property (so that you don&#8217;t have to pay rent on as many properties as possible) and definitely don&#8217;t get a monopoly (so they can increase rents and improve the properties, increasing rents even further).</p>
<p>A key way of doing this is by buying as many properties as possible, even if you mortgage many of them with a fresh injection of cash from the bank and very reasonable repayment terms. Leverage, or borrowing, can provide cost effective (especially after tax considerations) financing for profitable projects. It can be cheaper to raise than equity and increases returns to shareholders.</p>
<p>Leverage also creates significant risks, both in Monopoly and real life. Overextending can make you more likely to end up bankrupt. Also, by artificially increase the supply of funds for purchasing property while keeping the supply constant, the price of property will increase dramatically with distorting impacts on the allocation of resources within an economy.</p>
<h3>3 Trading is good for those who trade</h3>
<p>Every time two people (or organisations, or countries) trade, both parties are better off than they were before. (A hint, otherwise they wouldn&#8217;t have traded.) The trading parties are each better off, and the non-trading competitors are worse off, because a potential trade is now off the table and they are not in a better position otherwise.</p>
<p>There are some plausible arguments for trade restrictions in very particular circumstances. For example, I think I buy the idea of nurturing infant industries, but only if there is a reasonable chance that the industries won&#8217;t only grow as far as pimply, sulky adolescents with no drive or ambition.</p>
<p>Other than that, trade is good as it increases prosperity on average, which is one important way to lift more families incomes above the poverty line.</p>
<h3>4 Liquidity risk can be the end of you</h3>
<p>While buying as much property as possible and mortgaging some to provide additional funds will generally work in your favour and allow you greater control over the board, it also introduces liquidity risk. If you don&#8217;t have the funds to pay rent or taxes or fines when they unexpectedly fall due, you will be forced into a fire-sale of houses and hotels at way below replacement cost. You may need to mortgage even more properties, reducing your income generating ability and possibly sending you into a debt trap where your income isn&#8217;t sufficient to meet your expenses.</p>
<p>Always watch your liquidity. It has almost become a truism that more businesses fail because of liquidity than solvency or profitability.</p>
<h3>5 The world is full of randomness, but it always helps to calculate the numbers</h3>
<p>In Monopoly, the player &#8220;roles the dice and moves the mice&#8221; so to speak. There is plenty of luck around and skill can seem to disappear in an avalanche of random numbers.</p>
<p>Nassim Taleb (of Fooled By Randomness fame) would suggest that in everyday life we underestimate risk and overestimate skill. I tend to agree with this overall comment. It doesn&#8217;t mean that we should try to use our skill as much as possible.</p>
<p>Did you know that certain properties are relatively more valuable than others? The properties just after Jail are more likely to be hit than others, since several cards and one square on the board send the player to jail. Similarly, several chance cards require the player to advance a certain way, making the squares immediately after a chance square less likely to be hit. The cost to benefit of houses on certain squares are better than others, and the best bang for buck is somewhere between 2 and 3 houses per property.</p>
<p>It&#8217;s important to be aware that risk and uncertainty exists, but it&#8217;s more important to understand risk in a way that allows informed, risk-aware decisions to be made.</p>
<p><strong>Identify, measure, mitigate and monitor risk!</strong></p>
<h3>Are all the lessons good?</h3>
<p>Slightly tongue in cheek, there are a few other lessons of dubious validity:</p>
<ol>
<li><a href="http://www.prefixmag.com/news/lil-wayne-made-more-money-in-jail-this-year-than-h/43548/">Stay in jail and make more money</a></li>
<li><a href="http://www.guardian.co.uk/money/2007/aug/31/australia.internationalnews">You get to keep the money if the bank makes an error in your favour</a></li>
<li><a href="http://en.wikipedia.org/wiki/Negative_amortization">You can take as long as you want to repay your mortgage and only have to pay 10% interest</a></li>
<li><a href="http://www.guardian.co.uk/business/2009/mar/06/bank-of-england-printing-money1">If the bank runs out of money, it can always photocopy some more</a></li>
<li><a href="http://news.bbc.co.uk/2/hi/business/8553979.stm">When the game is over, you can forget about the debt you have and walk away</a></li>
</ol>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://twentythirdfloor.co.za/2011/08/14/confusion-about-mortgage-interest-deductions-and-ultimate-lenders/" rel="bookmark" class="crp_title">Confusion about mortgage interest deductions and ultimate lenders</a></li><li><a href="http://twentythirdfloor.co.za/2008/08/07/pass-me-that-nail-would-you/" rel="bookmark" class="crp_title">Pass me that nail would you</a></li><li><a href="http://twentythirdfloor.co.za/2011/07/17/weird-and-worrying-rate-increase-proposal/" rel="bookmark" class="crp_title">Weird and worrying rate increase proposal</a></li><li><a href="http://twentythirdfloor.co.za/2008/07/07/what-is-your-total-property-return/" rel="bookmark" class="crp_title">What is your total property return?</a></li><li><a href="http://twentythirdfloor.co.za/2008/10/15/lack-of-faith-in-absa-house-price-index/" rel="bookmark" class="crp_title">Lack of faith in ABSA house price index</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://twentythirdfloor.co.za/2010/08/28/5-things-to-learn-from-monopoly/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>What other people want</title>
		<link>http://twentythirdfloor.co.za/2010/08/23/what-other-people-want/</link>
		<comments>http://twentythirdfloor.co.za/2010/08/23/what-other-people-want/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 07:30:39 +0000</pubDate>
		<dc:creator>David Kirk</dc:creator>
				<category><![CDATA[Actuarial and Risk]]></category>
		<category><![CDATA[data analysis]]></category>
		<category><![CDATA[economics]]></category>
		<category><![CDATA[insight]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[operational risk]]></category>
		<category><![CDATA[optimisation]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://twentythirdfloor.co.za/?p=557</guid>
		<description><![CDATA[Apparently, car thieves don&#8217;t want your pink car. It&#8217;s not because they don&#8217;t like the colour (although they probably don&#8217;t). It&#8217;s also not only that it&#8217;s too distinctive and will be easily spotted (see the discussion later about red cars). &#8230; <a href="http://twentythirdfloor.co.za/2010/08/23/what-other-people-want/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Apparently, car thieves don&#8217;t want your pink car. It&#8217;s not because they don&#8217;t like the colour (although they probably don&#8217;t). It&#8217;s also not only that it&#8217;s too distinctive and will be easily spotted (see the discussion later about red cars).</p>
<p>It&#8217;s that nobody else wants it. The resale value is much lower than other vehicles, and the risks and costs of stealing it are no lower.</p>
<p>Unlike the conclusion around <a href="http://twentythirdfloor.co.za/2009/02/27/hijacking-risk-measures/">high risk vehicles in my post on hijacking</a>, this actually means you should be safer in a pink car. Just not safer from ridicule.</p>
<p>Dutch professor, <a href="http://www.tilburguniversity.nl/webwijs/show/?uid=b.a.vollaard">Ben Vollaard</a>, <a href="http://www.voxeu.org/index.php?q=node/5262">studied theft rates for vehicles</a> as part of his research area of the economics of crimes. The data covered 109 vehicles from 2004 to 2008. Not the largest sample size, but enough to start thinking.<span id="more-557"></span></p>
<p>From the research:</p>
<blockquote><p>a car thief interested in making money can be expected to go for cars  with the highest resale value, i.e. cars in the most popular exterior  colours. Colour is key in the car market.  A car in silver or yellow  goes for the same price at the dealership, but the resale value greatly  differs between the two.  <a href="http://www.naaa.com/i4a/pages/index.cfm?pageID=3384">The National Auto Auction Association  estimates that on average a used car in a popular colour sells for  $1,000 more than the same car with a less desirable colour (NAAA 2010)</a>.</p></blockquote>
<h3>What colours people want</h3>
<p><a href="http://www2.dupont.com/Automotive/en_US/news_events/article20091201.html">DuPont provides a list of the global popularity of vehicle colours</a>:</p>
<p>Top Ten Global Vehicle Colors</p>
<p>1. Silver – 25 percent<br />
2. Black – 23 percent<br />
3. White – 16 percent<br />
4. Gray – 13 percent<br />
5. Blue – 9 percent<br />
6. Red – 8 percent<br />
7. Brown/Beige – 4 percent<br />
8. Green – 1 percent<br />
9. Yellow/Gold – 1 percent<br />
10. Others – &lt;1 percent</p>
<p>Pink, along with purple and polka dots and everything else represents less than 1% of the vehicles on the road.</p>
<p>This is a global study, but it ties with my sense of colour popularity in South Africa.  Interestingly, in India, red is in third place with 16.1%. Green is the second most popular colour in Russia with 18.2% of all cars.</p>
<h3>What criminals want</h3>
<p>The link between market popularity and theft risk is obvious:</p>
<p style="text-align: center;">
<div id="attachment_565" class="wp-caption aligncenter" style="width: 504px"><a href="http://www.voxeu.org/index.php?q=node/5262"><img class="size-full wp-image-565   " title="Risk of theft by colour" src="http://twentythirdfloor.co.za/blog_files/wp-content/uploads/2010/08/Vollaardfig2.png" alt="Theft risk by colour (%), cars up to three years old, 2004-2008, the Netherlands. Source Ben Vollaard" width="494" height="305" /></a><p class="wp-caption-text">Theft risk by colour (%), cars up to three years old, 2004-2008, the Netherlands. Source Ben Vollaard</p></div>
<p>The risk of theft for black, silver and blue cars is notably higher than for other, less popular colours. Not a single pink car was stolen in the sample.</p>
<p>The research also shows that there is more at work here than the visibility of the cars. Red cars have decreased in popularity over time. As the popularity has decreased, so has the risk of theft. The cars haven&#8217;t become less visible to police over the period, but as their popularity changes, so the resale value declines. This reduced value to thieves makes them less attractive and therefore less risky for the owner (not the criminal&#8230;).</p>
<h3>Should you want what others don&#8217;t?</h3>
<p>If you plan to keep the car forever, and if you can stomach driving a pink vehicle, maybe you should consider pink to be the new black. If you are planning to ever have to sell the vehicle, you&#8217;ll be in the same (pink) boat as the criminals.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://twentythirdfloor.co.za/2010/08/25/more-on-cars-and-colour/" rel="bookmark" class="crp_title">More on cars and colour</a></li><li><a href="http://twentythirdfloor.co.za/2010/03/11/i-park-on-the-fourth-floor/" rel="bookmark" class="crp_title">I park on the fourth floor</a></li><li><a href="http://twentythirdfloor.co.za/2008/06/03/so-this-is-what-a-downturn-looks-like/" rel="bookmark" class="crp_title">So this is what a downturn looks like</a></li><li><a href="http://twentythirdfloor.co.za/2009/02/27/hijacking-risk-measures/" rel="bookmark" class="crp_title">Hijacking risk measures</a></li><li><a href="http://twentythirdfloor.co.za/2010/11/30/indias-economy-is-growing-at-8-9/" rel="bookmark" class="crp_title">India&#8217;s economy is growing at 8.9%</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://twentythirdfloor.co.za/2010/08/23/what-other-people-want/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Return to mumbling</title>
		<link>http://twentythirdfloor.co.za/2010/04/14/return-to-mumbling/</link>
		<comments>http://twentythirdfloor.co.za/2010/04/14/return-to-mumbling/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 07:16:58 +0000</pubDate>
		<dc:creator>David Kirk</dc:creator>
				<category><![CDATA[creating value]]></category>
		<category><![CDATA[economics]]></category>
		<category><![CDATA[insight]]></category>
		<category><![CDATA[measurement]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[operational risk]]></category>
		<category><![CDATA[optimisation]]></category>

		<guid isPermaLink="false">http://twentythirdfloor.co.za/?p=526</guid>
		<description><![CDATA[In a previous post, Mumbling in the Dark, I argued that too much attention was being paid to Eskom&#8217;s proposed increased charges and too little at 5 separate points, the first being their actual cost of production. It seems that &#8230; <a href="http://twentythirdfloor.co.za/2010/04/14/return-to-mumbling/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In a previous post, <a href="http://twentythirdfloor.co.za/2009/10/16/mumbling-in-the-dark/">Mumbling in the Dark,</a> I argued that too much attention was being paid to Eskom&#8217;s proposed increased charges and too little at 5 separate points, the first being their actual cost of production.</p>
<p>It seems that <a href="http://fin24.com/articles/default/display_article.aspx?Channel=News_Home&amp;ArticleId=1518-25_2579440&amp;IsColumnistStory=False">NERSA has been looking at this and has discovered some areas where Eskom was incorrectly estimating their future costs</a>. The numbers are large, but not so large in the greater budget of Eskom. This is more like a snowflake on an iceberg than anything meaningful, but it does show the value of looking at the real issues.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://twentythirdfloor.co.za/2010/04/21/return-to-mumbling-redux/" rel="bookmark" class="crp_title">Return to mumbling (redux)</a></li><li><a href="http://twentythirdfloor.co.za/2011/07/27/costs-prices-and-efficiency-in-the-dark/" rel="bookmark" class="crp_title">Costs, prices and efficiency. In the Dark.</a></li><li><a href="http://twentythirdfloor.co.za/2009/10/16/mumbling-in-the-dark/" rel="bookmark" class="crp_title">Mumbling in the dark</a></li><li><a href="http://twentythirdfloor.co.za/2009/04/06/art-aint-all-alternative-and-alpha/" rel="bookmark" class="crp_title">Art ain&#8217;t all alternative and alpha</a></li><li><a href="http://twentythirdfloor.co.za/2008/05/22/eskom-to-be-downgraded/" rel="bookmark" class="crp_title">Eskom to be downgraded?</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://twentythirdfloor.co.za/2010/04/14/return-to-mumbling/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Interconnecting confusion</title>
		<link>http://twentythirdfloor.co.za/2010/03/11/interconnecting-confusion/</link>
		<comments>http://twentythirdfloor.co.za/2010/03/11/interconnecting-confusion/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 17:18:56 +0000</pubDate>
		<dc:creator>David Kirk</dc:creator>
				<category><![CDATA[communication]]></category>
		<category><![CDATA[competition]]></category>
		<category><![CDATA[creating value]]></category>
		<category><![CDATA[customer value]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[economics]]></category>
		<category><![CDATA[insight]]></category>
		<category><![CDATA[measurement]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[operational risk]]></category>
		<category><![CDATA[optimisation]]></category>
		<category><![CDATA[predictive modelling]]></category>

		<guid isPermaLink="false">http://twentythirdfloor.co.za/?p=490</guid>
		<description><![CDATA[Interconnect fees and the reasons for their reduction are possibly the most misunderstood &#8220;big&#8221; news story over the last twelve months. The hype and hoopla around this topic is fueled by our feelings as consumers of being charged too much &#8230; <a href="http://twentythirdfloor.co.za/2010/03/11/interconnecting-confusion/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Interconnect fees and the reasons for their reduction are possibly the most misunderstood &#8220;big&#8221; news story over the last twelve months.</p>
<p>The hype and hoopla around this topic is fueled by our feelings as consumers of being charged too much big big monopoly companies. So I should start by saying that I&#8217;m not saying that we are paying too much. I&#8217;m not saying that because I don&#8217;t know enough about the costs of providing cellular services in South Africa. Maybe we are, maybe we&#8217;re not. Also, I&#8217;m not saying there aren&#8217;t monopolistic practices in the market &#8211; again I simply don&#8217;t know. Given the other stories torn from inside companies by the sharp teeth and salivating jaws of the Competition Commission, it&#8217;s understandable that many suspect consumer-unfriendly play by most large South African companies, particularly those in industries with a small number of players.</p>
<p>What I am saying is that most of what you read in the news about interconnect is horribly misguided.</p>
<p>The biggest misconception is that interconnect fees are an expense for cellular providers, and that the removal of this expense would allow them to reduce tariffs to consumers. Well, it is an expense, but it is also a source of revenue. Every time one company pays an interconnect fee, another company is receiving it.</p>
<p>Interconnect does not change the total amount of profit within the cellular industry. It may redistribute it a little, and there may be negative medium term competitive implications arising from interconnect, but lower interconnect won&#8217;t automatically increase profits that could allow competitive price lowering for the benefit of consumers.</p>
<p>TechCentral has an interesting article: <a href="http://www.techcentral.co.za/lower-interconnect-does-not-equal-lower-retail-tariffs-says-bain/13167/">Bain warns consumers not to expect cellular price cuts</a>.  Of course, it also include some done-to-death flawed statements (whether from Bain or inserted by the zealous staff writer) such as:</p>
<blockquote><p>Because new players have few customers at first, most calls on their networks will be to networks of other operators. High interconnection fees make it difficult for them to enter the market.</p></blockquote>
<p>It&#8217;s not that this statement is incorrect (it is in fact correct) it&#8217;s just that it is horribly misleading because it only presents one side of the story. I&#8217;ve reworded it to provide the stunning insight:<span id="more-490"></span></p>
<p><em>Because new players have few customers at first, most calls </em><strong><em>to</em></strong><em> their networks will be </em><strong><em>from</em></strong><em> networks of other operators. High interconnection fees make it </em><strong><em>profitable</em></strong><em> for them to enter the market.</em></p>
<p>If you are a small cellular operator, most people calling your customers won&#8217;t also be your customers. You get to charge them an interconnect fee for most calls. You can model this in a spreadsheet (I&#8217;ve done it) and provided two basic assumptions hold, interconnect is irrelevant as a primary force. Fees in and expenses out equate .</p>
<ol>
<li>&#8220;Cellphone users must make calls, on average, equally to all other subscribers independent of network.&#8221; If Cell C customers are more likely to call Cell C customers rather than a random cellphone user in South Africa, the numbers start to change. Although I don&#8217;t have info to back this assumption up, it feels reasonably robust.</li>
<li>&#8220;Customers on all networks must, on average, make the same number of calls.&#8221; This is actually where the problems arise and the true cost of interconnect exists.</li>
</ol>
<p>Why is assumption #2 a problem? Think about the goal of competition for consumers: &#8220;Profit maximising companies see to increase volumes by lowering prices, gaining market share and thus making more profit. Provided Marginal Revenue is above Marginal Cost, companies should cut prices.&#8221;</p>
<p>So, what happens with interconnect fees above &#8220;true&#8221; cost of completing the call? When a company seeks to lower its prices, below that of the competition, its customers will make more calls than average. (This is intuitive and also expected from a downwards sloping demand curve.)</p>
<p>Company A reduces its call rates. Company A&#8217;s subscribers will make more calls (incurring interconnect expenses for Company A paying to Companies B, C and D) but customers of Company B (and C and D etc.) won&#8217;t be making more calls into Company A. Thus, Company A pays more interconnect and receives no more interconnect. Its costs have just gone up, pushing up Marginal Cost to a point where it doesn&#8217;t make sense to lower prices.</p>
<p>Voila &#8211; a perfect pricing system to force prices higher and higher. If Company B raises it&#8217;s prices, its subscribers will receive more calls than they make, resulting in more interconnect revenue than expenses for Company B. If the interconnect fee is sufficiently above the true cost, the reduction in profit form lower call volumes will be more than offset by the much  higher profit from interconnect fees being greater than interconnect expenses.</p>
<p>So interconnect fees need to come down to true cost plus a fair profit margin. It has little to do with interconnect being an expense factored into retail tariffs, but rather a function of the competitive pricing actions it encourages.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://twentythirdfloor.co.za/2010/09/27/lower-interconnect-not-the-promised-panacea/" rel="bookmark" class="crp_title">Lower interconnect not the promised panacea</a></li><li><a href="http://twentythirdfloor.co.za/2009/02/19/profit-margins-on-ice/" rel="bookmark" class="crp_title">Profit margins on ice</a></li><li><a href="http://twentythirdfloor.co.za/2007/05/29/taxes-more-than-just-a-cost/" rel="bookmark" class="crp_title">Taxes &#8211; more than just a cost</a></li><li><a href="http://twentythirdfloor.co.za/2007/06/23/why-premium-size-matters-more-than-you-think/" rel="bookmark" class="crp_title">Why premium size matters (more than you think)</a></li><li><a href="http://twentythirdfloor.co.za/2011/07/27/costs-prices-and-efficiency-in-the-dark/" rel="bookmark" class="crp_title">Costs, prices and efficiency. In the Dark.</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://twentythirdfloor.co.za/2010/03/11/interconnecting-confusion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dealing with user cancellation of slow macro</title>
		<link>http://twentythirdfloor.co.za/2009/09/10/dealing-with-user-cancellation-of-slow-macro/</link>
		<comments>http://twentythirdfloor.co.za/2009/09/10/dealing-with-user-cancellation-of-slow-macro/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 07:30:55 +0000</pubDate>
		<dc:creator>David Kirk</dc:creator>
				<category><![CDATA[data analysis]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[optimisation]]></category>

		<guid isPermaLink="false">http://twentythirdfloor.co.za/?p=425</guid>
		<description><![CDATA[This post is a little different from usual.  It concerns VBA macros for MS Excel. Writing macros is quite easy, but writing efficient macros that run in an acceptable time requires a few tweaks. Commonly known tweaks include turning off &#8230; <a href="http://twentythirdfloor.co.za/2009/09/10/dealing-with-user-cancellation-of-slow-macro/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This post is a little different from usual.  It concerns VBA macros for MS Excel. Writing macros is quite easy, but writing efficient macros that run in an acceptable time requires a few tweaks.</p>
<p>Commonly known tweaks include turning off screen updating (see the code below for an example of how this works) and then updating the statusbar to show the user progress (also in the code below).</p>
<p>However, what often frustrates me is the inelegant ways in which a user can exit a macro which could take hours to run. I struggled a little to find the approach demonstrated below so I thought it might be useful for others.<span id="more-425"></span></p>
<p>Basic premise is to use <strong>error handling</strong> to tell Excel to be on the lookout for keyboard cancellations (escape or ctrl-break) and then handle these gracefully.</p>
<pre>Private Sub RunLongMacro()</pre>
<pre>'declare count variables</pre>
<pre>Dim count As Integer</pre>
<pre>Dim Total As Integer</pre>
<pre>Total = 10</pre>
<pre>'Set the action on an error. In this case go to the label "handleCancel"</pre>
<pre>On Error GoTo handleCancel</pre>
<pre>'Turn off screenupdating to increase run speed and start statusbar reporting to user</pre>
<pre>Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.StatusBar = "Initiliasing..."</pre>
<pre>'Tell VBA what to do when a cancel key is pressed (Escape or CTRL-BREAK)</pre>
<pre>'In this case handle the error (Rather than ignore it or present standard error)</pre>
<pre>Application.EnableCancelKey = xlErrorHandler</pre>
<pre>'Start the main calculation loop</pre>
<pre>For count = 1 To Total</pre>
<pre style="padding-left: 30px;">'Some additional code might be included here</pre>
<pre style="padding-left: 30px;">'Then we calculate the model results</pre>
<pre style="padding-left: 30px;">Application.Calculate</pre>
<pre style="padding-left: 30px;">'and update the status bar with the count</pre>
<pre style="padding-left: 30px;">Application.StatusBar = count &amp; " / " &amp; Total</pre>
<pre>Next count</pre>
<pre>'When we're done, we reset the statusbar and screenupdating</pre>
<pre>Application.StatusBar = False</pre>
<pre>Application.ScreenUpdating = True</pre>
<pre>'Next part is the code to handle errors, starting with the specified label</pre>
<pre>handleCancel:</pre>
<pre style="padding-left: 30px;">'If there isn't an error, just skip to the end</pre>
<pre style="padding-left: 30px;">'This ensures a single exit point</pre>
<pre style="padding-left: 30px;">If Err.Number &lt;&gt; 0 Then</pre>
<pre style="padding-left: 60px;">If Err.Number = 18 Then</pre>
<pre style="padding-left: 90px;">If MsgBox("You pressed Escape or CTRL-BREAK. Do you want to quit?", vbYesNo, "Quit?") = vbNo Then</pre>
<pre style="padding-left: 120px;">Resume</pre>
<pre style="padding-left: 90px;">End If</pre>
<pre style="padding-left: 60px;">Else: MsgBox "Oops. We encountered an error"</pre>
<pre style="padding-left: 60px;">End If</pre>
<pre style="padding-left: 30px;">End If</pre>
<pre>Application.StatusBar = False
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic</pre>
<pre>End Sub</pre>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://twentythirdfloor.co.za/2008/08/30/economic-indicators-in-pictures/" rel="bookmark" class="crp_title">Economic indicators in pictures</a></li><li><a href="http://twentythirdfloor.co.za/2011/08/09/why-sp-downgraded/" rel="bookmark" class="crp_title">Why S&#038;P downgraded</a></li><li><a href="http://twentythirdfloor.co.za/2010/09/18/unemployment-mystified/" rel="bookmark" class="crp_title">Unemployment, mystified</a></li><li><a href="http://twentythirdfloor.co.za/2011/06/25/skype-employee-share-options-that-werent/" rel="bookmark" class="crp_title">Skype Employee Share Options That Weren&#8217;t</a></li><li><a href="http://twentythirdfloor.co.za/2011/08/23/analogy-breakdown/" rel="bookmark" class="crp_title">Analogy breakdown</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://twentythirdfloor.co.za/2009/09/10/dealing-with-user-cancellation-of-slow-macro/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Presentation to ACAL on GI Pricing</title>
		<link>http://twentythirdfloor.co.za/2008/10/23/presentation-to-acal-on-gi-pricing/</link>
		<comments>http://twentythirdfloor.co.za/2008/10/23/presentation-to-acal-on-gi-pricing/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 21:02:12 +0000</pubDate>
		<dc:creator>David Kirk</dc:creator>
				<category><![CDATA[Actuarial and Risk]]></category>
		<category><![CDATA[competition]]></category>
		<category><![CDATA[creating value]]></category>
		<category><![CDATA[customer value]]></category>
		<category><![CDATA[data analysis]]></category>
		<category><![CDATA[insurance]]></category>
		<category><![CDATA[measurement]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[regression]]></category>
		<category><![CDATA[statistics]]></category>

		<guid isPermaLink="false">http://twentythirdfloor.co.za/?p=219</guid>
		<description><![CDATA[I gave a presentation on a holistic approach to ratemaking using predictive models yesterday to the Lebanese Insurance Association (ACAL, the acronym for the association in French). Over a hundred people attended, and there certainly seemed to be interest in &#8230; <a href="http://twentythirdfloor.co.za/2008/10/23/presentation-to-acal-on-gi-pricing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I gave a presentation on a holistic approach to ratemaking using predictive models yesterday to the Lebanese Insurance Association (ACAL, the acronym for the association in French). Over a hundred people attended, and there certainly seemed to be interest in the topic.</p>
<p>A common response though was that Lebanon isn&#8217;t yet ready for that, because rates are so low and nobody is prepared to change their approach. I accept that changing the &#8220;way things are done&#8221; in a fundamental way takes time and courage, but I expect that some players will start collecting the data, doing the analysis and improving their pricing in the next few years. By 2013, the market here will not be the same. The advantages across general insurance, banking, sales and cross-selling are simply too great. The techniques available are fantastic and can be implemented quite easily.</p>
<p>I&#8217;ve given the official press release below, and presentation <a href="http://twentythirdfloor.co.za/blog_files/wp-content/uploads/2008/10/acal-gi-pricing-2008.pdf">ACAL GI Pricing 2008 (pdf version)</a> is available under <a title="Resources" href="http://twentythirdfloor.co.za/resources/" target="_self">Resources</a> on this site.</p>
<blockquote><p>Insurance companies can generate a competitive advantage through accurate ratemaking, systematic risk-adjusted pricing, and careful analysis of policyholder price sensitivity at renewal dates. Single variable techniques can provide valuable insights into risk factors, but do not perform well in the presence of multiple drivers of risk.</p>
<p>Generalised Linear Modelling (GLM) is the preferred approach for robust, multivariate analysis of claim severity and frequency modelling. GLM can model several rating factors simultaneously, including interactions between different rating factors on risk. It is used extensively in the UK, the US and other highly competitive and developed insurance markets.</p>
<p>Judgement and experience are required when assessing different models and interpreting the diagnostic tests used to ensure accurate and robust results. A good model can make dramatic improvements in the separation of high and low risk policyholders.</p>
<p>These advanced approaches all have increased data requirements. Companies looking to reap the rewards of improved ratemaking will need to develop the databases and systems to store exposure, claims and rating factor data. There is a range of software available to perform the statistical analysis, from expensive purpose-built systems to freely available, open-source statistical platforms.</p>
<p>Successful implementation of an advanced rating system depends on commitment of key staff to the project and the inclusion of marketing, underwriting, legal, IT and actuarial skills in the project team. Market characteristics and reluctance to change are constraints to the adoption of advanced techniques. These have been faced and overcome in many other markets. It is only a matter of time before insurers must use these techniques even to maintain their competitive position.  Early movers will enjoy an improvement in their competitive position, market share and profitability.</p></blockquote>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://twentythirdfloor.co.za/2008/07/24/actuarial-consulting-career-part-2-system-development/" rel="bookmark" class="crp_title">Actuarial consulting career part 2 &#8211; system development</a></li><li><a href="http://twentythirdfloor.co.za/2006/10/21/additional-analysis-of-seomoz-web-popularity-data/" rel="bookmark" class="crp_title">Additional Analysis of SEOmoz web popularity data</a></li><li><a href="http://twentythirdfloor.co.za/2007/02/08/pricing-and-promoting-businesses/" rel="bookmark" class="crp_title">Pricing and promoting businesses</a></li><li><a href="http://twentythirdfloor.co.za/2010/02/01/new-operational-risk-guidance-from-solvency-ii/" rel="bookmark" class="crp_title">New operational risk guidance from Solvency II</a></li><li><a href="http://twentythirdfloor.co.za/2006/10/15/models-theres-wrong-and-then-there-is-wrong/" rel="bookmark" class="crp_title">Models: there&#8217;s wrong and then there is Wrong</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://twentythirdfloor.co.za/2008/10/23/presentation-to-acal-on-gi-pricing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

