close Warning: Can't synchronize with repository "(default)" (/var/svn/mms does not appear to be a Subversion repository.). Look in the Trac log for more information.

Ticket #329: ej_rv_cov.tol

File ej_rv_cov.tol, 904 bytes (added by Pedro Gea, 12 years ago)
Line 
1#Require RandVar;
2
3Date begin = y2000;
4Date end = y2000m12;
5Serie mean = SubSer(Rand(0, 3, Monthly), begin, end);
6
7RandVar::@Serie.Normal serieN = RandVar::@Serie.Normal::Default(mean, 0.5);
8Matrix serieN::GetCovariance(?);
9Matrix serieN::GetCorrelation(?);
10
11RandVar::@Serie.BoxCoxNormal serieB = RandVar::@Serie.BoxCoxNormal
12  ::Default(0, 0, mean, mean*0+0.5);
13Matrix serieB::GetCovariance(?);
14Matrix serieB::GetCorrelation(?);
15
16RandVar::@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));
20Matrix serieA::GetCovariance(?);
21Matrix serieA::GetCorrelation(?);
22
23RandVar::@Serie.Sample serieS = RandVar::@Serie.Sample::Default(
24  For(1, 1000, Serie (Real i) { serieB::GetExperiment(?) })
25);
26Matrix serieS::GetCovariance(?);
27Matrix serieS::GetCorrelation(?);
28
29