Welcome to Quantitative Singularity, a site devoted to explore modelling of practical financial planning scenarios with an emphasis on retirement planning. Since this is a new site, there will definitely be some(many?) of the usual growing-up hiccups going forward.
Recommendations to begin – quite simple really.
- Download software as noted in ‘R on the Web links’ under Software & Tools
- Verify installation
- Download book under ‘Building the Financial Desktop Laboratory’
- Go through first few chapters which are basically intro to R and getting familiar with idiosyncrasies of coding in R.
- Scan the reference e-books given under Planning Models & Portfolio Management to get a feel for the financial/statistical knowledge space that provide the foundation for building and assessing models
- Experiment with very simple problems
Sample code will be provided as separate posts under Posts/Discussion. There is a box that encloses code, Blue indicating code, and red the output when it is executed. It can be copied directly from the box and pasted on local desktop/laptop. The code has been tested on my machine and should present results or plots as shown in the posts. Lines that start with # character are comments and not executed by the R system. Filenames should reflect your local drive filesystem structure. Example “z:/Workspace/…” filesystem will not work unless you have same identical one!
Most if not all posts will have R code. These can be cut and posted into the R-Studio environment and executed there. They should produce the results and/or plots and graphs exactly as shown assuming one uses the same data source as input. That should serve as kind of sanity check. Blue code is the actual R code and the red is the output produced on console.
Note of caution – sometimes a line is shown as “> head(histData” the “>” should be removed because that will throw an error. Sorry for confusion – pasting from my environment to the blog box sometimes causes these anomalies.
### get the historical data needed
histData <- getMergedCleanedHistReturns()
> head(histData)
AAA BAA LTR DJIA SP500 TB3Month TB10Yr CPI TB3mth
1928-12-31 0.0461 0.0560 0.0360 0.4822 0.4381 0.0308 0.0084 -0.0116 0.0311
1929-12-31 0.0467 0.0595 0.0329 -0.1717 -0.0830 0.0316 0.0420 0.0058 0.0319
The way WordPress (the blog preparation & design software) seems to function is that you need to click on the Posts/Discussion to see all recent posts. Then you can select the one you want. A screen capture of page shown here:
Please use the ‘Discussions’ area under Posts/Discussion are for comments and suggestions. Feel free to share site with friends, relatives or acquaintances who may want to participate in the community.
Thanx for reading