# Bootstrapping Value at Risk (VaR)

This is an illustration, using a simple portfolio of four stocks over one week, of the bootstrap method. Like the Monte Carlo, we want to simulate each stock (in the portfolio) forward in time. If today is time t, then we want to simulate the stock on t+1, t+2, t+3, etc. The key difference is: The Monte Carlo uses an algorithm (e.g., geometric Brownian motion) to simulate the stock on t+1. In Monte Carlo Simulation, the randomness is applied in the algorithm; it informs the stochastic process.

But the bootstrap does not have an algorithm. The bootstrap randomizes the selection of a historical period (a day within the historical window). Once that historical day is selected, the cross-section of returns (the vector = the daily return for each stock in the portfolio) is used to simulate the portfolio going forward.

*Thanks to David from Bionic Turtle for this video.*

## Data Science in Finance: 9-Book Bundle

Master R and Python for financial data science with our comprehensive bundle of 9 ebooks.

### What's Included:

- Getting Started with R
- R Programming for Data Science
- Data Visualization with R
- Financial Time Series Analysis with R
- Quantitative Trading Strategies with R
- Derivatives with R
- Credit Risk Modelling With R
- Python for Data Science
- Machine Learning in Finance using Python

Each book includes PDFs, explanations, instructions, data files, and R code for all examples.

Get the Bundle for $39 (Regular $57)## Free Guides - Getting Started with R and Python

Enter your name and email address below and we will email you the guides for R programming and Python.