Home » date » 2009 » Dec » 19 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 19 Dec 2009 09:19:51 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/19/t1261239608iku5q72kryixjjb.htm/, Retrieved Sat, 19 Dec 2009 17:20: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/2009/Dec/19/t1261239608iku5q72kryixjjb.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
104.7 86 92.1 106.9 112.6 101.7 92 97.4 97 105.4 102.7 98.1 104.5 87.4 89.9 109.8 111.7 98.6 96.9 95.1 97 112.7 102.9 97.4 111.4 87.4 96.8 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 105.9 108.8 102.3 99 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 116.5 112.9 102 106 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 122.4 113.3 100 110.7 112.8 109.8 117.3 109.1 115.9 96 99.8 116.8 115.7 99.4 94.3 91 93.2 103.1 94.1 91.8 102.7 82.6 89.1
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.489744.24133.1e-05
20.5755824.98472e-06
30.6545195.66830
40.3516013.0450.001605
50.3912973.38870.000561
60.3610313.12660.001258
70.1172461.01540.156594
80.169631.4690.073002
90.0795150.68860.246593
10-0.013654-0.11820.453095
110.0507330.43940.330832
12-0.077882-0.67450.25104
13-0.020819-0.18030.428701
14-0.003807-0.0330.486892
15-0.039092-0.33850.367949
16-0.073468-0.63630.263274
170.0233030.20180.420307
18-0.059942-0.51910.302605
19-0.094752-0.82060.207245
20-0.006281-0.05440.478383
21-0.050453-0.43690.331707
22-0.172532-1.49420.069663
230.0463060.4010.344771
24-0.184639-1.5990.05701
25-0.121133-1.0490.148763
26-0.017696-0.15320.439307
27-0.182558-1.5810.059044
28-0.138038-1.19540.11784
29-0.090841-0.78670.216966
30-0.201865-1.74820.042261
31-0.120627-1.04470.149768
32-0.12037-1.04240.150279
33-0.229394-1.98660.025309
34-0.102736-0.88970.188231
35-0.189587-1.64190.052402
36-0.138053-1.19560.117815
37-0.107017-0.92680.178502
38-0.122436-1.06030.1462
39-0.102376-0.88660.189064
40-0.006991-0.06050.475942
41-0.03892-0.33710.368507
42-0.014528-0.12580.450108
430.0505830.43810.331301
440.0561550.48630.314079
450.0197350.17090.432378
460.1130070.97870.165445
470.0352570.30530.38048
48-0.024377-0.21110.416686
490.0634780.54970.292068
50-0.050746-0.43950.33079
51-0.051711-0.44780.327782
52-0.018185-0.15750.437641
53-0.123876-1.07280.143402
54-0.092013-0.79690.214024
55-0.095364-0.82590.205747
56-0.173949-1.50640.068078
57-0.068571-0.59380.277203
58-0.121527-1.05250.147985
59-0.124855-1.08130.14152
60-0.038769-0.33570.369


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.489744.24133.1e-05
20.4416683.8250.000134
30.458973.97488e-05
4-0.210045-1.8190.036448
5-0.190024-1.64570.05201
6-0.038091-0.32990.371207
7-0.174805-1.51390.067133
8-0.06112-0.52930.299075
9-0.024068-0.20840.417726
100.0845460.73220.233168
110.1331551.15320.126255
12-0.074695-0.64690.259842
130.0721810.62510.266901
140.0477220.41330.340288
150.0651650.56430.287103
16-0.247466-2.14310.017673
170.0148250.12840.449092
180.0155340.13450.446674
19-0.155171-1.34380.091528
20-0.010702-0.09270.463203
210.1709011.480.071525
22-0.141934-1.22920.111422
230.1767371.53060.065039
24-0.225168-1.950.027456
250.0822580.71240.239221
260.0011660.01010.495984
270.0033540.0290.488451
28-0.234063-2.0270.023106
29-0.009967-0.08630.465721
300.0443710.38430.350936
310.0072460.06280.475064
32-0.013104-0.11350.454974
33-0.003237-0.0280.488854
34-0.055093-0.47710.317333
350.0324160.28070.389845
360.0106460.09220.463395
370.0507930.43990.330644
38-0.012406-0.10740.457364
390.0492050.42610.335616
40-0.017841-0.15450.438813
410.0790390.68450.247886
42-0.046353-0.40140.344624
43-0.023327-0.2020.420224
440.0050540.04380.482602
450.042780.37050.356032
46-0.118647-1.02750.153741
47-0.019987-0.17310.431523
48-0.191507-1.65850.050697
490.0601090.52060.302102
50-0.02805-0.24290.404364
510.1198331.03780.151352
52-0.071068-0.61550.270055
530.0023030.01990.492071
54-0.041049-0.35550.361607
55-0.07573-0.65580.256966
56-0.050403-0.43650.331863
570.0209320.18130.42832
580.0069630.06030.476037
590.0349350.30250.381538
600.0199630.17290.431603
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261239608iku5q72kryixjjb/164it1261239590.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261239608iku5q72kryixjjb/164it1261239590.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261239608iku5q72kryixjjb/2gyb61261239590.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261239608iku5q72kryixjjb/2gyb61261239590.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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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