Home » date » 2010 » Dec » 19 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 19 Dec 2010 07:00:10 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742100yzesnw4uuhzyv3a.htm/, Retrieved Sun, 19 Dec 2010 08:01:41 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742100yzesnw4uuhzyv3a.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5 4 5 6 6 6 7 8 7 8 7 8 8 9 9 8 9 9 10 11 12 13 13 13 14 14 15 15 16 16 17 18 19 20 22 20 22 25 24 25 28 26 27 26 25 27 28 30 31 32 34 34 33 32 34 36 37 40 38 38 36 40 40 42 44 45 47 49 47 49 52 50 50 57 58 58 58 61 61 64 68 40 34 46 36 34 45 55 50 56 72 76 78 77 90 88 97 93 84 67 72 75 71 75 90 78 73 62 65 61 58 33 39 56 79 82 79 73 87 85 83 82 83 92 95 97 87 84 84 89 103 106 109 106 105 115 120 124 121 131 139 133 119 123 120 128 134 126 115 106 99 100 99 99 100 100 108 109 115 114 108 113 118 122 118 121 118 121 121 112 119 116 110 111 106 108
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time22 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.97784612.97260
20.95312.6430
30.93098112.35090
40.91198312.09880
50.89011411.80870
60.86858411.52310
70.84703611.23720
80.82574210.95470
90.80670710.70220
100.78992810.47960
110.76880310.19930
120.7493029.94060
130.7309829.69760
140.7168679.51030
150.7029329.32540
160.6928449.19160
170.6814459.04040
180.6667568.84550
190.6511338.63830
200.6396068.48530
210.6322638.38790
220.6229388.26420
230.6109278.10490
240.5981127.93490
250.584927.75980
260.5722097.59120
270.5565457.38340
280.5350037.09760
290.5123366.79690
300.4898246.49830
310.4681366.21050
320.4457795.91390
330.4256145.64640
340.4075645.40690
350.3909475.18650
360.3724034.94051e-06
370.355744.71942e-06
380.3428534.54855e-06
390.3292454.36791.1e-05
400.3150674.17982.3e-05
410.3001893.98255e-05
420.2860753.79520.000101
430.2718473.60650.000202
440.253313.36050.000477
450.2343853.10950.001093
460.2143112.84320.002498
470.1977662.62370.004731
480.1829112.42660.008125
490.1691762.24440.013027
500.152832.02750.022059
510.1340911.77890.038489
520.1170631.5530.061107
530.0999171.32560.093353
540.0829751.10080.136247
550.0680280.90250.184014
560.0550610.73050.233038
570.0435480.57770.282094
580.0313360.41570.339063
590.0220630.29270.385048
600.0139230.18470.426836


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.97784612.97260
2-0.072642-0.96370.168258
30.0558070.74040.230032
40.0497950.66060.254866
5-0.080197-1.06390.144407
60.0131960.17510.430614
7-0.017913-0.23760.406217
8-0.012553-0.16650.433964
90.0470010.62350.266871
100.0320480.42520.33562
11-0.10982-1.45690.07346
120.0529840.70290.24152
13-0.002881-0.03820.484777
140.0722040.95790.169714
150.0077540.10290.459092
160.083681.11010.134228
17-0.037374-0.49580.310317
18-0.074507-0.98840.162146
19-0.018838-0.24990.401474
200.0621180.82410.205504
210.0928261.23150.109895
22-0.048771-0.6470.259229
23-0.035887-0.47610.317298
24-0.034251-0.45440.325052
25-0.021631-0.2870.387237
26-0.016521-0.21920.413383
27-0.060829-0.8070.21038
28-0.123862-1.64320.051062
29-0.001669-0.02210.491181
30-0.05208-0.69090.245261
31-0.026011-0.34510.365223
32-0.012537-0.16630.434047
330.0427850.56760.285512
340.0471080.6250.266405
350.0262340.3480.364117
36-0.064487-0.85550.196714
370.0154290.20470.419024
380.0668120.88640.188317
39-0.049845-0.66130.254651
400.0088260.11710.453461
41-0.042742-0.5670.285707
42-0.016962-0.2250.411111
43-0.04626-0.61370.2701
44-0.117759-1.56220.060013
45-0.000993-0.01320.49475
46-0.019381-0.25710.398695
470.0397670.52760.29923
480.0072830.09660.461569
490.0340890.45220.325827
50-0.058869-0.7810.217931
51-0.058086-0.77060.220988
520.0274430.36410.358122
53-0.002038-0.0270.48923
540.0303160.40220.344019
550.0383280.50850.305877
560.0150670.19990.420903
570.0226660.30070.381998
58-0.015854-0.21030.41683
590.0186610.24760.40238
600.0232180.3080.379213
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742100yzesnw4uuhzyv3a/1ldib1292741985.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742100yzesnw4uuhzyv3a/1ldib1292741985.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742100yzesnw4uuhzyv3a/2emze1292741985.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742100yzesnw4uuhzyv3a/2emze1292741985.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742100yzesnw4uuhzyv3a/3ovyh1292741985.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742100yzesnw4uuhzyv3a/3ovyh1292741985.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 1 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 1 ; 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