Portfolio analysis

Create, analyze and optimize a portfolio. This will involve the following:

Choose a list of 5 investment assets. You can use stocks, bonds, or any other asset as long as you have information on returns (long enough dataset to calculate historic mean and variance of asset returns, see the next steps)
Calculate returns on these investment assets over a period of time
Calculate the mean and variance of return on each of these investment assets.
Combine these investment assets in a portfolio.
Vary proportions of assets in this portfolio to calculate risk and return of different portfolio combinations.
Optimize mean and variance of returns of this portfolio.