The university formerly known as NUI Galway (and before that, UCG) rebranded as University of Galway last year.

This post outlines how you can make beamer slides to match the university branding. The theme is called Gaillimh after the name of the city in the Irish language.

The theme should compile if you use pdflatex. However, full implementation requires you to use xelatex. This is because the official University branding is very clear that the font of preference is Spectral. This is a lovely font, freely available from Google Fonts, and you can even download it HERE, but pdflatex won’t let you use your own fonts. So if you want to use be very consistent with the branding and use Spectral, you will need to compile your document with xelatex.

An example PDF of the Gaillimh theme is viewable HERE. I include a couple of screenshots below.

You can download all the files you need to install and use the theme in one zip-file HERE.

//

University College Dublin has an excellent, professionally-crafted visual identity. Credit where it’s due, the branding is distinctive and coherent.

But there isn’t a beamer theme. UCD Marketing have Powerpoints to beat the band, but I (and at least a dozen other people worldwide) prefer generating slidedecks in TeX.

So I have made a beamer theme to replicate the official UCD branding. There is a norm of naming beamer themes after university locations such as AnnArbor or Berkeley. The UCD beamer theme is thus named Belfield. Though the UCD brand is very well known on our island, this little bit of research infrastructure can help you represent the university internationally.

An example PDF of the Belfield theme is viewable HERE. I include a couple of screenshots below.

You can download all the files you need to install and use the theme in one zip-file HERE.

Alternatively you can download them individually. Instructions are available from the README.txt. Don’t skip the readme file, it helps with the installation. 

//

Usually my exams have a large blank space for students to write their names in.

If, instead, I wanted to generate individualised exams with their names printed in that space, this code will do that for you. It uses the pgffor package to loop over the list of names you provide.

\documentclass{article}
\usepackage{pgffor}
\def\classlist{Enda Hargaden,
George Akerlof,
Joe Stiglitz,
Don Bruce}
\pagenumbering{gobble}
\begin{document}
\foreach \studentname in \classlist{

Econ 381 Problem Set: \studentname's Copy

\begin{enumerate}
\item What is OLS?
\item What's the square root of 25?
\item More questions yadda yadda
\end{enumerate}

\newpage}

\end{document}
//

I like being able to hide content in documents, for example including but not revealing the answers in a problem set. That makes it very easy to then produce the problem set solutions, simply by revealing the answers. I made this easier with a \hide{} command, that can be “turned off” so the answers are revealed.

This is the basic code I use for producing problem sets. The only change needed to convert a problem set into a solution set is to redefine the \showanswers variable to equal 1 rather than 0.

\documentclass{article}
% Set this =0 to hide, =1 to show
\def\showanswers{0}

\newcommand{\hide}[1]{
\ifnum\showanswers=1

#1 \vspace{\baselineskip}
\fi

\ifnum\showanswers=0

\vspace{2\baselineskip} \hspace{2cm}
\fi
}

\begin{document}

\begin{enumerate}
\item This is question 1.
\hide{Here is a hidden solution.}


\item What is the answer to question 2?
\hide{The answer is here.}
\end{enumerate}

\end{document}
//

Michigan’s Graduate Student Instructors (GSIs) receive student evaluations for every class they teach. The undergrads are invited to rate their GSIs using Likert Scales (aside: Likert had a degree in economics from the University of Michigan). Students see something like this:

Overall, the instructor was an excellent teacher
Strongly Disgree Disagree Neutral Agree Strongly Agree

The Registrar compiles this data, encoding “Strongly Disagree” as 1, “Strongly Agree” as 5, etc. They then provide GSIs with what is called their “Median score”, which is actually a slightly complicated interpolated form of the median.

The application of medians to discrete values was perplexing, so I asked the Office of the Registrar to provide me with the exact formula they use. They did so, and I reproduce it here in case any GSI in the future ever wonders as I once did. (I checked: the Registrar has no objection to this being made public knowledge.)

Their formula, which requires some lingo that is explained below, is:

\(\text{Median } = \text{Lower Real Limit } + \frac{0.5N – a}{b}\)

Calculate the range the median must lie in, e.g. somewhere between 2 and 3. Let’s call this range “the interval”. The Lower Real Limit is the midway point of the interval, i.e. 2.5.

The total number of observations (in the whole sample) is denoted \(N\). Denote as \(a\) the number of responses below the Lower Real Limit. In this example, \(a\) would be equal to the numbers of 1s and 2s.

Recall that our interval is the range between 2 and 3. The upper-limit of this is 3. Finally, denote as \(b\) the number of observations that choose the upper-limit of this interval, i.e. the number of people that chose 3.

Now for an example, suppose you have the following scores:

Score 1 2 3 4 5
Frequency 2 1 8 14 7

By inspection, the median cannot be greater than 4 and cannot be lower than 3. Therefore our interval is 3-4, with a Lower Real Limit of 3.5. There are 32 responses, so \(N=32\). Eleven people chose a score below the Lower Real Limit, so \(a=11\). Fourteen people chose the upper-limit of the interval, so \(b=14\). Plugging this into our equation above:

\(\text{Median } = 3.5 + \frac{0.5(32) – 11}{14} = 3.86\).

//

While watching football this morning, I also kept an eye on the betting odds. As soon one team scored, the odds changed.

Instead of introducing the efficient market hypothesis to students as a theory about stocks and bonds, we should perhaps start by drawing parallels to sports-betting. It is hard to consistently make money betting on Premier League results. It’s not impossible, but it takes a lot of skill and/or luck to pull it off.

The same logic applies to beating the general rate of return in a market. Financial markets tend to adjust prices so that there are no obvious bargains. This is not a claim that sporting events never throw up shock victories, nor does it imply that markets never crash. If anything, it suggests that predicting a stock market crash is about as difficult as predicting a shock sporting victory.

Like comparative advantage, it’s hard for undergrads to grasp this idea. I have found that the sporting analogy works well as a stepping stone.

(While on the topic of the EMH: there’s a fun contrast between the predicament of Cassandra, who could perfectly predict the future but nobody would believe her, and the EMH. The more people believe in EMH, the less likely they are to actively search for arbitrage opportunities. This will tend to leave market-beating returns uncollected, nullifying the EMH. The converse also holds. In this respect, EMH is a self-defeating prophecy.)

//
  1. Check if your question is answered in the syllabus.
  2. Make sure the subject is informative. “Exam” is much less useful as a subject line than “Econ 101 exam conflict”.
  3. Start with “Dear Prof. Jones,” skip two lines, and begin your first paragraph.
    There is some confusion about the appropriate title (Mr/Dr/Prof) to use. Somebody with a PhD can be addressed as “Dr”. A professorship is a particular job that comes with the title “Professor”. Most, but not all, faculty should be called “Prof”. (That is, not all faculty are professors. There are different grades, just like there are Congressmen and Senators.) A quick check of somebody’s website should indicate whether they’re a professor or not. If not, it’s best to play it safe and be over-dressed instead of under-dressed.
    Ideally everybody would be just be called by their first name. Unfortunately it doesn’t work like that. There are plenty of things that would be fine to say to somebody in a pub or on the street that would be very unprofessional to say in a classroom or during office hours. There is a different social dynamic there that professors/teachers must follow. Similarly, the student should be aware of this dynamic too, and go with “Dear Prof. Jones” instead of “Hi Mike”.
  4. Don’t use txt spk ever. Typos are fine; asking “where is ur office?” is not.
  5. Don’t use smiley faces.
  6. Use paragraphs.
  7. In your first paragraph, explain why you are emailing, and what you want.
  8. Keep the email short. Almost 100% of emails can remain polite and express their point in two paragraphs.
  9. Sign off with something nice like “Kind regards” or “All the best”
  10. Before you click send, ask yourself “Am I being reasonable here?”
//

Undergrads are taught many formulae for the Price Elasticity of Demand. The most common one I have encountered is the particularly unwieldy “midpoint formula”:
\(\epsilon_D = \frac{ \frac{Q_2-Q_1}{(Q_1+Q_2)/2} }{\frac{P_2-P_1}{(P_1+P_2)/2}}\)

The elasticity at one point is a little more reasonable:
\(\epsilon_D = \frac{ \Delta Q }{ \Delta P }\times \frac{P}{Q}\)

There is an elegant simplification in the case of linear demand. With a demand curve like this:


We can use the formula above, and note that the (absolute value of) PED at point E is:
\(
\begin{align*}
\epsilon_D &= \frac{ \Delta Q }{ \Delta P }\times \frac{P}{Q} \\
&= \frac{b-d}{c} \times \frac{c}{d} \\
&= \frac{b-d}{d}\\
\end{align*}
\)
Or, equivalently:
\(
\begin{align*}
\epsilon_D &= \frac{ \Delta Q }{ \Delta P }\times \frac{P}{Q} \\
&= \frac{d}{a-c} \times \frac{c}{d} \\
&= \frac{c}{a-c}\\
\end{align*}
\)

I am pretty sure it was Steve Salant who taught me this.

Updated Feb 2014: Steve Salant adds two more points. Firstly, that this trick also applies to nonlinear demand curves. Draw a tangent to the curve at the point of interest. Its slope will equal the slope of the curve at the point of tangency, and you can then follow the same procedure as above. Secondly, that the elasticity can be expressed in terms of either \(a\) and \(c\), or \(b\) and \(d\). I have altered the post to reflect this.

//

Students ask me this all the time, so here’s my explanation of the three types of inefficiency.

1. Productive inefficiency. This is a supply-side idea. Mattie and Joe both produce bananas. The bananas are identical. It cost Mattie $12 to produce his last kilogram of bananas, and it cost Joe $10 to produce his last kilogram. They would both better off if, instead of producing that last unit for $12, Mattie paid Joe e.g. $11.50 to produce it. That way Mattie saves 50c and Joe makes a profit of $1.50.

The condition needed to satisfy productive efficiency is that the marginal cost for Company A equals the marginal cost for Company B. If the marginal costs differ, then there are gains from trade from the low marginal cost company (e.g. Joe) selling the item to the company with the high marginal cost (e.g. Mattie).

2. Distributive inefficiency. This is a consumer-side idea. Let’s say that for some reason bananas sell for $1 in the US and $3 in Canada. Then there are people in Canada who are willing to pay, say, $2.75 for bananas but do not receive them. Suppose some American is willing to pay up to (but no more than) $1.20 for bananas. If he sells the bananas to the Canadian for e.g. $2.50, then everyone is better off. Although the American was receiving 20c in consumer surplus by purchasing the bananas for $1, he is clearly better off by selling them for $2.50. (Obviously transport costs have to be small for this to hold.) The Canadian gets the bananas and 25c consumber surplus, so he is also better off. Therefore the $1 and $3 prices generate inefficiencies.

The condition needed to satisfy distributive efficiency is that the marginal benefit to Mr 1 equals the marginal benefit to Mr 2. If they differ, then there are gains from trade from the person with the low MB (e.g. $1) selling the item to the person with the high MB (e.g. $3).

3. Allocative inefficiency. This puts the consumer-side and the producer-side together. Suppose everything regarding productive efficiency (marginal costs for Company A and Company B are the same) and distributive efficiency (marginal benefits for Mr 1 and Mr 2 are the same) is just fine. You can still have inefficiency if the marginal benefits don’t equal the marginal costs. For example, if the costs of the last kg of bananas is $10 but consumers are only willing to pay $3 for it, then producing that last unit is inefficiently costly.

Thus the condition needed to satisfy allocative efficiency is that the marginal benefits (consumer side) equal the marginal costs (producer side).

//
Scroll to Top