Lesson 1: Behavioral Finance — The Psychology of Investing
Understand the cognitive biases that cause investors to make irrational decisions and learn strategies to overcome them.
Why Behavioral Finance Matters
The biggest enemy of successful investing isn't the market — it's your own brain. Behavioral finance studies how psychological biases lead to irrational financial decisions.
Mental model: Think of your brain as having two systems — System 1 (emotional, fast, automatic) and System 2 (logical, slow, deliberate). Most investing mistakes happen when System 1 takes over.
The Data: Emotions Destroy Returns
| Investor Type | Average Annual Return |
|---|---|
| S&P 500 Index (2003-2023) | +9.8% |
| Average Stock Fund Investor | +6.8% |
| Average Bond Fund Investor | +3.5% |
Why the gap? Investors buy high (excitement) and sell low (fear) — the exact opposite of what works.
The 12 Cognitive Biases That Hurt Investors
Biases That Cause Us to Buy Wrong
| Bias | Definition | Example | Fix |
|---|---|---|---|
| Overconfidence | Believing you're better than average | Trading too frequently | Track your results honestly |
| Confirmation Bias | Seeking information that agrees with you | Only reading bullish news | Actively seek opposing views |
| Recency Bias | Assuming recent trends will continue | Chasing last year's winners | Focus on long-term fundamentals |
| Herd Mentality | Following the crowd | Buying when everyone else is | Contrarian thinking |
Biases That Cause Us to Sell Wrong
| Bias | Definition | Example | Fix |
|---|---|---|---|
| Loss Aversion | Feeling losses 2x more than gains | Selling winners too early, holding losers | Set rules and follow them |
| Anchoring | Fixating on a specific price | "I'll sell when it gets back to $100" | Focus on current value, not purchase price |
| Disposition Effect | Selling winners, holding losers | Selling a stock up 20% but holding one down 50% | Cut losers, let winners run |
| Panic Selling | Selling during market crashes | Selling at the bottom in March 2020 | Have a plan before crashes happen |
Biases That Distort Our Thinking
| Bias | Definition | Example | Fix |
|---|---|---|---|
| Narrative Bias | Loving stories over data | Buying because of a "compelling story" | Focus on financials, not stories |
| Sunk Cost Fallacy | Holding because of past investment | "I can't sell now, I've lost too much" | Evaluate based on future prospects only |
| Mental Accounting | Treating money differently based on source | Spending bonus frivolously | Treat all money the same |
| Endowment Effect | Overvaluing what you own | Thinking your stock is worth more because you own it | Ask "Would I buy this today at this price?" |
The Emotional Cycle of Investing
Understanding this cycle helps you anticipate and prepare for emotional traps:
| Phase | Market Condition | Emotion | Typical Action | Better Action |
|---|---|---|---|---|
| 1. Optimism | Early recovery | Hope | Start buying | Begin DCA |
| 2. Excitement | Rising market | Enthusiasm | Buy more | Stick to allocation |
| 3. Thrill | Strong gains | Euphoria | Max out investments | Rebalance |
| 4. Anxiety | Peak market | Worry | Check portfolio daily | Ignore short-term |
| 5. Denial | Market drops | Disbelief | "It will come back" | Review fundamentals |
| 6. Fear | Falling market | Panic | Consider selling | Follow your plan |
| 7. Desperation | Deep decline | Hopelessness | Sell everything | Stay the course |
| 8. Capitulation | Market bottom | Surrender | Sell at the worst time | Buy more (if able) |
| 9. Depression | Post-crash | Despair | Stop investing entirely | Restart DCA |
| 10. Disbelief | Early recovery | Skepticism | "It's a dead cat bounce" | Re-enter market |
Key insight: The best time to buy is when everyone else is selling (capitulation), but it's also when you'll feel the worst.
Building an Anti-Fragile Investment System
The solution to behavioral biases is creating systems and rules that remove emotion from investing:
Rule 1: Automate Everything
| Automation | Benefit |
|---|---|
| Automatic contributions | Removes decision fatigue |
| Automatic rebalancing | Prevents emotional timing |
| Automatic dividend reinvestment | Captures compound growth |
Rule 2: Write an Investment Policy Statement
Before investing, write down:
- Your goals and time horizon
- Your target asset allocation
- Your rebalancing rules
- Your entry and exit criteria
- What you will NOT do (e.g., "I will not check my portfolio daily")
Rule 3: Use the 24-Hour Rule
Before making any investment decision that isn't automated:
- Wait 24 hours
- Write down why you want to make this change
- Ask: "Would I make this same decision if the market had been flat for a year?"
Rule 4: Find an Accountability Partner
Share your investment plan with someone who will hold you accountable. The best investors have someone who will tell them they're being stupid.
Common Behavioral Mistakes to Avoid
- Mistake: Checking your portfolio daily — Fix: Check quarterly; daily checking leads to emotional decisions.
- Mistake: Chasing performance — Fix: Stick to your target allocation; don't chase hot sectors.
- Mistake: Panicking during downturns — Fix: Have a written plan and follow it.
- Mistake: Thinking you're different — Fix: Everyone thinks they're rational; no one is.
Professional Tips & Tricks
- Write down your investment rules and read them before making any changes.
- Keep a journal of your emotional state when making investment decisions.
- Use apps that block trading apps during market hours if you're prone to impulsive trades.
- Remember: the market rewards patience and punishes action.
Key Takeaways
- Emotional investing destroys returns — the average investor underperforms the market by 3%.
- The 12 cognitive biases listed above cause most investing mistakes.
- The emotional cycle of investing follows a predictable pattern — know where you are.
- Automation and written rules remove emotion from investing.
- The best investors are boring — they follow systems, not feelings.
Next up: Alternative investments — REITs, commodities, and cryptocurrency.
# Behavioral Finance Decision Framework
## Before ANY Investment Decision, Ask:
1. What emotion am I feeling right now?
□ Excitement □ Fear □ Greed □ Boredom □ Neutral
2. Is this decision in my Investment Policy Statement?
□ Yes → Proceed □ No → Reconsider
3. Would I make this same decision if markets were flat?
□ Yes → Proceed □ No → Wait 24 hours
4. Am I following my system or my feelings?
□ System → Proceed □ Feelings → Stop
## The 12 Biases Checklist
Before trading, check for these traps:
□ Am I being overconfident?
□ Am I seeking only confirming information?
□ Am I extrapolating recent trends?
□ Am I following the crowd?
□ Am I letting losses hurt more than gains?
□ Am I anchored to a specific price?
□ Am I selling winners and holding losers?
□ Am I panicking?
□ Am I attracted to a story over data?
□ Am I holding because of sunk costs?
□ Am I treating money differently based on source?
□ Am I overvaluing what I own?
## The Anti-Fragile System
1. AUTOMATE: Contributions, rebalancing, dividends
2. WRITE: Investment Policy Statement
3. WAIT: 24-hour rule for non-automated decisions
4. SHARE: Accountability partner
5. JOURNAL: Emotional state with each decision
## The Emotional Cycle Timeline
Optimism → Excitement → Thrill → Anxiety → Denial
↓ ↓
Disbelief ← Depression ← Capitulation ← Fear
↓ ↑
Recovery ──────────────────────────────── DesperationLesson Code (Python)
# Behavioral Finance Decision Framework
## Before ANY Investment Decision, Ask:
1. What emotion am I feeling right now?
□ Excitement □ Fear □ Greed □ Boredom □ Neutral
2. Is this decision in my Investment Policy Statement?
□ Yes → Proceed □ No → Reconsider
3. Would I make this same decision if markets were flat?
□ Yes → Proceed □ No → Wait 24 hours
4. Am I following my system or my feelings?
□ System → Proceed □ Feelings → Stop
## The 12 Biases Checklist
Before trading, check for these traps:
□ Am I being overconfident?
□ Am I seeking only confirming information?
□ Am I extrapolating recent trends?
□ Am I following the crowd?
□ Am I letting losses hurt more than gains?
□ Am I anchored to a specific price?
□ Am I selling winners and holding losers?
□ Am I panicking?
□ Am I attracted to a story over data?
□ Am I holding because of sunk costs?
□ Am I treating money differently based on source?
□ Am I overvaluing what I own?
## The Anti-Fragile System
1. AUTOMATE: Contributions, rebalancing, dividends
2. WRITE: Investment Policy Statement
3. WAIT: 24-hour rule for non-automated decisions
4. SHARE: Accountability partner
5. JOURNAL: Emotional state with each decision
## The Emotional Cycle Timeline
Optimism → Excitement → Thrill → Anxiety → Denial
↓ ↓
Disbelief ← Depression ← Capitulation ← Fear
↓ ↑
Recovery ──────────────────────────────── DesperationConsole Output
# Behavioral Finance Decision Framework
## Before ANY Investment Decision, Ask:
1. What emotion am I feeling right now?
□ Excitement □ Fear □ Greed □ Boredom □ Neutral
2. Is this decision in my Investment Policy Statement?
□ Yes → Proceed □ No → Reconsider
3. Would I make this same decision if markets were flat?
□ Yes → Proceed □ No → Wait 24 hours
4. Am I following my system or my feelings?
□ System → Proceed □ Feelings → Stop
## The 12 Biases Checklist
Before trading, check for these traps:
□ Am I being overconfident?
□ Am I seeking only confirming information?
□ Am I extrapolating recent trends?
□ Am I following the crowd?
□ Am I letting losses hurt more than gains?
□ Am I anchored to a specific price?
□ Am I selling winners and holding losers?
□ Am I panicking?
□ Am I attracted to a story over data?
□ Am I holding because of sunk costs?
□ Am I treating money differently based on source?
□ Am I overvaluing what I own?
## The Anti-Fragile System
1. AUTOMATE: Contributions, rebalancing, dividends
2. WRITE: Investment Policy Statement
3. WAIT: 24-hour rule for non-automated decisions
4. SHARE: Accountability partner
5. JOURNAL: Emotional state with each decision
## The Emotional Cycle Timeline
Optimism → Excitement → Thrill → Anxiety → Denial
↓ ↓
Disbelief ← Depression ← Capitulation ← Fear
↓ ↑
Recovery ──────────────────────────────── DesperationCode Visualization Tips
- Draw the emotional cycle of investing and mark where you've been emotionally during market moves.
- Create a decision tree that routes all investment decisions through your anti-fragile system.
- Track your emotional state in a journal alongside your investment decisions for one month.
Professional Tips & Tricks
- The market rewards patience and punishes action — be boring.
- Write down your investment rules and read them before making any changes.
- Use apps that block trading during market hours if you're prone to impulsive trades.
Python Code Judge & Practice Arena
LeetCode StyleRun real Python 3.12 WebAssembly code directly in your browser against automated test suites.
Identify Your Biases
Up next · Continue learning
Alternative Investments — REITs, Commodities & Crypto
Explore alternative asset classes that can enhance diversification and provide unique return profiles beyond traditional stocks and bonds.