<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7261850809934949757</id><updated>2024-11-08T21:07:25.504+05:30</updated><category term="Stata"/><category term="R"/><category term="statistics"/><category term="Blogger"/><category term="Finance"/><category term="Flash"/><category term="Google Code"/><category term="Limdep"/><category term="SVN"/><category term="SynatxHighlighter"/><title type='text'>The Dismal Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-1635917373391937756</id><published>2010-09-10T13:46:00.001+05:30</published><updated>2010-09-10T13:50:50.378+05:30</updated><title type='text'>Loose Ends</title><content type='html'>&lt;p&gt;&lt;/p&gt;  &lt;p&gt;So the dust has settled a little bit (for those that don’t know this, I have &lt;a href=&quot;http://economics.ucsd.edu/&quot;&gt;moved&lt;/a&gt; from &lt;a href=&quot;http://www.guardian.co.uk/education/2010/sep/08/cambridge-worlds-best-university-harvard&quot;&gt;here&lt;/a&gt;) and I find myself in the possession of an incredible piece of &lt;a href=&quot;http://www.amazon.com/Toshiba-Qosmio-X505-Q890-TruBrite-18-4-Inch/dp/B003N7O3EG&quot;&gt;hardware&lt;/a&gt; (no pun intended). I will also never underestimate Americans when they talk about size. They said it was big, and it is huge. And I have owned some large laptops in my time. Hence this (almost) celebratory blog post.&lt;/p&gt;  &lt;p align=&quot;center&quot;&gt;~*~&lt;/p&gt;  &lt;p align=&quot;left&quot;&gt;I have known the Dismal Blogger a long time and believe I know him well. Yet, over the last year, he has surprised me with his generosity and warmth. I thank him from the bottom of my heart for this.&lt;/p&gt;  &lt;p align=&quot;center&quot;&gt;~*~&lt;/p&gt;  &lt;p align=&quot;left&quot;&gt;Partly because of this gratitude, I believe I should find an alternate home for my often arcane material. The readers of this blog, carefully collected by the Dismal Blogger over the course of many years – discerning people all – have spoken out unequivocally against the hi-jacking of this blog, and I could not, as a statistician, ignore that evidence. I haven’t found a new home yet, but once I do, I will make it known on this blog.&amp;#160; In cyberspace as in real life, I thank the Dismal Blogger for being so generous with his blog.&lt;/p&gt;  &lt;p align=&quot;center&quot;&gt;~*~&lt;/p&gt;  &lt;p align=&quot;left&quot;&gt;Following advice &lt;a href=&quot;http://www.hanselman.com/blog/HowToPostCodeToYourBlogAndOtherReligiousArguments.aspx&quot;&gt;here&lt;/a&gt;, I am using &lt;a href=&quot;http://explore.live.com/windows-live-writer&quot;&gt;Windows Live Writer&lt;/a&gt; to compose this blog post. And it is nice!&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/1635917373391937756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/1635917373391937756?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/1635917373391937756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/1635917373391937756'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/09/loose-ends.html' title='Loose Ends'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-6482233182451007795</id><published>2010-07-17T16:29:00.001+05:30</published><updated>2010-07-17T16:47:14.557+05:30</updated><title type='text'>Is that intuition, or are you just happy to see me?</title><content type='html'>Some intellectual wrangling with the Dismal Blogger resulted in us reaching a well-known (atleast to me) impasse. What is the role of intuition and simplicity in science and mathematics, and is it antithetical to rigour and complexity? Despite my ardent desire to learn, I am poorly versed in methodological questions. Therefore, I supply my favourite quotation on this issue. Obviously, being a quotation, it doesn&#39;t amount to much, but it is generally how I &lt;i&gt;feel&lt;/i&gt; about the r&amp;#244;le of rigour. &lt;br /&gt;
&lt;blockquote&gt;The r&amp;#244;les of rigor and intuition are subject to misconceptions. As was pointed out in Volume &lt;b&gt;1&lt;/b&gt;, natural intuition and natural thinking are a poor affair, but they gain strength with the development of mathematical theory. Today&#39;s intuition and applications depend on the most sophisticated theories of yesterday. Furthermore, strict theory represents economy of thought rather than luxury.&lt;/blockquote&gt;- &lt;a href=&quot;http://www.amazon.com/Introduction-Probability-Theory-Applications-Vol/dp/0471257095&quot;&gt;&lt;i&gt;An Introduction to Probability Theory and its Applications, Volume II (2&lt;sup&gt;nd&lt;/sup&gt; edition)&lt;/a&gt;, Feller, William (1971), pp. 3, footnote 4&lt;/i&gt;&lt;br /&gt;
In the pantheon of extraordinary textbook writers, Feller is second to none, cramming in as he does relevant example after relevant example, but never giving in to the desire to jump to conclusions based on examples - preferring to work through to confirm/deny his intuition, and using his results to inform his intuition. This last is important, because if like the American astronauts, we were to wait for all problems to be solved rigorously before we ever did statistics, we&#39;d be here a while. The part played by experience and common sense in settings where cost, scale and speed are issues is invaluable. Just yesterday, Andrew Gelman, over on &lt;a href=&quot;http://www.stat.columbia.edu/~cook/movabletype/mlm/&quot;&gt;his blog&lt;/a&gt; dredged out &lt;a href=&quot;http://www.stat.columbia.edu/~cook/movabletype/archives/2010/07/quote_of_the_da.html&quot;&gt;this&lt;/a&gt; quote:&lt;br /&gt;
&lt;blockquote&gt;Statisticians are particularly sensitive to default settings, which makes sense considering that statistics is, in many ways, a science based on defaults. What is a &quot;statistical method&quot; if not a recommended default analysis, backed up by some combination of theory and experience?&lt;br /&gt;
&lt;/blockquote&gt;I can understand that practitioners would typically choose to let the theorists battle it out amongst themselves for a decade or two to figure out relative merits of techniques, and only then move to gather up the spoils of war &lt;i&gt;i.e.&lt;/i&gt; the most-widely applicable/median/default method. But I fear this is sub-optimal. There is little comfort in something that often works, but fails when you need it to work most (e.g. macroeconomics).&lt;br /&gt;
On a related note, I am little uncomfortable with the phrase - complexity for complexity&#39;s sake. There is, in my opinion, no such thing. Complexity relates to how you &amp;#147;do&amp;#148; science. Proofs can be elegant or workmanlike and algorithms &amp; techniques can be crude or sophisticated, and you can choose one or the other based on your preferences. But the actual content of science, theorems, are exactly that, little bits of value-neutral truth which give you the power to discriminate. And just like John Locke:&lt;br /&gt;
&lt;blockquote&gt;To love truth for truth&#39;s sake is the principal part of human perfection in this world, and the seed-plot of all other virtues.&lt;br /&gt;
&lt;/blockquote&gt;so we too claim.&lt;br /&gt;
Is all rigour a good thing? Obviously not. But useless rigour is easily seen for what it is (if assessed by a trained person) and cast aside. Not that easy to cast aside rules-of-thumb or traditions or defaults, because by definition, these things are hard to pin down. &lt;br /&gt;
&lt;b&gt;Further reading&lt;/b&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://www.amazon.com/Counterexamples-Probability-Statistics-Wadsworth-Brooks/dp/0412989018&quot;&gt;Counterexamples in Probability And Statistics&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.amazon.com/Godels-Proof-Ernest-Nagel/dp/0814758169&quot;&gt;Godel&#39;s Proof (chapter II)&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/6482233182451007795/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/6482233182451007795?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/6482233182451007795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/6482233182451007795'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/07/is-that-intuition-or-are-you-just-happy.html' title='Is that intuition, or are you just happy to see me?'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-6651834828226183510</id><published>2010-07-15T01:22:00.009+05:30</published><updated>2010-07-15T15:47:13.800+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Stata"/><category scheme="http://www.blogger.com/atom/ns#" term="statistics"/><title type='text'>Reconstructing aspects of the Receiver Operator Characteristic (ROC) curve in Stata</title><content type='html'>&lt;div class=&quot;latexparse&quot;&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Lorenz_curve&quot;&gt;Lorenz cuvres&lt;/a&gt; and &lt;a href=&quot;http://en.wikipedia.org/wiki/Gini_coefficient&quot;&gt;Gini coefficients&lt;/a&gt; which are typically used as summary measures of inequality, are ubiquitous in development economics. A closely-related measure, the &lt;a href=&quot;http://en.wikipedia.org/wiki/Receiver_operating_characteristic&quot;&gt;Receiver Operating Characteristic [ROC] curve&lt;/a&gt; is a commonly used visual model selection tool in classification problems. In a recent conversation with the Dismal Blogger, some issues of implementation came up and since I knew nothing about these measures, I decided to look them up and see if I could figure out how they are used. In this post, I mainly discuss the ROC curve.&lt;br /&gt;
&lt;!-- ********************************************************************** --&gt; &lt;br/&gt;&lt;br /&gt;
&lt;b&gt;ROC&lt;/b&gt;&lt;br/&gt;&lt;br /&gt;
Predictions from a model for binary data can be summarised neatly using the so-called &lt;a href=&quot;http://en.wikipedia.org/wiki/Confusion_matrix&quot;&gt;confusion matrix&lt;/a&gt;. Let the outcome of interest be $y \in \{0, 1\}$ and predictions from the model be $\hat{y}$, then we have the following 2x2 contingency table:&lt;br /&gt;
&lt;!-- ********************************************************************** --&gt;&lt;br /&gt;
&lt;div style=&quot;text-align:center;&quot;&gt;$\begin{tabular}{|c||c c|} &lt;br/&gt; \hline &lt;br/&gt; &amp; \begin{math}y=1\end{math}&amp;\begin{math}y=0\end{math} \\ \hline &lt;br/&gt; \begin{math}\hat{y}=1\end{math}&amp;True positive [TP]&amp;False positive [FP]\\&lt;br/&gt;  \begin{math}\hat{y}=0\end{math}&amp;False negative [FN]&amp;True negative [TN] \\ &lt;br/&gt; \hline&lt;br/&gt; \end{tabular} $&lt;/div&gt;&lt;!-- ********************************************************************** --&gt;&lt;br /&gt;
The ROC is a fairly intuitive summary of the cost of acquiring true positives in terms of the increase in false positives, as it plots the True Positive Rate [TPR] $\left(=\dfrac{TP}{TP+FN}\right)$ against the False Positive Rate [FPR] $\left(=\dfrac{FP}{FP+TN}\right)$ for changing values of the criteria of discrimination (to be explained below). The first term is also known as the &lt;a href=&quot;http://en.wikipedia.org/wiki/Specificity_(tests)#Sensitivity&quot;&gt;sensitivity&lt;/a&gt; and the second term is $1-$&lt;a href=&quot;http://en.wikipedia.org/wiki/Specificity_(tests)#Specificity&quot;&gt;specificity&lt;/a&gt;. The idea being that as the cost (FPR) increases, the benefits (TPR) should dominate it. &lt;br /&gt;
&lt;!-- ********************************************************************** --&gt;&lt;br /&gt;
To construct these numbers, we need predicted values of the outcomes from our model, $\hat{y}_i$, where $i \in {1, \dots, N}$ is the observation index, from a sample of N individuals. Typically, models for binary data, like the logit, do not produce binary predictions, but predicted probabilities of positives, &lt;i&gt;i.e.&lt;/i&gt;, $\hat{p}_i = \widehat{Prob}(y_i=1|\mathbf{x}_i)$, where $\mathbf{x}_i$ is a vector of regressors. Therefore, a binning criteria is necessary, say, $\hat{y}_i = \mathbf{1}(\hat{p}_i&gt; c)$ for some $c \in [0, 1]$. Allowing the binning threshold to vary in its domain allows us to estimate an ROC curve for a particular model. For $c=0$, TPR = 1 and FPR = 1, so (1, 1) is a point on the curve, and for $c=1$ both TPR and FPR are zero (all predicted outcomes are zero), thus, (0,0) is a point on the curve. Note that the the entire ROC curve is contained in the unit square. &lt;br /&gt;
&lt;!-- ********************************************************************** --&gt;&lt;br/&gt;&lt;br /&gt;
&lt;b&gt;Area Under Curve [AUC]&lt;/b&gt;&lt;br/&gt;&lt;br /&gt;
While the entire ROC curve, for various values of the threshold parameter, can be used to assess the fitted model (more on this in a later post), single-number summaries are popular, and one such summary number is the area under the ROC curve. The interpretation is that it is the probability with which an arbitrarily chosen positive will be classified (by the model) as having higher probability than an arbitrarily chosen negative point.&lt;br /&gt;
&lt;br /&gt;
This number can be estimated by numerical integration, which due to the irregular nature of the estimated curve, is typically done by the &lt;a href=&quot;http://en.wikipedia.org/wiki/Trapezoidal_rule&quot;&gt;method of trapezoids&lt;/a&gt; (I knew high-school math was going to come in handy one day!). Stata&#39;s default numerical integration algorithm is by &lt;a href=&quot;http://www.stata.com/help.cgi?dydx&quot;&gt;fitting cubic splines&lt;/a&gt; to the estimated curve which better for smoother curves. &lt;br/&gt;&lt;br /&gt;
&lt;!-- ********************************************************************** --&gt;&lt;br /&gt;
&lt;b&gt;An example&lt;/b&gt; &lt;br/&gt;&lt;br /&gt;
Here is an example of how the ROC curve is constructed by hand in Stata using the Hosmer &amp; Lemeshow dataset. This is not remarkable in itself, but hopefully be a building block for more complicated examples. I draw the ROC curve based on a logistic fit and compute the area under the ROC curve using numerical integration:&lt;br /&gt;
&lt;!-- ********************************************************************** --&gt;&lt;br /&gt;
&lt;pre class=&quot;brush:plain&quot;&gt;/*********************************************
* Reconstruct the ROC curve in Stata
**********************************************/
clear*
webuse lbw

tab low
logistic low age lwt i.race smoke ptl ht ui  // fit a logistic model
predict prob_low, pr  // predcited probabilities
cap matrix drop roc
// calculate the ROC curve using the percentiles as thresholds
forv i=1(1)99 {
 cap drop pred_low
 cap drop sens
 cap drop spec
 _pctile prob_low, nq(100)
 local cutoff = `r(r`i&#39;)&#39;
 qui {
  g pred_low = (prob_low &gt;= `cutoff&#39;)
  g sens = (pred_low == 1 &amp; low==1)  // true positive
  g spec = (pred_low == 0 &amp; low==0)  // true negative
  count if sens
  local sens_mean = `r(N)&#39;
  count if low  // positives
  local sens_mean = `sens_mean&#39; / `r(N)&#39;
  count if spec  
  local spec_mean = `r(N)&#39;
  count if !low  // negatives
  local spec_mean = `spec_mean&#39; / `r(N)&#39;
  local sum =`sens_mean&#39; + `spec_mean&#39;
 }
 mat roc = (nullmat(roc)\ (`sens_mean&#39;, 1-`spec_mean&#39;, `sum&#39;))
}
mat roc = (1, 1, .)\ roc
mat roc = roc \ (0, 0, .)
cap erase roc_mat.dta
svmatf , mat(roc) fil(&quot;roc_mat.dta&quot;)  // save the matrix of ROC points

preserve
use roc_mat, clear
integ c1 c2, trapezoid  // calculate the area under the ROC curve using the trapezoidal rule
local integ_trap =`r(integral)&#39;
integ c1 c2    // calculate the area under the ROC curve using cubic splines
local integ_cub =`r(integral)&#39;
twoway line c1 c2, xtitle(&quot;1-specificity&quot;) ytitle(&quot;Sensitivity&quot;) ///
 note(&quot;The area under the curve is estimated as: &quot; ///
 &quot;`integ_trap&#39; (trapezoidal) and `integ_cub&#39; (cubic spline)&quot;) ///
 xla(0(.25)1, grid) yla(0(.25)1) ///
 title(&quot;ROC curve for estimated model&quot;) subtitle(&quot;Manual calculation&quot;)
gr export roc.png, replace 
restore

logistic low age lwt i.race smoke ptl ht ui
lroc, title(&quot;ROC curve for estimated model&quot;) recast(line) ///
 subtitle(&quot;Stata&#39;s calculation&quot;) ///
 lpattern(solid)  // calculate the area under the ROC curve using built-in function
gr export lroc.png, replace
&lt;/pre&gt;&lt;!-- ********************************************************************** --&gt;&lt;br /&gt;
Then, the ROC curves look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align:center;&quot;&gt;&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;img style=&quot;width: 385px; height: 390px;&quot; src=&quot;http://i32.tinypic.com/30wvw3q.png&quot; border=&quot;0&quot;/&gt;&lt;/img&gt; &lt;/p&gt;&lt;/td&gt; &lt;td&gt;&lt;img src=&quot;http://i30.tinypic.com/33u7sdh.png&quot; border=&quot;0&quot; style=&quot;width: 385px; height: 390px;&quot; /&gt;&lt;/img&gt; &lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Note that in the calculation of the integral, Stata only uses 79 points due to the one-many nature of the estimated function (I think). &lt;br/&gt;&lt;br /&gt;
&lt;!-- ********************************************************************** --&gt;&lt;br /&gt;
&lt;b&gt;Miscellaneous points&lt;/b&gt;&lt;br/&gt;&lt;br /&gt;
There were several other points I wanted to cover in this post but will have to postpone for lack of time, including,&lt;br /&gt;
&lt;ol&gt;&lt;li&gt; the drawbacks of using the AUC, as covered &lt;a href=&quot;http://www.jstor.org/pss/3702911&quot;&gt;here&lt;/a&gt;; &lt;/li&gt;
&lt;li&gt; the relationship of the AUC measure to the Gini coefficient as given &lt;a href=&quot;http://en.wikipedia.org/wiki/Receiver_operating_characteristic#Further_interpretations&quot;&gt;here&lt;/a&gt;; &lt;/li&gt;
&lt;li&gt; and the Lorenz curve as the rotated ROC about the 45 degree line of symmetry. &lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;br /&gt;
PS. I&#39;d like to point out again that I go to some lengths to ensure that my code runs out-of-the-box, and so is, in marketing parlance, free to try!&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/6651834828226183510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/6651834828226183510?isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/6651834828226183510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/6651834828226183510'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/07/reconstructing-aspects-of-receiver.html' title='Reconstructing aspects of the Receiver Operator Characteristic (ROC) curve in Stata'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://i32.tinypic.com/30wvw3q_th.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-4641058327434951228</id><published>2010-07-05T16:23:00.000+05:30</published><updated>2010-07-05T16:23:34.535+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Limdep"/><category scheme="http://www.blogger.com/atom/ns#" term="Stata"/><title type='text'>Fixed format data in Stata</title><content type='html'>I have never needed to use fixed-format ASCII data in Stata; I typically work with CSV files. However, I was looking for data to replicate &lt;a href=&quot;http://www.stern.nyu.edu/eco/wkpapers/GeneralApproach.pdf&quot;&gt;this paper&lt;/a&gt; by Bill Greene on a general method to incorporate selectivity into limited dependent variable models.&lt;br /&gt;
I was about to write to him for the data, but decided to take a quick look through his website to see if he did provide the data. Turns out he provides a subset of that dataset, &lt;a href=&quot;http://www.stern.nyu.edu/~wgreene/Text/Edition6/TableF25-1.txt&quot;&gt;Table F25.1: Expenditure and Default Data, 1319 observations&lt;/a&gt;, as part of the &lt;a href=&quot;http://pages.stern.nyu.edu/~wgreene/Text/Edition6/tablelist6.htm&quot;&gt;example datasets&lt;/a&gt; of the 6th edition of his massively bestselling &lt;a href=&quot;http://pages.stern.nyu.edu/~wgreene/Text/econometricanalysis.htm&quot;&gt;Econometric Analysis&lt;/a&gt;.&lt;br /&gt;
Small problem is that that dataset is a fixed-format text file and probably formatted as an &lt;a href=&quot;http://www.limdep.com/products/nlogit/&quot;&gt;Nlogit/Limdep&lt;/a&gt; dataset and reading it into Stata is not straightforward.&lt;br /&gt;
So, I decided to figure out how to write a dictionary file and read that data in using Stata&#39;s &lt;a href=&quot;http://www.stata.com/help.cgi?infile2&quot;&gt;-infile-&lt;/a&gt; command. The dictionary file looks like this:&lt;br /&gt;
&lt;pre class=&quot;brush:plain&quot;&gt;dictionary {
 _first(4)  * first line of data is the fourth
 _lines(3)  * there are three lines of data per observation
 
 _line(1)   * begin with line one of each observation
 Cardhldr &quot;Dummy variable, 1 if application for credit card accepted, 0 if not&quot;
 Majordrg &quot;Number of major derogatory reports&quot;
 Age  &quot;Age n years plus twelfths of a year&quot;
 Income  &quot;Yearly income (divided by 10,000)&quot;
 Exp_Inc  &quot;Ratio of monthly credit card expenditure to yearly income&quot;
 
 _newline   * move to the next line of an observation
 Avgexp  &quot;Average monthly credit card expenditure&quot;
 Ownrent  &quot;1 if owns their home, 0 if rent&quot;
 Selfempl &quot;1 if self employed, 0 if not.&quot;
 Depndt  &quot;1 + number of dependents&quot;
 Inc_per  &quot;Income divided by number of dependents&quot;
 
 _newline  * move to the next (last) line of an observation
 Cur_add  &quot;months living at current address&quot;
 Major  &quot;number of major credit cards held&quot;
 Active  &quot;number of active credit accounts&quot;
}
&lt;/pre&gt;Save this file as &quot;limdep2stata.dct&quot;. Then, this dictionary file can be used to read in the data using a do-file which looks like this:&lt;br /&gt;
&lt;pre class=&quot;brush:plain&quot;&gt;/*
* Read in LIMDEP data in Stata
*/
infile using limdep2stata.dct, using(TableF25-1.txt) clear 
renvars _all, lower
drop if cardhldr==.  // one extra line read in 
&lt;/pre&gt;I guess the data file lacks an end-of-file delimiter and so an extra line is read in before Stata figures out that the file has ended. I will see if there is a simple solution to avoid this. But it does no harm and the extra line is easily dropped.&lt;br /&gt;
And that&#39;s it! You are good to go.&lt;br /&gt;
PS. I must mention that the command &lt;a href=&quot;http://www.stata-journal.com/software/sj5-4/&quot;&gt;-renvars-&lt;/a&gt; is due to Nick Cox and Jeroen Weesie.</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/4641058327434951228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/4641058327434951228?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/4641058327434951228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/4641058327434951228'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/07/fixed-format-data-in-stata.html' title='Fixed format data in Stata'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-1095556473687470742</id><published>2010-07-04T04:51:00.003+05:30</published><updated>2010-07-04T04:54:45.784+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Google Code"/><category scheme="http://www.blogger.com/atom/ns#" term="SVN"/><category scheme="http://www.blogger.com/atom/ns#" term="SynatxHighlighter"/><title type='text'>Blog clog</title><content type='html'>&lt;div class=&quot;latexparse&quot;&gt;No sooner had I &lt;a href=&quot;http://gpjacob.blogspot.com/2010/07/javascript-html-jquery-and-milk-of.html&quot;&gt;fixed the last problem with this blog&lt;/a&gt;, I returned home today to discover that Alex Gorbatchev who writes and maintains &lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/&quot;&gt;SyntaxHighlighter&lt;/a&gt; [SH], which I use to highlight the code on this blog, had made a major revision up to ver. 3.0.83 and guess what, it broke all the highlighting on my previous R code, even though the code highlighted by other brushes looked fine. My R code looked like a dog&#39;s breakfast. Since the R brush was written by &lt;a href=&quot;http://www.demitri.com/code/&quot;&gt;someone else&lt;/a&gt;, I assumed that the changes to SH had made the brush incompatible with the new SH. I looked at the &lt;a href=&quot;http://alexgorbatchev.com/SyntaxHighlighter/whatsnew.html&quot;&gt;changes in the new version&lt;/a&gt; and decided on balance that I needed the R brush fixed more than I needed the new features of SH. So I started upon fixing the mess.&lt;br /&gt;&lt;ol&gt;&lt;li&gt;I decided to download the last version of SH (where all my codes rendered properly) and host it myself. Previously, I was using the versions Alex was hosting on his server space and which he periodically updated with new versions. &lt;/li&gt;&lt;li&gt; Since most of SH is JavaScript [JS], and I have had enough of hosting JS at &lt;a href=&quot;www.yourjavascript.com/&quot;&gt;random places on the internet&lt;/a&gt; (most uploading sites do not accept JS, so you need to find specific places that will), I decided to muck around with hosting it on a &lt;a href=&quot;http://code.google.com/p/mathtex4/&quot;&gt;Google Code project&lt;/a&gt;. I re-used the project I had created to host the JS of the $LaTeX$ renderer. I decided to wait until I had figured it out to create a separate code project to host SH.&lt;/li&gt; &lt;li&gt;This allowed me to do something I have always wanted to figure out - see how version control software works. I had installed &lt;a href=&quot;http://tortoisesvn.tigris.org/&quot;&gt;Tortoise SVN&lt;/a&gt; eons ago but never used it. It was pretty simple as I just followed the instructions &lt;a href=&quot;http://code.google.com/apis/gadgets/docs/tools.html&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;The main thing was to figure out how to set mime-types for the various files whether they be CSS or JS. I learnt how to do that &lt;a href=&quot;http://code.google.com/p/support/wiki/SubversionFAQ&quot;&gt;here&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Finally, I replaced the Blogger HTML template with the new links to the JS files associated with SH. &lt;/li&gt;&lt;/ol&gt;Then I spent half-a-day scratching my head because after checking everything, it would still not work (the R code rendered with visible errors). After much staring at the screen, I realised that the old SH versions were arranged chronologically rather than reverse-chronologically as I had expected and I had downloaded the &lt;i&gt;oldest&lt;/i&gt; available minor revision of release 2! Quickly rectified and sanity was restored!&lt;br /&gt;All that now remains to be done is to migrate all the SH code to a new code project which will contain all  the JS associated with this blog, including the $LaTeX$ renderer. Then I can be free of the whims and fancies of developers and servers!&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/1095556473687470742/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/1095556473687470742?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/1095556473687470742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/1095556473687470742'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/07/blog-clog.html' title='Blog clog'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-4566757459659100608</id><published>2010-07-02T01:09:00.000+05:30</published><updated>2010-07-02T01:09:10.815+05:30</updated><title type='text'>Javascript, HTML, jQuery and the Milk of Human Kindness</title><content type='html'>&lt;div class=&quot;latexparse&quot;&gt;Some of you who read this blog (optimistically) would have noticed the ugliness which was perpetrated on this blog in &lt;a href=&quot;http://gpjacob.blogspot.com/2010/06/multinomial-logit-in-stata-and-r-ii.html&quot;&gt;this&lt;/a&gt; previous post since I put up &lt;a href=&quot;http://gpjacob.blogspot.com/2010/06/unbiasedness-and-2-counterexamples.html&quot;&gt;this other post&lt;/a&gt;. This was largely because the $LaTeX$ &lt;a href=&quot;http://watchmath.com/vlog/?p=438&quot;&gt;parser I use to display math&lt;/a&gt; was also encoding certain bits of R code with the  character &quot;$!$&quot; as $LaTeX$. &lt;br /&gt;
&lt;br /&gt;
Since then I have had a great if sometimes frustrating time googling and querying the developer forums and have learnt a lot about how HTML, Javascript and &lt;a href=&quot;http://en.wikipedia.org/wiki/JQuery&quot;&gt;jQuery&lt;/a&gt; work. Thank you in particular to the anon. moderator on the &lt;a href=&quot;http://www.webdeveloper.com&quot;&gt;webdeveloper forums&lt;/a&gt; who spent quite a bit of time helping me through this.&lt;br /&gt;
The trick is to define and send the contents of a user-defined &lt;i&gt;div&lt;/i&gt; class to the parser on load. This involves setting up your Blogger &quot;HTML/Javascript&quot; widget to contain the Javascript:&lt;br /&gt;
&lt;pre class=&quot;brush: xml&quot;&gt;&lt;script src=&quot;http://www.watchmath.com/cgi-bin/mathtex3.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;onload = function () {
  var els = document.getElementsByTagName(&quot;div&quot;);
  var i = els.length;
  while (i--) {
    if (els[i].className==&quot;latexparse&quot;) {
      replaceMath(els[i]);
    }
  }
};
&lt;/script&gt;
&lt;/pre&gt;&lt;/div&gt;and then include everything you want the parser to parse as in the following example:&lt;br /&gt;
&lt;pre class=&quot;brush: xml&quot;&gt;&lt;div class=&quot;latexparse&quot;&gt;$\frac{1}{2}$&lt;/div&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/4566757459659100608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/4566757459659100608?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/4566757459659100608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/4566757459659100608'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/07/javascript-html-jquery-and-milk-of.html' title='Javascript, HTML, jQuery and the Milk of Human Kindness'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-3213546360291865350</id><published>2010-06-30T23:33:00.005+05:30</published><updated>2010-07-02T00:27:07.167+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="statistics"/><title type='text'>Unbiasedness and 2 counterexamples</title><content type='html'>&lt;div class=&quot;latexparse&quot;&gt;&lt;blockquote&gt;The role of unbiasedness in statistical decision theory is ambiguous. Of the various criteria being considered here, it is the only one that does not depend solely on the risk function. Often we find that biased estimators perform better than unbiased ones from the point of view of, say, minimising the mean squared error. For this reason, &lt;span style=&quot;font-weight:bold;&quot;&gt;many modern statisticians consider the whole concept of unbiasedness to be somewhere between a distraction and a total irrelevance&lt;/span&gt;.&lt;/blockquote&gt;&lt;br /&gt;
- &lt;span style=&quot;font-style:italic;&quot;&gt;&lt;a href=&quot;http://www.amazon.com/Essentials-Statistical-Inference-Probabilistic-Mathematics/dp/0521839718&quot;&gt;Essentials of Statistical Inference&lt;/a&gt;&lt;/span&gt;, Young, G.A. and R.L. Smith, CUP (2005), pp. 10&lt;br /&gt;
&lt;br /&gt;
I will supply two examples - one innocuous and one dramatic to illustrate the problems with unbiasedness as a criterion for selecting estimators. These are both taken from &lt;a href=&quot;http://www.jstor.org/pss/3647938&quot;&gt;here&lt;/a&gt;, but the second is orginally from &lt;a href=&quot;http://www.amazon.com/Counterexamples-Probability-Statistics-Wadsworth-Brooks/dp/0412989018&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;br /&gt;
Consider the problem of estimating the variance of observations $\{X\}_{i=1}^{n}$ drawn from a Gaussian density with mean $\mu$ and variance $\sigma^2$. Consider the estimators \[s^2 =\frac{1}{n-1}\sum_{i=1}^n(x_i-\bar{x})^2\] and \[t^2 =\frac{1}{n}\sum_{i=1}^n(x_i-\bar{x})^2\] for $\sigma^2$ where $\bar{x} = \frac{\sum_{i=1}^n x_i}{n}$. $s^2$ is often insisted upon as it is claimed to be better due to its unbiasedness. However, on the more relevant criteria of mean square error (what good is an unbiased estimator for a parameter with true value zero (say) if it is -100 half the time and 100 the other half? I&#39;d rather have the biased estimator that is +0.0001 with probability 0.6 and -0.0001 with probability 0.4) $t^2$ is superior in this case, as \[\mathbb{E}(t^2-\sigma^2)^2 &lt; \mathbb{E}(s^2-\sigma^2)^2\]
&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;br /&gt;
The differences in the two estimators above diminishes as the sample sizes increase and they converge to the same probability limit, $\sigma^2$, and thus are both consistent. A remarkable situation where this is not the case is when $X \sim Poisson(\lambda)$, $\lambda \in \mathbb{R}^+$. An unbiased estimator $\delta(X)$ for $e^{-2\lambda}$ satisfies the requirement \[\mathbb{E}(\delta(X)) = \sum_{x=0}^{\infty}\delta(x)\frac{e^{-\lambda}\lambda^x}{x!} = e^{-2\lambda}\], where $\frac{e^{-\lambda}\lambda^x}{x!}$ is the Poisson mass function. &lt;br /&gt;
But from the &lt;a href=&quot;http://en.wikipedia.org/wiki/Characterizations_of_the_exponential_function&quot;&gt;power series expansion&lt;/a&gt; of $e^{-\lambda}$ we know that the only possible such function $\delta(X)$ is $(-1)^{X}$. Then if $X=100$, we are lead to estimate the parameter $e^{-2\lambda}$ as 1 whereas $\lambda$ is would need to be fairly high to produce a realisation of 100. And even more incredibly, if $X=3$, then $\hat{\delta} = -1$, an estimate for a parameter which must lie in $(0, 1]$. A better estimator for $e^{-2\lambda}$ is $e^{-2X}$ which is, in this case, the maximum likelihood estimator.  &lt;br /&gt;
&lt;/li&gt;&lt;br /&gt;
&lt;/ol&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/3213546360291865350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/3213546360291865350?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/3213546360291865350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/3213546360291865350'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/06/unbiasedness-and-2-counterexamples.html' title='Unbiasedness and 2 counterexamples'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-8691464439911312864</id><published>2010-06-30T14:21:00.003+05:30</published><updated>2010-07-04T01:16:21.572+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="R"/><category scheme="http://www.blogger.com/atom/ns#" term="Stata"/><title type='text'>Multinomial logit in Stata and R III</title><content type='html'>Another set of translations between Stata and R - calculation of the most important kind of margins (see previous post), &lt;i&gt;i.e.&lt;/i&gt;, the marginal effects. This requires us to use yet another R package for out-of-the-box calculations of marginal effects, although I do also show how to do this by hand. Note that in both the R constructions, the standard errors are missing, and in a future post I will show how to calculate the standard errors analytically using the &lt;a href=&quot;http://en.wikipedia.org/wiki/Delta_method&quot;&gt;delta method&lt;/a&gt; and a nonparametric bootstrap.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here I construct the marginal effects for the covariate &quot;age&quot; on the predicted probabilities of each of the three categories of the outcome. For the automatic construction of marginal effects in R, I make use of another package, &lt;a href=&quot;http://cran.r-project.org/web/packages/VGAM/index.html&quot;&gt;VGAM&lt;/a&gt; and its vglm() and margeff() functions.&lt;br /&gt;
&lt;b&gt;R&lt;/b&gt;&lt;br /&gt;
&lt;pre class=&quot;brush:R&quot;&gt;########################
# calculate the marginal effects
########################
library(VGAM)
library(gregmisc)
library(foreign)
sysdn &lt;- read.dta(&quot;D:/programming/r/sandbox/sysdn1.dta&quot;, convert.factors=TRUE)
sysdn.multinomial &lt;- vglm(insure~age+male+nonwhite+as.factor(site), data=sysdn, multinomial)
sysdn.multinomial
margeff.sysdn.multinomial &lt;- margeff(sysdn.multinomial)
rowMeans(margeff.sysdn.multinomial[&quot;age&quot;,,])  # marginal effects
# manual construction of ME
p &lt;- fitted(sysdn.multinomial)  # p_ij (row `i&#39; = individual, column `j&#39; = choice) here, a 644x3 matrix
avgmargeff.age1 &lt;- mean(p[,1]*(coef(sysdn.multinomial)[&quot;age:1&quot;] - p[,2]*coef(sysdn.multinomial)[&quot;age:2&quot;]- p[,1]*coef(sysdn.multinomial)[&quot;age:1&quot;]))
avgmargeff.age2 &lt;- mean(p[,2]*(coef(sysdn.multinomial)[&quot;age:2&quot;] - p[,2]*coef(sysdn.multinomial)[&quot;age:2&quot;]- p[,1]*coef(sysdn.multinomial)[&quot;age:1&quot;]))
# note that insure=&quot;Uninsure&quot; is the base category and the coefficient vector is zero
avgmargeff.age3 &lt;- mean(p[,3]*(0 - p[,2]*coef(sysdn.multinomial)[&quot;age:2&quot;]- p[,1]*coef(sysdn.multinomial)[&quot;age:1&quot;]))
avgmargeff.age1 
avgmargeff.age2
avgmargeff.age3
&lt;/pre&gt;
&lt;b&gt;Stata&lt;/b&gt;
&lt;pre class=&quot;brush:R&quot;&gt;webuse sysdsn1, clear
mlogit insure age male nonwhite i.site, base(3)
margins, dydx(age) predict(outcome(1)) // average marginal effects
margins, dydx(age) predict(outcome(2))
margins, dydx(age) predict(outcome(3))
&lt;/pre&gt;I think this back-and-forth between languages and packages makes a good case for learning more than one programming languages. Somethings are more easily done in one or the other - a valuable bit of flexibility when working on a large project.

And to round it off, here is a very good explanation of what margins are, quoted from [R], Stata&#39;s base reference manual:
&lt;blockquote&gt;What we call margins of responses are also known as predictive margins, adjusted predictions, and recycled predictions. When applied to balanced data, margins of responses are also called estimated marginal means and least-squares means. 

A margin is a statistic based on a fitted model calculated over a dataset in which some of or
all the covariates are fixed at values different from what they really are. For instance, after a linear regression fit on males and females, the marginal mean (margin of mean) for males is the predicted mean of the dependent variable, where every observation is treated as if it represents a male; thus those observations that in fact do represent males are included, as well as those observations that represent females. The marginal mean for female would be similarly obtained by treating all observations as if they represented females.
&lt;/blockquote&gt;&lt;br /&gt;
EDIT: Thank you to Gautam C. for pointing out what happens to HTML style comments if they are in the CSS of an HTML file.</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/8691464439911312864/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/8691464439911312864?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/8691464439911312864'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/8691464439911312864'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/06/multinomial-logit-in-stata-and-r-iii.html' title='Multinomial logit in Stata and R III'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-6661693276608168495</id><published>2010-06-29T22:29:00.008+05:30</published><updated>2010-06-30T13:20:05.625+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="R"/><category scheme="http://www.blogger.com/atom/ns#" term="Stata"/><title type='text'>Multinomial logit in Stata and R II</title><content type='html'>A couple more interesting translations:  &lt;br /&gt;
&lt;ol&gt;&lt;li&gt;  &lt;br /&gt;
If you wanted to change the base outcome in the estimation, the multinom() function in nnet is no longer sufficient and we use the &lt;a href=&quot;http://cran.r-project.org/web/packages/mlogit/&quot;&gt;mlogit&lt;/a&gt; package. Note that this package is more in line with the motivation of multinomial logit as a choice model and thus expects the data in a form where for each choice occasion, all choices are enumerated as separate rows in the data.  &lt;br /&gt;
&lt;b&gt;Stata&lt;/b&gt;  &lt;br /&gt;
&lt;pre class=&quot;brush:R&quot;&gt;webuse sysdsn1, clear
mlogit insure age male nonwhite i.site, base(2)
&lt;/pre&gt;&lt;br /&gt;
&lt;b&gt;R&lt;/b&gt;  &lt;br /&gt;
&lt;pre class=&quot;brush:R&quot;&gt;library(effects)
library(foreign)
library(mlogit)
# using the nnet package
sysdn &lt;- read.dta(&quot;D:/programming/r/sandbox/sysdn1.dta&quot;, convert.factors=TRUE)
sysdn.multinom &lt;- multinom(insure~age+male+nonwhite+as.factor(site), data=sysdn)
summary(sysdn.multinom)
# change the base category of the response
sysdn$site &lt;- as.factor(sysdn$site)
sysdn$insure &lt;- as.factor(sysdn$insure)
sysdn.mldata &lt;- mlogit.data(sysdn, varying=NULL, choice=&quot;insure&quot;, shape=&quot;wide&quot;)
sysdn.mlogit &lt;- mlogit(insure ~ 1|age+male+nonwhite+site, data=sysdn.mldata, reflevel=&quot;Indemnity&quot;) 
sysdn.mlogit2 &lt;- mlogit(insure ~ 1|age+male+nonwhite+site, data=sysdn.mldata, reflevel=&quot;Prepaid&quot;) 
summary(sysdn.mlogit)
summary(sysdn.mlogit2)
&lt;/pre&gt;
&lt;/li&gt;
&lt;li&gt;  &lt;br /&gt;
You might want to predict (identified statistics) using the estimated model at various values of the covariates. In Stata 11, the new -margins- command offers a very general framework for doing this. I would strongly recommend reading [M] margins (the pdf documentation) for a very good description of what can be achieved using -margins-. Let us see is we can encode losslessly to R. I use the example I found &lt;a href=&quot;http://www.ats.ucla.edu/stat/r/dae/mlogit.htm&quot;&gt;here&lt;/a&gt;.  &lt;br /&gt;
&lt;b&gt;R&lt;/b&gt;  &lt;br /&gt;
&lt;pre class=&quot;brush:R&quot;&gt;# calculate predicted probabilities
mydata &lt;- read.csv(url(&quot;http://www.ats.ucla.edu/stat/r/dae/mlogit.csv&quot;))
attach(mydata)
names(mydata)
mlogit.model&lt;- mlogit(brand~1|female+age, data = mldata, reflevel=&quot;1&quot;)
summary(mlogit.model)  
newdata &lt;- data.frame(cbind(age = rep(24:38, 2), female = c(rep(0, 15), rep(1, 15))))
logit1 &lt;- rep(0, 30)
logit2 &lt;- -11.774655 + 0.523814*newdata$female + 0.368206*newdata$age
logit3 &lt;- -22.721396 + 0.465941*newdata$female + 0.685908*newdata$age
logits &lt;- cbind(logit1, logit2, logit3)
p.unscaled &lt;- exp(logits)
p &lt;- cbind(newdata, (p.unscaled / rowSums(p.unscaled)))
colnames(p) &lt;- c(&quot;age&quot;, &quot;female&quot;, &quot;pred.1&quot;, &quot;pred.2&quot;, &quot;pred.3&quot;)
p
&lt;/pre&gt;
&lt;b&gt; Stata &lt;/b&gt;  
&lt;pre class=&quot;brush:R&quot;&gt;insheet using http://www.ats.ucla.edu/stat/r/dae/mlogit.csv, comma clear
mlogit brand female age, base(1)
margins, predict(outcome(1)) at(age=(24(1)38) female=(0 1))
margins, predict(outcome(2)) at(age=(24(1)38) female=(0 1))
margins, predict(outcome(3)) at(age=(24(1)38) female=(0 1))
&lt;/pre&gt;The R code is more cumbersome, but it has the advantage of laying bare the structure of the construction, which is very valuable while learning about these models.  
&lt;/li&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/6661693276608168495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/6661693276608168495?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/6661693276608168495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/6661693276608168495'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/06/multinomial-logit-in-stata-and-r-ii.html' title='Multinomial logit in Stata and R II'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-3926490311694105868</id><published>2010-06-29T19:53:00.007+05:30</published><updated>2010-06-29T20:15:00.669+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="R"/><category scheme="http://www.blogger.com/atom/ns#" term="Stata"/><title type='text'>Multinomial logit in Stata and R</title><content type='html'>Here is how you can reproduce Stata&#39;s -mlogit- in R:&lt;br /&gt;&lt;b&gt;Stata&lt;/b&gt;&lt;br /&gt;&lt;pre class=&quot;brush:R&quot;&gt;&lt;br /&gt;websuse sysdn1, clear&lt;br /&gt;mlogit insure age male nowhite i.site&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;b&gt; R &lt;/b&gt;&lt;br /&gt;&lt;pre class=&quot;brush:R&quot;&gt;&lt;br /&gt;install.packages(&quot;foreign&quot;)&lt;br /&gt;library(foreign)&lt;br /&gt;sysdn &lt;- read.dta(&quot;D:/programming/r/sandbox/sysdn1.dta&quot;, convert.factors=TRUE)&lt;br /&gt;sysdn.multinom &lt;- multinom(insure~age+male+nonwhite+ as.factor(site), data=sysdn)&lt;br /&gt;summary(sysdn.multinom) &lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;And as of today, I am using Revolution R&#39;s optimized 64-bit version of R which they have made &lt;a href=&quot;http://info.revolutionanalytics.com/free-academic.html&quot;&gt; free for academic use&lt;/a&gt;. The function multinom() in R comes from the pre-loaded nnet package. Syntax highlighting for R code &lt;a href=&quot;http://www.demitri.com/code/&quot;&gt;here &lt;/a&gt;. Still looking for a brush/syntax highlighter for Stata. If anyone knows a good one, please do let me know.</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/3926490311694105868/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/3926490311694105868?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/3926490311694105868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/3926490311694105868'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/06/multinomial-logit-in-stata-and-r.html' title='Multinomial logit in Stata and R'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-3632327873570117092</id><published>2010-03-02T20:26:00.005+05:30</published><updated>2010-03-03T09:27:07.178+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blogger"/><category scheme="http://www.blogger.com/atom/ns#" term="Finance"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><title type='text'>Flash charts in Blogger</title><content type='html'>George &amp;amp; Ravi have a fantastic blog &lt;a href=&quot;http://aadiyatna.wordpress.com/&quot;&gt;here&lt;/a&gt;, where they discuss their trading strategies for their fund. It is eminently readable and they have some great ideas.&lt;br /&gt;However, George mentioned that they rely on pre-fabricated graphs and charts to  illustrate their point. I thought it might be nice to have dynamic charts which could be embedded in Blogger.&lt;br /&gt;&lt;br /&gt;So after some searching and quite a bit of tinkering, I managed to produce some charts that might give them some autonomy in creating graphs for their blog.&lt;br /&gt;&lt;br /&gt;There were a few steps to making this chart:&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt; After some googling I decided to use the set of tools provided by &lt;a href=&quot;http://www.amcharts.com/docs/&quot;&gt;amCharts&lt;/a&gt; which embeds a Flash object using the protocol provided by &lt;a href=&quot;http://code.google.com/p/swfobject/&quot;&gt;SWFObject&lt;/a&gt;, into a blog post. It uses an XML file to control the flash object settings and to feed in the data. In the XML file, I needed to change only the line which points to the data (I was using online hosting, so to a hyperlink - see below). There are numerous other settings which I intend to play around with as I make more charts. &lt;/li&gt;&lt;br /&gt;&lt;li&gt; I uploaded the files associated with the project so that they can be hotlinked. This allowed me to try out the file uploading facility provided by &lt;a href=&quot;http://groups.google.com&quot;&gt;Google Groups&lt;/a&gt;. I uploaded the data, the XML file, and the amCharts flash object there (you don&#39;t need to make your group public). The good part about this is that by changing dataset uploaded at Google Groups, the chart is automatically updated. It does not accept JavaScript however and to upload the .js file associated with SWFObject, I used &lt;a href=&quot;http://www.yourjavascript.com/&quot;&gt;yourjavascript.com&lt;/a&gt;, which, conveniently, does not need registration.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; I chose to embed the chart in Blogger without using SWFObject as it was causing some problems. This works fine except that as &lt;a href=&quot;http://www.amcharts.com/docs/v.1/bundle/how_to/embed_flash_to_your_page_without_swfobject&quot;&gt;this page&lt;/a&gt; mentions IE users will have to activate Flash when they view the site. In addition, you will need to have Flash 8 or higher installed. &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt; The most important and incomplete part is the dynamic aspect, &lt;i&gt;i.e.&lt;/i&gt;, amCharts allows you to serve up the data to it dynamically everytime it loads. However, this will require some PHP programming which I could not get to work right off the bat. The final plan is to have a PHP script serve the data from the &lt;a href=&quot;http://code.google.com/apis/finance/&quot;&gt;Google Finance API&lt;/a&gt;, replace the older .csv over at Google Groups (I guess this will require some encryption as well, because authentication will then be an issue), and the chart will update dynamically (there is an option in the amCharts controls to update at regular frequencies). &lt;/li&gt;&lt;br /&gt;&lt;/ol&gt;&lt;br /&gt;Since the chart is a little wide, I have embedded it in &lt;a href=&quot;http://felixkrull.blogspot.com/2010/03/sandbox-amcharts.html&quot;&gt;this&lt;/a&gt; other blog, which I tend to use as a sandbox for Blogger projects. I wish the fund, Aadiyatna, a lot of luck!&lt;br /&gt;&lt;br /&gt;EDIT: Turns out you do need to make Google Group content public.</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/3632327873570117092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/3632327873570117092?isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/3632327873570117092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/3632327873570117092'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/03/flash-charts-in-blogger.html' title='Flash charts in Blogger'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-1011816985764528649</id><published>2010-02-25T01:26:00.007+05:30</published><updated>2010-02-25T05:24:06.448+05:30</updated><title type='text'>Hello (F#) World!</title><content type='html'>My hobby: trying out new programming languages. Here is Microsoft&#39;s &lt;a href=&quot;http://en.wikipedia.org/wiki/F_Sharp_(programming_language)&quot;&gt;F#&lt;/a&gt; which is set to  become standard in Visual Studio 2010 which is pretty cool (the number of F# jobs will skyrocket, for example). There are a whole host of functional programming languages out there from the rather pure (Haskell) to those with imperative support (OCaml), though &lt;a href=&quot;http://stackoverflow.com/questions/822752/should-i-learn-haskell-or-f-if-i-already-know-ocaml&quot;&gt;the jury is still out on which is the best&lt;/a&gt;. I will try to learn it for rather more mundane tasks than it was intended, and hopefully post my progress here. Download the CLI &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=ba52e650-4e77-4b0b-b987-9f9ecd3bab3b&amp;displaylang=en&quot;&gt;here&lt;/a&gt; &amp; command line options &lt;a href=&quot;http://lorgonblog.spaces.live.com/blog/cns!701679AD17B6D310!445.entry&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush:cpp&quot;&gt;&lt;br /&gt;printfn &quot;Hello World!&quot;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;PS. Syntax highlighting via &lt;a href=&quot;http://alexgorbatchev.com/wiki/SyntaxHighlighter&quot;&gt;SyntaxHighlighter&lt;/a&gt; with C++ stripes.&lt;br /&gt;&lt;br /&gt;Edit: Found an F# brush for SyntaxHighlighter &lt;a href=&quot;http://www.undermyhat.org/blog/2009/09/list-of-brushes-syntaxhighligher/&quot;&gt;here&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/1011816985764528649/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/1011816985764528649?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/1011816985764528649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/1011816985764528649'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/02/hello-f-world.html' title='Hello (F#) World!'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-8807601580866221731</id><published>2010-01-03T13:33:00.003+05:30</published><updated>2010-07-06T01:09:54.251+05:30</updated><title type='text'>Summarise</title><content type='html'>With G&#39;s permission, I am hi-jacking this blog for a little bit of statistical computing blogging. Mostly basic stuff, feel free to ask loads of questions. Ask for code!&lt;br /&gt;
G and I had a few discussions about data cleaning and pre-processing. Although I tend to do this mostly by intuition (read brute force), the first thing I always do (after labelling the data) is to look at summary statistics. In particular, I look at the so-called &lt;a href=&quot;http://en.wikipedia.org/wiki/Five-number_summary&quot;&gt;Five-number Summary&lt;/a&gt; - part of the overarching scheme of John Tukey&#39;s exploratory data analysis. These are the sample minimum, first quartile (25th %ile), the median, the third quartile (75th %ile) and the sample maximum; and I tend to throw in the mean and the sample size as well. This output has been surprisingly useful to me for capturing data recording errors and inconsistencies.&lt;br /&gt;
In R, this can be had by &lt;span style=&quot;font-family:&#39;Courier New&#39;&quot;&gt;fivenum(x, na.rm = TRUE)&lt;/span&gt; and in Stata using John Gleason&#39;s &lt;span style=&quot;font-family:&#39;Courier New&#39;&quot;&gt;-univar-&lt;/span&gt; (&lt;a href=&quot;http://www.stata.com/help.cgi?ssc&quot;&gt;SSC&lt;/a&gt;).</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/8807601580866221731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/8807601580866221731?isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/8807601580866221731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/8807601580866221731'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2010/01/summarise.html' title='Summarise'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-2010393211641725731</id><published>2009-06-02T18:26:00.002+05:30</published><updated>2009-06-02T18:31:24.867+05:30</updated><title type='text'>Discussion Topic #1</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Assuming people are homogenous (racially, culturally etc. so that nationalist emotions are irrelevant), what is the most optimal way to divide the world into different countries?&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Assume also that natural resources, population and economic development are all as they are today. I haven&#39;t defined what I meant by &#39;optimal&#39;, that should be a part of the solution.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/2010393211641725731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/2010393211641725731?isPopup=true' title='25 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/2010393211641725731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/2010393211641725731'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2009/06/discussion-topic-1.html' title='Discussion Topic #1'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><thr:total>25</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-1002538040370860703</id><published>2009-05-29T19:35:00.006+05:30</published><updated>2009-05-30T08:37:15.063+05:30</updated><title type='text'>Feeling blue?</title><content type='html'>I&#39;ve got the perfect solution&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 1: Download &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;&lt;a href=&quot;http://gpjacob.googlepages.com/05-YouAndI.mp3&quot;&gt;[You and I.mp3] - Queen&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Step 2: Play&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Enjoy! :D&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana; font-size: 11px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;Music is playing in the darkness&lt;br /&gt;And a lantern goes swinging by&lt;br /&gt;Shadows flickering my heart&#39;s jittering&lt;br /&gt;Just you and I&lt;br /&gt;Not tonight come tomorrow&lt;br /&gt;When ev&#39;rything&#39;s sunny and bright (sunny and bright)&lt;br /&gt;No no no come tomorrow &#39;cause then&lt;br /&gt;We&#39;ll be waiting for moonlight&lt;br /&gt;&lt;br /&gt;We&#39;ll go walking in the moonlight&lt;br /&gt;Walking in the moonlight&lt;br /&gt;Laughter ringing in the darkness&lt;br /&gt;People drinking for days gone by&lt;br /&gt;Time don&#39;t mean a thing&lt;br /&gt;When you&#39;re by my side&lt;br /&gt;Please stay awhile&lt;br /&gt;&lt;br /&gt;You know I never could forsee the future years&lt;br /&gt;You know I never could see&lt;br /&gt;Where life was leading me&lt;br /&gt;But will we be together forever?&lt;br /&gt;What will be my love?&lt;br /&gt;Can&#39;t you see that I just don&#39;t know&lt;br /&gt;&lt;br /&gt;No not tonight not tomorrow&lt;br /&gt;Ev&#39;rything&#39;s gonna be alright (sunny and bright)&lt;br /&gt;Wait and see if tomorrow we&#39;ll be&lt;br /&gt;As happy as we&#39;re feeling tonight&lt;br /&gt;We&#39;ll go walking in the moonlight (we&#39;ll be happy)&lt;br /&gt;Walking in the moonlight&lt;br /&gt;&lt;br /&gt;I can hear the music in the darkness&lt;br /&gt;Floating softly to where we lie&lt;br /&gt;No more questions now&lt;br /&gt;Let&#39;s enjoy tonight&lt;br /&gt;(Just you and I) just you and I&lt;br /&gt;Just you and I&lt;br /&gt;Can&#39;t you see that we&#39;ve gotta be together&lt;br /&gt;Be together just you and I just you and I&lt;br /&gt;No more questions just you and I&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana; font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana; font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Verdana; font-size: 11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/1002538040370860703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/1002538040370860703?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/1002538040370860703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/1002538040370860703'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2009/05/feeling-blue.html' title='Feeling blue?'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-8078477793395021439</id><published>2009-05-29T00:24:00.005+05:30</published><updated>2009-05-29T19:29:32.911+05:30</updated><title type='text'>I&#39;m watching</title><content type='html'>&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxNHht9JapNwun63hwtVY2KRO1znL8HB8iHw6u_UuznTptx8qn5vOnpFD71DKIKxj5qyPbhyphenhyphenNPNGJZ9dajfTNboRUqYYtxLGO3SSxaI3o9swgSiJ6b2Ve-HbvnVV9jxtXOhph3P2n-g10/s1600-h/first308.jpg&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 350px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxNHht9JapNwun63hwtVY2KRO1znL8HB8iHw6u_UuznTptx8qn5vOnpFD71DKIKxj5qyPbhyphenhyphenNPNGJZ9dajfTNboRUqYYtxLGO3SSxaI3o9swgSiJ6b2Ve-HbvnVV9jxtXOhph3P2n-g10/s400/first308.jpg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5340950422247839746&quot; /&gt;&lt;/a&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/8078477793395021439/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/8078477793395021439?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/8078477793395021439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/8078477793395021439'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2009/05/im-watching.html' title='I&#39;m watching'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxNHht9JapNwun63hwtVY2KRO1znL8HB8iHw6u_UuznTptx8qn5vOnpFD71DKIKxj5qyPbhyphenhyphenNPNGJZ9dajfTNboRUqYYtxLGO3SSxaI3o9swgSiJ6b2Ve-HbvnVV9jxtXOhph3P2n-g10/s72-c/first308.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-5374053907534470440</id><published>2009-05-27T23:07:00.017+05:30</published><updated>2009-05-28T16:31:21.957+05:30</updated><title type='text'>The MSE years</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;By the 15th of June 2007, things had really hit a low point and I was in pretty bad shape. Plagued by depression, fear and most of all the constant questioning of my own rationality, I needed something to happen to just keep things together. &lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;The call from MSE came as a surprise. But it was an opportunity. A start that could turn everything around. The question facing me was: how do you do something that makes you sick to your stomach and that too for two years? Don&#39;t get me wrong. I loved Economics; its the exams and cramming that killed me. &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;~Digression~&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;I sometimes do a thought experiment where I choose some point in my history where I go back and replace the &#39;me&#39; who made all those mistakes with all this new insight and knowledge. Stephen&#39;s is always the place I&#39;d chose to start over. I don&#39;t know why. I did have fun and didn&#39;t screw up so badly over there. I guess Stephen&#39;s is the sort of place where a multitude of possible future paths may emerge. As the experiment progresses however, I begin to feel that regardless of how amazing a life I may be able to live this time round, it just isn&#39;t worth doing it all over again (I&#39;m assuming my memory is intact when I replace myself)&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;~&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;My first month at MSE was very lonely. I was stuck up in the Guest flat away from the main hostel and none of my roommates had arrived. I was never good at just going out there and meeting new people unless I was forced to. So, initially, I spent a lot of my time in my room, horizontal. There was however internet access in the room and that changed things. Till then I only used the net at cyber cafe&#39;s and computer labs primarily for checking mail. This internet access blew my mind. I discovered blogs by several Stephanians with whom I had lost all contact. Initially it felt very wierd. When the surrounding environment doesn&#39;t change, at least for me, thoughts tend to be repetitive and I end up in my comfort zone. A sort of intellectual stagnation, if you will. I felt that I was somehow left behind. People were out there working and earning money, while others had started their PhDs. People had moved on, talking about new things, reading new books, listening to new genres of music while I had not changed a single bit from college and that was frightening.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;The music I was listening to had not changed since my first year at Stephen&#39;s. The blogosphere was abuzzing with all sorts of new sounds and bands. I was soundly of the opinion, at that time, that rock was well and truly dead. I could not have been more wrong. I spent the first few months getting acquainted with likes of the Arctic Monkeys, The Killers, The Libertines, The Strokes, Vampire Weekend, (rediscovering) Oasis and so on (all thanks to zonuts.wordpress.com and millenniumhand.wordpress.com). This really fired me up. It was so different from what I was used to listening to (the usual classic rock stuff) and it was a rollercoaster ride of discovery, every day. &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Classes were really easy. So all I did was read and watch videos online and nothing else for the first semester. I read 1984, Shalimar the Clown, The Glass Bead Game and 70% of The Idiot. 1984 fit right into things. I identified with Winston and his paranoia. I took pleasure in the way the sentences seemed to from themselves with Rusdie (I like the story of this book a lot too). Joseph Knetch of Castalia was a constant reminder to slow things down and to just take pleasure in knowledge. This really helped rejuvinate me thoroughly.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;I wasn&#39;t all that anti-social either. I did end up meeting people and hanging out. I would take any opportunity to go to the beach. I just loved standing there in front of the massive ocean and feeling so insignificant. &lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;~Digression~&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0dT2Xu29k5nXx4STEeNxVRxOvwDwj4Qw6BS_2Z2F8RAFMaWJ8pIMPWTvKMsJzyYC_dlLwhNyoKT3hdtQwi_4sSoaNl7S6OudCrA0lRBo8VS-mSPuTRDV_k17QYJ7c-OlyaMAd2-zFDZs/s200/DSC00029.JPG&quot; style=&quot;cursor:pointer; cursor:hand;width: 200px; height: 150px;&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5340576877283307970&quot; /&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6LbLthVwcFYA4CzGYAs7-DzREBN_zf7HmmgSv4Ijh_PkPIHa5vNosPKwo5ZSVheTnDiVpTqSG0X6yKn48nLulMEEgI-zD9QWz4NaM0QIxSxcPqtVpmx0x8uRn1mdqAagQaEFkkQR2CtY/s200/DSC00053.JPG&quot; style=&quot;cursor:pointer; cursor:hand;width: 200px; height: 150px;&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5340577489970505138&quot; /&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5eA_6CskGUGcefkAuehBeOMvOfoy7xlHJBg0V0ZwgiY6uV8Jm102vbgFj8MhVKdvMd19GAdW28s0SuSN0YybUnIDw7dfYX2SZaWu5uhFzGPSaUPFTb1Sf3Jaa8V4GnjunNLfsY1d646s/s1600-h/DSC00224.JPG&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5eA_6CskGUGcefkAuehBeOMvOfoy7xlHJBg0V0ZwgiY6uV8Jm102vbgFj8MhVKdvMd19GAdW28s0SuSN0YybUnIDw7dfYX2SZaWu5uhFzGPSaUPFTb1Sf3Jaa8V4GnjunNLfsY1d646s/s200/DSC00224.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5340579178883185218&quot; style=&quot;cursor: pointer; width: 200px; height: 150px; &quot; /&gt;   &lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKfPXEJ1PHGcmyuP2ETFp_R-YPEZmaBQz_u8QrYiC6iGri3bZtq0XLZ0vnmP2LINJKv3LaTEbbWj1DkeOG4qt3ZozOKGvbyKTLU0W5zRAcX_JvwCA-v1Fi9rKYQYgcRbYnvFKe9xcOJD4/s1600-h/DSC00239.JPG&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKfPXEJ1PHGcmyuP2ETFp_R-YPEZmaBQz_u8QrYiC6iGri3bZtq0XLZ0vnmP2LINJKv3LaTEbbWj1DkeOG4qt3ZozOKGvbyKTLU0W5zRAcX_JvwCA-v1Fi9rKYQYgcRbYnvFKe9xcOJD4/s1600-h/DSC00239.JPG&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKfPXEJ1PHGcmyuP2ETFp_R-YPEZmaBQz_u8QrYiC6iGri3bZtq0XLZ0vnmP2LINJKv3LaTEbbWj1DkeOG4qt3ZozOKGvbyKTLU0W5zRAcX_JvwCA-v1Fi9rKYQYgcRbYnvFKe9xcOJD4/s200/DSC00239.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5340579527984372002&quot; style=&quot;cursor: pointer; width: 200px; height: 150px; &quot; /&gt;&lt;/a&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqrS5vtFEfkiESHmILSBhZLKymTqGsHQe_Zb88K5kdm0ePlskQW4dm6Os7jw3RGcUh-TfcIDFB_uE-_Jg-NcpOL5asv453HBVh1NzU3faf25oNpBOXdZTt33piaIedlOSdtPpgGa3dghE/s1600-h/DSC00251.JPG&quot;&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqrS5vtFEfkiESHmILSBhZLKymTqGsHQe_Zb88K5kdm0ePlskQW4dm6Os7jw3RGcUh-TfcIDFB_uE-_Jg-NcpOL5asv453HBVh1NzU3faf25oNpBOXdZTt33piaIedlOSdtPpgGa3dghE/s200/DSC00251.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5340579863517030962&quot; style=&quot;cursor: pointer; width: 200px; height: 150px; &quot; /&gt;&lt;/a&gt;&lt;img src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_EPEtJtif5lM2YdD1_6BXKDxdbfK6ChTmUlFH7BTwgiazq2GraurieY_xEAwTElzgXTJ43fIDKeayWQsVWueQAhUzPs2lOANqKs3ID3gFT6VKaXw7mrwzGwO1vwtyEBDgVBphBTUqquM/s200/DSC00134.JPG&quot; style=&quot;cursor:pointer; cursor:hand;width: 200px; height: 150px;&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5340578582417461202&quot; /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;~&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;MSE as an institution was rather peculiar.  The people, teachers included, were extremely friendly. Something I was really not used to, within an academic setting. What&#39;s more was that the faculty seemed to have a different motivation for their classes i.e. for the first time since school, the emphasis was on the fact that &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;everybody&lt;/span&gt; understands whats going on. Given that this is a master&#39;s level course, that may seem a little like spoon-feeding but this is what lead to the unique environment there. Intense competition was not prevelant. Collaboration was more the norm. Hands-on rather than internal visualization was the preferred way to understand things. There were free riders. I can&#39;t conclude that this was indeed a better approach. Students were being served all this knowledge on a silver platter. I found the reciprocal dishonesty, in terms of cheating and reckless nonchalance, loathsome. &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;I couldn&#39;t understand the motivation the teachers had for this. Their primary output was their research. There were teacher evaluations by students which were apparently taken seriously. Although I doubt if that is sufficient cause for them to put in such extra effort. There was also genuine humility among the teacher. The better the teacher the more humble they seemed to be (again, extremely uncharacteristic, if you&#39;ve come from Delhi).  That being said, humility was a virtue some teachers posessed and for others, it was forced upon them by their incompetence. The important thing I guess was that they cared. It mattered to them what we thought or felt.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;~Digression~&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:Verdana;font-size:11px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: italic;&quot;&gt;If you&#39;ve lost your faith in love and music&lt;br /&gt;Oh the end won&#39;t be long&lt;br /&gt;Because if it&#39;s gone for you then I too may lose it&lt;br /&gt;And that would be wrong&lt;br /&gt;&lt;br /&gt;I&#39;ve tried so hard to keep myself from falling&lt;br /&gt;Back into my bad old ways&lt;br /&gt;And it chars my heart to always hear you calling&lt;br /&gt;Calling for the good old days&lt;br /&gt;Because there were no good old days&lt;br /&gt;These are the good old days&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  font-style: italic;font-family:Verdana;font-size:11px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: right;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  font-style: italic;font-family:Verdana;font-size:11px;&quot;&gt;- The Good old Days by The Libertines&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: center;&quot;&gt;~&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Then there were after hours. I&#39;ve had some of the most stimulating conversations there. The usual formula revolved around getting slightly wasted, either on the terrace or the COE steps and posing a hypothetical. The scientific method would be fully applied: assumptions would be clarified and step by step deductions drawn, till the generalized theory was agreed upon and stated. I&#39;ve wanted to post those discussions here, but it was always seemed like too much work. Let me see if I can remember that stuff and post it on this blog.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Initially it was great meeting all my new classmates. Every evening people would be walking outside the hostel making chit-chat. The comments were usually guarded and the conversations had a sharp edginess to it, as they normally do when you have them with someone for the first time. As time progressed, people started forming small groups (I guess a minimization of said edginess over the set of all new people choosing n, number of people in the group, or the dual problem of maximising compatibility :-) ) of their own and those massive hanging out sessions stopped. This left me where I started: back in my room. I didn&#39;t mind it much. Being such a small college though, unlike Stephen&#39;s, if you weren&#39;t hanging out with people, you were alone. I was never alone in Stephen&#39;s: there was always somebody in my room or I was in someone else&#39;s. It was great though, getting to spend so much time by myself. The internet was the main provider of companionship.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;The average day was pretty simple. Classes in the morning. Lunch. Nap for a bit. Evenings were tricky, since there simply was nothing to do (most of the time I&#39;d go out in search of a snack). This was later replaced by football in the last semester and our own little league was an eagerly anticipated and regular feature. The late night sessions got rarer and towards the end, it was very much like the beginning. People had become like strangers with their own dreams and plans.  &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/5374053907534470440/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/5374053907534470440?isPopup=true' title='18 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/5374053907534470440'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/5374053907534470440'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2009/05/mse-years.html' title='The MSE years'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0dT2Xu29k5nXx4STEeNxVRxOvwDwj4Qw6BS_2Z2F8RAFMaWJ8pIMPWTvKMsJzyYC_dlLwhNyoKT3hdtQwi_4sSoaNl7S6OudCrA0lRBo8VS-mSPuTRDV_k17QYJ7c-OlyaMAd2-zFDZs/s72-c/DSC00029.JPG" height="72" width="72"/><thr:total>18</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-3428773187652678970</id><published>2009-05-26T19:10:00.004+05:30</published><updated>2009-05-26T19:31:19.956+05:30</updated><title type='text'>This blog is not dead, yet</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Following an amazing turn around in the author&#39;s perspective on sloth and laziness, and that terrible feeling he gets from the unending battle between the willingness of the mind and absolute lethargy of the body, he has decided that a fresh wave of life will be infused into this blog. &lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;The blog will be expanded to include such exciting topics as &lt;/div&gt;&lt;div&gt;&lt;ol&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;The author&#39;s personal life&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Corporate life and the accompanying emptiness (of head, soul and purpose)&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Economics (I know!)&lt;br /&gt;&lt;/li&gt;&lt;li style=&quot;text-align: justify;&quot;&gt;Introspective nonsense&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/3428773187652678970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/3428773187652678970?isPopup=true' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/3428773187652678970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/3428773187652678970'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2009/05/this-blog-is-not-dead-yet.html' title='This blog is not dead, yet'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-5441822798964007919</id><published>2008-12-16T16:47:00.007+05:30</published><updated>2008-12-16T17:01:54.007+05:30</updated><title type='text'>Risk</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaqpxDR7sXGbvAOJvUTKmGmNd-HrcTqForhyphenhyphen9ITu93-JA78qWSQoNi5rXSjkKNbnknBxaqProqNyY8ZDeLU4iSv75fwADW9V-7nbLX-yOAqMMMpg0GzwVttLzDAlvAwYv416JqKlM_-F0/s1600-h/for+post.JPG&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 400px; height: 124px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaqpxDR7sXGbvAOJvUTKmGmNd-HrcTqForhyphenhyphen9ITu93-JA78qWSQoNi5rXSjkKNbnknBxaqProqNyY8ZDeLU4iSv75fwADW9V-7nbLX-yOAqMMMpg0GzwVttLzDAlvAwYv416JqKlM_-F0/s400/for+post.JPG&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5280349201957895026&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: rgb(0, 0, 238); text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/5441822798964007919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/5441822798964007919?isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/5441822798964007919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/5441822798964007919'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2008/12/risk.html' title='Risk'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaqpxDR7sXGbvAOJvUTKmGmNd-HrcTqForhyphenhyphen9ITu93-JA78qWSQoNi5rXSjkKNbnknBxaqProqNyY8ZDeLU4iSv75fwADW9V-7nbLX-yOAqMMMpg0GzwVttLzDAlvAwYv416JqKlM_-F0/s72-c/for+post.JPG" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-5251516375022665117</id><published>2008-09-29T00:17:00.003+05:30</published><updated>2008-09-29T00:26:22.160+05:30</updated><title type='text'>On another note</title><content type='html'>Please make your way over &lt;a href=&quot;http://informedinvestors.wordpress.com/&quot;&gt;here&lt;/a&gt;. This is another blogging venture specifically about financial markets and investment strategies, started by my good friend &lt;a href=&quot;http://econado.wordpress.com/&quot;&gt;Ravi Saraogi&lt;/a&gt; and myself.</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/5251516375022665117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/5251516375022665117?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/5251516375022665117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/5251516375022665117'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2008/09/on-another-note.html' title='On another note'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-8797263070163922755</id><published>2008-09-24T23:10:00.006+05:30</published><updated>2008-09-25T10:47:44.692+05:30</updated><title type='text'>On Irony</title><content type='html'>&lt;div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;I&#39;m taking a bit of a step away from economics for a while, waiting for inspiration to strike. So I decided to re-read a book (for the first time). The  re-reading of &#39;Sophie&#39;s world&#39; was interesting, because the things I found engaging on the first read hardly caught my attention and instead I found myself engaged in some parts of the book I hardly remember reading the first time. The part that gripped me this time was the whole sub-plot with Alberto and Sophie, especially towards the end when the whole story becomes &lt;span style=&quot;font-style: italic; &quot;&gt;ironic&lt;/span&gt;.&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;I was first exposed to irony in the short stories of O&#39; Henry, particularly &#39;The Gift of the Magi&#39;. The teacher explained it along the lines of God/destiny playing a practical joke. This has been my benchmark definition. But in Sophie&#39;s world, the philosopher Alberto mentions at a point in the book that the events that were unfolding was an example of irony which challenged my existing understanding of the idea.&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;So what really is irony? It&#39;s really hard to define. I think there are two ways of looking at it. Firstly, it can be viewed as some kind of information asymmetry, or mutual lack of information that proves critical (for example, the story mentioned above). This is especially true for dramatic irony or tragic irony. On the other hand, as I discovered on reading the book, it can be viewed as something which evokes awareness. This made me look at things which I didn&#39;t consider ironic earlier, a bit closer.&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;I&#39;ll use an example - A Dylan song:  I shall be free No. 10. The song rambles on about random stuff about some person without much structure or point. Then at the end he sings&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-style: italic; &quot;&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;Now you&#39;re probably wondering by now&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic; &quot;&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;Just what this song is all about&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic; &quot;&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;What&#39;s probably got you baffled more&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic; &quot;&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;Is what this thing here is for. &lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;(Referring to a particular kind of strumming he was using throughout the song)&lt;br /&gt;&lt;/div&gt;&lt;span style=&quot;font-style: italic; &quot;&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;It&#39;s nothing&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;span style=&quot;font-style: italic; &quot;&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;It&#39;s something I learned over in England&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;So, while your listening to the song your going along with the lyrics, figuring out the story, taking everything else for granted. But the moment you hear the last part, you suddenly become aware. You become aware that your listening to a song, that the song has a peculiar strumming style etc. In other words, your attention gets diverted from the content to the medium. &lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;The movie, Annie Hall is another expample. There are scenes when things are happening in the background but Woody Allen converses directly with the audience, breaking out of the story, making the audience aware that they are watching a movie. When the content breaks out or away, that is when the audience becomes aware. In art, any kind of absurdity would also evoke the same reaction and so even the magic realism of Rushdie or Marquez can be looked at as having used irony to highlight the theme of the story.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;Douglas Hofstadter, in GEB, refers to this kind of irony as a strange-loop (or self-reference) and claims that once there is self-reference within a system of any kind (mathematical or otherwise), the system has developed its own consciousness. Godel&#39;s Incompleteness theorem follows the laws of a mathematical system in the proof and concludes something about the system itself. There is irony in the theorem. But does that make the system that generated the irony conscious? The author claims that a strange-loop is is an attempt by a system to percieve reality outside the confines of its role and hence it constitutes consciousness.&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify; &quot;&gt;There really is no point to this post. Just a few observations. So I&#39;ll leave you with an Escher picture.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaM6rmVSLroX-ZN07zhv84LyNZ10RlkLs__tJWkFaB9pyl0uvdHLPa9JAz1Wd2hM_oHW0cmelKiwEkuXFK8R6tdSOeqc-Tv7E0hAH3wlwuPTtrT3VaSThjiWnMy6Nkwu11sDZshz9mx0U/s1600-h/escher-hands.gif&quot;&gt;&lt;img style=&quot;display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaM6rmVSLroX-ZN07zhv84LyNZ10RlkLs__tJWkFaB9pyl0uvdHLPa9JAz1Wd2hM_oHW0cmelKiwEkuXFK8R6tdSOeqc-Tv7E0hAH3wlwuPTtrT3VaSThjiWnMy6Nkwu11sDZshz9mx0U/s400/escher-hands.gif&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5249661558242125282&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/8797263070163922755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/8797263070163922755?isPopup=true' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/8797263070163922755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/8797263070163922755'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2008/09/on-irony.html' title='On Irony'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaM6rmVSLroX-ZN07zhv84LyNZ10RlkLs__tJWkFaB9pyl0uvdHLPa9JAz1Wd2hM_oHW0cmelKiwEkuXFK8R6tdSOeqc-Tv7E0hAH3wlwuPTtrT3VaSThjiWnMy6Nkwu11sDZshz9mx0U/s72-c/escher-hands.gif" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-711035846809523512</id><published>2008-06-07T10:48:00.004+05:30</published><updated>2008-06-07T11:16:16.805+05:30</updated><title type='text'>In the long run, we are all the Grateful Dead</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;Paul Krugman articulates much better what I tried to say in the earlier post. Check it out &lt;a href=&quot;http://www.nytimes.com/2008/06/06/opinion/06krugman.html?_r=1&amp;amp;oref=slogin&quot;&gt;here&lt;/a&gt;. &lt;/div&gt;&lt;div align=&quot;justify&quot;&gt; &lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt; &lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;In other news, I&#39;m done with exams and enjoying the brilliant city of Bangalore for a couple of months.&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt; &lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;A certain somebody recently accused me of being a &quot;neo-liberal fascist&quot; on account of my endorsment of free markets. This accusation wasn&#39;t entirely baseless. When you break it down, all my arguments require well-functioning markets. Something which, I was made to understand, can&#39;t be taken for granted. Although markets evolve into well-funtioning one over time, the collateral damage in terms of poverty and economic hardship requires one to think of stop-gap measures. &lt;/div&gt;&lt;div align=&quot;justify&quot;&gt; &lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt; &lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;So I thought I&#39;d do some reading. I picked up &#39;Capitalism and Freedom&#39; by Milton Friedman and what I&#39;ve read so far is the best articulation of the capitalist ideology I&#39;ve ever seen. Check it out &lt;a href=&quot;http://www.ditext.com/friedman/title.html&quot;&gt;here&lt;/a&gt; if you have the time. &lt;/div&gt;&lt;div align=&quot;justify&quot;&gt; &lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt; &lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;P.S: recommendations for things to check out in Bangalore are very welcome :)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/711035846809523512/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/711035846809523512?isPopup=true' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/711035846809523512'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/711035846809523512'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2008/06/in-long-run-we-are-all-grateful-dead.html' title='In the long run, we are all the Grateful Dead'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-5778608719497748364</id><published>2008-02-17T17:20:00.004+05:30</published><updated>2008-02-18T00:15:34.845+05:30</updated><title type='text'>The &quot;In Rainbows&quot; model</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;&lt;/div&gt;&lt;p align=&quot;justify&quot;&gt;This is a response to Navin&#39;s comment in the last post. He asked whether Radiohead, providing it&#39;s latest album In Rainbows for download, for a voluntary contribution made any economic sense (zero is also an allowed contribution).&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;A seller, if he is greedy (in the sense that he prefers more to less and given a choice chooses more) typically tries to make as much money as he can by selling. The ideal situation for him is to sell his goods to each person charging them the maximum they are willing to pay. This is what you see in an ordinary auction: the buyer has to bid the maximum he is willing to pay to compete for the auction. In this sense, the seller is a profit-maximizer. In a market when he is selling to a multitude of people however, he does not have the liberty of engaging in any activity to discover the maximum willingness to pay (MWP) of each of his customers. He usually charges a price, aware of the fact that this price may be below some people&#39;s MWP and above some other&#39;s. So by definition, he caters only to the people who are willing to at least pay the price he quotes.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;The seller estimates what the people are willing to pay and contructs a demand curve (relationship between price and how much people buy) and chooses a point such that he makes maximum profit. This is the tradeoff that he has to contend with. If his goods are priced low enough, it is more likely that a larger number of people will have a MWP greater than the price but on each unit he is making less profit.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;So how does the radiohead model work? They have spent some money making their new album. By offering it on the internet for a voluntary contribution, the choice is left to the buyer to state his MWP and pay it. The only problem is that their is no mechanism or incentive for the buyer to actually state his MWP (except possibly his conscience). This is where they deviate from predicted seller behaviour. They don&#39;t seem to be greedy. This makes for an interesting new point of view. A west versus east kind of thing. What if I get into a business saying that I want to cover my costs and over and above that all I want to do is make x rupees of profit. Then I don&#39;t need to worry so much about getting the price just right. Now all I need to do is ensure that so many units of my good gets sold. Then I tell my customers to pay whatever they want to in excess of the cost of making it. Will anybody pay more? They certainly have no incentive to. The only thing that could motivate them is some sense of loyalty to the seller or some kind of personal touch. I would probably pay more at my local shop where I know the proprieter, but not at a McDonald&#39;s. &lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Radiohead however only had this offer on for a limited period, which leads me to believe that they did this more as a publicity gimmick than as some kind of revolutionary business model that&#39;s going to change the world. Would it have been a sustainable new model? I don&#39;t think so because it ultimately boils down to a quesiton of telling the truth and not many people tell the truth.&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;I think it&#39;s a step in the right direction because the entire music industry is going to change. The recording industry association of america says that the losses from music piracy already runs up to 12.5 billion dollars. That is a lot of people not paying for what they listen to. Fighting piracy is one way to go about it. It&#39;s definitely not the smart way though. Work with it. Accept that it has come to the phase where people expect to get music for free and work around it trying to make the most of it. &lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;Think about what google does. Their product for their customers is internet search, and they charge nothing for it. On the other hand they&#39;ve got their hand in the advertising pie and that&#39;s where they make their money. This is similar to the indian railways: charge your customers less and make up for it in another market (freight).  I think this is a sustainable model for the music industry. Musicians could start putting their hand in some other pies too. Advertising is an obvious option or they could link up with the producers of CD&#39;s and music equipment and have some kind of tie-up there. There may be something more specific that could pay better. An innovation here could be the final answer.&lt;br /&gt;&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;br /&gt; &lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;br /&gt; &lt;/p&gt;&lt;p align=&quot;justify&quot;&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/5778608719497748364/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/5778608719497748364?isPopup=true' title='21 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/5778608719497748364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/5778608719497748364'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2008/02/in-rainbows-model.html' title='The &quot;In Rainbows&quot; model'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><thr:total>21</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-6518643044318799889</id><published>2008-02-09T14:26:00.000+05:30</published><updated>2008-02-09T14:50:34.990+05:30</updated><title type='text'>A change of direction</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;I&#39;ve been thinking about some stuff for a while now and since the readership on this blog has grown by leaps and bounds, I think its the right time to try and incorporate some open-ended quesitons here.&lt;br /&gt;&lt;br /&gt;Like I mentioned, I don&#39;t have the answers and most of the quesitons I post over here are mere thoughts and may seem very naive to the well trained (brainwashed) economist. So I would really appreciate some constructive comments by all of you who spend more than the average 1 minute on this blog to take some time and help me take these germs of ideas to some kind of logical conclusion.&lt;br /&gt;&lt;br /&gt;The posts are going to deal with issues like this:&lt;br /&gt;&lt;br /&gt;1. The impact of removing the perfect divisibility assumption in consumer theory. If I had to contend with the fact that I cannot buy .67 of a book, how would discrete math help me solve the optimization problem?&lt;br /&gt;&lt;br /&gt;2. Considering that demand curves, when empirically estimated, obviously involve many data points that deviate from the mean, can I meaningfully incorporate all the data points by coming up with a theory that talks about a demand correspondence (and its associated features) instead of a precise funtional form?&lt;br /&gt;&lt;br /&gt;3. Creating a Bayesian updation framework (after reading up about it!) for a) firm vaulation and b) option pricing.&lt;br /&gt;&lt;br /&gt;4. Exploring the possibilities of intermarket relationships from a non-general equilibrium framework. Something a little more game-theoretic I suppose, so as to have a platform to analyse an entire industry with its input markets, its substitute and complement market.&lt;br /&gt;&lt;br /&gt;5. Reviewing Econometric methodology. What is the most efficient algorithm to tackle an econometric problem and is there some way to rank the possible approaches in terms of some desirability criteria.&lt;br /&gt;&lt;br /&gt;6. Using rational expectations to explain microeconomic dynamics and other movements in individual markets.&lt;br /&gt;&lt;br /&gt;So lets see how this goes. I&#39;ll tackle each of theses thoughts in separate posts. Please do post comments and help me sort these issues out.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/6518643044318799889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/6518643044318799889?isPopup=true' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/6518643044318799889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/6518643044318799889'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2008/02/change-in-direction.html' title='A change of direction'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7261850809934949757.post-6247848163567344595</id><published>2008-02-09T14:22:00.000+05:30</published><updated>2008-02-09T18:19:04.362+05:30</updated><title type='text'>Excuse for a post</title><content type='html'>&lt;a href=&quot;http://imgs.xkcd.com/comics/movie_seating.png&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img style=&quot;DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 477px; CURSOR: hand; HEIGHT: 542px; TEXT-ALIGN: center&quot; height=&quot;491&quot; alt=&quot;&quot; src=&quot;http://imgs.xkcd.com/comics/movie_seating.png&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gpjacob.blogspot.com/feeds/6247848163567344595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7261850809934949757/6247848163567344595?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/6247848163567344595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7261850809934949757/posts/default/6247848163567344595'/><link rel='alternate' type='text/html' href='http://gpjacob.blogspot.com/2008/02/excuse-for-post.html' title='Excuse for a post'/><author><name>The dismal blogger</name><uri>http://www.blogger.com/profile/10251269875487567691</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='22' height='32' src='http://3.bp.blogspot.com/__OlrHdw_aJw/SNsfTxyC5TI/AAAAAAAAABI/o1CcQoRKHTY/S220/george+for+fb.jpg'/></author><thr:total>0</thr:total></entry></feed>