The 4% safe withdrawal rate (SWR) is based on stock and bond market simulations that back test retirement portfolios. An interesting example is this site FI Calc. It includes different withdrawal rates.
The S&P 500 index ETF is one of the safest bets in stock investing, and over time has an increasing likelihood of making money. However...