Home » date » 2010 » Dec » 27 »

*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: Mon, 27 Dec 2010 13:32:05 +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/27/t1293456706ywmixefjkac95fz.htm/, Retrieved Mon, 27 Dec 2010 14:31:46 +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/27/t1293456706ywmixefjkac95fz.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 «
35.36 31.19 35.29 33.80 36.38 37.77 34.88 37.07 35.56 34.18 32.05 32.35 34.79 33.75 33.76 36.80 36.57 34.14 33.85 35.10 33.92 33.34 30.69 32.32 32.47 34.71 37.19 35.58 36.04 35.63 32.74 33.31 28.40 27.37 28.20 29.23 28.05 27.70 28.05 28.01 30.73 30.82 30.48 30.92 31.20 31.41 31.96 36.95 35.64 37.18 38.69 39.97 40.36 40.79 42.92 41.21 44.15 44.70 47.42 45.14 46.08 50.59 48.63 47.46 47.30 49.02 51.77 54.15 56.10 52.58 52.56 51.27 57.72 53.46 55.48 59.33 57.32 56.44 58.80 55.64 53.62 54.87 56.15 55.35 52.38 51.27 53.95 56.09 56.34 60.65 58.35 57.18 58.87 66.20 62.25 62.62 54.73 56.20 52.54 63.06 63.53 60.95 53.83 51.20 44.57 44.15 44.04 42.28 38.42 35.41 37.01 39.19 46.50 44.79 47.01 49.15 50.85 54.09 55.40 56.16 54.37 52.34 56.13 51.29 42.95 28.88 38.47 34.83 41.17 40.80 40.00 44.00
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.095563-1.09380.138031
20.1148981.31510.095392
3-0.198624-2.27340.012316
40.0568810.6510.258084
5-0.037057-0.42410.33608
60.085260.97580.165471
70.0064020.07330.470851
8-0.125389-1.43510.076816
9-0.170042-1.94620.026885
10-0.040494-0.46350.321898
110.0437460.50070.308713
120.0144240.16510.434562
13-0.11289-1.29210.099302
140.0495330.56690.285867
15-0.091818-1.05090.147619
160.0218820.25040.401317
170.0807120.92380.178646
180.0028160.03220.48717
190.0656420.75130.226907
20-0.047319-0.54160.29451
210.1765552.02080.022671
22-0.019615-0.22450.411358
230.1355441.55140.061613
24-0.111148-1.27210.102788
250.0712630.81560.208094
26-0.165652-1.8960.030083
270.141361.61790.05404
28-0.039979-0.45760.324007
290.1376691.57570.058755
30-0.190526-2.18070.015497
310.0521550.59690.27579
32-0.095311-1.09090.138663
330.0599410.68610.246944
34-0.051222-0.58630.279352
350.0105290.12050.452132
36-0.106263-1.21620.113041
37-0.032354-0.37030.355875
38-0.051835-0.59330.277009
390.037450.42860.334445
400.0401750.45980.323201
410.0143360.16410.434959
420.0130880.14980.440575
43-0.032184-0.36840.3566
44-0.019297-0.22090.41277
450.0523810.59950.274929
460.0131640.15070.440235
47-0.011248-0.12870.448881
48-0.025915-0.29660.383619
49-0.018595-0.21280.415894
50-0.036339-0.41590.339075
51-0.010455-0.11970.452465
520.03460.3960.346369
53-0.087261-0.99880.159878
540.0983681.12590.131139
55-0.110275-1.26220.104567
560.0737820.84450.199972
57-0.122466-1.40170.081686
58-0.041136-0.47080.319273
59-0.005751-0.06580.473812
60-0.003875-0.04430.482347


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.095563-1.09380.138031
20.1067411.22170.112007
3-0.182339-2.0870.019415
40.016780.19210.423999
50.0071290.08160.467545
60.0426030.48760.313321
70.0324230.37110.355582
8-0.14921-1.70780.045022
9-0.18073-2.06850.020278
10-0.040464-0.46310.322019
110.0250970.28720.387188
12-0.027659-0.31660.376038
13-0.148183-1.6960.046127
140.0561560.64270.260762
15-0.043696-0.50010.308913
16-0.056007-0.6410.261312
170.0732220.83810.201761
18-0.069603-0.79660.21355
190.0653870.74840.227784
20-7.2e-05-8e-040.499671
210.1309481.49880.06817
220.0153860.17610.430244
230.0853790.97720.165134
24-0.050489-0.57790.28217
250.0323340.37010.355959
26-0.10118-1.15810.124473
270.1189031.36090.08794
280.0021180.02420.490347
290.1361161.55790.060832
30-0.087519-1.00170.159167
310.0442920.50690.306523
320.0101080.11570.454037
33-0.013374-0.15310.439289
34-0.02578-0.29510.384206
35-0.045436-0.520.301959
36-0.049462-0.56610.286142
37-0.019486-0.2230.411933
38-0.066901-0.76570.222612
39-0.050451-0.57740.282316
400.0362860.41530.339297
41-0.017324-0.19830.421566
420.0074020.08470.466306
43-0.075554-0.86480.194378
44-0.063569-0.72760.234084
450.0369350.42270.336589
46-0.069113-0.7910.215177
470.0007310.00840.496667
48-0.096956-1.10970.134577
490.0281710.32240.373819
50-0.123308-1.41130.08026
510.008820.10090.459874
52-0.047337-0.54180.29444
53-0.033659-0.38530.350338
540.0689440.78910.215739
55-0.016206-0.18550.426567
56-0.053439-0.61160.27092
57-0.030351-0.34740.364432
58-0.145635-1.66690.048965
590.0525870.60190.274145
60-0.075279-0.86160.195239
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456706ywmixefjkac95fz/1ibqt1293456721.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456706ywmixefjkac95fz/1ibqt1293456721.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456706ywmixefjkac95fz/2lus91293456722.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456706ywmixefjkac95fz/2lus91293456722.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456706ywmixefjkac95fz/3lus91293456722.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293456706ywmixefjkac95fz/3lus91293456722.ps (open in new window)


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