That’s it. That’s the post. Read more.

That’s it. That’s the post. Read more.

If you’re like me, then you are very fond of food. What determines the price of food? Supply and demand of course!
We can consider food as a commodity because just about anyone can buy and sell it. Almost all foods have partial substitutes. Therefore, the long-run price in the competitive market for food is largely dictated by the marginal cost. Demand has an impact on the price only in the short run.
A long-run driver of food prices are the costs that food producers face. The US Bureau of Labor Statistics divides the Producer Price Index into multiple categories that are relevant for a variety of sectors and points within the production process. Below is a table of the most fundamental, relatively unprocessed farm products and their weight among all farm products in December 2021. Cotton is a relatively large component for farm products even though it’s not a food and I include it for completeness. Fruits, veggies, and nuts makeup the overwhelming proportion of the cost of farm products. I was at first surprised that grains composed such a small proportion. But, being dirt cheap, it makes sense.

We all know that inflation has been in the news. It’s been elevated since the second quarter of 2021. Consumer prices tend to lag producer prices. One indicator of where food prices will be in the near future is where the producer prices are now. Below is a graph that displays the above seasonally adjusted farm product prices since the start of 2021*.
Continue readingSome events are like elections: it was obvious that some big political news would break on Election Day, we just had to wait to find out what exactly would happen. Others are like market crashes: you might know in principle they’re a thing that can happen, but you don’t really expect any particular day to be the day one happens, so they seem to come out of the blue. As it turns out, for one of the largest crypto exchanges the day of the crash also happened to be Election Day.
FTX.com is facing a bank run sparked by competitor Binance tanking the price of the token that backed some of their assets. Customers are having issues withdrawing their money, Binance has withdrawn its offer to bail out FTX by taking them over, and bankruptcy seems likely. Supposedly this doesn’t affect Americans using FTX US, but I’d be nervous about any funds I had there, or indeed with funds in any centralized crypto exchange or stablecoin (Tether and even USDC seem to be having issues holding their pegs). All this was especially shocking because many considered FTX founder Sam Bankman-Fried one of the most trustworthy people in the often sketchy world of crypto. He was always meeting with US regulators and lawmakers, and seems not to be motivated by greed; he had already begun to give away his fortune at scale.

After any surprising event like this, some people claim it was actually obvious and they saw it coming (despite usually never having said so beforehand), while others start looking back for warning signs they missed. The most interesting one is something that shocked me when I first heard it March, but I never considered the risk it implied for FTX until the crash:

Going forward, red flags to watch out for seem to be topping a list of youngest billionaires (as Elizabeth Holmes also did) and buying naming rights to a stadium.
In contrast to this crash, the election happened right when we all expected, and at least largely how I expected. Like markets, I underestimated Democrats a bit; polls overall were impressively accurate this year, though they of course missed on some particular races. Votes are still being counted, and as of now we don’t even know for sure which party will control Congress (PredictIt currently gives Democrats a 90% chance in the Senate and a 20% chance in the House). But here are some early attempts to assess forecast accuracy. As I said, some polls were quite good:

Some polls weren’t so good, which means its important to weight better pollsters more heavily when you aggregate them. Some attempts at that were also quite good:

Oddly, some no money (Metaculus) / play money (Manifold Markets) forecasting sites seem to have done better than the real-money prediction sites:

Social media apps are nosy by nature; it is no secret that their main business model is to snoop out information about you, the user, and package and sell that information to advertisers who can target you. But there is one wildly popular app which goes beyond the norms of intrusiveness and privacy invasion AND is targeted largely at children and adolescents AND is based in China and thus is subject to Big Brother’s request for any and all data. That app is TikTok.
To avoid a bunch of re-wording, I will largely share excerpts from “ The Privacy Risks of TikTok – Why This Invasive App is So Dangerous “ by Priscilla Sherman at VPNOverview. Other articles echo her concerns with TikTok:
TikTok is an extremely popular social media video app owned by the Chinese tech company ByteDance. On TikTok, users can create and share short-form videos using a variety of filters and effects. The platform is full of dancing, comedy, and other entertaining videos….
Several agencies and news outlets are now sounding the alarm and reporting on the many problems that have surfaced. ByteDance claims to want to break away from its Chinese background in order to serve a global audience and says it will never share data with the Chinese government. This claim, however, seems impossible now that new security laws have been introduced in Hong Kong.
TikTok’s user base mostly consists of children and adolescents, which many consider to be vulnerable groups. This is a main reason for different authorities to express their worries. However, it isn’t just the youth that might be in danger from TikTok. From December 2019 onwards, U.S. military personnel were no longer allowed to use TikTok, as the app was considered a ‘cyber threat’…
[Hacker group] Anonymous has published a video listing the many dangers of TikTok. They quote a source that has done extensive research on TikTok: “Calling it an advertising platform is an understatement. TikTok is essentially malware that is targeting children. Don’t use TikTok. Don’t let your friends and family use it. Delete TikTok now […] If you know someone that is using it, explain to them that it is essentially malware operated by the Chinese government running a massive spying operation.”
These claims fit in with the recent developments surrounding TikTok. For example, Apple researchers announced that TikTok deliberately spies on users.
Claims keep piling up, showing that TikTok is a very invasive application that poses a substantial privacy risk. It seems that the data collection at TikTok goes much further than other social platforms such as Facebook or Instagram. This is surprising, since both of these companies have already faced backlash for the way they’ve dealt with user privacy. TikTok seems to collect data on a much larger scale than other social media platforms do. This, combined with TikTok’s origins makes it quite plausible that the Chinese government has insight into all of this collected data…..
Research from a German data protection website has revealed that TikTok installs browser trackers on your device. These track all your activities on the internet. According to ByteDance, these trackers were put in place to recognize and prevent “malicious browser behavior”. However, they also enable TikTok to use fingerprinting techniques, which give users a unique ID. This enables TikTok to link data to user profiles in a very targeted way.
Unfortunately, this happens with a great disregard of privacy – perhaps intentionally so. The German researchers indicate, for example, that IP addresses aren’t anonymized when TikTok uses Google Analytics, meaning your online behavior is directly linked to your IP address. An IP address provides information about your location and, indirectly, about your identity…
A user on Reddit used reverse engineering to figure out more about TikTok. Anonymous quoted the results in the video we mentioned earlier. The Reddit user discovered that TikTok collects all kinds of information:
Additionally, the app creates a local proxy server on your device, which is officially used for “transcoding media”. However, this is done without any form of authentication, making it susceptible to misuse….
We asked investigative journalist and writer Maria Genova about her vision on TikTok. … Genova says: “There’s a reason several countries have banned it. It’s unbelievable how much information an app like that pulls from your phone”…
TikTok needs access to your camera and microphone in order to work properly… However, there aren’t any specifications explaining how exactly these permissions are used. Therefore, TikTok could theoretically record conversations and sounds using your microphone, even when you aren’t filming a TikTok video.
We could go on and on with the technical details here, but you get the point. The fact that “IP addresses aren’t anonymized“ is really a big, bad deal. The article concludes:
The current findings and concerns surrounding TikTok are reason enough for us [the staff at VPNOverview] to remove the app from our devices. Whether TikTok’s main target group – young people between 14 and 25 – is sensitive to the privacy concerns that have come to light, remains to be seen.
Indeed.
One more quote , from Brendan Carr of the U.S. Federal Communications Commission (FCC), regarding the reliability of TikTok’s claims that they do not share data with the Chinese government:
“China has a national security law that compels every entity within its jurisdiction to aid its espionage and what they view as their national security efforts,” Carr said earlier this year, alluding to the fact that Chinese companies must make all the data they collect available to the Chinese Communist Party (CCP).
Stay tuned for Part 2, dealing with some larger market ramifications of TikTok’s evasion of Apple and Android privacy protections.
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
This just in from BuzzFeed (added to original post here):
“Leaked Audio From 80 Internal TikTok Meetings Shows That US User Data Has Been Repeatedly Accessed From China”
For years, TikTok has responded to data privacy concerns by promising that information gathered about users in the United States is stored in the United States, rather than China, where ByteDance, the video platform’s parent company, is located. But according to leaked audio from more than 80 internal TikTok meetings, China-based employees of ByteDance have repeatedly accessed nonpublic data about US TikTok users — exactly the type of behavior that inspired former president Donald Trump to threaten to ban the app in the United States.
The recordings, which were reviewed by BuzzFeed News, contain 14 statements from nine different TikTok employees indicating that engineers in China had access to US data between September 2021 and January 2022, at the very least. Despite a TikTok executive’s sworn testimony in an October 2021 Senate hearing that a “world-renowned, US-based security team” decides who gets access to this data, nine statements by eight different employees describe situations where US employees had to turn to their colleagues in China to determine how US user data was flowing. US staff did not have permission or knowledge of how to access the data on their own, according to the tapes.
“Everything is seen in China,” said a member of TikTok’s Trust and Safety department in a September 2021 meeting.
This is my last post before the US midterm elections on Tuesday, so I’ll leave you with a prediction for what’s coming.
Who is the best predictor of elections? Nate Silver at FiveThirtyEight has had a pretty good run since 2008 using weighted polls. Ray Fair, an economics professor at Yale has a venerable and well-credentialed model based on fundamentals. I typically favor prediction markets, because they incorporate a wide range of views weighted by how willing people are to put their money where their mouth is, and traders are able to incorporate other sources of information (including predictors like FiveThirtyEight). But which prediction market should we trust? There are now many large prediction markets, and the odds often differ substantially between them.
When there are many reasonable ways of answering a question or looking at a problem, it can be hard to choose which is best. Often the best answer is not to choose- instead, take all the reasonable answers and average them. Dan Gardner and Philip Tetlock call this approach Dragonfly Eye forecasting, since dragonfly’s eyes see through many lenses. So what does the dragonfly see here?

Lets start with the US House, since everyone covers it.
Its a bit tricky to average all these since they don’t all report on the same outcome in the same way. But the overall picture is clear: Republicans are likely to do well in the House, with an ~87% chance to win a majority, expected to win the popular vote by ~5.55% and take ~232 seats.
The Senate is closer to a coin flip and harder to evaluate.
Overall we see a much higher variance of predictions in the Senate; a 17pp gap between the highest (70%) and lowest (53%) estimates of Republican chances, vs just a 5pp gap for the House (90% to 85%). This shows up with the seat counts too; everyone agrees there’s a substantial chance Republicans lose the Senate, but if they do win, it will probably be by more than one seat. The average estimate is ~52 Republican seats. FiveThirtyEight and PredictIt agree that the closest Senate races will be Georgia, Pennsylvania, Arizona, Nevada, and New Hampshire (though they rank order them differently), so those are the races to watch.
Forecasts for governors aren’t as comprehensive, but FiveThirtyEight predicts we’ll get about 28 Republican (22 Democratic) governors, while PredictIt expects 31+ Republicans; I’ll split the difference at 30. Everyone agrees that Oregon is surprisingly competitive because of an independent drawing Democratic votes. The biggest difference I see is on New York, where PredictIt gives Republican challenger Lee Zeldin a real chance (26%) but FiveThirtyEight doesn’t (3%).
Overall forecast: moderate red wave, Republicans take the House and most governorships, probably the Senate too. But if they lose anything it is almost certainly the Senate.

These forecasts seem about right to me. Democrats are weighed down by an unpopular (-11) President and the highest inflation in 40 years. This would lead to a huge red wave, but Republicans have their own weaknesses; an unpopular former President lurking in the background, and the Supreme Court making a big unpopular change voters blame them for. This shrinks the red wave, but I don’t think its enough to eliminate it. The effect of Roe repeal is fading with time, and the unpopular Biden is more salient than the unpopular Trump; Biden is the one in office and is more prominent in media coverage. Facebook and recently-acquired Twitter may be doing Republicans a favor by keeping Trump banned through Election day. But if he drags Republicans down anywhere, it will be the Senate, where candidate quality (not just party affiliation) is crucial and his endorsements pushed some weak/weird/extreme candidates through primaries. We’ll also see this “extremist” Trump effect (abetted by cynical Democratic donations to extreme-right candidates) dragging down Republicans in some key governor’s races like Pennsylvania, where Democrats are now 90/10 favorites..
The all-cause mortality rate in 2021 for men in the US ages 18-39 was about 40% higher than the average of 2018 and 2019. That’s a huge increase, especially for a group that is not in the high-risk category for COVID-19. What’s causing it?
Some have suggested that heart disease deaths, perhaps induced by the COVID vaccines, is the cause. This is not just a fringe internet theory by anonymous Twitter accounts. The Surgeon General of Florida has said this is true.
What do the data say? The first thing we can look at is heart disease deaths for men ages 18-39.
The data I’m using is from the CDC WONDER database. This database aggregates data from US states, using a standardized system of reporting deaths. The most important thing to know is that in this database, each death can one have one underlying cause, and this is indicated on the death certificate. Deaths can also have multiple contributing causes (and most deaths do), and the database allows you to search for those too. But for this analysis, I’m only looking at the underlying cause.
Here’s the heart disease death data for men ages 18-39, presented two different ways. First the trailing 12-month average. Don’t focus too much on that dip at the end, since the most recent data is incomplete. Instead, notice three things. First, there was a clear increase in heart disease deaths. Second, that rise began in mid-2020, well before the introduction of vaccines. Third, once vaccines started being administered to this age group in Spring 2021, the number of deaths leveled off (though it didn’t return to pre-pandemic levels).

Here’s another way of looking at the data: 12-month time periods, rather than a trailing average. I created 12-month time periods starting in March and ending in February of the following year. I’ve also truncated the y-axis to show more detail, not to trick you. But don’t be tricked! The deaths are up 2-3%, not a more than doubling as the chart appears to show.

We can see in the chart above that the rise in heart disease deaths for young males completely preceded the vaccination period. Something changed, for sure, but the change wasn’t the introduction of vaccines. Heart disease deaths (by underlying cause) are only up 2-3%, while overall deaths are up around 40%.
So, to repeat the title question, what is killing these young men?
Continue readingI teach macroeconomics, finance, and other things.
Often, I use Excel to complete repetitive calculations for my students. The version that I show them is different from the version that I use. They see a lot more mathematical steps displayed in different cells, usually with a label describing what it is. But when I create an answer calculator or work on my own, I usually try to be as concise as possible, squeezing what I can into a single cell or many fewer cells. That’s what brings me to to the sumproduct excel function that I recently learned. It’s super useful I’ll illustrate it with two examples.
Example 1) NGDP
One way to calculate NGDP is to sum all of the expenditures on the different products during a time period. The expenditures on a good is simply the price of the good times the quantity that was purchased during the time period. The below image illustrates an example with the values on the left, and the equations that I used on the right. That’s the student version. There is an equation for each good which calculates the total expenditure on the individual goods. Then, there is a final equation which sums the spending to get total expenditures, or NGDP.

Last night the major party candidates for Senate in Pennsylvania had their first and only debate. I didn’t watch it, since I don’t live in Pennsylvania. But judging by my Twitter feed, a lot of people did watch it, including (bizarrely to me) lots of people who don’t live in Pennsylvania. And overnight, tons of articles were written analyzing the debate, saying who “won” the debate, and so on (“5 Things You Need to Know About the Pennsylvania Senate Debate” etc.).
But this blog post is the only thing you need to read about that debate. And these charts are really all you need to look at.


These two charts come from the prediction market website PredictIt. The charts show the “odds” (more on that below) that each candidate will win the Pennsylvania Senate race, over a 90-day time horizon (first chart) and the last 24 hours (second chart). What do we see? The Democratic candidate has been leading for the entire race up until a week ago, though with his odds falling gradually over the past month or two.
Notice though the big jump last night during the debate. The Republican candidate moved up from odds of about 57% to odds of about 63%, close to where it stands as I write (67%). Based on this result, it’s safe to say that the Republican candidate “won” the debate, though not so decisively that the election is now a foregone conclusion. You don’t need to wait for the polls, which have consistently showed the Democratic candidate in the lead (though with the gap closing in recent weeks) — though of course, these betting odds could change as new polling data is released.
But where do these odds come from?
Continue readingPeople 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.

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 readingMortgage interest rates are climbing quickly, while housing prices are still mostly high. These factors combined means that it is much more expensive to buy a home than in the recent past. But how much more expensive? And how does this compare with the past 50 years of history?
The chart below is my attempt to answer those questions. It shows the number of hours you would need to work at the average wage to make a mortgage payment (principal and interest) on the median new home in the US.

My goal here was to provide the most up-to-date estimate of this number consistent with the historical data. Thus, I had to use average wage data rather than median wage data, since the median hourly wage data is not available for 2022 yet. But as I’ve discussed before, while median and average wages are different, their rate of increase is roughly the same year-to-year, so it would show the same trends.
The final point plotted on the blue line in the chart is for August 2022, the last month for which we have median home price data, average wage data, and 30-year mortgage rates. Mortgage rates are the yearly average (or monthly average in the case of August 2022).
You’ll also notice a red dot at the very end of the series. This is my guess of where the line will be in October 2022, once we have complete data for these three variables (right now only mortgage rates are available in October for the three series I am using). I’m doing my best here to provide as much of a real-time picture as possible, given that rates are rising very sharply right now, while still providing consistent historical comparisons. If that estimate is roughly correct, mortgage costs on new homes are now less affordable than any year since 1990.
What do you notice in the chart?
Continue reading