This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
## Registered S3 method overwritten by 'quantmod':
## method from
## as.zoo.data.frame zoo
## BIMBO CEMEX MSFT AMZN SHELL ASML
## 2011-02-01 26.00 8.75 27.99 8.61 26.49 41.18
## 2011-02-02 25.51 8.70 27.94 8.68 26.59 41.19
## 2011-02-03 25.25 8.82 27.65 8.69 26.00 40.70
## BIMBO CEMEX MSFT AMZN SHELL ASML
## 2024-01-29 79.54 14.32 409.72 161.26 29.10 804.8
## 2024-01-30 77.59 14.35 408.59 159.00 29.25 801.3
## 2024-01-31 78.26 14.27 397.58 155.20 29.07 798.2
## Expected value before 2020:
## BIMBO CEMEX MSFT AMZN SHELL ASML
## 39.22278 11.48481 59.91728 37.12680 25.92470 99.04361
## Standard deviation before 2020:
## BIMBO CEMEX MSFT AMZN SHELL ASML
## 7.547348 3.415579 34.192154 29.150172 2.355415 52.174866
## The coefficients of variation before 2020 are:
## BIMBO CEMEX MSFT AMZN SHELL ASML
## 0.1924 0.2974 0.5707 0.7852 0.0909 0.5268
## Expected value 2020 onwards:
## BIMBO CEMEX MSFT AMZN SHELL ASML
## 60.98831 10.61661 265.47430 137.71201 21.93267 513.60307
## Standard deviation 2020 onwards:
## BIMBO CEMEX MSFT AMZN SHELL ASML
## 20.488967 3.238478 56.766527 27.206144 5.982104 140.031940
## The coefficients of variation 2020 onwards:
## BIMBO CEMEX MSFT AMZN SHELL ASML
## 0.3359 0.3050 0.2138 0.1976 0.2727 0.2726