In classical linear systems, small changes in initial conditions produce proportionally small changes in future outcomes. In nonlinear dynamical systems, however, even three simple coupled differential equations can generate trajectories that are completely deterministic yet impossible to predict over long horizons—a phenomenon known as deterministic chaos.
Following “Theory of Form”, “Eigenvalue Resonance”, and “Prime Alignment”, I composed “Strange Attractor”—a 130 BPM vocal-free Glitch-IDM track whose filter modulations, stereo spatial orbits, and rhythmic tension trace the continuous, non-repeating loops of the Lorenz attractor.
Listen to “Strange Attractor” (130 BPM Instrumental)
1. The Lorenz System of Differential Equations
Derived in 1963 by mathematician and meteorologist Edward Lorenz as a simplified model of atmospheric convection, the system describes the evolution of three state variables (x, y, z) in continuous time:
Under the classic parameter values σ = 10 (Prandtl number), ρ = 28 (Rayleigh number), and β = 8/3 (geometric factor), the nonlinear cross-terms xz and xy prevent trajectories from settling into a fixed equilibrium point or a simple periodic limit cycle.
2. Bounded Chaos and Sensitive Dependence
Despite its apparent irregularity, the Lorenz system obeys strict geometric constraints that translate naturally into electronic sound design:
Volume Contraction (Dissipation): The divergence of the vector field is strictly negative: ∇ · F = −(σ + 1 + β) = −41/3 < 0. Every volume in phase space contracts exponentially toward a zero-volume fractal manifold of Hausdorff dimension ≈ 2.06.
Positive Lyapunov Exponent: Nearby trajectories separate exponentially at rate eλ1t with λ1 ≈ 0.906, creating sensitive dependence on initial conditions while remaining trapped inside a bounded region.
Sonic Mapping: In “Strange Attractor”, the driving 130 BPM pulse anchors the bounded phase space, while the continuous state coordinates (x(t), y(t), z(t)) modulate filter cutoffs, granular cloud density, and stereo panning—allowing the listener to hear the trajectory loop around one lobe before suddenly switching to the other.
3. Nonlinear Dynamics Across Science and Markets
The geometry of strange attractors extends far beyond fluid convection. In mathematical oncology, nonlinear feedback loops between tumor cell populations and immune response can shift a system across stability boundaries; in financial time series, coupled nonlinear dynamics generate clustered volatility and sudden regime switches without requiring external shocks.
A graph is simply a collection of vertices connected by edges—yet from that minimalist definition emerges one of the richest diagnostic tools in applied mathematics: Spectral Graph Theory. By encoding network connectivity into a matrix and computing its eigenvalues, we can hear how energy, vibration, and information diffuse across a complex system.
Following “Theory of Form”, I composed “Eigenvalue Resonance”—a 75 BPM vocal-free Glitch-Ambient track whose harmonic clusters, sub-bass resonance, and micro-rhythmic pulses are derived directly from the spectrum of a graph Laplacian matrix.
Listen to “Eigenvalue Resonance” (75 BPM Instrumental)
1. From Network Topology to the Graph Laplacian (L)
Consider a simple undirected graph G = (V, E) with n vertices. Its structure is captured algebraically by two matrices:
Adjacency Matrix (A): An n × n symmetric matrix where Aij = 1 if vertices i and j share an edge, and 0 otherwise.
Degree Matrix (D): A diagonal matrix where Dii equals the degree (number of connections) of vertex i.
Subtracting the adjacency matrix from the degree matrix defines the unnormalized graph Laplacian:
L = D − A
Because L is real, symmetric, and positive semi-definite, it admits n real, non-negative eigenvalues ordered from smallest to largest:
0 = λ1 ≤ λ2 ≤ λ3 ≤ … ≤ λn
These eigenvalues act as the natural vibrational frequencies of the network—analogous to the resonant harmonics of a drumhead.
2. The Fiedler Value (λ2) and Algebraic Connectivity
The smallest eigenvalue, λ1 = 0, corresponds to a constant eigenvector across every connected component. The decisive structural invariant is the second-smallest eigenvalue, λ2, known as the Fiedler value or algebraic connectivity:
Connectivity Threshold: λ2 > 0 if and only if the graph is connected. When a network fractures into isolated clusters, λ2 collapses to zero.
Diffusion & Bottlenecks: A small positive λ2 indicates a narrow bottleneck bridging dense clusters, whereas a large λ2 signifies a tightly integrated, rapidly mixing network.
Sonic Mapping: In “Eigenvalue Resonance”, the deep sub-bass drone anchors the fundamental ground state (λ1), while the opening bell-like synth tones and harmonic intervals trace the low-lying eigenvalues (λ2, λ3, λ4)—allowing you to hear how tightly coupled clusters resonate together before higher-frequency eigenvalues introduce fine-grained local texture.
3. Heat Diffusion and Spectral Decay
In continuous-time network dynamics, the evolution of a signal u(t) across a graph obeys the discrete heat equation:
du/dt = −Lu ⇒ u(t) = e−Ltu(0) = Σk=1ncke−λktvk
High-frequency modes (large λk) decay exponentially fast, smoothing out local noise, while low-frequency modes (small λk) persist longest. The arrangement of “Eigenvalue Resonance” mirrors this exact spectral relaxation: rapid, pointillistic glitch artifacts gradually dissipate in the final section, leaving only the fundamental low-frequency eigenmodes ringing in open space.
4. From Market Geometry to Acoustic Synthesis
The same Laplacian spectrum governs stability across domains. In financial correlation networks, sudden drops in λ2 or shifts in spectral clustering reveal regime changes and systemic fragility before price volatility peaks. Translating those eigenvalues into sound turns abstract linear algebra into an intuitive, physical listening experience.
Imagine your dividend-stock model recommends two utilities. Are they genuinely its strongest picks, or does the model tend to score utilities more highly as a group? With four hypothetical stocks and a little algebra, we can see how the distinction changes the ranking.
Start with four dividend stocks
Suppose your model scores the stocks using payout coverage, dividend growth, and balance-sheet strength. The scores below are centered and expressed in arbitrary units. Higher means the model ranks the stock more favorably.
Hypothetical scores before and after removing the sector component
Stock
Sector
Original score
Sector component
Adjusted score
A
Utilities
1.60
1.00
0.60
B
Utilities
0.40
1.00
−0.60
C
Industrials
−0.20
−1.00
0.80
D
Industrials
−1.80
−1.00
−0.80
The utilities average 1.00 and the industrials average −1.00. Subtract each stock’s sector average from its score. Stock C moves from third to first: it scored 0.80 points above its sector average, while Stock A scored 0.60 points above its own. The top two change from A and B to C and A. The adjustment changes comparisons across sectors while preserving the order within each sector.
u contains one model score per stock. Standardizing scores at each rebalance puts them on a common scale.
X contains one row per stock and one column per selected factor, such as a sector indicator, log market capitalization, or momentum. Center each column across stocks on the same rebalance date. XT is the transpose, and I is the identity matrix.
λ is the ridge penalty. It shrinks the fitted coefficients and helps when factors overlap. The scale of each column affects how strongly ridge shrinks its coefficient.
α ranges from 0 to 1. It sets how much of the fitted component to remove.
The term (XTX + λI)−1XTu gives the fitted coefficients. Multiplying those coefficients by X gives the part of each score estimated from the factors. With λ = 0, an invertible XTX, and α = 1, the adjusted scores are orthogonal to the factor columns. A positive ridge penalty can leave some linear exposure even at α = 1.
How much adjustment changes the picks?
The lab codes utilities as +1 and industrials as −1. For our four scores, the fitted coefficient is 4 ÷ (4 + λ). At λ = 0, the fitted sector components are therefore +1 and −1, as in the table.
With λ = 0 and α = 0.50, A scores 1.10, B scores −0.10, C scores 0.30, and D scores −1.30. C now joins A in the top two. Try α = 0.25 next. B and C still rank in their original order. They tie at α = 0.30, and any larger adjustment moves C ahead of B. Raising λ shrinks the fitted sector component, so the rankings can change at a different point.
Turn it into an investing experiment
Compare portfolios built from the original scores, partially adjusted scores, and fully adjusted scores with λ = 0 and independent factor columns. On each rebalance date, use the stock universe, classifications, and company data available at the time. Hold the number of picks, weighting method, schedule, execution assumptions, and trading costs constant. If you tune α or λ, choose them using earlier periods and evaluate them on later data you kept out of the tuning process.
Track sector weights, dividend income, total return, maximum drawdown, and turnover. A sector tilt may be part of why the original model worked. The experiment helps you see how much of its historical performance survives the adjustment and what happens to the income stream along the way.
Check the holdings separately. Even if scores average zero within each sector, selecting the top few stocks can still produce a concentrated portfolio. A sector limit belongs in the portfolio weighting rules.
Try the ranking yourself
Start with the four scores above. Change α first, then change λ in the companion lab. Watch which stocks enter the top two and how the average adjusted scores for the two sectors move. Then enter your own hypothetical scores and see whether the same ranking change still happens.
Factor Neutralization Lab
Rank four hypothetical stocks. The lab centers your scores around their overall average and fits one sector factor, coded +1 for utilities and −1 for industrials.
Imagine two funds that start the year at $100 per share. Fund A pays you $12 in cash and ends the year at $90. Fund B pays you $4 and ends at $102. Which one performed better?
Fund A paid more cash. Fund B left you with more wealth. You can reach either conclusion using accurate numbers from the same year. The difference is what each number measures.
I use obfuscated market data to describe financial information whose meaning is hard to see because a definition, adjustment, timestamp, or selection rule is missing. Sometimes a sales pitch leaves out an inconvenient detail. Sometimes a chart simply uses a convention that makes sense for a different question. In both cases, asking how the number was produced can change what you conclude.
1. The 12% payout and the 2% gain
Suppose you bought one share of each hypothetical fund and held the distributions in cash without earning interest. Here is where you would stand at the end of one year, before taxes and any investor-level trading costs.
One-year comparison of two hypothetical funds
Measure
Fund A
Fund B
Starting share price
$100
$100
Cash distributed per share
$12
$4
Ending share price
$90
$102
Price return
−10%
+2%
Ending value including cash
$102
$106
Return with payouts held in cash
+2%
+6%
For Fund A, subtract the $100 you paid from the $102 you ended with, then divide the $2 gain by $100. The $12 payout was 12% of your starting investment. Your gain after accounting for the share price was 2%.
If you depend on distributions to pay bills, the $12 answers an important cash-flow question. If you are comparing which fund grew your wealth, include both the change in share price and the distributions. When looking at a published yield, check the period, the price used as the denominator, and whether the figure annualizes a recent payout. When comparing published total returns, check how the figures treat reinvestment and compare the funds over the same dates. Total-return indexes typically include reinvested dividends under the index provider’s rules. S&P Dow Jones Indices methodology
2. When a 50% price drop is a stock split
Say you own one $100 share before a two-for-one split. Immediately after the split, you own two shares worth about $50 each, assuming the market value is otherwise unchanged. A chart that compares the two unadjusted prices shows a 50% drop. Your position is still worth $100.
A split-adjusted chart puts the earlier price on the same share basis as the later price. Some data providers also adjust historical prices for dividends or other distributions. Check the provider’s definition of adjusted close before calculating performance. If the series already incorporates distributions, adding them again can double-count them. A raw close can tell you what a share closed at on that date. An adjusted series can help you compare performance across dates.
3. When two prices for the same ETF are both right
An ETF’s net asset value, or NAV, measures the value of its assets minus liabilities per share. Its market price is the price at which shares trade. If an ETF closes at $51 with a NAV of $50, its closing price is 2% above NAV. That difference is called a premium. During the trading day, the last trade, the bid a buyer is offering, and the ask a seller is requesting can also differ. Check which figure you’re looking at and when it was recorded, especially if the quote is labeled delayed. SEC investor bulletin on ETFs
4. When a backtest knows too much
Imagine testing a rule that buys only when reported economic growth exceeds 2%. On the simulated decision date, the latest published estimate was 1.8%. Months later, it was revised to 2.2%. A backtest using today’s revised database buys. An investor following the rule at the time would have stayed out. Economists can use the St. Louis Fed’s ALFRED archive to look up earlier versions of many U.S. economic series. St. Louis Fed guide to historical data releases
There is another way to make history look better. A test of dividend stocks might start with companies that still pay dividends today and pretend that was the list ten years ago. Companies that cut their dividends or disappeared can drop out of the sample. That is survivorship bias. To judge a strategy, ask which investments were eligible at the time, when each signal became available, and what prices and trading costs the test assumed.
5. When the chart starts at just the right moment
Suppose an investment falls from $100 to $50 and later climbs to $80. A chart starting at the bottom shows a 60% gain. A chart starting at $100 shows a 20% loss. Before accepting an “outperformed” claim, compare both investments over the same dates, with the same return definition. Then shift the start date or look at several equal-length periods to see how much the conclusion depends on timing.
Five questions to ask before trusting a financial number
What does it measure? Cash paid, price change, or growth in wealth?
What was adjusted? Check splits, distributions, and any reinvestment assumptions.
When was it available? Look for the quote timestamp, the release date, and later revisions.
What was left out? Check the dates, missing investments, and trading costs.
Can I reproduce it? Find the original source and try to rebuild one number yourself.
Market Data Lab
Change the hypothetical numbers from the article and see how each measure responds.
Compare two income funds
Enter per-share amounts in dollars. Payouts are held in cash. Taxes, interest and trading costs are excluded.
See what a stock split does to the chart
Start with one share. Enter the price before and after a whole-number forward split.
Compare an ETF price with its NAV
Use market price and net asset value (NAV) per share from the same point in time.
Give a backtest revised economic data
The rule buys only when reported growth is strictly above your threshold.
Shift the start of a performance chart
Compare two starting points that share the same ending price. Assume zero distributions.
Music is often described emotionally, yet beneath every scale, chord progression, and polyrhythm lies an exact algebraic structure. Because musical pitch and rhythmic cycles repeat periodically, Group Theory provides a natural language for both analyzing existing compositions and generating new ones from first principles.
To demonstrate these algebraic structures in sound, I composed “Theory of Form”—a 130 BPM vocal-free electronic piece built around cyclic pitch-class arithmetic, dihedral symmetries, and Neo-Riemannian voice-leading transformations.
Listen to “Theory of Form” (130 BPM Instrumental)
1. Pitch Classes as Modular Arithmetic (ℤ12)
In standard twelve-tone equal temperament, pitches separated by an octave share the same harmonic identity. Labeling the twelve chromatic pitch classes as integers—where C = 0, C♯ = 1, D = 2, …, B = 11—maps the entire pitch space onto the cyclic group of order 12, denoted ℤ12, under addition modulo 12.
Two fundamental symmetry operations act on any pitch class x ∈ ℤ12:
Transposition (Tn): Shifting every note by a constant interval n (mod 12):
Tn(x) ≡ x + n (mod 12)
For instance, applying T2 to a C major triad {0, 4, 7} shifts every pitch up two semitones to produce {2, 6, 9}—a D major triad—preserving the internal interval geometry.
Inversion (In): Reflecting pitches across a fixed axis in pitch space:
In(x) ≡ −x + n (mod 12)
Applying I0 to a C major triad {0, 4, 7} yields {0, 8, 5}. Reordered into ascending form {5, 8, 0}, this reflection transforms a bright major triad into an F minor triad.
2. The Dihedral Group (D12) of Musical Symmetries
Combining all 12 transpositions (T0, …, T11) with all 12 inversions (I0, …, I11) produces a non-abelian group of 24 elements isomorphic to the Dihedral Group D12—the symmetry group of a regular 12-gon.
In “Theory of Form”, recurring melodic motifs and arpeggiated synth lines are treated as geometric objects acted upon by D12. Rather than writing arbitrary melodic variations, successive phrases apply group elements—such as T7 (shifting by a perfect fifth) or I0 (geometric reflection)—creating structural cohesion that the human ear perceives as logical and inevitable even as the harmonic surface shifts.
3. Neo-Riemannian Transformations (PLR) on the Tonnetz
While D12 acts on individual notes, Neo-Riemannian Theory defines a group that acts directly on the set of 24 major and minor triads. Instead of organizing harmony around a single tonal center (like classical tonic-dominant cadences), Neo-Riemannian harmony prioritizes parsimonious voice leading—moving from one chord to the next by shifting only a single note by one or two semitones:
P (Parallel): Exchanges major and minor triads sharing the same root by moving the third by a semitone:
C major {0, 4, 7} ⟶P C minor {0, 3, 7}
L (Leading-Tone Exchange): Moves the root of a major triad down a semitone (or the fifth of a minor triad up a semitone):
C major {0, 4, 7} ⟶L E minor {11, 4, 7}
R (Relative): Moves the fifth of a major triad up a whole tone (or the root of a minor triad down a whole tone):
C major {0, 4, 7} ⟶R A minor {0, 4, 9}
Together, P, L, and R generate a group of order 24 that is dual to the Tn/In group. Visually, chaining these generators traces continuous triangular paths across a two-dimensional toroidal lattice known as the Tonnetz (tone network). Because each step alters only one pitch by minimal distance, long sequences of PLR transformations sound remarkably smooth yet harmonically expansive.
4. Rhythm as Direct Product Groups (ℤn)
Rhythmic structure obeys the same modular rules. A steady 130 BPM pulse subdivided into repeating cyclic meters operates within ℤ4, ℤ8, and ℤ16. Layering cross-rhythms—such as cycling a 3-beat motif against a 4-beat grid—explores the direct product group ℤ3 × ℤ4 ≅ ℤ12, where independent rhythmic orbits precess against one another before locking back together at the least common multiple of their periods.
Unified Geometry Across Disciplines
Whether we are computing the Fiedler eigenvalue of a financial correlation network, modeling cellular state transitions in mathematical oncology, or mapping triad transformations across the Tonnetz, the underlying principle is identical: complex systems become transparent once we identify their invariant symmetries and group actions.
Further Exploration & Resources
YouTube Channel: Subscribe at @equationsinkala for upcoming tracks exploring Spectral Graph Theory, Fibonacci ratios, and ℤ5 × ℤ7 polyrhythms.
A brisk walk, a bowl of oatmeal, and a salmon dinner may look like ordinary choices. In The Longevity Playbook, biomedical scientist Dr. Rhonda Patrick joins StarTalk to ask how everyday habits can help us stay active and independent as we age. That is the idea behind healthspan: the years we spend able to do the things that matter to us.
Rhonda Patrick, Ph.D., is a biomedical research scientist and science communicator. Her doctorate is in biomedical science. She founded FoundMyFitness and is listed as an associate scientist at the Fatty Acid Research Institute, where her work focuses on omega-3 fatty acids in health and aging. FoundMyFitness biography · Fatty Acid Research Institute profile
Doctoral and undergraduate training. She earned her Ph.D. at the University of Tennessee Health Science Center in Memphis and conducted her dissertation research at St. Jude Children’s Research Hospital, studying how mitochondrial metabolism and programmed cell death relate to cancer. She earned her B.S. in biochemistry/chemistry from the University of California San Diego. Academic and research biography
Postdoctoral research. She worked with biochemist Bruce Ames at Children’s Hospital Oakland Research Institute, studying how low vitamin and mineral intake can affect metabolism, inflammation, DNA damage, and aging. Her work also examined vitamin D and brain function. Postdoctoral research background
Aging research at the Salk Institute. She investigated how insulin signaling affects protein misfolding, a process relevant to neurodegenerative diseases. Salk research background
Start with one week you can actually measure
Imagine someone walks four miles in 74 minutes, six days a week. That adds up to 24 miles and 444 minutes of walking at about 3.2 miles per hour. If they can talk but would struggle to sing while walking, their effort is likely moderate. At that intensity, they already exceed the CDC’s 150-minute weekly aerobic benchmark for adults 65 and older.
The next question is what their week includes for strength and balance. Walking helps build endurance for getting around. Chair stands train a movement we use every day, and heel-to-toe steps beside a counter give us a way to practice steadiness. The CDC recommends at least two days of muscle-strengthening activity each week and regular balance activity. CDC activity guidance
Do short bursts of hard exercise count?
One wearable study observed about 25,000 adults who reported no regular exercise. People who averaged roughly three brief bursts of vigorous movement a day, lasting one or two minutes each, had lower mortality during follow-up than people who did none. The differences were about 40% for deaths from any cause and about 49% for cardiovascular deaths. These are relative differences between groups. The study tracked people’s existing habits, so it could not establish what would happen if a particular person started doing three bursts a day. Read the study in Nature Medicine
Another wearable study estimated that one minute of vigorous activity corresponded to about four minutes of moderate activity for all-cause mortality and about eight for cardiovascular mortality. These estimates depend on the outcome studied. The calculator uses the CDC’s simpler 2-to-1 conversion for tracking progress toward its aerobic guideline. Read the intensity study
In a separate randomized trial, two years of progressive exercise in previously sedentary middle-aged adults improved aerobic fitness and reduced stiffness in the heart’s left ventricle. The trial measured fitness and stiffness directly. “Twenty years younger” is an analogy for changes in heart function. Read the heart training trial
What does an ordinary menu already provide?
Take a sample menu of oatmeal with almond milk, beans at lunch and dinner, brown rice, spinach, carrots, whole fruit, and salmon several times a week. It includes several elements of the DASH eating pattern: whole grains, beans, vegetables, fruit, and fish. If the beans are cooked black beans, two 4-ounce servings provide roughly 20 grams of fiber and 20 grams of protein before counting the rest of the menu. Preparation matters too. Regular canned beans and smoked fish can contribute more sodium than no-salt-added beans and plain fish. NIH guide to DASH · USDA food composition data
One detail you can check at breakfast is calcium. Spinach contributes relatively little absorbable calcium. If your almond milk is fortified, read the label and multiply calcium per serving by the fraction you pour. If the label says 300 mg per cup and you pour half a cup, breakfast gets 150 mg from the milk. NIH calcium fact sheet
What should we make of the supplement claims?
Salmon provides the marine omega-3 fats EPA and DHA. In the observational Framingham study, people with the highest red-blood-cell DHA levels had lower Alzheimer’s risk than people with the lowest levels. That comparison cannot establish an 8% omega-3 index target. In the randomized VITAL trial, omega-3 supplements produced no measurable advantage in cognitive change over roughly two to three years at the dose studied. Framingham study · VITAL trial
The COSMOS randomized studies found small average benefits on tests of overall cognition and episodic memory, such as recalling recently learned information. The widely reported “two years” translates the size of a test-score difference into an age comparison. The studies assessed cognitive test performance, and whether multivitamins delay dementia remains open. COSMOS results
Try it with your own numbers
Use the calculator below to see how your walking minutes compare with the weekly aerobic benchmark, whether you include strength and balance, and what your beans, fish, and fortified milk contribute. Try changing one habit at a time. For example, compare a longer walking week with the same walking week plus two strength days. Which change fills a gap in your current routine?
Healthspan routine calculator
Start with the article’s example or enter your own numbers. Entries stay in this page and reset when you reload it.
These estimates cover selected habits and food portions. For the aerobic benchmark, vigorous minutes count double. Use the talking test for moderate effort: you can talk but would have trouble singing. The calculator does not estimate personal disease risk or nutrient adequacy.
Suppose you send someone 1 USDC. Does the network fee come out of their payment, or does it come out of your balance?
In a direct USDC transfer on Arc Testnet, the recipient gets the full amount you send. The network fee is charged separately to the sender. Here’s what that looks like with an illustrative fee.
Open the lab and select Try an example. Look for the amount received, the network fee, and the total deducted from the sender. The math is simple: 1 + 0.0004 = 1.0004 test USDC.
If you have a public Arc Testnet transaction ID, paste it into the lab and select Look up receipt. For a confirmed transfer, follow the block explorer link to see the transaction record. The actual network fee can differ from the example.
Arc Testnet is a practice network. The lab uses test USDC and works without a wallet connection.
Imagine you retire with $100,000 invested and plan to take $5,000 out at the end of each year. In your first year, the market falls 20%. In the second, it gains 25%. Now imagine the same two years happen in reverse. Would you end up with the same amount of money?
Two retirees, the same returns in a different order
Both retirees start with $100,000. Each year, we apply the investment return first and subtract the $5,000 withdrawal afterward. The figures are hypothetical and omit taxes, fees, and inflation so we can see what the order of returns does on its own.
Portfolio balances after each annual withdrawal
Return order
Year 1 return
Year 1 balance
Year 2 return
Year 2 balance
Loss first
−20%
$75,000
+25%
$88,750
Gain first
+25%
$120,000
−20%
$91,000
Where did the $2,250 difference come from?
Without withdrawals, both portfolios would finish at $100,000. A 20% decline followed by a 25% gain brings the balance back to where it started, and the same is true in reverse.
With withdrawals, the first $5,000 is the one that makes the difference. When the loss comes first, the money taken out after year one misses the following year’s 25% rebound. When the gain comes first, the money taken out after year one avoids the following year’s 20% decline. The second withdrawal comes after both investment returns, so it reduces both final balances by the same amount.
That’s sequence-of-returns risk. When you take money out of a portfolio, the order in which gains and losses arrive can change how much you have left.
Try changing one thing
Repeat the example with a $2,500 withdrawal at the end of each year. Keep the starting balance and both market returns the same. Before checking the answer, predict what happens to the gap between the two portfolios.
Reveal the results
The loss-first portfolio ends at $94,375. The gain-first portfolio ends at $95,500. The gap falls from $2,250 to $1,125. In this example, cutting the withdrawal in half also cuts the gap in half.
Put the experiment in terms of your own spending
Start with the amount your portfolio would actually need to provide. If monthly expenses are $3,000 and other income covers $2,500, the gap to test is $500 a month. Then distinguish bills you need to pay from spending you could postpone. That gives you two amounts to compare under the same market conditions.
The two-year example isolates the timing of returns. A longer experiment can show what happens when several weak years arrive together or when rising prices increase the amount you need to withdraw.
Investment Resilience Lab
Compare a retirement plan with a hypothetical stress scenario. Then change one part of the plan and compare again.
See annual balances and withdrawal shortfalls
Balances and withdrawal shortfalls in today's dollars
Returns apply before year-end deposits or withdrawals. Savings stay fixed in dollar terms and withdrawals rise with inflation. The chart uses today’s purchasing power. Taxes and fees are excluded.
Two investors start with $10,000 in the same stock market. After a slide, a stress indicator flashes a warning. One investor stays fully invested. The other shifts part of the portfolio to cash. If the market keeps falling, cash can cushion the loss. If it rebounds while the warning is still on, sitting partly in cash can be expensive. At the moment of the decision, both futures are possible.
What the research tested
Haixiang Yao, Chunzhuo Wan, Ping Chen, and Lijun Li studied whether a model could learn to vary its stock exposure as conditions changed. They tested it in five markets represented by the CSI 300, Hang Seng, S&P 500, Euro Stoxx 50, and Nikkei 225. The authors reported that their model earned a higher Sharpe ratio than buy-and-hold in each market tested. The Sharpe ratio measures excess return relative to how much returns fluctuate. The authors attributed much of the improvement to cutting exposure during severe declines.
The model used attention to give different observations different weights, an LSTM to summarize information across time, and a reinforcement learning method called PPO to learn an exposure policy. In the authors’ analysis, market volatility and the intensity of online searches were among the most influential inputs across markets. Search activity shows that people are paying attention. A spike alone gives no direction for the next market move.
Would the same warning help in two different markets?
The lab below takes one idea from the paper and makes it visible. It compares buy-and-hold with a simple rule that reduces stock exposure when a hypothetical stress score reaches a threshold. In both scenarios the portfolios see the same first four weeks, including the same warning going into week five. After that, one market falls further and the other snaps back. The scores and returns are invented for the experiment. The lab uses a fixed rule in place of the paper’s trained model.
Run Extended selloff. Start with the defaults. When the score meets the threshold, the adaptive portfolio shifts to 50% stocks and 50% cash. Compare the two portfolios’ largest losses from a prior peak.
Switch to Fast rebound. Keep every other input fixed. Look at week five in the results table. The two scenarios enter that week with the same stress reading, but the adaptive portfolio participates in only part of the rebound.
Raise the trading cost. Try moving from 10 to 100 basis points. A basis point is one hundredth of a percentage point, so 100 basis points is 1% of the stock value traded. Compare how much each strategy pays in the experiment.
Read the ending balance and the drawdown together
Suppose an account reaches $11,000 before dropping to $8,800. Its drawdown at that point is 20%, measured from $11,000. The lab’s maximum drawdown is the largest of those peak-to-later-trough losses at the displayed weekly checkpoints, including the starting balance. The ending balance answers a different question. It tells you how much remains at the end of the path, after modeled costs. A strategy can have the smaller drawdown and still finish with less money.
If you invest for income, reducing equity exposure can also change the cash distributions you receive. The lab isolates market exposure and trading costs, with zero cash interest and no separate dividend income or taxes. To extend the experiment to an income portfolio, start by tracking distributions separately from account value. Then ask how much income you would trade away for a shallower decline, and how often your rule would require selling.
Research source. Haixiang Yao, Chunzhuo Wan, Ping Chen, and Lijun Li. Adaptive equity investing strategies via attention-based deep reinforcement learning. Pacific-Basin Finance Journal, volume 99, article 103284 (2026). Read the paper.
Adaptive Equity Lab
Compare two $10,000 portfolios through 12 hypothetical weeks. Each starts fully invested in stocks.
Portfolio results
Strategy
Ending balance
Total return
Maximum drawdown
Trading costs
Weekly portfolio values. Solid teal, adaptive. Dashed purple, buy-and-hold. Exact values are in the weekly table.View weekly inputs and balances
Starting stress and allocation, followed by the week’s market return and closing balances
Week
Stress score
Market return
Adaptive stock allocation at start
Adaptive balance
Buy-and-hold balance
How the experiment works
The rule reads the given stress score at the start of the week. At or above the threshold, the adaptive portfolio rebalances to the selected stock allocation. Below the threshold, it returns to 100% stocks. The week’s stock return is applied after rebalancing and deducting trading costs. Cash earns zero. Both portfolios begin with their stock holdings already in place. The simulation includes no separate dividends, taxes, contributions, withdrawals, or final liquidation.
The drawdown is measured from prior peaks at weekly checkpoints, beginning at $10,000. Trading costs are the sum of the fees paid at each rebalance. Stress scores and market returns are hypothetical.
A stock falls on disappointing news. The next morning its price is still down, but more people in your investing group are talking about a recovery. Has the outlook improved, or is optimism simply spreading faster than pessimism?
That distinction matters. If you own a company for its dividend, a change in the conversation and a change in the company’s ability to pay are two different developments. This experiment lets you see how the first can happen even when the model contains no news about the business.
How an opinion spreads
Yang Yang, Fuzhong Nian, and Xinghao Liu borrowed an idea from epidemic modeling. They described investors as spreaders who actively pass on a view, vulnerable investors who can be influenced, and recovered investors who have stepped back from spreading the view. Spreaders can pass along optimism or pessimism. Think of someone posting a bullish thread, a reader considering it, and a former poster who has stopped discussing the stock.
The authors modeled how opinions evolve in an investor network and examined historical data for four Shenzhen-listed stocks. Their estimated sentiment measure, φ, sometimes turned positive while prices were still falling. The authors interpreted this as a possible lag between a turn in mood and a turn in price. They called for broader samples, formal statistical tests, and comparisons with benchmark methods. Four historical examples leave open how the idea would perform on unseen data or after trading costs.
Start with the same crowd and change one number
In the lab below, imagine 100 investors. Eight are actively sharing optimistic views, twelve are sharing pessimistic views, and eighty are open to influence. Each round, active spreaders can influence some of the open investors. Some existing spreaders also step back. The simulation works with shares of the crowd, so the output can include fractions of a percentage point.
Start with Equal spread. Both views spread at the same rate. Watch how pessimism keeps its initial lead even as the total number of active spreaders changes.
Choose Optimism spreads faster. Keep the starting crowd the same. Look for the first round when the optimistic group overtakes the pessimistic group. Compare how much of the crowd is actively spreading either view at that point.
Raise the step-back rate. Try 35% while keeping the two spread rates fixed. Check whether optimism still takes the lead and how many active spreaders remain. The size of the gap matters alongside its sign.
What a crossover tells you
The lab’s net mood is the optimistic spreaders’ share of the whole crowd minus the pessimistic spreaders’ share. At the start, 8% minus 12% is −4 percentage points. When that gap becomes positive, optimistic spreaders outnumber pessimistic spreaders in the simulation. A gap of one point can describe a quiet crowd with 2% versus 1% active or a busy crowd with 31% versus 30% active. The chart and table show both groups so you can tell which situation you are looking at.
This teaching simulation uses a single well-mixed crowd and a simple difference in active shares. The paper uses a network model and a separately estimated φ. The lab uses hypothetical inputs and generates no prices or buy and sell signals.
Ask what changed in the business
Imagine an income stock becomes popular after a selloff. If the original question was whether the company can sustain its dividend, ask what has changed in cash flow, debt obligations, or management’s payout plans. If a price decline is what made the yield look attractive, check the assumptions behind the payout before drawing conclusions from the higher yield. For readers interested in testing the research idea, a concrete next question is whether a sentiment measure built from information available at the time adds anything to a simple price-only baseline on a later, unseen period.
Research source. Yang Yang, Fuzhong Nian, and Xinghao Liu. Optimal investment strategies for emotionally driven investors in the stock market. Physica A, volume 682, article 131147 (2026). Read the paper.
Investor Sentiment Lab
Compare how optimism and pessimism spread through a hypothetical crowd. Every run starts with 8% optimistic spreaders, 12% pessimistic spreaders, and 80% open to influence.
Active spreaders as a share of the whole crowd. Solid teal shows optimism. Dashed purple shows pessimism. Exact values appear in the table.View results by round
Shares of the starting crowd by round
Round
Optimistic
Pessimistic
Open to influence
Stepped back
Net mood (percentage points)
How each round works
New optimistic spreaders = share open to influence × current optimistic share × optimism spread rate. The same rule applies to pessimism. Each active group loses its current share × the step-back rate. Newly persuaded investors can begin spreading their view in the next round. People who step back stay in that group for the rest of the run.
You must be logged in to post a comment.