Self-Conception, Relative Prices, & Confabulation

We all like to think that we are individuals. We like to think that we grow and that our tastes develop and mature. We begin to appreciate different things in life, and among other behaviors, our spending habits change.

But what would you say if I told you that your maturing tastes didn’t cause your maturing consumption patterns? Indeed, what if it’s the other way around? Maybe, you’re just a bumbling ball bearing bouncing about and pinging off of various stimuli in a very predictable fashion. What if the prices that you face changed over the course of the past two decades, adjusting your optimal bundle of consumption, and then you contrived reasons for your new behavior in an elegant post-hoc fashion.

Have you *really* taken a liking to whole wheat bread and pasta over the past decade because your tastes have developed? Or maybe it’s because you found that scrumptious New York Times recipe that turned you away from potatoes and toward rice. Whether it’s a personal experience, a personal influence, or a personal development, we like to think about ourselves as complex organisms with a narrative that makes sense of the way in which we interact with the world.

On the other hand, we have price theory. Price theory still accepts that you are special and that you have preferences. Then, it asserts that your preferences remain fixed and that your changes in behavior are merely responses to changing costs and benefits that you perceive in the world. Maybe you’re not any more inclined to eat healthily than you were previously, but the price ratio of whole wheat bread to white bread is 10% less than it use to be. Maybe your east-Asian inspired recipe didn’t cause you to spurn potatoes, but instead the price ratio of rice to potatoes fell by 20%.   

Continue reading

Cleaning Data and Muddying Water

I’ve praised IPUMS before. It’s great.

The census data in particular is vast and relatively comprehensive. But, it’s not all perfect.

Consider three variables:

  • Labforce, which categorizes whether someone is employed
  • Occ1950, which categorizes occupation types
  • Edscor50, which imputes a relative education score based on occupation

These all seem like appropriate variables that a labor economist might want to control for when explaining any number of phenomena. There is a problem. Edscor50, and the several measures like it, are occupation based. Specifically, the scores use details about 1950 occupations to impute educational details. There are similar indices used for earnings, income, status, socioeconomic status, and prestige.

Cool.

Continue reading

The Unimportance of Inflation: Stocks & Flows

One of my specializations in graduate school at George Mason University was monetary theory. It included two classes taught by Larry White who specializes in free-banking, Austrian macroeconomics, and monetary regimes. Separately, my dad was a libertarian and I’ve attended multiple Students for Liberty events. Right now, I’m writing from my hotel room at a Catholic/Crypto conference, where I learned that the deepest trench in Dante’s Inferno includes money debasers.

Everything about my pedigree suggests that I should have a disdain for the Federal Reserve and cast a wistful gaze toward the perpetually falling value of the US dollar. But I don’t. I certainly do have opinions about what the Fed should be doing and how our monetary system could work. But I’m not excited by the long-run depreciation of the dollar.

Let me tell you why.

Learning a little bit of theory is a dangerous thing. Monetary theory is especially hard because we examine the non-good side of the transaction: the medium of exchange. In frantic excitement, enthusiasts often point out that the value of the dollar has lost very much of its value in the past 100 years. They describe that loss by describing the lower quantity of something that a dollar can purchase now versus what it could have purchased historically. That information is incapsulated in the price of a good. The price of a good is the number of dollars that one must exchange in order to purchase the good. Similarly, the price of a dollar is the number of goods that one must give up in order to purchase the dollar.

We can consider a variety of goods. Below is a graph that describes the quantity price of the dollar where the quantities are CPI basket units, gold, and housing. In the 35 years following 1986, a single dollar purchases 60% less of the consumer basket, 74% fewer houses (not quality adjusted), and 76% less gold.

Continue reading

What do they even want?: Inflation Edition

People were all excited last week when the CPI numbers were released because… the year-over-year rate of inflation did a whole lot of nothing. See below. The 12-month rate of inflation was practically constant. The 8.2% number was all over the headlines and twitter. We already know that news outlets don’t always report on the most relevant numbers. And I say that this is one of those times.

https://fred.stlouisfed.org/graph/?g=UQ4T

First of all, there is a problem with the year-over-year indicator. Well, not so much problem in the measure itself, but more a problem of interpretation. The problem is that the 12-month rate of inflation is the cumulative compound rate for 12 individual months. Each month that we update the 12-month inflation rate, we drop a month from the back of the 12-month window and we add a month to the front of the 12-month window. Below are both a graph and a table indicating the monthly rate of inflation and the 12-month periods ending in August 2022 (pink) and in September 2022 (green).

Continue reading

Book Review: Big Data Demystified

Last year, our economics department launched a data analytics minor program. The first class is a simple 2 credit course called Foundations of Data Analytics. Originally, the idea was that liberal arts majors would take it and that this class would be a soft, non-technical intro of terminology and history.

However, it turned out that liberal arts majors didn’t take the class and that the most popular feedback was that the class lacked technical challenge. I’m prepping to teach the class and it will have two components. A Python training component where students simply learn Python. We won’t do super complicated things, but they will use Python extensively in future classes. The 2nd component is still in the vein of the old version of the course.

I’ll have the students read and discuss “Big Data Demystified” by David Stephenson. He spends 12 brief chapters introducing the reader to the importance of modern big data management, analytics, and how it fits into an organization’s key performance indicators. It reads like it’s for business majors, but any type of medium-to-large organization would find it useful.

Davidson starts with some flashy stories that illustrate the potential of data-driven business strategies. For example, Target corporation used predictive analytics to advertise baby and pregnancy products to mothers who didn’t even know that they were pregnant yet. He wets the appetite of the reader by noting that the supercomputers that could play Chess or Go relied on fundamentally different technologies.

The first several chapters of the book excite the reader with thoughts of unexploited potentialities. This is what I want to impress upon the students. I want them to know the difference between artificial intelligence (AI) and machine learning (ML). I want them to recognize which tool is better for the challenges that they might face and to see clear applications (and limitations).

AI uses brute force, iterating through possible next steps. There are multiple online tic-tac-toe AI that keep track records. If a student can play the optimal set of strategies 8 games in a row, then they can get the general idea behind testing a large variety of statistical models and explanatory variables, then choosing the best.

But ML is responsive to new data, according to what worked best on previous training data. There are multiple YouTubers out there who have used ML to beat Super Mario Brothers. Programmers identify an objective function and the ML program is off to the races. It tries a few things on a level, and then uses the training rounds to perform quite well on new levels that it has never encountered before.

There are a couple of chapters in the middle of the book that didn’t appeal to me. They discuss the question of how big data should inform a firm’s strategy and how data projects should be implemented. These chapters read like they are written for MBAs or for management. They were boring for me. But that’s ok, given that Stephenson is trying to appeal to a broad audience.

The final chapters are great. They describe the limitations of big data endeavors. Big data is not a panacea and projects can fail for a variety of what are very human reasons.

Stephenson emphasizes the importance of transaction costs (though he doesn’t say it that way). Medium sized companies should outsource to experts who can achieve (or fail) quickly such that big capital investments or labor costs can be avoided. Or, if internals will be hired instead, he discusses the trade-offs between using open source software, getting locked in, and reinventing the wheel. These are a great few chapters that remind the reader that data scientists and analysts are not magicians. They are people who specialize and can waste their time just as well as anyone else.

Overall, I strongly recommend this book. I kinda sorta knew what machine learning and artificial intelligence were prior to reading, but this book provides a very accessible introduction to big data environments, their possible uses, and organizational features that matter for success. Mid and upper level managers should read this book so that they can interact with these ideas prudentially. Those with a passing interest in programming should read it for greater clarity and to get a better handle on the various sub-fields. Hopefully, my students will read it and feel inspired to be on one side or the other of the manager- data analyst divide with greater confidence, understanding, and a little less hubris.

Everyone’s an Expert: Easy Data Maps in Excel

I love data, I love maps, and I love data visualizations.

While we tend not to remember entire data sets, we often remember some patterns related to rank. Speaking for myself anyway, I usually remember a handful of values that are pertinent to me. If I have a list of data by state, then I might take special note of the relative ranking of Florida (where I live), the populous states, Kentucky (where my parents’ families live), and Virginia (where my wife’s family lives). I might also take special note of the top rank and the bottom rank. See the below table of liquor taxes by State. You can easily find any state that you care about because the states are listed alphabetically.

A ranking is useful. It helps the reader to organize the data in their mind. But rankings are ordinal. It’s cool that Florida has a lower liquor tax than Virginia and Kentucky, but I really care about the actual tax rates. Is the difference big or small? Like, should I be buying my liquor in one of the other states in the southeast instead of Florida? Without knowing the tax rates, I can’t make the economic calculation of whether the extra stop in Georgia is worth the time and hassle. So, the most useful small data sets will have both the ranking and the raw data. Maybe we’re more interested in the rankings, such as in the below table.

But, tables take time to consume. A reader might immediately take note of the bottom and top values. And given that the data is not in alphabetical order, they might be able to quickly pick out the state that they’re accustomed to seeing in print. But otherwise, it will be difficult to scan the list for particular values of interest.  

Continue reading

In Praise of the FRED Excel Add-in

Sometimes, large entities have enough money to throw at a problem that by sheer magnitude they produce something great (albeit at too high a cost). The iPhone app from the FRED is not that thing. But the Excel add-in is something that every macroeconomics professor should consider adding to their toolkit.

Personally, I include links to FRED content in the lecture notes that I provide to students. But FRED makes it easy to do so much more. They now have an add-in that makes accessing data *much* faster. With it, professors can demonstrate in excel their transformations that students can easily replicate. The advantage is that students can learn to access and transform their own data rather than relying on links that I provide them.

The tool is easy enough to find – FRED wants you to use it. After that, the installation is largely automatic.

Installed in excel you will see the below new ribbon option. It’s very user friendly.

Continue reading

Russia, The US, and Crude Data

Overall, I’ve been disappointed with the reporting on the US embargo against Russian oil. The AP reported that the US imports 8% of Russia’s crude oil exports. But then they and other outlets list a litany of other figures without any context for relative magnitudes. Let’s shine some more light on the crude oil data.*

First, the 8% figure is correct – or, at least it was correct as of December of 2021. The below figure charts the last 7 years of total Russian crude oil exports, US imports of Russian crude oil, and the proportion that US imports compose.  That 8% figure is by no means representative of recent history. The average US proportion in 2015-2018 was 7.8%. But the US share as since risen in level and volatility. Since 2019, the US imports compose an average of 11.9% of all Russian crude oil exports.

As an exogenous shock, the import ban on Russian crude oil might have a substantial impact on Russian exports. However, many of the world’s oil importers were already refusing Russian crude. The US ban may not have a large independent effect on Russian sales and may be a case of congress endorsing a policy that’s already in place voluntarily.

Continue reading

Reading Literacy Data

The story that I’ve heard is this:

            In the US, we care about education. We believe that all people should receive one, regardless of their family status. Therefore, states provide education directly.

There you have it. We provide education in the US so that everyone gets a more fair shake at education. We might disagree about the purpose of an education. Maybe it’s for improved job prospects, for a more informed citizenry, or for more unified values and experiences. One socially awkward answer is that state schools are, in part, a childcare service that permit parents to work. Except for these couple of reasons, school provision and compulsory education should, at the very least, increase literacy. That’s a low bar.

Given the above reasoning states began to pass compulsory school legislation. Massachusetts was first in 1852. Followed by DC and Vermont in the 1860s. Thirteen more adopted compulsory education legislation by 1880. By the year 1900, most states had compulsory schooling legislation on the books that was applicable to at least some age groups. See the figure. Thus, did the US achieve more equality, so goes the story.

The reasoning behind the story is sound. Without education of some sort, people will surely have less human capital. The vulnerability of the reasoning is that formal schooling is not the only form of education. A person who doesn’t attend school may help a parent at work or have a private tutor – or simply grow in a milieu of thoughtful exposure. Therefore, requiring that a child attend school may not improve human capital by a degree greater than what the child would have been doing otherwise. That’s an empirical matter.

The figure below illustrate the data for ‘white’ people and illustrates literacy between the ages of 20 and 30. Why that interval? At the lower end, we don’t have literacy data for people under the age of 20 in 1850 & 1860. On the higher end, any effects of compulsory schooling will only affect those who were children and subject to the law – older people are immune to compulsory schooling legislation.

The graph illustrates that state literacy rates were rising throughout the period. The main exception is 1870. Maybe the demands of the civil war caused children to work at home or otherwise and forego schooling. So the increase from 1870 to 1880 is more of a catch-up to a previous trend than anything else. While it’s true that several states passed compulsory schooling laws in the 1870s, that doesn’t explain the widespread literacy improvements across most states.

After 1860, we can examine the younger people who were subject to the schooling laws. The figure below for people ages 10-20 tells a similar story to the one above.

My biased reading of the data is that initial compulsory schooling laws had at least an ambiguous effect on the overall trend of improving literacy. I’ll delve deeper in future posts.

PS – The literacy data is from IPUMS.

PPS – The compulsory schooling law dates are allegedly from “Department of Education, National Center for Educational Statistics, Digest of Education Statistics, 2004.” But I couldn’t find the original source. Kudos to anyone in the comments who can find it.

Age-Old Dads

Do you know how old you are?

I’m 33. Specifically, I’m 33 years, 29 days old. I don’t know the time of day that I was born, but my mom probably remembers within a couple of hours. My dad did not keep track of my age. Growing up, it was normal for him to take me to a sports registration event and need to ask me for plenty of my details in order to complete the paperwork.

Do you know the age of your children? Is it normal for parents to lose track? Or is it just the dads?  …Or just my dad? I have no idea what is typical.

But I do have some decent evidence that, had my dad lived in 1850, he would not have been such an anomaly. Consider exhibit A: A histogram of US ages in 1850. The population was only about 23 million at the time and we have the age for about 19 million of those people. So the graph is relatively representative (IPUMS census data).

Do you notice anything weird about the graph?

That’s the question I asked my Western Economic History class.

Continue reading