Description Usage Arguments Details Value References Examples
generates a virtual market consisting of two assets, where one remains constant and the other doubles and halfs by turns.
1 | gen_virtual_market(t, ret = "x")
|
t |
number of periods |
ret |
return method: specifies whether returns (price relatives) ( |
The virtual market is often used to illustrate the idea of online portfolio selection algorithms. For details see Cover and Gluss 1986 and Li and Hoi 2014.
Matrix with asset prices or returns (price relatives)
Li, B.; Hoi, S. Online Portfolio Selection: A Survey, ACM Comput. Surv., 2014
Cover, T. M.; Gluss, D.H. Empirical Bayes stock market portfolios, Advances in Applied Mathematics, 1986
1 2 | gen_virtual_market(10, ret="x")
gen_virtual_market(10, ret="q")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.