Home » date » 2007 » Dec » 10 » attachments

Inducing Stationarity in Time Series-Q2

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 10 Dec 2007 13:43:39 -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/10/t1197318569jwlmh0i77qefq74.htm/, Retrieved Mon, 10 Dec 2007 21:29:29 +0100
 
User-defined keywords:
s0650550 s0650062
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2,25 1,85 1,75 1,75 1,55 1,5 1,5 1,1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1,21 1,25 1,25 1,45 1,5 1,5 1,64 1,75 1,93 2 2,17 2,25 2,39 2,5 2,5 2,65 2,75 2,75 2,9 3 3 3 3
 
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 time2 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.7460
10.941297.29120
20.8841646.84870
30.8228486.37380
40.7478645.79290
50.6764115.23951e-06
60.6075384.7068e-06
70.5273474.08486.6e-05
80.4558793.53120.000401
90.390033.02120.001849
100.3200992.47950.007992
110.2519991.9520.027806
120.1888741.4630.074341
130.1263110.97840.165903
140.0705410.54640.293406
150.0179250.13880.445018
16-0.027855-0.21580.585049
17-0.069384-0.53740.703527
18-0.103856-0.80450.787848
19-0.139594-1.08130.858052
20-0.173483-1.34380.907962
21-0.196985-1.52580.933848
22-0.220487-1.70790.953586
23-0.241912-1.87380.967088
24-0.252429-1.95530.972396
25-0.262947-2.03680.976954
26-0.273465-2.11830.980848
27-0.283983-2.19970.984155
28-0.294501-2.28120.986949
29-0.305019-2.36270.989298
30-0.314788-2.43830.991134
31-0.32142-2.48970.992213
32-0.327482-2.53670.993095
33-0.332456-2.57520.993749
34-0.332831-2.57810.993796
35-0.332209-2.57330.993718
36-0.329982-2.5560.993431
37-0.320714-2.48420.992104
38-0.3136-2.42910.990927
39-0.303716-2.35260.989029
40-0.288002-2.23090.98528
41-0.272801-2.11310.98062
42-0.255313-1.97760.973716
43-0.232245-1.7990.961473
44-0.207572-1.60780.94344
45-0.181499-1.40590.917542
46-0.154668-1.19810.882197
47-0.124682-0.96580.830985
48-0.096537-0.74780.77124
49-0.064276-0.49790.689805
50-0.031835-0.24660.596968
51-0.001364-0.01060.504198
520.032850.25450.400007
530.060230.46650.32126
540.064850.50230.308638
550.0719660.55740.289649
560.0741310.57420.283985
570.0633880.4910.312607
580.0526460.40780.342437
590.036710.28440.388558


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.941297.29120
1-0.016344-0.12660.550161
2-0.066911-0.51830.69692
3-0.155133-1.20170.88289
4-0.015026-0.11640.546135
5-0.010636-0.08240.532693
6-0.132277-1.02460.84517
70.0141660.10970.456495
80.0060310.04670.481446
9-0.066023-0.51140.694529
10-0.060746-0.47050.68016
11-0.018081-0.14010.555458
12-0.026572-0.20580.581187
13-0.008234-0.06380.52532
14-0.03741-0.28980.613506
150.0176970.13710.445714
16-0.020244-0.15680.562038
170.0009720.00750.497008
18-0.065723-0.50910.693721
19-0.043463-0.33670.631228
200.0425370.32950.371468
21-0.040212-0.31150.621743
22-0.032322-0.25040.598419
230.0377550.29240.385477
24-0.019587-0.15170.560042
25-0.045962-0.3560.638462
26-0.073443-0.56890.714221
27-0.021698-0.16810.566455
28-0.022323-0.17290.568348
29-0.051774-0.4010.655092
30-0.000658-0.00510.502023
31-0.020143-0.1560.561733
32-0.02876-0.22280.587766
33-0.00587-0.04550.518058
34-0.025156-0.19490.576918
35-0.011608-0.08990.535672
360.0274730.21280.416101
37-0.042046-0.32570.627101
38-0.004869-0.03770.514979
390.0149720.1160.454031
40-0.008515-0.0660.526185
41-0.015665-0.12130.548086
420.0123780.09590.461968
430.0296530.22970.409555
44-0.002979-0.02310.509166
45-0.020751-0.16070.563579
460.0355160.27510.392091
47-0.008969-0.06950.527578
480.0274710.21280.416105
490.0028030.02170.491374
500.0029030.02250.491069
510.0481240.37280.355317
52-0.054111-0.41910.661695
53-0.191819-1.48580.928719
540.007370.05710.477331
55-0.008757-0.06780.526926
56-0.081983-0.6350.73609
57-0.04911-0.38040.647506
58-0.034566-0.26770.605093
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t1197318569jwlmh0i77qefq74/1hjb71197319414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t1197318569jwlmh0i77qefq74/1hjb71197319414.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t1197318569jwlmh0i77qefq74/22r6l1197319414.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t1197318569jwlmh0i77qefq74/22r6l1197319414.ps (open in new window)


 
Parameters:
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