Home » date » 2007 » Nov » 27 » attachments

Stationarity in Time Series-Q2a

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 27 Nov 2007 03:17:34 -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/Nov/27/t1196158336m4nxyxonxg5l25i.htm/, Retrieved Tue, 27 Nov 2007 11:12:18 +0100
 
User-defined keywords:
s0650062 s0650550
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8.0 8.1 8.3 8.2 8.1 7.7 7.6 7.7 8.2 8.4 8.4 8.6 8.4 8.5 8.7 8.7 8.6 7.4 7.3 7.4 9.0 9.2 9.2 8.5 8.3 8.3 8.6 8.6 8.5 8.1 8.1 8.0 8.6 8.7 8.7 8.6 8.4 8.4 8.7 8.7 8.5 8.3 8.3 8.3 8.1 8.2 8.1 8.1 7.9 7.7 8.1 8.0 7.7 7.8 7.6 7.4 7.7 7.8 7.5 7.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
017.68110
10.1555611.19490.118457
2-0.137484-1.0560.852371
3-0.5933-4.55720.999987
4-0.190187-1.46090.92532
50.0766020.58840.279257
60.3544142.72230.004255
70.1304531.0020.16021
8-0.148666-1.14190.870951
9-0.343398-2.63770.994672
10-0.071319-0.54780.707057
110.139131.06870.144784
120.4621363.54970.000382
130.1382151.06170.14636
14-0.069581-0.53450.702485
15-0.349955-2.68810.995337
16-0.186817-1.4350.921712
170.0245430.18850.42556
180.2903482.23020.014776
190.1221370.93820.175995
20-0.107088-0.82260.792964
21-0.169925-1.30520.901557
22-0.068933-0.52950.700773
230.0688640.5290.29941
240.1407511.08110.14202
250.0799560.61420.270738
26-0.057108-0.43870.668743
27-0.105233-0.80830.78892
28-0.094631-0.72690.764912
290.0064840.04980.480224
300.1545161.18690.12002
310.0698320.53640.296854
32-0.05311-0.40790.657605
33-0.144782-1.11210.864695
34-0.049596-0.3810.647697
350.0391190.30050.382434
360.1153610.88610.18958
370.0702620.53970.29572
38-0.076963-0.59120.721665
39-0.118026-0.90660.815841
40-0.048231-0.37050.64382
410.0332270.25520.399721
420.0885560.68020.249516
430.0168620.12950.448695
44-0.034831-0.26750.605007
45-0.027796-0.21350.584167
46-0.010601-0.08140.532312
47-0.00647-0.04970.519734
480.0247730.19030.424869
490.0232950.17890.429302
50-0.031227-0.23990.594363
51-0.041611-0.31960.624807
52-0.013-0.09990.539602
530.005450.04190.483376
540.0248840.19110.424538
550.0158770.1220.451675
56-0.003414-0.02620.510415
57-0.013601-0.10450.541425
58-0.004722-0.03630.514404
59NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1555611.19490.118457
1-0.165693-1.27270.895943
2-0.571746-4.39170.999976
3-0.091409-0.70210.75732
4-0.03208-0.24640.596891
5-0.011913-0.09150.5363
6-0.062445-0.47970.683376
7-0.181967-1.39770.916283
8-0.21655-1.66340.949227
9-0.007371-0.05660.52248
10-0.065722-0.50480.692217
110.2542321.95280.027796
120.0837740.64350.261203
130.0995070.76430.223859
140.1290630.99140.16278
150.0075630.05810.476937
160.0500180.38420.351106
170.160051.22940.111907
18-0.009079-0.06970.52768
19-0.05196-0.39910.654373
200.180511.38650.085402
210.0093070.07150.471624
22-0.062895-0.48310.684595
23-0.103922-0.79820.786035
24-0.074431-0.57170.715158
25-0.086783-0.66660.746184
26-0.027919-0.21440.584532
27-0.115488-0.88710.810682
28-0.091989-0.70660.758696
290.0647820.49760.310309
30-0.071942-0.55260.708687
31-0.081888-0.6290.73411
32-0.077053-0.59190.721894
330.0049420.0380.484925
340.0064070.04920.480457
350.0107980.08290.467089
360.0623310.47880.316936
370.0250370.19230.424077
38-0.058595-0.45010.672847
390.0145630.11190.455656
40-0.017194-0.13210.552311
41-0.074701-0.57380.715854
42-0.054389-0.41780.661183
43-0.050749-0.38980.650959
440.0676260.51940.302696
450.0001920.00150.499414
46-0.078311-0.60150.7251
47-0.062242-0.47810.682823
48-0.017801-0.13670.554147
49-0.006388-0.04910.519486
500.0122190.09390.462771
51-0.004786-0.03680.5146
520.0208110.15990.436772
530.0514170.39490.347154
54-0.000888-0.00680.50271
550.0139220.10690.457602
56-0.016665-0.1280.550709
57-0.016916-0.12990.55147
58NANANA
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196158336m4nxyxonxg5l25i/1mgr91196158652.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196158336m4nxyxonxg5l25i/1mgr91196158652.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196158336m4nxyxonxg5l25i/258c11196158652.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196158336m4nxyxonxg5l25i/258c11196158652.ps (open in new window)


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