Skip to content

Commit c54eb96

Browse files
financial independence post
1 parent 5af019a commit c54eb96

4 files changed

Lines changed: 1962 additions & 0 deletions

File tree

_posts/2021-01-07-independence.md

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
---
2+
layout: post
3+
title: "Intellectual independence requires financial independence"
4+
categories: career
5+
---
6+
7+
This is a very belated follow-up to [my post last year about career problems]({% post_url 2020-03-27-career-hopelessness %}).
8+
It was a very long and cathartic post right as the coronavirus pandemic began to engulf the United States,
9+
and it largely pinned my future research career hopes on being able to monetize research software of some kind.
10+
Such a venture is very unlikely to succeed, thus the general feelings of hopelessness.
11+
However, I regained hope again a few months later after giving myself a crash course in investment and financial planning.
12+
The bittersweet reality that I have come to accept is that through a few more years of careful saving, planning, and investing,
13+
I should be able to finance a future independent research career for the remainder of my life through the average long-term
14+
expected returns from investments into financial markets (e.g. stocks, bonds, and commodities, but mostly stocks).
15+
The modern US scientific enterprise has not been willing to support my research despite me devoting my entire adult life so far to it
16+
(rather than seeking out more lucrative jobs), and I no longer have any real expectations of it ever doing so.
17+
It was simultaneously very uplifting and frustrating to realize that independent research opportunities are realistically something
18+
that I will be able to afford to give myself in the not too distant future rather than something I have to be given by someone else
19+
(but likely never will be).
20+
To be fair, while the scientific enterprise has failed to give me any explicit independent research opportunities since graduate school,
21+
it also operates in a relatively lax and inefficient manner so that I have certainly managed to carry out
22+
many independent research projects on the margins, albeit much more slowly than I'd like,
23+
with my research priorities still heavily distorted, and carrying the guilt of mis-using work time.
24+
25+
A major point of frustration for me was that I've been struggling with and focusing on career problems for most of the last decade,
26+
while I've had no financial problems at all and thus have paid little attention to financial matters.
27+
If I had been more mindful of my finances in the past, then I would have been investing my growing non-retirement savings
28+
in a prudent manner, and I would now be a lot closer to a financial solution to my career problems.
29+
Also, it was a bit unfortunate to learn about investing in a time of high economic uncertainty,
30+
negative real interest rates, and overinflated asset prices (the crown jewel of overvaluation right now being Tesla, Inc.).
31+
These frustrations aside, it was very comforting to read about the Financial Independence, Retire Early (FIRE) movement,
32+
which shows that financial independence is within reach for frugal people who can maintain highish-paying jobs for long enough.
33+
It was also very encouraging to see the inflation-adjusted total return of the S&P 500 index (and its precursors) over the last century
34+
on a semilog plot against an exponential fit - it is an impressive historical record of American prosperity
35+
that persists and is more accessible than ever through exchange-traded index funds.
36+
Stock markets have some disconcerting behavior - the extreme correlations between all liquid assets
37+
make it effectively impossible to fully mitigate the volatility of stocks with other stocks (i.e. the volatility of an index fund
38+
relative to its components is not reduced in accordance to the averaging of independent random variables),
39+
and the time correlations of volatility mean that deviations from the robust long-time exponential growth trend can persist for a decade or more.
40+
Still, the good very clearly outweighs the bad, and my past inattention to investment was a regrettable mistake.
41+
42+
I obsessively read about investing in mid-2020 and messed around a bit with fitting historical financial data to simple models
43+
to get more comfortable with investment, and I could definitely imagine an alternate reality in which I pursued a career in economics or finance.
44+
Nothing profound came out of that exercise, but I can share a representative exercise that might be of broader interest.
45+
For the most part, I plan to invest only in large exchange-traded funds with low expense ratios,
46+
and so the main impactful decision that I have to make is the allocation of my money between assets with low and high risk/volatility.
47+
For this exercise, I'll model the low-risk asset as having fixed value with no volatility (e.g. some mix of cash and high-grade bonds)
48+
and the high-risk asset as a historical time series of the inflation-adjusted total return of the US stock market between 1870 and now.
49+
The simple-minded investment strategy is to adjust the cash/stock ratio based on the immediate value of stock market relative
50+
to its uniform exponential growth baseline of around 6.5%.
51+
This ignores economic indicators that are surely much better than deviations from a uniform baseline,
52+
but it illustrates the basic exercise of balancing the risks and rewards of volatile assets.
53+
The optimization of this investment strategy is a straightforward numerical exercise conducted and plotted with Python,
54+
which shows a very limited benefit from reallocating assets (blue curve) relative to the underlying risk asset (red curve).
55+
56+
![investment optimization](/assets/invest.pdf){:height="80%" width="80%"}
57+
58+
Inevitably, the optimal investment strategy obtained from this numerical exercise is an artifact of the specific details of the historical data,
59+
and its details do not reflect a useful forward-looking investment strategy.
60+
However, a useful observation is that deviations from full stock market exposure only occur above a 50% overvaluation.
61+
With a more uniform strategy of completely removing stock market exposure above 50% overvaluation,
62+
the growth of investments is unchanged from full exposure to the stock market under all conditions.
63+
This suggests that overvalued stock markets have already realized all meaningful profits for investors,
64+
and whether you pull money out early or ride the overvaluation back down, your outcome will be roughly the same on average.
65+
This is consistent with general advice against timing the stock market,
66+
although this exercise suggests that it is more futile than actually harmful.
67+
I will eventually settle on an allocation strategy much like this for my own money,
68+
but I still need to learn more about various economic indicators to decide on which ones to use in practice.
69+
While market crashes and bear markets cannot be predicted,
70+
economic indicators can identify periods of increased risk (such as right now)
71+
when stock market exposure should probably be reduced.
72+
73+
Because I still need more money before I am financially independent with a comfortable buffer,
74+
I am trying to shift my discretionary research interests and activities in a more profit-seeking direction for the foreseeable future.
75+
Of my established skills and interests, I have decided that the most likely to be lucrative is quantum computing.
76+
I have two recent quantum computing preprints that I need to revise and publish -
77+
a [quantum Metropolis algorithm](https://arxiv.org/abs/1903.01451) and a
78+
[finite-temperature variational Monte Carlo method](https://arxiv.org/abs/2003.04171) -
79+
that might help me find a higher-paying job in quantum computing.
80+
I took my present job for the potential opportunity to continue my electronic structure research rather than compelling financial compensation,
81+
but that opportunity has unfortunately not panned out.
82+
Quantum computing is a very hot topic right now with numerous scientists working at high-compensation tech companies like Microsoft, Google, and Amazon.
83+
Also, I have some very promising unpublished ideas in quantum error correction (QEC)
84+
that I will attempt to patent when they are sufficiently developed.
85+
There are some very inefficient aspects of existing QEC protocols (e.g. logical non-Clifford gates),
86+
and patents on more efficient methods could end up being very lucrative.
87+
I've read up enough about patents to appreciate the difficulty of their monetization (their main use is as a legal defense, not a monetizable asset),
88+
but I have the opportunity to file patents with my employer covering the costs in exchange for half of any future profits.
89+
While I could probably make more money if I tried to pivot away from research altogether for a while,
90+
I see quantum computing research as a reasonable compromise for now.
91+
92+
While I still have a long road ahead of me on my path to intellectual independence through financial independence,
93+
it is overwhelmingly more plausible than the prospect of finding a job that will allow me to pursue my research interests.
94+
The modern US scientific enterprise is simply not supportive of intellectual independence -
95+
it tightly controls the active topics of research through the narrow flow of funding and the very low success rates of grants.
96+
This works for scientists with very malleable interests or whose narrow interests align with funding priorities,
97+
but career starvation starts to set in when a scientist's interests fall out of favor
98+
and they aren't willing to choose from a narrow pool of acceptable new interests.
99+
I've seen this happen multiple times so far in my career,
100+
and I consider it to be extremely shameful that the scientific enterprise does this to people.
101+
In some cases, the unfortunate scientist has had enough savings that they could afford to continue their research on their own dime.
102+
In other cases, they burned through their life savings and then gave up on science altogether.

assets/invest.pdf

33.4 KB
Binary file not shown.

assets/invest.py

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# analysis of a simple investment strategy on historical stock market data
2+
3+
import numpy as np
4+
import matplotlib.pyplot as plt
5+
import scipy.optimize as opt
6+
7+
date, cpi, val = np.loadtxt('sp500.dat', unpack=True)
8+
9+
# normalize stock market values for convenience
10+
val /= 90.0
11+
val0 = 1.32*np.exp(0.06395*(date - 1871))
12+
13+
ratio = np.arange(0.3, 2.1, 0.05)
14+
strategy = [1.0] * len(ratio)
15+
interval = [(0.0,1.0)] * len(ratio)
16+
17+
# forward simulation of investment strategy
18+
def invest(strategy):
19+
worth = 1.0
20+
i=1
21+
while i < len(val):
22+
ratio0 = val[i-1]/val0[i-1]
23+
strategy0 = np.interp(ratio0, ratio, strategy)
24+
worth = worth*(1.0 - strategy0) + worth*strategy0*val[i]/val[i-1]
25+
i = i+1
26+
return -worth
27+
28+
def invest_plot(strategy):
29+
worth = [1.0]*len(val)
30+
i=1
31+
while i < len(val):
32+
ratio0 = val[i-1]/val0[i-1]
33+
strategy0 = np.interp(ratio0, ratio, strategy)
34+
worth[i] = worth[i-1]*(1.0 - strategy0) + worth[i-1]*strategy0*val[i]/val[i-1]
35+
i = i+1
36+
return worth
37+
38+
invest0 = invest(strategy)
39+
40+
scan0 = invest_plot(strategy)
41+
res = opt.minimize(invest,strategy,bounds=interval)
42+
43+
optimal_strategy = res.x
44+
scan = invest_plot(optimal_strategy)
45+
46+
safe_strategy = [1.0] * len(ratio)
47+
for (i,strat) in enumerate(safe_strategy):
48+
if(ratio[i] > 1.5):
49+
strat = 0.0
50+
scan2 = invest_plot(safe_strategy)
51+
52+
fig, (ax1,ax2) = plt.subplots(2,1,tight_layout=True, figsize=(6.0,6.0))
53+
54+
ax1.plot(ratio,optimal_strategy,color='blue')
55+
ax1.set_xlabel('value of risk asset relative to baseline')
56+
ax1.set_ylabel('allocation')
57+
58+
ax2.semilogy(date,val0,color='black')
59+
ax2.semilogy(date,scan0,color='red')
60+
ax2.semilogy(date,scan,color='blue')
61+
#ax2.semilogy(date,scan2,color='green')
62+
63+
ax2.set_xlabel('year')
64+
ax2.set_ylabel('worth')
65+
66+
plt.savefig('invest.pdf', bbox_inches='tight', pad_inches=0.01)

0 commit comments

Comments
 (0)