Finance
There is a necessity for a tool to simulate the result of a diversified investment in the US capital market in a personalized way. To perform this kind of simulation, the data needed are:
- Rate offered by the market
- Initial capital
- Amount of periodic contributions
- Investment horizon
Parameters from 2 to 4 are defined by the user. Meanwhile, the rate offered by the United States market for a diversified and passive investment1 is generally represented by the compound interest rate of the S&P 500 index.
Extract the daily closing prices of the S&P 500 index and make it available in a centralized database, which serves as a supply for the calculation of the annualized rate of return, defined as a compound interest rate 2. This outcome, processed in a python script together with the parameters entered by the user, determines the estimated result (final capital) of the investment.
- Obtaining data from external sources:
- S&P 500 price (Source: Yahoo Finance)
- Python script development
- Incremental ETL
- Automation: frequency -> once a day
- Calculation of compound interest rate
- Calculation of final capital
- Storage of simulations carried out in csv file
- Script testing
- Black Box Tests
- Historical data of the S&P 500 index with incremental loading every 24 hours, centralized in a CSV file
- Calculation of interest rate up to date
- S&P 500 investment simulator
- Error handling and alerts
- Tableau dashboard of S&P 500 index prices3
Footnotes
-
Passive investment is the one that requires the minimum effort on the part of the user or no management by third parties. ↩
-
Compound interest is the interest on a deposit calculated based on both the initial principal and the accumulated interest from previous periods. More Information ↩
-
A brief analysis and viz of S&P 500 index prices can be seen on this Tableau dashboard I made ↩