This repository, owned by the user zonination (Zoni Nation), presents a data visualization and analysis project on long-term returns from broad stock market indexes, especially the S&P 500. The author gathers historical price data (adjusted for inflation and dividends) and computes growth trajectories under a “buy and hold” strategy over decades. The key insight illustrated is that over sufficiently long holding periods (e.g. 40 years), the stock market stabilizes and nearly always yields positive returns, even accounting for extreme market crashes and recessions. The visualizations show “return curves” for different starting years and durations, and also illustrate the probability of losses over various time horizons. The project is centered on transparency in finance and encourages users to examine the data themselves; the code is shared in R and uses ggplot2 for plotting.

Features

  • Historical return trajectory plotting for index investments over many years
  • “Cash multiplier” visualization (growth factor after inflation and dividends)
  • Empirical probability estimates of loss over different holding periods
  • Use of R, tidy data, and ggplot2 for expressive visual storytelling
  • Public code with emphasis on transparency and reproducibility
  • Highlighting stability over long horizons and the “time in market” thesis

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Investing

Investing Web Site

Other Useful Business Software
Auth0 for AI Agents now in GA Icon
Auth0 for AI Agents now in GA

Ready to implement AI with confidence (without sacrificing security)?

Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Start building today
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Investing!

Additional Project Details

Programming Language

R

Related Categories

R Libraries

Registered

2025-10-01