Learn R Programming

ISLR (version 1.4)

Portfolio: Portfolio Data

Description

A simple simulated data set containing 100 returns for each of two assets, X and Y. The data is used to estimate the optimal fraction to invest in each asset to minimize investment risk of the combined portfolio. One can then use the Bootstrap to estimate the standard error of this estimate.

Usage

Portfolio

Arguments

Format

A data frame with 100 observations on the following 2 variables.

X

Returns for Asset X

Y

Returns for Asset Y

References

James, G., Witten, D., Hastie, T., and Tibshirani, R. (2013) An Introduction to Statistical Learning with applications in R, https://www.statlearning.com, Springer-Verlag, New York

Examples

Run this code
# NOT RUN {
summary(Portfolio)
attach(Portfolio)
plot(X,Y)
# }

Run the code above in your browser using DataLab