Learn R Programming

ISLR2 (version 1.3-2)

NYSE: New York Stock Exchange Data

Description

Data consisting of the Dow Jones returns, log trading volume, and log volatility for the New York Stock Exchange over a 20 year period

Usage

Portfolio

Arguments

Format

A data frame with 6,051 observations and 6 variables:

date

Date

day_of_week

Day of the week

DJ_return

Return for Dow Jones Industrial Average

log_volume

Log of trading volume

log_volatility

Log of volatility

train

For the first 4,281 observations, this is set to TRUE

References

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

Examples

Run this code
attach(NYSE)
plot(log_volatility)

Run the code above in your browser using DataLab