Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_variancereduction.wasp
Title produced by softwareVariance Reduction Matrix
Date of computationThu, 22 Dec 2016 20:14:43 +0100
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2016/Dec/22/t1482434125i6tmanad9orm9y6.htm/, Retrieved Sun, 28 Apr 2024 22:10:12 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=302641, Retrieved Sun, 28 Apr 2024 22:10:12 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact69
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Variance Reduction Matrix] [X] [2016-12-22 19:14:43] [33f2a624cfeb2efbc43d2c77b7c0dad6] [Current]
Feedback Forum

Post a new message
Dataseries X:
4870
4240
3800
3990
3290
4710
4210
4440
5040
5070
4900
4790
3890
3450
4080
3280
3130
3310
3860
4570
5110
4820
4250
4210
3610
3710
2760
2710
2710
3290
2670
3620
4440
3910
4610
3760
3460
3020
3360
2610
2670
2480
2610
3320
2800
3030
3740
3060
3040
2620
3190
2750
2630
3290
2430
2730
3690
2980
2590
3360
2370
2200
2330
2370
2200
2430
2400
2840
2870
3320
3090
2680
2420
2550
2420
2430
2330
2520
2630
2570
2800
2680
2430
2790
2420
2750
2350
2330
2290
2330
2490
2480
2760
2590
2950
2570
2960
2540
2400
2470
2390
2310
2470
2490
2510
2690
3060
2690
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time1 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302641&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]1 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=302641&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302641&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R ServerBig Analytics Cloud Computing Center







Variance Reduction Matrix
Warning: NAs were removed from the time series! The results shown below will only be correct if the NAs are all located at the start and/or end of the time series.
V(Y[t],d=0,D=0)619102Range2910Trim Var.429921
V(Y[t],d=1,D=0)217785Range2410Trim Var.125597
V(Y[t],d=2,D=0)564177Range4040Trim Var.328664
V(Y[t],d=3,D=0)1851790Range7050Trim Var.1073880
V(Y[t],d=0,D=1)587079Range3600Trim Var.312966
V(Y[t],d=1,D=1)515945Range4000Trim Var.259024
V(Y[t],d=2,D=1)1227650Range5610Trim Var.648742
V(Y[t],d=3,D=1)3873970Range10460Trim Var.2031570
V(Y[t],d=0,D=2)1710940Range6810Trim Var.958081
V(Y[t],d=1,D=2)1486380Range6210Trim Var.833213
V(Y[t],d=2,D=2)3518810Range8730Trim Var.2227960
V(Y[t],d=3,D=2)11024000Range14860Trim Var.6796940

\begin{tabular}{lllllllll}
\hline
Variance Reduction Matrix \tabularnewline
Warning: NAs were removed from the time series! The results shown below will only be correct if the NAs are all located at the start and/or end of the time series. \tabularnewline
V(Y[t],d=0,D=0) & 619102 & Range & 2910 & Trim Var. & 429921 \tabularnewline
V(Y[t],d=1,D=0) & 217785 & Range & 2410 & Trim Var. & 125597 \tabularnewline
V(Y[t],d=2,D=0) & 564177 & Range & 4040 & Trim Var. & 328664 \tabularnewline
V(Y[t],d=3,D=0) & 1851790 & Range & 7050 & Trim Var. & 1073880 \tabularnewline
V(Y[t],d=0,D=1) & 587079 & Range & 3600 & Trim Var. & 312966 \tabularnewline
V(Y[t],d=1,D=1) & 515945 & Range & 4000 & Trim Var. & 259024 \tabularnewline
V(Y[t],d=2,D=1) & 1227650 & Range & 5610 & Trim Var. & 648742 \tabularnewline
V(Y[t],d=3,D=1) & 3873970 & Range & 10460 & Trim Var. & 2031570 \tabularnewline
V(Y[t],d=0,D=2) & 1710940 & Range & 6810 & Trim Var. & 958081 \tabularnewline
V(Y[t],d=1,D=2) & 1486380 & Range & 6210 & Trim Var. & 833213 \tabularnewline
V(Y[t],d=2,D=2) & 3518810 & Range & 8730 & Trim Var. & 2227960 \tabularnewline
V(Y[t],d=3,D=2) & 11024000 & Range & 14860 & Trim Var. & 6796940 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=302641&T=1

[TABLE]
[ROW][C]Variance Reduction Matrix[/C][/ROW]
[ROW][C]Warning: NAs were removed from the time series! The results shown below will only be correct if the NAs are all located at the start and/or end of the time series.[/C][/ROW]
[ROW][C]V(Y[t],d=0,D=0)[/C][C]619102[/C][C]Range[/C][C]2910[/C][C]Trim Var.[/C][C]429921[/C][/ROW]
[ROW][C]V(Y[t],d=1,D=0)[/C][C]217785[/C][C]Range[/C][C]2410[/C][C]Trim Var.[/C][C]125597[/C][/ROW]
[ROW][C]V(Y[t],d=2,D=0)[/C][C]564177[/C][C]Range[/C][C]4040[/C][C]Trim Var.[/C][C]328664[/C][/ROW]
[ROW][C]V(Y[t],d=3,D=0)[/C][C]1851790[/C][C]Range[/C][C]7050[/C][C]Trim Var.[/C][C]1073880[/C][/ROW]
[ROW][C]V(Y[t],d=0,D=1)[/C][C]587079[/C][C]Range[/C][C]3600[/C][C]Trim Var.[/C][C]312966[/C][/ROW]
[ROW][C]V(Y[t],d=1,D=1)[/C][C]515945[/C][C]Range[/C][C]4000[/C][C]Trim Var.[/C][C]259024[/C][/ROW]
[ROW][C]V(Y[t],d=2,D=1)[/C][C]1227650[/C][C]Range[/C][C]5610[/C][C]Trim Var.[/C][C]648742[/C][/ROW]
[ROW][C]V(Y[t],d=3,D=1)[/C][C]3873970[/C][C]Range[/C][C]10460[/C][C]Trim Var.[/C][C]2031570[/C][/ROW]
[ROW][C]V(Y[t],d=0,D=2)[/C][C]1710940[/C][C]Range[/C][C]6810[/C][C]Trim Var.[/C][C]958081[/C][/ROW]
[ROW][C]V(Y[t],d=1,D=2)[/C][C]1486380[/C][C]Range[/C][C]6210[/C][C]Trim Var.[/C][C]833213[/C][/ROW]
[ROW][C]V(Y[t],d=2,D=2)[/C][C]3518810[/C][C]Range[/C][C]8730[/C][C]Trim Var.[/C][C]2227960[/C][/ROW]
[ROW][C]V(Y[t],d=3,D=2)[/C][C]11024000[/C][C]Range[/C][C]14860[/C][C]Trim Var.[/C][C]6796940[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=302641&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=302641&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Variance Reduction Matrix
Warning: NAs were removed from the time series! The results shown below will only be correct if the NAs are all located at the start and/or end of the time series.
V(Y[t],d=0,D=0)619102Range2910Trim Var.429921
V(Y[t],d=1,D=0)217785Range2410Trim Var.125597
V(Y[t],d=2,D=0)564177Range4040Trim Var.328664
V(Y[t],d=3,D=0)1851790Range7050Trim Var.1073880
V(Y[t],d=0,D=1)587079Range3600Trim Var.312966
V(Y[t],d=1,D=1)515945Range4000Trim Var.259024
V(Y[t],d=2,D=1)1227650Range5610Trim Var.648742
V(Y[t],d=3,D=1)3873970Range10460Trim Var.2031570
V(Y[t],d=0,D=2)1710940Range6810Trim Var.958081
V(Y[t],d=1,D=2)1486380Range6210Trim Var.833213
V(Y[t],d=2,D=2)3518810Range8730Trim Var.2227960
V(Y[t],d=3,D=2)11024000Range14860Trim Var.6796940



Parameters (Session):
par1 = 4 ;
Parameters (R input):
par1 = 4 ;
R code (references can be found in the software module):
par1 <- as.numeric(par1)
n.orig <- length(x)
x <- na.omit(x)
n <- length(x)
sx <- sort(x)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Variance Reduction Matrix',6,TRUE)
a<-table.row.end(a)
if(n.orig!=n) {
a<-table.row.start(a)
a<-table.element(a,'Warning: NAs were removed from the time series! The results shown below will only be correct if the NAs are all located at the start and/or end of the time series.',6,F)
a<-table.row.end(a)
}
for (bigd in 0:2) {
for (smalld in 0:3) {
mylabel <- 'V(Y[t],d='
mylabel <- paste(mylabel,as.character(smalld),sep='')
mylabel <- paste(mylabel,',D=',sep='')
mylabel <- paste(mylabel,as.character(bigd),sep='')
mylabel <- paste(mylabel,')',sep='')
a<-table.row.start(a)
a<-table.element(a,mylabel,header=TRUE)
myx <- x
if (smalld > 0) myx <- diff(myx,lag=1,differences=smalld)
if (bigd > 0) myx <- diff(myx,lag=par1,differences=bigd)
a<-table.element(a,signif(var(myx), digits=6))
a<-table.element(a,'Range',header=TRUE)
a<-table.element(a,signif(max(myx)-min(myx), digits=6))
a<-table.element(a,'Trim Var.',header=TRUE)
smyx <- sort(myx)
sn <- length(smyx)
a<-table.element(a,signif(var(smyx[smyx>quantile(smyx,0.05) & smyxa<-table.row.end(a)
}
}
a<-table.end(a)
table.save(a,file='mytable.tab')
bitmap(file='pic0.png')
op <- par(mfrow=c(2,2))
plot(x,type='l',xlab='time',ylab='value',main='d=0, D=0')
plot(diff(x,lag=1,differences=1),type='l',xlab='time',ylab='value',main='d=1, D=0')
plot(diff(x,lag=par1,differences=1),type='l',xlab='time',ylab='value',main='d=0, D=1')
plot(diff(diff(x,lag=1,differences=1),lag=par1,differences=1),type='l',xlab='time',ylab='value',main='d=1, D=1')
par(op)
dev.off()