ASAmol Shukla
Projects
Courses
Prompts
Skills
Contact
Resume
Course Outline
Syllabus Overview

Complete Stock Market Course: From Beginner to Confident Investor

Courses/Complete Stock Market Course: From Beginner to Confident Investor/Lesson 1: Modern Portfolio Theory & Asset Allocation
55 mins lesson duration•11 mins read

Lesson 1: Modern Portfolio Theory & Asset Allocation

Understand diversification, the efficient frontier, and how to allocate assets based on your goals and risk tolerance.

Why Portfolio Management Matters

Even the best stock picks can fail if your portfolio isn't properly diversified. Portfolio management is the art and science of allocating assets to maximize returns while minimizing risk.

Mental model: Think of your portfolio as a sports team — you need different players (asset classes) with different strengths to win consistently. A team of only strikers would be terrible at defending.

The Core Principle

Don't put all your eggs in one basket — but also don't spread them so thin that you can't monitor them.


Modern Portfolio Theory (MPT)

Developed by Harry Markowitz (Nobel Prize, 1952), MPT shows that investors can optimize returns by combining assets that don't move in perfect correlation.

Key Concepts

Concept Definition Practical Impact
Diversification Combining uncorrelated assets Reduces overall risk
Efficient Frontier Optimal portfolios for risk/return Maximum return per unit of risk
Risk-Return Tradeoff Higher return = higher risk No free lunch
Correlation How assets move together Lower correlation = better diversification

Asset Class Correlations

Asset Pair Correlation Diversification Benefit
US Stocks + International Stocks ~0.7 Moderate
US Stocks + Bonds ~0.2 High
US Stocks + Real Estate ~0.6 Moderate
Stocks + Commodities ~0.3 High
Bonds + Real Estate ~0.4 Moderate

Key insight: The magic of diversification is that combining assets with correlation less than 1.0 can actually reduce risk without proportionally reducing returns.


Risk Tolerance Assessment

Before allocating assets, you must understand your risk tolerance:

Factor Conservative Moderate Aggressive
Age 50+ 30-50 Under 30
Income Stability Variable Stable Stable + growing
Investment Horizon < 5 years 5-15 years 15+ years
Emergency Fund 6+ months 3-6 months 3-6 months
Emotional Response to Loss Panic sell Hold steady Buy more

The Risk Tolerance Questionnaire

Answer these to find your profile:

  1. If your portfolio dropped 20% in a month, would you:

    • a) Sell everything (Conservative)
    • b) Hold and wait (Moderate)
    • c) Buy more at lower prices (Aggressive)
  2. Your primary investment goal is:

    • a) Preserve capital (Conservative)
    • b) Grow wealth steadily (Moderate)
    • c) Maximize long-term growth (Aggressive)
  3. Your investment timeline is:

    • a) 1-5 years (Conservative)
    • b) 5-15 years (Moderate)
    • c) 15+ years (Aggressive)

Asset Allocation Models

Based on your risk tolerance, here are proven allocation models:

Conservative Portfolio (Low Risk)

Asset Class Allocation Expected Return Risk Level
US Large-Cap Stocks 25% 8-10% Medium
International Stocks 10% 7-9% Medium
Bonds (Intermediate) 40% 3-5% Low
Real Estate (REITs) 10% 6-8% Medium
Cash/Money Market 15% 2-4% Very Low
Total 100% 5-7% Low-Medium

Balanced Portfolio (Medium Risk)

Asset Class Allocation Expected Return Risk Level
US Large-Cap Stocks 35% 8-10% Medium
US Mid/Small-Cap 10% 9-12% High
International Stocks 15% 7-9% Medium
Bonds (Intermediate) 25% 3-5% Low
Real Estate (REITs) 10% 6-8% Medium
Cash/Money Market 5% 2-4% Very Low
Total 100% 7-9% Medium

Aggressive Portfolio (High Risk)

Asset Class Allocation Expected Return Risk Level
US Large-Cap Stocks 40% 8-10% Medium
US Mid/Small-Cap 15% 9-12% High
International Stocks 20% 7-9% Medium
Growth/Emerging Markets 10% 10-15% Very High
Bonds (Short-term) 10% 3-5% Low
Real Estate (REITs) 5% 6-8% Medium
Total 100% 9-11% High

The Glide Path — Adjusting Over Time

As you age, your portfolio should gradually shift from aggressive to conservative:

Age Range Stocks Bonds Rationale
20s-30s 80-90% 10-20% Long horizon, can recover from losses
40s 70-80% 20-30% Still growing, but protecting gains
50s 50-70% 30-50% Nearing retirement, reducing risk
60s+ 30-50% 50-70% Preserving capital, generating income

Key insight: The "Rule of 100" says subtract your age from 100 to get your stock allocation. A 30-year-old = 70% stocks; a 60-year-old = 40% stocks.


Common Mistakes to Avoid

  • Mistake: Over-concentrating in one stock or sector — Fix: No single position should exceed 5-10% of your portfolio.
  • Mistake: Chasing last year's performance — Fix: Stick to your target allocation; don't chase hot sectors.
  • Mistake: Ignoring fees — Fix: High fees compound over time; choose low-cost index funds.
  • Mistake: Not rebalancing — Fix: Rebalance annually to maintain your target allocation.

Professional Tips & Tricks

  • Use low-cost index funds (Vanguard, Fidelity, Schwab) for core holdings.
  • Automate contributions — dollar-cost averaging removes emotion.
  • Rebalance annually or when allocation drifts more than 5% from target.
  • Keep 3-6 months of expenses in cash before investing aggressively.

Key Takeaways

  • Diversification reduces risk without proportionally reducing returns.
  • Asset allocation is the most important decision in portfolio construction.
  • Match your allocation to your risk tolerance, age, and investment horizon.
  • Use the glide path to gradually reduce risk as you approach retirement.
  • Low-cost index funds are the foundation of most successful portfolios.

Next up: Dollar-cost averaging and investment strategies for different market conditions.

Interactive Lesson Code Snippet
# Portfolio Allocation Models

## Age-Based Glide Path

| Age | Stocks | Bonds | Risk Level |
|-----|--------|-------|------------|
| 25  | 75%    | 25%   | Aggressive |
| 35  | 65%    | 35%   | Growth     |
| 45  | 55%    | 45%   | Balanced   |
| 55  | 45%    | 55%   | Moderate   |
| 65  | 35%    | 65%   | Conservative |

## Sample Balanced Portfolio ($100,000)

Asset Allocation:
├── US Stocks (VTI): $35,000 (35%)
├── International (VXUS): $15,000 (15%)
├── US Mid-Cap (VO): $10,000 (10%)
├── Bonds (BND): $25,000 (25%)
├── REITs (VNQ): $10,000 (10%)
└── Cash: $5,000 (5%)

Expected Annual Return: 7-9%
Historical Max Drawdown: -25% to -35%

## Correlation Matrix (Simplified)

        Stocks  Bonds  REITs  Commodities
Stocks    1.0    0.2    0.6     0.3
Bonds     0.2    1.0    0.4    -0.1
REITs     0.6    0.4    1.0     0.4
Commod    0.3   -0.1    0.4     1.0

## Rebalancing Schedule

Review portfolio:
- Quarterly: Check allocation drift
- Annually: Full rebalance if >5% off target
- After major life events: Reassess risk tolerance
Language: text

Lesson Code (Python)

# Portfolio Allocation Models

## Age-Based Glide Path

| Age | Stocks | Bonds | Risk Level |
|-----|--------|-------|------------|
| 25  | 75%    | 25%   | Aggressive |
| 35  | 65%    | 35%   | Growth     |
| 45  | 55%    | 45%   | Balanced   |
| 55  | 45%    | 55%   | Moderate   |
| 65  | 35%    | 65%   | Conservative |

## Sample Balanced Portfolio ($100,000)

Asset Allocation:
├── US Stocks (VTI): $35,000 (35%)
├── International (VXUS): $15,000 (15%)
├── US Mid-Cap (VO): $10,000 (10%)
├── Bonds (BND): $25,000 (25%)
├── REITs (VNQ): $10,000 (10%)
└── Cash: $5,000 (5%)

Expected Annual Return: 7-9%
Historical Max Drawdown: -25% to -35%

## Correlation Matrix (Simplified)

        Stocks  Bonds  REITs  Commodities
Stocks    1.0    0.2    0.6     0.3
Bonds     0.2    1.0    0.4    -0.1
REITs     0.6    0.4    1.0     0.4
Commod    0.3   -0.1    0.4     1.0

## Rebalancing Schedule

Review portfolio:
- Quarterly: Check allocation drift
- Annually: Full rebalance if >5% off target
- After major life events: Reassess risk tolerance

Console Output

# Portfolio Allocation Models

## Age-Based Glide Path

| Age | Stocks | Bonds | Risk Level |
|-----|--------|-------|------------|
| 25  | 75%    | 25%   | Aggressive |
| 35  | 65%    | 35%   | Growth     |
| 45  | 55%    | 45%   | Balanced   |
| 55  | 45%    | 55%   | Moderate   |
| 65  | 35%    | 65%   | Conservative |

## Sample Balanced Portfolio ($100,000)

Asset Allocation:
├── US Stocks (VTI): $35,000 (35%)
├── International (VXUS): $15,000 (15%)
├── US Mid-Cap (VO): $10,000 (10%)
├── Bonds (BND): $25,000 (25%)
├── REITs (VNQ): $10,000 (10%)
└── Cash: $5,000 (5%)

Expected Annual Return: 7-9%
Historical Max Drawdown: -25% to -35%

## Correlation Matrix (Simplified)

        Stocks  Bonds  REITs  Commodities
Stocks    1.0    0.2    0.6     0.3
Bonds     0.2    1.0    0.4    -0.1
REITs     0.6    0.4    1.0     0.4
Commod    0.3   -0.1    0.4     1.0

## Rebalancing Schedule

Review portfolio:
- Quarterly: Check allocation drift
- Annually: Full rebalance if >5% off target
- After major life events: Reassess risk tolerance

Code Visualization Tips

  • 🧠Draw a pie chart of your ideal portfolio allocation — seeing it visually makes it real.
  • 🧠Plot your portfolio's growth over 20 years using different allocations to see the compounding effect.
  • 🧠Use a correlation heatmap to understand how your assets move together.

Professional Tips & Tricks

  • ⚡Target-date funds automatically adjust your allocation as you age — great for hands-off investors.
  • ⚡Rebalance when allocation drifts more than 5% from your target.
  • ⚡Don't chase performance — what went up last year may not go up this year.

Python Code Judge & Practice Arena

LeetCode Style

Run real Python 3.12 WebAssembly code directly in your browser against automated test suites.

Solved:0 / 2
0 / 30 XP
Challenges:
Problem 1 of 2

Design Your Portfolio

Medium+20 XP
Based on your age and risk tolerance, design a portfolio allocation using the models above. Explain why you chose each allocation percentage.
main.pyPython 3.12 (WASM)
1
2
3
4
5
6
7
8
9
10
11
12
Press Run Code to test or Submit to verify test cases

Up next · Continue learning

Dollar-Cost Averaging & Market Timing Myths

Learn why consistent investing beats trying to time the market, and how to implement a systematic investment plan.

9 mins read45 mins
Start next lesson
Previous: Volume Analysis & Trade ExecutionNext: Dollar-Cost Averaging & Market Timing Myths
Made withbyAmol Shukla·amolshukla.online
ASAmol Shukla

AI Developer, Trainer & Agentic AI Expert building practical learning systems and real-world AI applications.

Explore

  • Projects
  • Courses
  • Prompts
  • Skills
  • Contact
  • Experience
  • Blogs

Connect

  • Resume
  • Contact
© 2026 Amol Shukla·Created withbyamolshukla.online
Back to top