| 1 | #Require RandVar; |
|---|
| 2 | |
|---|
| 3 | Date begin = y2000; |
|---|
| 4 | Date end = y2000m12; |
|---|
| 5 | Serie mean = SubSer(Rand(0, 3, Monthly), begin, end); |
|---|
| 6 | |
|---|
| 7 | RandVar::@Serie.Normal serieN = RandVar::@Serie.Normal::Default(mean, 0.5); |
|---|
| 8 | Matrix serieN::GetCovariance(?); |
|---|
| 9 | Matrix serieN::GetCorrelation(?); |
|---|
| 10 | |
|---|
| 11 | RandVar::@Serie.BoxCoxNormal serieB = RandVar::@Serie.BoxCoxNormal |
|---|
| 12 | ::Default(0, 0, mean, mean*0+0.5); |
|---|
| 13 | Matrix serieB::GetCovariance(?); |
|---|
| 14 | Matrix serieB::GetCorrelation(?); |
|---|
| 15 | |
|---|
| 16 | RandVar::@Serie.ARIMA serieA = RandVar::@Serie.ARIMA |
|---|
| 17 | ::Initials([[ |
|---|
| 18 | ARIMAStruct(1, 1-0.9*B, 1-0.6*B^6, 1) |
|---|
| 19 | ]], 0.5, begin, end, Rand(1, 2, Monthly), Gaussian(0, 0.5, Monthly)); |
|---|
| 20 | Matrix serieA::GetCovariance(?); |
|---|
| 21 | Matrix serieA::GetCorrelation(?); |
|---|
| 22 | |
|---|
| 23 | RandVar::@Serie.Sample serieS = RandVar::@Serie.Sample::Default( |
|---|
| 24 | For(1, 1000, Serie (Real i) { serieB::GetExperiment(?) }) |
|---|
| 25 | ); |
|---|
| 26 | Matrix serieS::GetCovariance(?); |
|---|
| 27 | Matrix serieS::GetCorrelation(?); |
|---|
| 28 | |
|---|
| 29 | |
|---|