Home » date » 2011 » May » 20 »

datareeks - aanvulling op de gemiddeldegrafieken voor tijdreeksen gemiddelde gokuitgaven per dag - Frederik Verbraken

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 20 May 2011 11:19:06 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/20/t1305890215pie47ywn8kipruy.htm/, Retrieved Fri, 20 May 2011 13:16:58 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W11
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5.81 5.76 5.99 6.12 6.03 6.25 5.80 5.67 5.89 5.91 5.86 6.07 6.27 6.68 6.77 6.71 6.62 6.50 5.89 6.05 6.43 6.47 6.62 6.77 6.70 6.95 6.73 7.07 7.28 7.32 6.76 6.93 6.99 7.16 7.28 7.08 7.34 7.87 6.28 6.30 6.36 6.28 5.89 6.04 5.96 6.10 6.26 6.02 6.25 6.41 6.22 6.57 6.18 6.26 6.10 6.02 6.06 6.35 6.21 6.48 6.74 6.53 6.80 6.75 6.56 6.66 6.18 6.40 6.43 6.54 6.44 6.64 6.82 6.97 7.00 6.91 6.74 6.98 6.37 6.56 6.63 6.87 6.68 6.75 6.84 7.15 7.09 6.97 7.15
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ www.wessa.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.7647627.21480
20.6344735.98560
30.5347365.04471e-06
40.4092453.86080.000107
50.2921872.75650.003544
60.2400242.26440.01299
70.1755511.65610.050608
80.2042131.92650.028614
90.1649661.55630.061595
100.0920720.86860.193701
110.0923690.87140.192939
120.0997780.94130.174548
13-0.033662-0.31760.375778
14-0.051189-0.48290.315169
15-0.171048-1.61370.05507
16-0.226185-2.13380.017804
17-0.270701-2.55380.006179
18-0.344038-3.24560.000826
19-0.369464-3.48550.000382
20-0.303005-2.85850.00265
21-0.321224-3.03040.001599
22-0.294297-2.77640.00335
23-0.234133-2.20880.014878
24-0.250016-2.35860.010265
25-0.299612-2.82650.002905
26-0.297372-2.80540.003086
27-0.377235-3.55883e-04
28-0.322662-3.0440.001535
29-0.346445-3.26840.000769
30-0.333413-3.14540.001128
31-0.26009-2.45370.008044
32-0.192796-1.81880.03615
33-0.176819-1.66810.049405
34-0.077279-0.72910.233942
35-0.003437-0.03240.487105
360.0580960.54810.292507
370.1183791.11680.133545
380.1578021.48870.07005
390.1278611.20620.115461
400.1611841.52060.065952
410.0961210.90680.18348
420.0977090.92180.179565
430.1096611.03450.151844
440.1451661.36950.087146
450.1680831.58570.058178
460.2061011.94440.027506
470.2331072.19910.01523
480.2770792.6140.005254


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7647627.21480
20.1195051.12740.1313
30.0393660.37140.35562
4-0.091596-0.86410.194925
5-0.076535-0.7220.236086
60.0670170.63220.264428
7-0.02111-0.19910.421301
80.193311.82370.035779
9-0.093264-0.87990.190654
10-0.137385-1.29610.099148
110.0717540.67690.250105
120.0631630.59590.276384
13-0.274773-2.59220.005573
140.0668850.6310.26483
15-0.278568-2.6280.005058
160.0322250.3040.380914
17-0.057119-0.53890.295665
18-0.127513-1.2030.116091
190.0276830.26120.397288
200.0289540.27310.392686
21-0.040318-0.38040.352294
220.0303520.28630.387643
230.0316780.29890.382874
24-0.132322-1.24830.107593
25-0.135612-1.27940.102047
26-0.034315-0.32370.373451
27-0.076916-0.72560.234988
280.0871630.82230.206552
29-0.13884-1.30980.096815
300.0480910.45370.325577
310.0018130.01710.493198
32-0.018585-0.17530.430609
330.0117620.1110.455949
340.0447170.42190.337072
350.0756820.7140.238553
360.0514310.48520.314364
370.0275230.25960.397868
380.0861850.81310.209174
39-0.128948-1.21650.113507
40-0.0567-0.53490.297025
41-0.01619-0.15270.439475
42-0.062051-0.58540.279886
43-0.006595-0.06220.475264
440.0583740.55070.29161
45-0.033631-0.31730.375888
46-0.037251-0.35140.363052
470.1115291.05220.147787
480.026830.25310.400381
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t1305890215pie47ywn8kipruy/1jlr51305890343.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305890215pie47ywn8kipruy/1jlr51305890343.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305890215pie47ywn8kipruy/25dqo1305890343.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305890215pie47ywn8kipruy/25dqo1305890343.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305890215pie47ywn8kipruy/335rv1305890343.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305890215pie47ywn8kipruy/335rv1305890343.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
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,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by