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 14:32:28 -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/t1197321477rayvgbqmh9iq516.htm/, Retrieved Mon, 10 Dec 2007 22:17:59 +0100
 
User-defined keywords:
s0650550 s0650062
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.1 1.3 1.2 1.6 1.7 1.5 0.9 1.5 1.4 1.6 1.7 1.4 1.8 1.7 1.4 1.2 1.0 1.7 2.4 2.0 2.1 2.0 1.8 2.7 2.3 1.9 2.0 2.3 2.8 2.4 2.3 2.7 2.7 2.9 3.0 2.2 2.3 2.8 2.8 2.8 2.2 2.6 2.8 2.5 2.4 2.3 1.9 1.7 2.0 2.1 1.7 1.8 1.8 1.8 1.3 1.3 1.3 1.2 1.4 2.2
 
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
016.85570
1-0.113244-0.77640.779288
2-0.395214-2.70950.995313
30.0157860.10820.45714
4-0.117146-0.80310.787024
50.3696712.53430.007328
60.0259030.17760.429908
7-0.309473-2.12160.980415
80.023040.1580.437585
9-0.088477-0.60660.726472
100.3120862.13960.018807
110.2571321.76280.042217
12-0.572458-3.92460.999859
13-0.063537-0.43560.667435
140.2462571.68830.048994
150.0245910.16860.433422
160.1146060.78570.217993
17-0.280448-1.92270.969702
18-0.081629-0.55960.710803
190.150611.03250.153554
200.0173920.11920.4528
210.0965780.66210.25557
22-0.117618-0.80640.787949
23-0.164264-1.12610.867088
240.1487831.020.156474
250.0852040.58410.280963
26-0.093134-0.63850.736874
27-0.01843-0.12640.550004
28-0.053039-0.36360.641112
290.0148510.10180.459669
300.0408540.28010.390323
310.0063720.04370.48267
320.0132170.09060.464094
33-0.020693-0.14190.556102
340.0186720.1280.449344
350.0450030.30850.379523
36-0.028081-0.19250.575915
37-0.047675-0.32680.62738
380.0261810.17950.429163
39-0.003659-0.02510.509954
40-0.008312-0.0570.5226
410.096570.66210.255586
420.0307020.21050.4171
43-0.034297-0.23510.592434
44-0.035749-0.24510.596271
45-0.01869-0.12810.550705
46-0.014792-0.10140.54017
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.113244-0.77640.779288
1-0.413339-2.83370.99662
2-0.115181-0.78960.783148
3-0.368417-2.52570.992512
40.3326792.28070.013571
5-0.10281-0.70480.757803
60.0313770.21510.415306
7-0.125679-0.86160.803363
8-0.148639-1.0190.843294
90.238751.63680.054177
100.2399621.64510.053311
11-0.314471-2.15590.981879
12-0.0061-0.04180.51659
13-0.01366-0.09360.537106
14-0.039535-0.2710.606226
15-0.085739-0.58780.720259
16-0.034621-0.23730.593291
170.0006370.00440.498268
18-0.174673-1.19750.881441
190.0140050.0960.461959
20-0.197882-1.35660.909307
210.1802571.23580.111341
220.0334680.22940.409759
23-0.128224-0.87910.80808
24-0.060667-0.41590.660315
25-0.071279-0.48870.686323
260.0479460.32870.371921
27-0.037288-0.25560.600325
28-0.119373-0.81840.791365
29-0.114451-0.78460.781698
300.0088540.06070.475928
31-0.04444-0.30470.619017
320.017180.11780.453372
330.0573820.39340.347904
340.1144190.78440.218366
35-0.146489-1.00430.839806
360.0029320.02010.492025
37-0.123641-0.84760.799533
380.0578590.39670.346706
390.0415420.28480.388524
400.056080.38450.351183
410.0234140.16050.43658
420.0341790.23430.407877
43-0.008328-0.05710.522644
44-0.045227-0.31010.621057
45-0.093492-0.64090.737665
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/t1197321477rayvgbqmh9iq516/1f7bu1197322346.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t1197321477rayvgbqmh9iq516/1f7bu1197322346.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t1197321477rayvgbqmh9iq516/27x971197322346.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/10/t1197321477rayvgbqmh9iq516/27x971197322346.ps (open in new window)


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