Lesson 1: Introduction to the Stock Market
What is the stock market, how it works, and why it's essential for building long-term wealth.
What is the Stock Market?
The stock market is a marketplace where buyers and sellers come together to trade shares of publicly listed companies. When you buy a stock, you're purchasing a small piece of ownership in that company — making you a shareholder.
Why the Stock Market Matters
- Wealth Building: Historically, stocks have returned ~10% annually on average over the long term.
- Beat Inflation: Cash loses value over time due to inflation; stocks typically outpace it.
- Compound Growth: Reinvested returns generate their own returns, creating exponential growth.
- Liquidity: Stocks can be bought and sold quickly, unlike real estate or other investments.
Mental model: Think of the stock market as a giant auction house where company ownership is auctioned off. Prices go up when more people want to buy, and down when more people want to sell.
The History of Stock Markets
| Year | Milestone | Significance |
|---|---|---|
| 1602 | Dutch East India Company | First publicly traded company |
| 1792 | Buttonwood Agreement | Formation of what became the NYSE |
| 1971 | NASDAQ launches | First electronic stock exchange |
| 1990s | Internet boom | Democratized access via online brokers |
| 2008 | Financial crisis | Lessons on risk and regulation |
| 2020s | Commission-free trading | Accessible to everyone |
How Companies Go Public
- Initial Public Offering (IPO): Company offers shares to the public for the first time
- Listing: Shares begin trading on a stock exchange (NYSE, NASDAQ)
- Secondary Market: Investors trade shares among themselves
Key Stock Market Terminology
| Term | Definition | Example |
|---|---|---|
| Stock/Share | A unit of ownership in a company | "I own 100 shares of Apple" |
| Ticker Symbol | Abbreviated code for a stock | AAPL (Apple), GOOGL (Google) |
| Market Capitalization | Total value of all shares (price × shares outstanding) | Apple: ~$3 trillion |
| Dividend | Payment made to shareholders from company profits | "$0.24 per share quarterly" |
| Bull Market | Period of rising stock prices | 2009-2020 bull run |
| Bear Market | Period of falling stock prices (typically >20% decline) | 2020 COVID crash |
| Volatility | Degree of price fluctuation | High volatility = big swings |
| Liquidity | How easily an asset can be bought/sold | Large-cap stocks = high liquidity |
Key insight: Understanding these terms is like learning the rules of a game — you can't win if you don't know how the pieces move.
Major Stock Exchanges
| Exchange | Location | Notable Features |
|---|---|---|
| New York Stock Exchange (NYSE) | New York, USA | Largest exchange by market cap |
| NASDAQ | New York, USA | Tech-heavy, electronic trading |
| London Stock Exchange | London, UK | Oldest exchange (1801) |
| Tokyo Stock Exchange | Tokyo, Japan | Largest in Asia |
| Shanghai Stock Exchange | Shanghai, China | Rapidly growing |
Common Mistakes to Avoid
- Mistake: Thinking the stock market is a get-rich-quick scheme — Fix: It's a long-term wealth-building tool.
- Mistake: Investing money you'll need soon — Fix: Only invest money you won't need for at least 5 years.
- Mistake: Trying to time the market — Fix: Focus on time IN the market, not timing the market.
- Mistake: Not understanding what you're buying — Fix: Research companies before investing.
Professional Tips & Tricks
- Start early — compound growth needs time to work its magic.
- Diversify — don't put all your eggs in one basket.
- Invest consistently — regular contributions smooth out market volatility.
- Stay informed but don't overreact to daily news.
Key Takeaways
- The stock market is where company ownership is bought and sold.
- Stocks have historically provided the best long-term returns of any asset class.
- Key terminology includes shares, market cap, dividends, and market conditions.
- Successful investing requires patience, diversification, and consistent contributions.
Next up: Understanding different types of stocks and how to evaluate them.
# Stock Market Fundamentals
## The Power of Compound Growth
Initial Investment: $10,000
Annual Return: 10%
Time Horizon: 30 years
Year 5: $16,105
Year 10: $25,937
Year 15: $41,772
Year 20: $67,275
Year 25: $108,347
Year 30: $174,494
💡 $10,000 invested at 10% for 30 years = $174,494
That's 17.4x your money!
## Key Market Metrics
S&P 500 Historical Returns:
- Average annual return: ~10%
- Best year: +54% (1933)
- Worst year: -37% (1931)
- Average bear market duration: ~1.3 years
- Average bull market duration: ~6.6 years
## Portfolio Basics
Conservative Portfolio:
- 60% Bonds, 40% Stocks
- Expected return: 6-8% annually
Balanced Portfolio:
- 50% Stocks, 50% Bonds
- Expected return: 7-9% annually
Growth Portfolio:
- 80% Stocks, 20% Bonds
- Expected return: 9-11% annuallyLesson Code (Python)
# Stock Market Fundamentals
## The Power of Compound Growth
Initial Investment: $10,000
Annual Return: 10%
Time Horizon: 30 years
Year 5: $16,105
Year 10: $25,937
Year 15: $41,772
Year 20: $67,275
Year 25: $108,347
Year 30: $174,494
💡 $10,000 invested at 10% for 30 years = $174,494
That's 17.4x your money!
## Key Market Metrics
S&P 500 Historical Returns:
- Average annual return: ~10%
- Best year: +54% (1933)
- Worst year: -37% (1931)
- Average bear market duration: ~1.3 years
- Average bull market duration: ~6.6 years
## Portfolio Basics
Conservative Portfolio:
- 60% Bonds, 40% Stocks
- Expected return: 6-8% annually
Balanced Portfolio:
- 50% Stocks, 50% Bonds
- Expected return: 7-9% annually
Growth Portfolio:
- 80% Stocks, 20% Bonds
- Expected return: 9-11% annuallyConsole Output
Stock Market Fundamentals
## The Power of Compound Growth
Initial Investment: $10,000
Annual Return: 10%
Time Horizon: 30 years
Year 5: $16,105
Year 10: $25,937
Year 15: $41,772
Year 20: $67,275
Year 25: $108,347
Year 30: $174,494
💡 $10,000 invested at 10% for 30 years = $174,494
That's 17.4x your money!
## Key Market Metrics
S&P 500 Historical Returns:
- Average annual return: ~10%
- Best year: +54% (1933)
- Worst year: -37% (1931)
- Average bear market duration: ~1.3 years
- Average bull market duration: ~6.6 years
## Portfolio Basics
Conservative Portfolio:
- 60% Bonds, 40% Stocks
- Expected return: 6-8% annually
Balanced Portfolio:
- 50% Stocks, 50% Bonds
- Expected return: 7-9% annually
Growth Portfolio:
- 80% Stocks, 20% Bonds
- Expected return: 9-11% annuallyCode Visualization Tips
- Draw a simple supply and demand graph to understand how stock prices move.
- Create a timeline of major market events to understand historical context.
- Use a compound interest calculator to visualize long-term growth.
Professional Tips & Tricks
- Start with index funds — they provide instant diversification.
- Set up automatic investments — it removes emotion from the equation.
- Keep your investment costs low — fees eat into returns significantly.
Python Code Judge & Practice Arena
LeetCode StyleRun real Python 3.12 WebAssembly code directly in your browser against automated test suites.
Market Terminology Quiz
Test Your Knowledge
Instant feedbackQuick Check: Introduction to the Stock Market
Up next · Continue learning
Types of Stocks & Asset Classes
Understand different stock categories, sectors, and asset classes to build a diversified portfolio.