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 computationSat, 17 Dec 2016 15:39:39 +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/17/t14819857014jqdgue81ov8zvg.htm/, Retrieved Thu, 02 May 2024 11:14:16 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=300822, Retrieved Thu, 02 May 2024 11:14:16 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact91
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Variance Reduction Matrix] [""N2582"" var red...] [2016-12-17 14:39:39] [afe7f6443461a2cd6ee0b843643e84a9] [Current]
Feedback Forum

Post a new message
Dataseries X:
4028.8
4076.6
4125.8
4177.2
4183
4222.6
4255.8
4260.8
4279.2
4328.8
4356.6
4393
4419.4
4426.2
4467.2
4517.4
4517
4560.4
4589
4596
4621.2
4654.6
4708.6
4774.4
4824.8
4839
4869.8
4895.8
4895.8
4968.8
5010
5032.4
5054
5083.8
5117.4
5170.8
5182.2
5163.6
5212.6
5288
5303.4
5367.6
5433.8
5465.8
5493.8
5549.4
5590.2
5661.2
5699
5654.2
5671.8
5730.8
5693
5720.4
5747.8
5764.2
5783
5822.4
5836.2
5864.6
5913.4
5906.8
5954
6031.2
6011.2
6059.8
6091.6
6088
6082.2
6108
6151.4
6187
6190
6152.2
6183.8
6222.8
6165.8
6223.4
6292.8
6320.6
6344
6391.2
6443.4
6504
6520.2
6518.8
6563.8
6614
6555.6
6601.8
6632.4
6657.8
6674.4
6687
6697.6
6732
6736.4
6745.8
6805.2
6850.4
6807.2
6844.6
6850.8
6848.2
6837.8
6857.6
6900.8
6940.8
6937.4
6950.4
6978.8
6997.8
6934.8
6946.8
6956.2
6968.2
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 time0 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 time0 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=300822&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]0 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=300822&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=300822&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 time0 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)815238Range2969Trim Var.672595
V(Y[t],d=1,D=0)805.703Range140.2Trim Var.384.359
V(Y[t],d=2,D=0)1674.44Range223.2Trim Var.875.38
V(Y[t],d=3,D=0)4777.2Range351.4Trim Var.2508.5
V(Y[t],d=0,D=1)2815.01Range250.8Trim Var.1694.73
V(Y[t],d=1,D=1)1433.88Range195.8Trim Var.860.23
V(Y[t],d=2,D=1)3354.78Range273Trim Var.2152.55
V(Y[t],d=3,D=1)10105.5Range454.6Trim Var.6321.03
V(Y[t],d=0,D=2)4620.24Range413.6Trim Var.2778.63
V(Y[t],d=1,D=2)4391.21Range302.2Trim Var.2814.19
V(Y[t],d=2,D=2)10424.1Range504.2Trim Var.6532.85
V(Y[t],d=3,D=2)31339.5Range736.8Trim Var.20177.5

\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) & 815238 & Range & 2969 & Trim Var. & 672595 \tabularnewline
V(Y[t],d=1,D=0) & 805.703 & Range & 140.2 & Trim Var. & 384.359 \tabularnewline
V(Y[t],d=2,D=0) & 1674.44 & Range & 223.2 & Trim Var. & 875.38 \tabularnewline
V(Y[t],d=3,D=0) & 4777.2 & Range & 351.4 & Trim Var. & 2508.5 \tabularnewline
V(Y[t],d=0,D=1) & 2815.01 & Range & 250.8 & Trim Var. & 1694.73 \tabularnewline
V(Y[t],d=1,D=1) & 1433.88 & Range & 195.8 & Trim Var. & 860.23 \tabularnewline
V(Y[t],d=2,D=1) & 3354.78 & Range & 273 & Trim Var. & 2152.55 \tabularnewline
V(Y[t],d=3,D=1) & 10105.5 & Range & 454.6 & Trim Var. & 6321.03 \tabularnewline
V(Y[t],d=0,D=2) & 4620.24 & Range & 413.6 & Trim Var. & 2778.63 \tabularnewline
V(Y[t],d=1,D=2) & 4391.21 & Range & 302.2 & Trim Var. & 2814.19 \tabularnewline
V(Y[t],d=2,D=2) & 10424.1 & Range & 504.2 & Trim Var. & 6532.85 \tabularnewline
V(Y[t],d=3,D=2) & 31339.5 & Range & 736.8 & Trim Var. & 20177.5 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=300822&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]815238[/C][C]Range[/C][C]2969[/C][C]Trim Var.[/C][C]672595[/C][/ROW]
[ROW][C]V(Y[t],d=1,D=0)[/C][C]805.703[/C][C]Range[/C][C]140.2[/C][C]Trim Var.[/C][C]384.359[/C][/ROW]
[ROW][C]V(Y[t],d=2,D=0)[/C][C]1674.44[/C][C]Range[/C][C]223.2[/C][C]Trim Var.[/C][C]875.38[/C][/ROW]
[ROW][C]V(Y[t],d=3,D=0)[/C][C]4777.2[/C][C]Range[/C][C]351.4[/C][C]Trim Var.[/C][C]2508.5[/C][/ROW]
[ROW][C]V(Y[t],d=0,D=1)[/C][C]2815.01[/C][C]Range[/C][C]250.8[/C][C]Trim Var.[/C][C]1694.73[/C][/ROW]
[ROW][C]V(Y[t],d=1,D=1)[/C][C]1433.88[/C][C]Range[/C][C]195.8[/C][C]Trim Var.[/C][C]860.23[/C][/ROW]
[ROW][C]V(Y[t],d=2,D=1)[/C][C]3354.78[/C][C]Range[/C][C]273[/C][C]Trim Var.[/C][C]2152.55[/C][/ROW]
[ROW][C]V(Y[t],d=3,D=1)[/C][C]10105.5[/C][C]Range[/C][C]454.6[/C][C]Trim Var.[/C][C]6321.03[/C][/ROW]
[ROW][C]V(Y[t],d=0,D=2)[/C][C]4620.24[/C][C]Range[/C][C]413.6[/C][C]Trim Var.[/C][C]2778.63[/C][/ROW]
[ROW][C]V(Y[t],d=1,D=2)[/C][C]4391.21[/C][C]Range[/C][C]302.2[/C][C]Trim Var.[/C][C]2814.19[/C][/ROW]
[ROW][C]V(Y[t],d=2,D=2)[/C][C]10424.1[/C][C]Range[/C][C]504.2[/C][C]Trim Var.[/C][C]6532.85[/C][/ROW]
[ROW][C]V(Y[t],d=3,D=2)[/C][C]31339.5[/C][C]Range[/C][C]736.8[/C][C]Trim Var.[/C][C]20177.5[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=300822&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=300822&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)815238Range2969Trim Var.672595
V(Y[t],d=1,D=0)805.703Range140.2Trim Var.384.359
V(Y[t],d=2,D=0)1674.44Range223.2Trim Var.875.38
V(Y[t],d=3,D=0)4777.2Range351.4Trim Var.2508.5
V(Y[t],d=0,D=1)2815.01Range250.8Trim Var.1694.73
V(Y[t],d=1,D=1)1433.88Range195.8Trim Var.860.23
V(Y[t],d=2,D=1)3354.78Range273Trim Var.2152.55
V(Y[t],d=3,D=1)10105.5Range454.6Trim Var.6321.03
V(Y[t],d=0,D=2)4620.24Range413.6Trim Var.2778.63
V(Y[t],d=1,D=2)4391.21Range302.2Trim Var.2814.19
V(Y[t],d=2,D=2)10424.1Range504.2Trim Var.6532.85
V(Y[t],d=3,D=2)31339.5Range736.8Trim Var.20177.5



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()