Home » date » 2010 » Dec » 28 »

*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: Tue, 28 Dec 2010 16:41:00 +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/28/t1293554336szkmpl5spjboyb0.htm/, Retrieved Tue, 28 Dec 2010 17:38:59 +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/28/t1293554336szkmpl5spjboyb0.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 «
11100 8962 9173 8738 8459 8078 8411 8291 7810 8616 8312 9692 9911 8915 9452 9112 8472 8230 8384 8625 8221 8649 8625 10443 10357 8586 8892 8329 8101 7922 8120 7838 7735 8406 8209 9451 10041 9411 10405 8467 8464 8102 7627 7513 7510 8291 8064 9383 9706 8579 9474 8318 8213 8059 9111 7708 7680 8014 8007 8718 9486 9113 9025 8476 7952 7759 7835 7600 7651 8319 8812 8630
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time25 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3812952.95350.002241
20.0851340.65940.256067
3-0.081775-0.63340.26443
4-0.150806-1.16810.123686
5-0.230926-1.78870.039352
6-0.119331-0.92430.179508
70.0259410.20090.420714
8-0.092074-0.71320.239242
9-0.004676-0.03620.485615
10-0.2112-1.63590.053543
11-0.436909-3.38430.000631
12-0.498287-3.85970.00014
13-0.093485-0.72410.235901
140.1831651.41880.080567
150.2714582.10270.019848
160.4011773.10750.001441
170.2834742.19580.015993
180.1366121.05820.147105
19-0.037053-0.2870.387546
20-0.072194-0.55920.289048
21-0.063084-0.48870.313435
220.0197970.15330.439319
230.1765061.36720.08833
240.1003350.77720.220051
25-0.110827-0.85850.197028
26-0.256121-1.98390.025924
27-0.20267-1.56990.060851
28-0.260797-2.02010.023921
29-0.139845-1.08320.141519
300.0739110.57250.284558
310.2041421.58130.059536
320.1922151.48890.070877
330.0756810.58620.279962
340.012820.09930.460614
35-0.020964-0.16240.435774
36-0.030389-0.23540.407354
370.0687990.53290.29803
380.0665440.51540.304068
390.0543060.42070.337756
400.0562770.43590.33223
410.0103740.08040.468111
42-0.185839-1.43950.077603
43-0.138655-1.0740.143558
44-0.08311-0.64380.261089
45-0.021376-0.16560.434522
460.0191080.1480.441416
470.0613760.47540.318108
480.0248140.19220.424115
49-0.039487-0.30590.380384
500.0427240.33090.370923
51-0.028979-0.22450.411577
52-0.006429-0.04980.480225
530.0267350.20710.41832
540.0933020.72270.236332
550.0335680.260.397872
560.0159530.12360.451034
57-0.02327-0.18030.428781
58-0.0573-0.44380.329375
590.0003180.00250.499021
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3812952.95350.002241
2-0.070502-0.54610.29351
3-0.105417-0.81660.208706
4-0.089784-0.69550.244725
5-0.160911-1.24640.108729
60.0234520.18170.428232
70.0670730.51950.302647
8-0.202794-1.57080.06074
90.0657720.50950.306147
10-0.320188-2.48020.007978
11-0.402841-3.12040.001388
12-0.371107-2.87460.002795
130.0343340.2660.395595
140.1078080.83510.203495
150.0294990.22850.410017
160.1004210.77790.219855
17-0.017948-0.1390.444947
18-0.015041-0.11650.453819
19-0.069788-0.54060.295402
20-0.115126-0.89180.188042
210.0078770.0610.475774
22-0.167385-1.29660.099874
23-0.090293-0.69940.2435
24-0.038784-0.30040.382448
25-0.074405-0.57630.283272
260.029310.2270.410584
270.1695581.31340.097026
28-0.015205-0.11780.453318
29-0.008422-0.06520.4741
30-0.026457-0.20490.419157
316.1e-055e-040.499813
32-0.060978-0.47230.319202
33-0.16765-1.29860.099524
34-0.082736-0.64090.262025
350.1527521.18320.120696
36-0.075751-0.58680.279781
370.0308920.23930.405847
38-0.017071-0.13220.447623
39-0.014248-0.11040.456245
40-0.013151-0.10190.459602
410.0388880.30120.382143
42-0.099342-0.76950.222308
430.1449331.12260.13303
44-0.096815-0.74990.228115
45-0.064607-0.50040.309298
46-0.022488-0.17420.431151
470.0178480.13830.445252
48-0.113738-0.8810.190914
49-0.000422-0.00330.498702
50-0.029049-0.2250.411367
51-0.079895-0.61890.269175
520.037620.29140.385873
53-0.037539-0.29080.386111
54-0.053229-0.41230.340791
550.0696360.53940.295805
56-0.035867-0.27780.391052
57-0.038741-0.30010.382575
58-0.055063-0.42650.335629
59-0.076478-0.59240.277905
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293554336szkmpl5spjboyb0/114m51293554435.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293554336szkmpl5spjboyb0/114m51293554435.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293554336szkmpl5spjboyb0/2ce481293554435.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293554336szkmpl5spjboyb0/2ce481293554435.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293554336szkmpl5spjboyb0/3n5lt1293554435.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293554336szkmpl5spjboyb0/3n5lt1293554435.ps (open in new window)


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