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 15:45:40 +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/t1292773507cfxewzfq0e3xvh9.htm/, Retrieved Sun, 19 Dec 2010 16:45:10 +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/t1292773507cfxewzfq0e3xvh9.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 «
5124 4742 5434 5684 6332 6334 5636 5940 6195 6022 4535 4320 4872 4662 4663 5491 6018 6393 5610 5777 6094 6478 5216 5201 4784 4205 4681 4896 5752 6452 5995 5601 6119 6569 5798 5492 5018 4773 5502 5908 5902 6125 5419 5559 5962 6023 5346 5379 4859 5156 5010 5508 6426 6043 5499 5191 5790 5949 5219 4729
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.238091-1.63230.054653
2-0.12806-0.87790.192223
3-0.153467-1.05210.149063
40.0426010.29210.385763
50.1758431.20550.117018
6-0.023164-0.15880.437252
7-0.267261-1.83220.036627
80.0071050.04870.480678
90.1432320.98190.165577
10-0.028364-0.19450.423329
110.0303580.20810.418014
12-0.290916-1.99440.025962
130.206041.41250.082189
14-0.036133-0.24770.402717
150.1430020.98040.165962
16-0.135296-0.92750.179192
170.1849491.26790.105531
180.015310.1050.458427
19-0.007109-0.04870.480668
20-0.05633-0.38620.350554
21-0.030192-0.2070.418458
220.0285430.19570.422852
230.0085010.05830.476888
24-0.035688-0.24470.40389
25-0.219692-1.50610.069362
260.2766461.89660.032019
27-0.121153-0.83060.205204
280.0434710.2980.383501
29-0.071168-0.48790.313942
30-0.007748-0.05310.478932
310.1140590.78190.219084
320.0072440.04970.480301
33-0.125618-0.86120.196751
340.0700420.48020.316661
350.008210.05630.477676
360.0475860.32620.372847
370.0369230.25310.400636
38-0.168688-1.15650.126668
390.0872360.59810.276335
40-0.04503-0.30870.379454
410.0525880.36050.360034
42-0.039657-0.27190.393455
43-0.000454-0.00310.498764
44-0.028758-0.19720.422277
450.0391370.26830.394816
46-0.010591-0.07260.471214
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.238091-1.63230.054653
2-0.195849-1.34270.092913
3-0.260776-1.78780.040129
4-0.124916-0.85640.198066
50.0917990.62930.266087
60.023470.16090.436431
7-0.255279-1.75010.043313
8-0.130166-0.89240.188369
90.0215920.1480.441479
10-0.13554-0.92920.178762
11-0.019785-0.13560.446343
12-0.276233-1.89380.032211
130.0107810.07390.470696
14-0.207886-1.42520.080354
150.0153850.10550.458223
16-0.10997-0.75390.227329
170.2383341.63390.054477
180.1239220.84960.199937
190.0361360.24770.40271
200.0627260.430.334571
210.0798570.54750.293322
220.0158020.10830.457096
230.0510710.35010.363904
240.016010.10980.456534
25-0.149092-1.02210.155977
260.1362370.9340.17754
27-0.012717-0.08720.465448
28-0.041954-0.28760.38745
290.1108880.76020.225464
30-0.015857-0.10870.456948
310.0728750.49960.309843
32-0.121239-0.83120.205039
33-0.084015-0.5760.28369
34-0.079113-0.54240.295063
35-0.135438-0.92850.178942
36-0.040209-0.27570.392008
37-0.08685-0.59540.277213
380.0016170.01110.495602
39-0.071137-0.48770.314017
40-0.055054-0.37740.353777
41-0.036739-0.25190.401121
420.0601960.41270.340857
43-0.012536-0.08590.465938
44-0.082372-0.56470.287478
45-0.023093-0.15830.437443
46-0.060461-0.41450.340198
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292773507cfxewzfq0e3xvh9/1o3ab1292773536.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292773507cfxewzfq0e3xvh9/1o3ab1292773536.ps (open in new window)


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


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


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