Skip to main content

Monte Carlo Simulation for Lump Sum Investing and Dollar-Cost Averaging

 Which is better? Lump sum investing or dollar-cost averaging? O built this simulator to find out.

Assumptions:

  • Stock price follows geometric Brownian motion, or, stock return follows arithmetic Brownian motion.
  • The variables are investment duration, we call t, mean return and return standard deviation.
  • This simulator will run 1 time and show if one investing strategy beats the other.
  • The target asset has a innitial value of $100.
  • We will invest t*100 amount of money at time 0 for lump sum investing and $100 at each t.

Simulator

t:
Mean Return: %
Return Standard Deviation: %

Compare the Investment Result With Real Date

The previous app uses simulated stock prices to compare if lump sum investment givs a reutrn than dollar cost averaging. The following app uses actual SPY data. SPY tracks the SP500 index and it's an old ETF which we can use to model and compare the investment results from both investment strategies.

Comments

Popular posts from this blog

Which is better? BND or AGG?

The US 10-year treasury yield has reached at 2007-2008 years level, which is about 16 years ago. From a technical point of view, it is a buy. Then there are 2 bond ETFs that I am interested in. There are BND and AGG. They are very similar in nature. US 10 year Treasury Bond, chart, prices - FT.com Expense Ratio BND: 0.03% AGG: 0.03% The same. Turnover Rate BND: 40.00% AGG: 104.0% BNG seems better. Historical Performance Comparison Investment duration: 5 years with no tax on dividends BND wins a little with winning rate of 57.5%, but AGG wins 0.012% in return. Investment duration: 5 years with 30% tax on dividends AGG wins a little with winning rate of 65% and a 0.079% difference on average. Investment duration: 10 years with no tax on dividends AGG wins a little with winning rate of 67% and a 0.024% difference on average. Investment duration: 10 years with 30%  tax on dividends AGG wins a little with winning rate of 99% and a 0.095% difference on average. C...