Wednesday, June 29, 2011

Decline and Fall of Econometrics?

"Please bear in mind throughout that IT IS MEANT TO BE FUNNY."
(Evelyn Waugh, 'Author's Note' in Decline and Fall, 1st ed., 1928)

I'm not sure that there's anything funny about the decline and fall of Econometrics, especially if you're an econometrician - that's if it were true, of course. But is it? Personally I don't think so.

Econometricians seem to be very much in demand. To take one example, if you take a look at the EconJobMarket site right now you'll see that over the past 6 months, and also in total since that site began, more jobs have been posted in the Econometrics category than in any other economics category (except for "Any Field").

BTW, don't be put off by the fact that there don't seem to have been very many jobs posted at all in the past 6 months - that period doesn't cover the annual recruitment season job posts. With that recruitment season  in mind, if you look back at last October's issue of JOE, you'll find that there were over 130 job postings in the "Mathematical & Quantitative Methods" (which is primarily Econometrics)category.

It will be interesting to see how the job numbers for econometricians stack up in JOE after this summer's break.

Imagine my alarm, then, when I obtained this chart while playing around the other day with Google Trends:

Tuesday, June 28, 2011

p-Values for Cointegration Tests With Breaks in the Data

In an earlier post I went through some econometrics that involved the problem of testing for multivariate cointegration in the case where there are one or more trend-breaks or level-breaks in the time-series data.  Specifically, I talked about the modified Trace tests introduced by Johansen et al. (2000), and I mentioned the really nice discussion of the application of these tests that is provided by Joyeux (2007).

Two things relating to this occurred to me recently. The first was that while I'd provided EViews code for calculating asymptotic critical values to be used with these tests, it would also be useful to have the corresponding code for calculating p-values for any calculated values of the Trace test statistics.

Second, given the discussion and comments in my recent posts (here and here) about open-source software, I thought it would be a good idea to make the p-values and critical values code available for users of R. (Thanks for the earlier comments, "Ben" and Tal Galili!)

So, in a joint effort, Ryan Godwin and I have written the R code, and extended the earlier EViews code to compute the p-values. Both of them are on the Code  page that goes with this blog - in two places: under this post, and also in place of the code for the earlier post. (You can thank Ryan for the nice windows that open when you run the R program.) In addition, an Excel workbook with a big selection of critical values is avalable on the Data page for this blog.

We hope you find the programs useful!


Note: The links to the following references will be helpful only if your computer's IP address gives you access to the electronic versions of the publications in question. That's why a written References section is provided.

References

Johansen, S., R. Mosconi and B. Nielsen (2000). Cointegration analysis in the presence of structural breaks in the deterministic trend. Econometrics Journal, 3, 216-249.

Joyeux, R. (2007). How to deal with structural breaks in practical cointegration analysis? In B. B. Rao (ed.), Cointegration for the Applied Economist, Second Edition, Palgrave Macmillan, New York, 195-221.



© 2011, David E. Giles

Sunday, June 26, 2011

Your Very Own Theorem

Too many term papers to grade? Tenure clock running? Don't have the time to crank out a new theorem today?

Fear not! TheoryMine can come to your rescue. As they so delightfully explain:

"You can name your very own mathematical theorem, newly generated by one of the world's most advanced computerised theorem provers (a kind of robot mathematician), and you can immortalise your loved ones, teachers, friends and even yourself and your favourite pets".
And:
"You can buy new theorems which become yours to name. You will receive a printable certificate in PDF form of the theorem and its discovery (including an outline of the proof). You can then give this away, frame it, sing it, as you like!"

At only £15.00, this looks to me like a bargain just waiting to be snapped up! I mean, how long did you spend proving that last theorem of yours? I'll bet that (No. of Hours x Hourly Salary) > 15!

I particularly like the idea of "immortalising your teachers" (hint, hint), and I promise not to sing it!

HT to Ken Stewart.

© 2011, David E. Giles

Friday, June 24, 2011

gretl

In comments on a recent post, "Ben" and Tal Galili very sensibly asked if I could make R code available for the econometric analysis in my posts, in addition to EViews code. I'll be trying to do this wherever I can, given the time constraints.

The important point implicit in these comments is that R is free, open-source, software, whereas EViews is not. I'm definitely a supporter of open-source. Here's a suggestion that may be helpful in the meantime, especially if you aren't feeling up to learning R.

There's a nice open-source package called gretl that has much in common with EViews. It's specifically econometrics-oriented, with lots of the time-series features that are part of EViews' strength, and that are hard to match in a freindly way in a lot of other econometrics packages.

In case you're wondering, gretl is an acronym for Gnu Regression, Econometrics and Time-series Library.

The really good news is that is is very simple to open foreign data files in gretl, including EViews workfiles, SAS, STATA, and SPSS files. This might help some readers of this blog who don't have access to EViews.

Right now, there seem to be a few problems with opening some EViews 7 files in gretl - earlier versions of EViews are fine. Allin Cottrell is kindly checking this out, and I'll keep you posted on this point.

From here on I'll try and supply data in EViews.wf1, Excel, R, and STAT.dta files to maximize accessibility.

I'm only just starting to play around with gretl, but it looks just great!

(HT to Martina Lui - long overdue!)



© 2011, David E. Giles

Thursday, June 23, 2011

An Important 'First'

There are lots of rewarding things about this job - the short hours, the long vacations every summer, the wonderful pay,.....................(yeah, right!)

But right up there among the very best things is when a grad. student gets their first publication acceptance! It's a really special day when that happens - and not just for the student.

Yesterday, I was thrilled that one of my grad. students, Ryan Godwin, achieved this important milestone, with a paper accepted for publication in Communications in Statistics - Theory & Methods.

One of the impressive things on this occasion is that the paper in question is not even part of Ryan's Ph.D. research. Extra frosting on the cake!

I'm sure that all of us can remember that first acceptance letter - or email, as it usually is these days. Here's to many more to come, Ryan!



© 2011, David E. Giles

Wednesday, June 22, 2011

Private Market for Personal Identity Data

Apparently, the British Government is planning to create a private data market for personal identity data. There's an interesting item abut this in Computer Weekly

You don't need to have a subscription to see the draft discussion document, "Identity Assurance (IDA) - Technical Infrastructure Services". Currently, it's accessible here.

One interesting thing that I learned is that "shared secrets" are apparently aka "memorable information" (see p.7 of the draft report).

Great timing, given the recent security breaches at Sony, Sega, and the like!


© 2011, David E. Giles

RStudio

If you're a user of the R statistical software environment (and you should be - if you're not, it's the best free lunch in town), then the (fairly) recently released RStudio user interface will undoubtedly interest you. Here's a quote from the description on their website, to give you the flavour:
  • "RStudio brings together everything you need to be productive with R in a single, customizable environment. Its intuitive interface and powerful coding tools help you get work done faster.
  • RStudio is available for all major platforms including Windows, Mac OS X, and Linux. It can even run alongside R on a server, enabling multiple users to access the RStudio IDE using a web browser.
  • Like R, RStudio is available under a free software license that guarantees the freedom to share and change the software, and to make sure it remains free software for all its users. "

RStudio has been getting quite of a bit of attention - positive attention - especially in places that matter, such as R-Bloggers.

Anyway, I'd encourage you to check it out. If you're not already an R user, this interface might persuade you to take the leap. Just make sure that you update your installation of R to (at least) 2.11.1 before trying to use RStudio.



© 2011, David E. Giles

Tuesday, June 21, 2011

Invisible Econometrics

Welcome to The Museum of Non-Visible Art (MONA). Yes, you read that correctly. So what is this all about? Here's an extract from their site:
"The Non-Visible Museum is an extravaganza of imagination, a museum that reminds us that we live in two worlds: the physical world of sight and the non-visible world of thought. Composed entirely of ideas, the Non-Visible Museum redefines the concept of what is real. Although the artworks themselves are not visible, the descriptions open our eyes to a parallel world built of images and words."
You can buy (the ownership rights to) an imaginary piece of art that doesn't physically exist. For example, pledge $20 or more to the cause and you will receive:

Monday, June 20, 2011

On the Correlation Between Crime and Punishment

In two previous posts (here and here) I've taken a look at the OECD's 50th anniversary present to all of us - their "Better Life Index" (BLI). One of the eleven components of that Index is titled "Safety" - and according to the OECD this component
"...... largely reflects the risks of people being physically assaulted or falling victim to other types of crime. Crime may lead to loss of life and property, as well as physical pain, post-traumatic stress and anxiety. The biggest impact of crime on people’s well-being appears to be through the feeling of vulnerability that it causes."

The BLI site also notes that
"Across the OECD, one person in six reported falling victim to a conventional crime, with physical assault accounting for nearly a quarter of all conventional crime. In terms of perceived safety, one out of four people in the OECD report feeling unsafe on the street after dark."
In addition, the average homicide rate across the OECD countries is 2.2 murders per 100,000 inhabitants.

An interesting question that arises is whether or not the relative safety level matches the relative incarceration rate.

Thursday, June 16, 2011

Obesity, Driving, & Unbalanced Regressions

The Economist magazine's daily chart of 15 June 2011 was to do with a recent study on the relationship between obesity and amount of driving. This study is reported in a paper by Jacobson et al. (2011), which is "in press" at the journal, Transport Policy. This paper will bring tears to all econometric eyes! Not tears of joy, either.

There are so many things that one could say about it that it's really difficult to know where to start - but I'll try!

Before we start, though, a word about the charts in the 15 June chart blog in The Economist. There are two of them - look at the one on the left. Are they really plotting the correlation between the two variables in question? I don't think so.  Anyway, that's not my real gripe. My problem is with the paper that's being published by Transport Policy (TP). And judging by the nature of the comments on The Economist's blog, I'm not alone.

From its website, I see that TP has an impact factor of 1.024. This just goes to show how misleading impact factors can be - it's quite possible to get the impact factor above unity simply by publishing material that infuriates people so much that everyone has to cite it in order to take issue with it! Nice trick if you can get away with it!