Home » date » 2008 » Dec » 09 »

Toon Wouters

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 09 Dec 2008 10:32:59 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/09/t1228844017gxiw6ud1r0lx9vv.htm/, Retrieved Tue, 09 Dec 2008 17:33:37 +0000
 
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/2008/Dec/09/t1228844017gxiw6ud1r0lx9vv.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
94 118.6 135 132.7 110.1 111 159.4 129.9 124.8 140.5 120.6 121.6 107.3 130.7 134.9 128.3 99.8 96.7 134.1 131.6 118 133.2 109.3 111.9 98.3 116.3 113.6 121.3 93.7 92.3 132 114.3 123.1 117.3 106 107.5 104.3 112.6 113.9 132.8 88.8 97.7 131.2 116.1 124.7 128.2 105 102.3 98.4 111.1 125.3 123.6 86.7 100.6 123.3 112.2 120.8 114.8 107.3 107.5 93.1 112.4 127.9 120.7 91 98.5 118.9 113.8 113.8 118.7 105.1 101.4 84.1 107.2 119.9 105.4 88.6 90.5 108.5 104.7 100 113.1 96.7 98.5
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2398382.03510.022762
20.2805342.38040.009971
30.2111811.79190.038673
40.0931850.79070.215858
50.1116470.94740.173313
60.0836590.70990.240039
70.1650761.40070.082797
80.0955130.81050.210176
90.1682251.42740.078888
10-0.128282-1.08850.140001
11-0.018039-0.15310.439389
12-0.217266-1.84360.034681
13-0.182403-1.54770.063035
14-0.123714-1.04980.148672
15-0.070507-0.59830.275767
16-0.128384-1.08940.139812
17-0.025439-0.21590.414855
18-0.155568-1.320.095502
19-0.201495-1.70970.04581
20-0.022429-0.19030.424798
21-0.179415-1.52240.066147
22-0.073992-0.62780.266046
230.0144570.12270.451353
24-0.002872-0.02440.490313
25-0.06448-0.54710.292991
260.0934180.79270.215284
27-0.110532-0.93790.175718
28-0.072927-0.61880.268999
29-0.022929-0.19460.423144
30-0.030891-0.26210.39699
310.0560470.47560.317907
32-0.067457-0.57240.284419
33-0.051982-0.44110.330238
34-0.109468-0.92890.17803
35-0.124667-1.05780.146833
36-0.195413-1.65810.050821
37-0.016787-0.14240.443564
38-0.090381-0.76690.222822
39-0.081451-0.69110.245853
40-0.022949-0.19470.423077
41-0.124928-1.06010.146332
42-0.065602-0.55670.289746
43-0.12829-1.08860.139985
44-0.08334-0.70720.240874
45-0.034506-0.29280.385262
460.0295450.25070.401381
470.0564820.47930.316601
480.0407520.34580.365252
490.1187631.00770.158478
500.0873180.74090.230577
510.065450.55540.290184
520.0819860.69570.244435
530.0749680.63610.263357
540.1256091.06580.145032
550.1007420.85480.197742
560.0926770.78640.21711
570.1528361.29690.099411
580.0479990.40730.342504
590.0166930.14160.443879
600.0210660.17870.429319


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2398382.03510.022762
20.2366222.00780.024208
30.1158450.9830.164456
4-0.031791-0.26980.394059
50.0269110.22830.410012
60.0282850.240.405505
70.1286511.09160.139315
80.0140.11880.452884
90.0871130.73920.231102
10-0.270694-2.29690.012267
11-0.035479-0.30110.382122
12-0.217222-1.84320.034708
13-0.064768-0.54960.292156
14-0.029656-0.25160.401018
150.091630.77750.219705
16-0.119626-1.01510.156739
170.1193851.0130.157223
18-0.157626-1.33750.092635
190.0007430.00630.497492
200.0876210.74350.229802
210.0140550.11930.4527
22-0.089149-0.75650.225922
230.1134040.96230.169568
24-0.076925-0.65270.258005
25-0.051809-0.43960.330767
260.0851790.72280.236082
27-0.086128-0.73080.233631
28-0.133294-1.1310.130896
290.0023420.01990.492099
300.0199680.16940.432965
31-0.005218-0.04430.482403
32-0.119436-1.01340.15712
33-0.059266-0.50290.30829
34-0.137125-1.16350.124226
35-0.083021-0.70450.24171
36-0.029703-0.2520.400864
370.0625060.53040.298741
38-0.031423-0.26660.395255
39-0.019911-0.16890.433155
40-0.086736-0.7360.232067
41-0.052958-0.44940.327259
420.0557380.4730.31884
43-0.083153-0.70560.241365
44-0.029704-0.2520.400862
450.0287140.24360.404099
46-0.116373-0.98750.163362
470.0642530.54520.293648
48-0.021676-0.18390.427293
490.0889910.75510.226322
500.0336180.28530.388133
51-0.024144-0.20490.419128
52-0.059613-0.50580.307259
53-0.022581-0.19160.424296
54-0.027133-0.23020.409283
550.0145020.1230.451205
56-0.077711-0.65940.255872
570.0379450.3220.374202
58-0.062295-0.52860.299358
59-0.050182-0.42580.335759
60-0.038722-0.32860.371719
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844017gxiw6ud1r0lx9vv/14vt81228843972.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844017gxiw6ud1r0lx9vv/14vt81228843972.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844017gxiw6ud1r0lx9vv/2n4ij1228843972.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/09/t1228844017gxiw6ud1r0lx9vv/2n4ij1228843972.ps (open in new window)


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