Home » date » 2007 » Nov » 25 » attachments

Q2 Autocorrelation

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 25 Nov 2007 09:45:43 -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/25/t1196008585aszjgsnpvwai73n.htm/, Retrieved Sun, 25 Nov 2007 17:36:25 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
88.8 93.4 92.6 90.7 81.6 84.1 88.1 85.3 82.9 84.8 71.2 68.9 94.3 97.6 85.6 91.9 75.8 79.8 99 88.5 86.7 97.9 94.3 72.9 91.8 93.2 86.5 98.9 77.2 79.4 90.4 81.4 85.8 103.6 73.6 75.7 99.2 88.7 94.6 98.7 84.2 87.7 103.3 88.2 93.4 106.3 73.1 78.6 101.6 101.4 98.5 99 89.5 83.5 97.4 87.8 90.4 97.1 79.4 85
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.7460
10.0378650.29330.385153
2-0.255508-1.97920.973804
30.2696742.08890.020484
4-0.217732-1.68650.951558
5-0.014381-0.11140.544161
60.5651564.37772.4e-05
7-0.056108-0.43460.667299
8-0.223125-1.72830.955463
90.1817981.40820.082117
10-0.362642-2.8090.996651
11-0.06892-0.53390.702292
120.5402884.18514.7e-05
13-0.141091-1.09290.860593
14-0.203485-1.57620.939879
150.1475181.14270.128858
16-0.254922-1.97460.973541
17-0.061915-0.47960.683369
180.3598212.78720.003555
19-0.095492-0.73970.768811
20-0.055854-0.43260.666589
210.0981140.760.225118
22-0.303252-2.3490.988932
230.0651150.50440.30792
240.3649352.82680.00319
25-0.117816-0.91260.817448
26-0.093339-0.7230.763756
270.0913450.70760.24098
28-0.215594-1.670.949934
29-0.025086-0.19430.576709
300.2365881.83260.035913
31-0.093304-0.72270.763673
32-0.060176-0.46610.678591
33-0.066402-0.51430.695551
34-0.253006-1.95980.972664
350.0002510.00190.499228
360.1786731.3840.085744
37-0.032004-0.24790.597472
38-0.097096-0.75210.772534
39-0.037473-0.29030.613693
40-0.165553-1.28240.897677
41-0.069779-0.54050.704575
420.0774030.59960.275527
43-0.023543-0.18240.572043
44-0.043592-0.33770.631603
45-0.058207-0.45090.673146
46-0.084883-0.65750.743313
470.0085190.0660.473804
480.0695980.53910.295904
490.028140.2180.414095
500.0049460.03830.484783
510.010260.07950.46846
52-0.005258-0.04070.516176
530.005410.04190.483357
540.0218210.1690.433173
550.0102190.07920.468587
56-0.000817-0.00630.502513
57-0.012098-0.09370.537175
58-0.003908-0.03030.512025
59-9.3e-05-7e-040.500287


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.0378650.29330.385153
1-0.257311-1.99310.974599
20.3127032.42220.009232
3-0.396611-3.07210.998403
40.3539362.74160.004023
50.3034332.35040.01103
6-0.015949-0.12350.548954
7-0.094627-0.7330.766786
80.0121240.09390.462747
9-0.41621-3.22390.998977
100.2406361.8640.033611
110.0538090.41680.339154
120.0073670.05710.477343
13-0.07154-0.55410.709231
140.0085440.06620.473727
150.0542730.42040.337848
16-0.044763-0.34670.634997
17-0.090331-0.69970.756592
180.1021850.79150.215879
190.0688130.5330.297992
20-0.146025-1.13110.868743
210.0721820.55910.289082
220.0815890.6320.264899
230.0592370.45880.324002
24-0.044729-0.34650.634898
25-0.113586-0.87980.808769
260.0543340.42090.337677
27-0.037503-0.29050.61378
28-0.131139-1.01580.843097
290.074690.57850.282531
30-0.039131-0.30310.618571
31-0.079567-0.61630.729994
32-0.136131-1.05450.852052
330.0620960.4810.316135
34-0.172285-1.33450.906461
350.0993830.76980.222213
360.0413730.32050.374862
37-0.022694-0.17580.569475
38-0.061243-0.47440.681527
39-0.010168-0.07880.531259
40-0.110951-0.85940.803236
41-0.07915-0.61310.728934
42-0.239404-1.85440.965702
430.1375711.06560.145432
440.0465030.36020.359977
450.0470350.36430.358447
460.061910.47960.316645
47-0.022103-0.17120.567683
480.0276660.21430.415521
490.0017770.01380.494532
50-0.036507-0.28280.610843
510.0611520.47370.318723
520.0262880.20360.419666
53-0.107013-0.82890.794782
540.007770.06020.476105
550.0181340.14050.44438
56-0.018721-0.1450.557406
570.0193990.15030.440531
58-0.012446-0.09640.538239
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196008585aszjgsnpvwai73n/1i51c1196009138.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196008585aszjgsnpvwai73n/1i51c1196009138.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196008585aszjgsnpvwai73n/2u1a81196009138.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196008585aszjgsnpvwai73n/2u1a81196009138.ps (open in new window)


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