---
title: "Discussion on \"Testing the 4% rule on every retirement since 1872 in 40 lines of Python\" | Hashnode"
description: "Discussion on \"Testing the 4% rule on every retirement since 1872 in 40 lines of Python\". Every 30-year US retirement since 1872, tested with the 4% rule in under 40 lines of Python. 121 of 125 survived. Data and code included."
url: "https://hashnode.com/posts/testing-the-4-rule-on-every-retirement-since-1872-in-40-lines-of-python/6b0683b77e525505441c8c0e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Testing the 4% rule on every retirement since 1872 in 40 lines of Python](https://investwealth.hashnode.dev/testing-the-4-rule-on-every-retirement-since-1872-in-40-lines-of-python?utm_source=hashnode&utm_medium=feed)

Every 30-year US retirement since 1872, tested with the 4% rule in under 40 lines of Python. 121 of 125 survived. Data and code included.

1d ago · 5 min read · investwealth.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#data-science](https://hashnode.com/tag/data-science)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Harry Hamann](https://hashnode.com/@investwealth)

@investwealth · Cyprus

  
[View profile](https://hashnode.com/@investwealth)

Private investor in Cyprus, 15+ years across asset classes. Engineer (Dr.-Ing., 7 patents), MBA. Founder of InvestWealth.com.

Dr. Harry Hamann, MBA, is a German-born private investor living in Cyprus, with 15+ years of investing across stocks, bonds, commodities, crypto and currencies, for himself, through his own companies and as managing director of a German private company. A former automotive engineer with 7 patents, he founded InvestWealth.com, an independent research site on systematic investing built on 150 years of market data. He has been quoted in Yahoo Finance, Moneywise and Invezz.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
