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:52:25 -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/t1197319135c8zxfvzt5yz8omx.htm/, Retrieved Mon, 10 Dec 2007 21:38:57 +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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
016.78230
1-0.379777-2.57580.99336
2-0.264145-1.79150.960105
30.4426383.00210.002162
4-0.230665-1.56440.937717
5-0.121337-0.82290.792608
60.1045110.70880.241003
70.044130.29930.383028
80.1108830.7520.227928
9-0.160072-1.08570.858358
100.1202760.81580.209423
110.0258760.17550.430729
12-0.14689-0.99630.837832
130.1240940.84160.20217
14-0.075305-0.51070.694013
150.0075140.0510.479788
160.0129060.08750.465314
17-0.145204-0.98480.835067
180.2561881.73760.044491
19-0.119233-0.80870.788568
20-0.189188-1.28310.897064
210.3259832.21090.016026
22-0.19236-1.30460.900749
23-0.191336-1.29770.89957
240.2363121.60270.057918
25-0.087849-0.59580.722892
26-0.037835-0.25660.600687
270.0101510.06880.472705
280.0923170.62610.267163
29-0.031588-0.21420.584346
30-0.18144-1.23060.887633
310.1470850.99760.161852
32-0.013272-0.090.535667
33-0.164366-1.11480.864633
340.1784561.21030.116164
35-0.010824-0.07340.529103
36-0.048388-0.32820.627868
370.1079650.73230.233864
38-0.140833-0.95520.82776
390.080330.54480.294254
40-0.016246-0.11020.543629
41-0.072657-0.49280.687745
420.0743790.50450.308171
430.0220190.14930.440969
44-0.037881-0.25690.600807
450.0346760.23520.407554
46NANANA
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.379777-2.57580.99336
1-0.477203-3.23650.998877
20.1713141.16190.125633
3-0.084383-0.57230.715051
4-0.067678-0.4590.675807
5-0.232976-1.58010.939534
60.0492710.33420.369885
70.2931331.98810.026384
80.0474810.3220.374444
90.0981910.6660.25438
10-0.058822-0.39890.654112
110.0801680.54370.294628
120.1112240.75440.22724
13-0.071674-0.48610.685404
14-0.042323-0.28710.612319
15-0.177962-1.2070.883198
16-0.200129-1.35730.909352
170.1287730.87340.193496
18-0.000361-0.00240.500971
19-0.191648-1.29980.899931
20-0.044706-0.30320.618451
21-0.028542-0.19360.576321
22-0.08628-0.58520.719356
23-0.081374-0.55190.708157
24-0.119757-0.81220.789578
25-0.020279-0.13750.554398
26-0.0602-0.40830.657525
270.1127090.76440.224257
280.0068890.04670.481467
29-0.081287-0.55130.707957
30-0.069479-0.47120.680149
31-0.00617-0.04180.516599
32-0.007338-0.04980.519738
33-0.013714-0.0930.53685
340.0027970.0190.492474
35-0.017963-0.12180.548218
360.1540811.0450.150735
37-0.011617-0.07880.531228
38-0.036511-0.24760.597239
39-0.092178-0.62520.732529
400.0827580.56130.288661
41-0.100998-0.6850.75161
42-0.004744-0.03220.512766
43-0.09281-0.62950.733921
44-0.048752-0.33070.628795
45NANANA
46NANANA
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t1197319135c8zxfvzt5yz8omx/1q27z1197319943.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t1197319135c8zxfvzt5yz8omx/1q27z1197319943.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t1197319135c8zxfvzt5yz8omx/2zofz1197319943.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t1197319135c8zxfvzt5yz8omx/2zofz1197319943.ps (open in new window)


 
Parameters:
par1 = 60 ; par2 = 1 ; par3 = 2 ; 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 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