# R Dataset / Package ISLR / Portfolio

Documentation |
---|

On this R-data statistics page, you will find information about the Portfolio data set which pertains to Portfolio Data. The Portfolio data set is found in the ISLR R package. You can load the Portfolio data set in R by issuing the following command at the console data("Portfolio"). This will load the data into a variable called Portfolio. If R says the Portfolio data set is not found, you can try installing the package by issuing this command install.packages("ISLR") and then attempt to reload the data. If you need to download R, you can go to the R project website. You can download a CSV (comma separated values) version of the Portfolio R data set. The size of this file is about 3,638 bytes. ## Portfolio Data## DescriptionA 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. ## UsagePortfolio ## FormatA data frame with 100 observations on the following 2 variables. `X` -
Returns for Asset X `Y` -
Returns for Asset Y
## SourceSimulated data ## ReferencesGames, G., Witten, D., Hastie, T., and Tibshirani, R. (2013) ## Examplessummary(Portfolio) attach(Portfolio) plot(X,Y) -- Dataset imported from https://www.r-project.org. |

Title | Authored on | Content type |
---|---|---|

OpenIntro Statistics Dataset - dream | August 9, 2020 - 12:25 PM | Dataset |

OpenIntro Statistics Dataset - winery_cars | August 9, 2020 - 2:38 PM | Dataset |

R Dataset / Package HSAUR / toothpaste | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package HSAUR / pottery | March 9, 2018 - 1:06 PM | Dataset |

R Dataset / Package HistData / Guerry | March 9, 2018 - 1:06 PM | Dataset |

Attachment | Size |
---|---|

dataset-36515.csv | 3.55 KB |