Skip to contents

Daily stock returns from the S&P500 for 1990-2011 can be used to assess whether stock activity each day is independent of the stock's behavior on previous days. We label each day as Up or Down (D) depending on whether the market was up or down that day. For example, consider the following changes in price, their new labels of up and down, and then the number of days that must be observed before each Up day.

Usage

sp500_seq

Format

A data frame with 2948 observations on the following variable.

race

a factor with levels 1, 2, 3, 4, 5, 6, and 7+

Source

Google Finance.

Examples


sp500_seq
#> # A tibble: 2,948 × 1
#>    race 
#>    <fct>
#>  1 1    
#>  2 1    
#>  3 1    
#>  4 1    
#>  5 1    
#>  6 1    
#>  7 1    
#>  8 1    
#>  9 1    
#> 10 1    
#> # ℹ 2,938 more rows