public class MRSimParamSP500 extends Object implements MRSimParam
Using this example. Provides shared S&P 500 simulation settings for the Kagi basket examples, including the Yahoo price-matrix factory. Treat the embedded universe and dates as historical example settings, not a point-in-time constituent database.
Model and publication. Sparse basket selection is the research background; this class is configuration rather than a portfolio-selection algorithm.
Implementation in this tutorial. Its overrides choose the stock pool, Yahoo price-matrix factory, estimation/trading windows, basket count and size. Changing these alters the experiment, so an S&P 500 configuration should not be described as reproducing the paper’s swap-rate or FX datasets.
| Constructor and Description |
|---|
MRSimParamSP500() |
| Modifier and Type | Method and Description |
|---|---|
int |
basketCount() |
Period |
basketRenewalPeriod() |
int |
basketSize() |
double |
covPenalty() |
Currency |
currency() |
Exchange |
exchange() |
Period |
inSamplePeriodForBasketSelection() |
Period |
inSamplePeriodForClustering() |
PriceMatrixFactory<String> |
priceMatrixFactory() |
List<String> |
symbolPool() |
dev.nm.misc.datastructure.time.LocalDateTimeInterval |
tradingInterval() |
public List<String> symbolPool()
symbolPool in interface MRSimParampublic int basketCount()
basketCount in interface MRSimParampublic int basketSize()
basketSize in interface MRSimParampublic Currency currency()
currency in interface MRSimParampublic dev.nm.misc.datastructure.time.LocalDateTimeInterval tradingInterval()
tradingInterval in interface MRSimParampublic Period basketRenewalPeriod()
basketRenewalPeriod in interface MRSimParampublic Period inSamplePeriodForClustering()
inSamplePeriodForClustering in interface MRSimParampublic Period inSamplePeriodForBasketSelection()
inSamplePeriodForBasketSelection in interface MRSimParampublic double covPenalty()
covPenalty in interface MRSimParampublic PriceMatrixFactory<String> priceMatrixFactory()
priceMatrixFactory in interface MRSimParampublic Exchange exchange()
exchange in interface MRSimParamCopyright © 2026. All rights reserved.