Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_decomposeloess.wasp
Title produced by softwareDecomposition by Loess
Date of computationThu, 15 Dec 2016 11:18:20 +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/15/t1481797503gy68t3bykz3s2nz.htm/, Retrieved Fri, 03 May 2024 11:32:38 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=299824, Retrieved Fri, 03 May 2024 11:32:38 +0000
QR Codes:

Original text written by user:sezonaliteit 6
IsPrivate?No (this computation is public)
User-defined keywordsf1competitie decompositieLoess
Estimated Impact58
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Decomposition by Loess] [Decomposition by ...] [2016-12-15 10:18:20] [d92250bd36540c2281a4ec15b45df1dd] [Current]
Feedback Forum

Post a new message
Dataseries X:
649
655
618
640
707
730
768
753
773
797
810
794
809
828
828
849
865
879
908
961




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=299824&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=299824&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=299824&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







Seasonal Decomposition by Loess - Parameters
ComponentWindowDegreeJump
Seasonal201021
Trend1112
Low-pass711

\begin{tabular}{lllllllll}
\hline
Seasonal Decomposition by Loess - Parameters \tabularnewline
Component & Window & Degree & Jump \tabularnewline
Seasonal & 201 & 0 & 21 \tabularnewline
Trend & 11 & 1 & 2 \tabularnewline
Low-pass & 7 & 1 & 1 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=299824&T=1

[TABLE]
[ROW][C]Seasonal Decomposition by Loess - Parameters[/C][/ROW]
[ROW][C]Component[/C][C]Window[/C][C]Degree[/C][C]Jump[/C][/ROW]
[ROW][C]Seasonal[/C][C]201[/C][C]0[/C][C]21[/C][/ROW]
[ROW][C]Trend[/C][C]11[/C][C]1[/C][C]2[/C][/ROW]
[ROW][C]Low-pass[/C][C]7[/C][C]1[/C][C]1[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=299824&T=1

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

As an alternative you can also use a QR Code:  

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

Seasonal Decomposition by Loess - Parameters
ComponentWindowDegreeJump
Seasonal201021
Trend1112
Low-pass711







Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
1649667.74704226574112.5243494664966617.72860826776218.7470422657411
2655660.22154523594112.4058164710971637.3726382929615.22154523594133
3618597.041788089854-18.0584564080147657.016668318161-20.9582119101459
4640613.982639051384-10.6528705384176676.670231487033-26.0173609486155
5707711.2568834313376.41932191275739696.3237946559064.25688343133709
6730744.194003160998-2.63823571295393718.44423255195614.1940031609984
7768782.91098008549812.5243494664966740.56467044800514.910980085498
8753735.32517922217312.4058164710971758.26900430673-17.6748207778272
9773788.08511824256-18.0584564080147775.97333816545515.08511824256
10797818.686262376027-10.6528705384176785.9666081623921.6862623760273
11810817.6207999279176.41932191275739795.9598781593267.62079992791666
12794785.115525589479-2.63823571295393805.522710123475-8.88447441052108
13809790.39010844587912.5243494664966815.085542087624-18.6098915541205
14828817.57610264095812.4058164710971826.018080887945-10.4238973590421
15828837.107836719749-18.0584564080147836.9506196882669.10783671974855
16849854.22477922035-10.6528705384176854.4280913180685.22477922034977
17865851.6751151393736.41932191275739871.905562947869-13.3248848606268
18879870.35749524586-2.63823571295393890.280740467094-8.64250475414042
19908894.81973254718412.5243494664966908.655917986319-13.180267452816
20961982.34949473761812.4058164710971927.24468879128421.3494947376184

\begin{tabular}{lllllllll}
\hline
Seasonal Decomposition by Loess - Time Series Components \tabularnewline
t & Observed & Fitted & Seasonal & Trend & Remainder \tabularnewline
1 & 649 & 667.747042265741 & 12.5243494664966 & 617.728608267762 & 18.7470422657411 \tabularnewline
2 & 655 & 660.221545235941 & 12.4058164710971 & 637.372638292961 & 5.22154523594133 \tabularnewline
3 & 618 & 597.041788089854 & -18.0584564080147 & 657.016668318161 & -20.9582119101459 \tabularnewline
4 & 640 & 613.982639051384 & -10.6528705384176 & 676.670231487033 & -26.0173609486155 \tabularnewline
5 & 707 & 711.256883431337 & 6.41932191275739 & 696.323794655906 & 4.25688343133709 \tabularnewline
6 & 730 & 744.194003160998 & -2.63823571295393 & 718.444232551956 & 14.1940031609984 \tabularnewline
7 & 768 & 782.910980085498 & 12.5243494664966 & 740.564670448005 & 14.910980085498 \tabularnewline
8 & 753 & 735.325179222173 & 12.4058164710971 & 758.26900430673 & -17.6748207778272 \tabularnewline
9 & 773 & 788.08511824256 & -18.0584564080147 & 775.973338165455 & 15.08511824256 \tabularnewline
10 & 797 & 818.686262376027 & -10.6528705384176 & 785.96660816239 & 21.6862623760273 \tabularnewline
11 & 810 & 817.620799927917 & 6.41932191275739 & 795.959878159326 & 7.62079992791666 \tabularnewline
12 & 794 & 785.115525589479 & -2.63823571295393 & 805.522710123475 & -8.88447441052108 \tabularnewline
13 & 809 & 790.390108445879 & 12.5243494664966 & 815.085542087624 & -18.6098915541205 \tabularnewline
14 & 828 & 817.576102640958 & 12.4058164710971 & 826.018080887945 & -10.4238973590421 \tabularnewline
15 & 828 & 837.107836719749 & -18.0584564080147 & 836.950619688266 & 9.10783671974855 \tabularnewline
16 & 849 & 854.22477922035 & -10.6528705384176 & 854.428091318068 & 5.22477922034977 \tabularnewline
17 & 865 & 851.675115139373 & 6.41932191275739 & 871.905562947869 & -13.3248848606268 \tabularnewline
18 & 879 & 870.35749524586 & -2.63823571295393 & 890.280740467094 & -8.64250475414042 \tabularnewline
19 & 908 & 894.819732547184 & 12.5243494664966 & 908.655917986319 & -13.180267452816 \tabularnewline
20 & 961 & 982.349494737618 & 12.4058164710971 & 927.244688791284 & 21.3494947376184 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=299824&T=2

[TABLE]
[ROW][C]Seasonal Decomposition by Loess - Time Series Components[/C][/ROW]
[ROW][C]t[/C][C]Observed[/C][C]Fitted[/C][C]Seasonal[/C][C]Trend[/C][C]Remainder[/C][/ROW]
[ROW][C]1[/C][C]649[/C][C]667.747042265741[/C][C]12.5243494664966[/C][C]617.728608267762[/C][C]18.7470422657411[/C][/ROW]
[ROW][C]2[/C][C]655[/C][C]660.221545235941[/C][C]12.4058164710971[/C][C]637.372638292961[/C][C]5.22154523594133[/C][/ROW]
[ROW][C]3[/C][C]618[/C][C]597.041788089854[/C][C]-18.0584564080147[/C][C]657.016668318161[/C][C]-20.9582119101459[/C][/ROW]
[ROW][C]4[/C][C]640[/C][C]613.982639051384[/C][C]-10.6528705384176[/C][C]676.670231487033[/C][C]-26.0173609486155[/C][/ROW]
[ROW][C]5[/C][C]707[/C][C]711.256883431337[/C][C]6.41932191275739[/C][C]696.323794655906[/C][C]4.25688343133709[/C][/ROW]
[ROW][C]6[/C][C]730[/C][C]744.194003160998[/C][C]-2.63823571295393[/C][C]718.444232551956[/C][C]14.1940031609984[/C][/ROW]
[ROW][C]7[/C][C]768[/C][C]782.910980085498[/C][C]12.5243494664966[/C][C]740.564670448005[/C][C]14.910980085498[/C][/ROW]
[ROW][C]8[/C][C]753[/C][C]735.325179222173[/C][C]12.4058164710971[/C][C]758.26900430673[/C][C]-17.6748207778272[/C][/ROW]
[ROW][C]9[/C][C]773[/C][C]788.08511824256[/C][C]-18.0584564080147[/C][C]775.973338165455[/C][C]15.08511824256[/C][/ROW]
[ROW][C]10[/C][C]797[/C][C]818.686262376027[/C][C]-10.6528705384176[/C][C]785.96660816239[/C][C]21.6862623760273[/C][/ROW]
[ROW][C]11[/C][C]810[/C][C]817.620799927917[/C][C]6.41932191275739[/C][C]795.959878159326[/C][C]7.62079992791666[/C][/ROW]
[ROW][C]12[/C][C]794[/C][C]785.115525589479[/C][C]-2.63823571295393[/C][C]805.522710123475[/C][C]-8.88447441052108[/C][/ROW]
[ROW][C]13[/C][C]809[/C][C]790.390108445879[/C][C]12.5243494664966[/C][C]815.085542087624[/C][C]-18.6098915541205[/C][/ROW]
[ROW][C]14[/C][C]828[/C][C]817.576102640958[/C][C]12.4058164710971[/C][C]826.018080887945[/C][C]-10.4238973590421[/C][/ROW]
[ROW][C]15[/C][C]828[/C][C]837.107836719749[/C][C]-18.0584564080147[/C][C]836.950619688266[/C][C]9.10783671974855[/C][/ROW]
[ROW][C]16[/C][C]849[/C][C]854.22477922035[/C][C]-10.6528705384176[/C][C]854.428091318068[/C][C]5.22477922034977[/C][/ROW]
[ROW][C]17[/C][C]865[/C][C]851.675115139373[/C][C]6.41932191275739[/C][C]871.905562947869[/C][C]-13.3248848606268[/C][/ROW]
[ROW][C]18[/C][C]879[/C][C]870.35749524586[/C][C]-2.63823571295393[/C][C]890.280740467094[/C][C]-8.64250475414042[/C][/ROW]
[ROW][C]19[/C][C]908[/C][C]894.819732547184[/C][C]12.5243494664966[/C][C]908.655917986319[/C][C]-13.180267452816[/C][/ROW]
[ROW][C]20[/C][C]961[/C][C]982.349494737618[/C][C]12.4058164710971[/C][C]927.244688791284[/C][C]21.3494947376184[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=299824&T=2

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

As an alternative you can also use a QR Code:  

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

Seasonal Decomposition by Loess - Time Series Components
tObservedFittedSeasonalTrendRemainder
1649667.74704226574112.5243494664966617.72860826776218.7470422657411
2655660.22154523594112.4058164710971637.3726382929615.22154523594133
3618597.041788089854-18.0584564080147657.016668318161-20.9582119101459
4640613.982639051384-10.6528705384176676.670231487033-26.0173609486155
5707711.2568834313376.41932191275739696.3237946559064.25688343133709
6730744.194003160998-2.63823571295393718.44423255195614.1940031609984
7768782.91098008549812.5243494664966740.56467044800514.910980085498
8753735.32517922217312.4058164710971758.26900430673-17.6748207778272
9773788.08511824256-18.0584564080147775.97333816545515.08511824256
10797818.686262376027-10.6528705384176785.9666081623921.6862623760273
11810817.6207999279176.41932191275739795.9598781593267.62079992791666
12794785.115525589479-2.63823571295393805.522710123475-8.88447441052108
13809790.39010844587912.5243494664966815.085542087624-18.6098915541205
14828817.57610264095812.4058164710971826.018080887945-10.4238973590421
15828837.107836719749-18.0584564080147836.9506196882669.10783671974855
16849854.22477922035-10.6528705384176854.4280913180685.22477922034977
17865851.6751151393736.41932191275739871.905562947869-13.3248848606268
18879870.35749524586-2.63823571295393890.280740467094-8.64250475414042
19908894.81973254718412.5243494664966908.655917986319-13.180267452816
20961982.34949473761812.4058164710971927.24468879128421.3494947376184



Parameters (Session):
par4 = 12 ;
Parameters (R input):
par1 = 6 ; par2 = periodic ; par3 = 0 ; par4 = ; par5 = 1 ; par6 = ; par7 = 1 ; par8 = FALSE ;
R code (references can be found in the software module):
par8 <- 'FALSE'
par7 <- '1'
par6 <- ''
par5 <- '1'
par4 <- ''
par3 <- '0'
par2 <- 'periodic'
par1 <- '12'
par1 <- as.numeric(par1) #seasonal period
if (par2 != 'periodic') par2 <- as.numeric(par2) #s.window
par3 <- as.numeric(par3) #s.degree
if (par4 == '') par4 <- NULL else par4 <- as.numeric(par4)#t.window
par5 <- as.numeric(par5)#t.degree
if (par6 != '') par6 <- as.numeric(par6)#l.window
par7 <- as.numeric(par7)#l.degree
if (par8 == 'FALSE') par8 <- FALSE else par9 <- TRUE #robust
nx <- length(x)
x <- ts(x,frequency=par1)
if (par6 != '') {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.window=par6, l.degree=par7, robust=par8)
} else {
m <- stl(x,s.window=par2, s.degree=par3, t.window=par4, t.degre=par5, l.degree=par7, robust=par8)
}
m$time.series
m$win
m$deg
m$jump
m$inner
m$outer
bitmap(file='test1.png')
plot(m,main=main)
dev.off()
mylagmax <- nx/2
bitmap(file='test2.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(x),lag.max = mylagmax,main='Observed')
acf(as.numeric(m$time.series[,'trend']),na.action=na.pass,lag.max = mylagmax,main='Trend')
acf(as.numeric(m$time.series[,'seasonal']),na.action=na.pass,lag.max = mylagmax,main='Seasonal')
acf(as.numeric(m$time.series[,'remainder']),na.action=na.pass,lag.max = mylagmax,main='Remainder')
par(op)
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
spectrum(as.numeric(x),main='Observed')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
spectrum(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
bitmap(file='test4.png')
op <- par(mfrow = c(2,2))
cpgram(as.numeric(x),main='Observed')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'trend']),'trend']),main='Trend')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'seasonal']),'seasonal']),main='Seasonal')
cpgram(as.numeric(m$time.series[!is.na(m$time.series[,'remainder']),'remainder']),main='Remainder')
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Seasonal Decomposition by Loess - Parameters',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Component',header=TRUE)
a<-table.element(a,'Window',header=TRUE)
a<-table.element(a,'Degree',header=TRUE)
a<-table.element(a,'Jump',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,m$win['s'])
a<-table.element(a,m$deg['s'])
a<-table.element(a,m$jump['s'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,m$win['t'])
a<-table.element(a,m$deg['t'])
a<-table.element(a,m$jump['t'])
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Low-pass',header=TRUE)
a<-table.element(a,m$win['l'])
a<-table.element(a,m$deg['l'])
a<-table.element(a,m$jump['l'])
a<-table.row.end(a)
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Seasonal Decomposition by Loess - Time Series Components',6,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Seasonal',header=TRUE)
a<-table.element(a,'Trend',header=TRUE)
a<-table.element(a,'Remainder',header=TRUE)
a<-table.row.end(a)
for (i in 1:nx) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,x[i])
a<-table.element(a,x[i]+m$time.series[i,'remainder'])
a<-table.element(a,m$time.series[i,'seasonal'])
a<-table.element(a,m$time.series[i,'trend'])
a<-table.element(a,m$time.series[i,'remainder'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')