Home » date » 2007 » Dec » 17 » attachments

Autocorrelation function

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 17 Dec 2007 07:31:53 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/17/t11979010929au5uq5m9sx2a8h.htm/, Retrieved Mon, 17 Dec 2007 15:18:15 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106.70 110.20 125.90 100.10 106.40 114.80 81.30 87.00 104.20 108.00 105.00 94.50 92.00 95.90 108.80 103.40 102.10 110.10 83.20 82.70 106.80 113.70 102.50 96.60 92.10 95.60 102.30 98.60 98.20 104.50 84.00 73.80 103.90 106.00 97.20 102.60 89.00 93.80 116.70 106.80 98.50 118.70 90.00 91.90 113.30 113.10 104.10 108.70 96.70 101.00 116.90 105.80 99.00 129.40 83.00 88.90 115.90 104.20 113.40 112.20
 
Text written by user:
 
Output produced by software:


Summary of compuational 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
017.7460
10.0848030.65690.256883
2-0.251332-1.94680.971878
30.1357371.05140.148643
4-0.172403-1.33540.90661
50.0379420.29390.384925
60.4131333.20010.001098
70.0426110.33010.37125
8-0.053069-0.41110.658757
90.0090170.06980.472274
10-0.318328-2.46580.991726
11-0.005023-0.03890.515455
120.5734054.44162e-05
130.0200130.1550.438663
14-0.247481-1.9170.969997
150.0104750.08110.467801
16-0.202805-1.57090.93927
17-0.052623-0.40760.657497
180.2546441.97250.026585
19-0.005376-0.04160.516539
20-0.057557-0.44580.67134
21-0.025016-0.19380.576497
22-0.300842-2.33030.988415
23-0.038143-0.29550.615666
240.3435032.66080.004994
25-0.009406-0.07290.528919
26-0.232718-1.80260.961765
27-0.092428-0.71590.761598
28-0.167166-1.29490.899835
29-0.120875-0.93630.823562
300.0931640.72160.236659
31-0.031421-0.24340.595733
32-0.109207-0.84590.799519
33-0.035521-0.27510.607926
34-0.197414-1.52920.93426
35-0.094692-0.73350.766939
360.257611.99540.025271
370.0252670.19570.422746
38-0.125946-0.97560.833403
390.022950.17780.429751
40-0.104007-0.80560.788182
41-0.062368-0.48310.684608
420.0853240.66090.255597
430.0498560.38620.350363
44-0.009362-0.07250.528784
450.0247290.19150.424371
46-0.075344-0.58360.719167
47-0.065591-0.50810.693366
480.1691961.31060.097497
490.0362430.28070.38994
50-0.067217-0.52070.697742
510.0833960.6460.260378
52-0.069073-0.5350.7027
53-0.05575-0.43180.666298
540.0432120.33470.369503
550.0185120.14340.443229
560.0467810.36240.359176
570.048060.37230.355503
580.0191720.14850.441221
590.0067520.05230.479232


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.0848030.65690.256883
1-0.260396-2.0170.975913
20.1995521.54570.063715
3-0.316996-2.45540.991507
40.2705832.09590.020157
50.2167281.67880.049199
60.1014530.78590.217523
70.0504590.39090.348644
8-0.061959-0.47990.683489
9-0.279083-2.16180.982682
100.0493230.38210.351886
110.4393933.40350.000595
12-0.119555-0.92610.820939
13-0.154959-1.20030.882631
14-0.118168-0.91530.818157
150.0541410.41940.338221
16-0.027324-0.21160.583451
17-0.082927-0.64240.738454
18-0.071658-0.55510.709541
19-0.019263-0.14920.559055
200.0629010.48720.313934
21-0.010324-0.080.531737
22-0.005715-0.04430.51758
23-0.070649-0.54720.70688
240.0058730.04550.481934
25-0.134122-1.03890.848491
26-0.106154-0.82230.79291
27-0.019018-0.14730.558309
28-0.133394-1.03330.847187
29-0.085806-0.66470.745591
30-0.116598-0.90320.814975
31-0.048156-0.3730.644774
320.0379380.29390.384936
330.0617810.47860.316997
34-0.077407-0.59960.724483
350.045480.35230.362928
36-0.004445-0.03440.513676
370.1858661.43970.077573
380.0444150.3440.366011
39-0.100761-0.78050.780916
40-0.034944-0.27070.606216
41-0.094471-0.73180.76642
420.1751121.35640.090025
43-0.106647-0.82610.793985
440.0046660.03610.485643
45-0.096751-0.74940.771737
460.0766960.59410.277345
47-0.004547-0.03520.51399
48-0.067476-0.52270.698435
490.0097140.07520.470136
50-0.022487-0.17420.568846
510.007890.06110.475735
52-0.046519-0.36030.640068
53-0.087259-0.67590.749152
54-0.016552-0.12820.550794
550.0056450.04370.482634
56-0.058597-0.45390.674227
570.0661910.51270.305018
58-0.00284-0.0220.50874
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/17/t11979010929au5uq5m9sx2a8h/1hf1f1197901911.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/17/t11979010929au5uq5m9sx2a8h/1hf1f1197901911.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/17/t11979010929au5uq5m9sx2a8h/2wtnc1197901911.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/17/t11979010929au5uq5m9sx2a8h/2wtnc1197901911.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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 1:par1) {
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(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-1,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(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:

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