Home » date » 2007 » Nov » 28 » attachments

autocorrelation

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 28 Nov 2007 12:03:55 -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/28/t119627607775fd3ih13fhypvb.htm/, Retrieved Wed, 28 Nov 2007 19:54:39 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0,51 0,51 0,51 0,51 0,51 0,51 0,51 0,51 0,5 0,51 0,51 0,5 0,51 0,51 0,51 0,51 0,52 0,52 0,52 0,53 0,53 0,52 0,52 0,52 0,52 0,52 0,52 0,52 0,52 0,52 0,52 0,53 0,53 0,53 0,54 0,54 0,54 0,54 0,54 0,54 0,54 0,54 0,54 0,54 0,53 0,53 0,53 0,53 0,53 0,54 0,55 0,55 0,55 0,55 0,55 0,55 0,55 0,55 0,56 0,56 0,56 0,56 0,56 0,55 0,56 0,55 0,55 0,56 0,55 0,55 0,55 0,55
 
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
018.48530
10.9401347.97730
20.8986267.62510
30.8662997.35080
40.8064326.84280
50.7475226.34290
60.7106046.02970
70.6736875.71640
80.6239565.29441e-06
90.5769034.89523e-06
100.5271724.47321.4e-05
110.4820314.09025.5e-05
120.4313443.66010.000239
130.3907933.3160.000716
140.3594223.04980.001602
150.3408632.89230.002527
160.3085362.6180.005387
170.2863442.42970.008803
180.2595622.20250.015418
190.2236011.89730.030898
200.1885961.60030.056957
210.162771.38120.085752
220.1222191.03710.151588
230.0807120.68490.247815
240.0566070.48030.316225
250.0233230.19790.421838
26-0.00996-0.08450.53356
27-0.038655-0.3280.628066
28-0.071939-0.61040.728247
29-0.104266-0.88470.810376
30-0.127414-1.08110.85838
31-0.159742-1.35550.910246
32-0.181934-1.54380.936485
33-0.194946-1.65420.948777
34-0.226318-1.92040.970614
35-0.242964-2.06160.978572
36-0.25502-2.16390.983105
37-0.276256-2.34410.989082
38-0.292902-2.48540.992367
39-0.301324-2.55680.993664
40-0.309747-2.62830.994759
41-0.322759-2.73870.996116
42-0.327548-2.77930.996528
43-0.336927-2.85890.997222
44-0.341716-2.89960.997524
45-0.356641-3.02620.998283
46-0.376155-3.19180.998952
47-0.39108-3.31840.999289
48-0.401415-3.40610.999459
49-0.42093-3.57170.999682
50-0.425719-3.61230.999721
51-0.415782-3.5280.999633
52-0.414069-3.51350.999616
53-0.416946-3.53790.999645
54-0.402419-3.41460.999474
55-0.387893-3.29140.999227
56-0.387136-3.2850.999211
57-0.359796-3.0530.998413
58-0.341636-2.89890.99752
59-0.31793-2.69770.995655


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.9401347.97730
10.1272091.07940.142006
20.0817910.6940.244951
3-0.231581-1.9650.973366
4-0.089049-0.75560.773824
50.1278011.08440.140897
60.0847370.7190.23723
7-0.099284-0.84240.798837
8-0.119068-1.01030.842139
9-0.104965-0.89070.811959
100.0808960.68640.247325
11-0.017525-0.14870.5589
120.0396280.33630.36883
130.0179830.15260.439574
140.1364151.15750.125442
15-0.110698-0.93930.824641
160.0096880.08220.467355
17-0.113067-0.95940.829717
18-0.027279-0.23150.591196
19-0.031108-0.2640.603718
200.0563080.47780.317124
21-0.175568-1.48970.92967
22-0.075853-0.64360.739072
230.0489410.41530.339588
240.0396580.33650.368732
25-0.008604-0.0730.529
26-0.038597-0.32750.627882
27-0.117306-0.99540.838555
280.0508460.43140.333717
290.0514080.43620.331994
30-0.074954-0.6360.736606
31-0.046245-0.39240.65204
320.0533650.45280.326021
33-0.143601-1.21850.886493
340.0756750.64210.261416
35-0.063932-0.54250.705417
360.0041780.03540.48591
370.0008760.00740.497044
380.0205410.17430.431061
390.003210.02720.489174
40-0.060488-0.51330.69533
41-0.022045-0.18710.57393
42-0.018035-0.1530.560599
430.0659690.55980.288689
44-0.154189-1.30830.90254
45-0.146528-1.24330.89111
46-0.036312-0.30810.620559
470.0777420.65970.255788
480.0063410.05380.47862
490.0198060.16810.433505
500.043610.370.35622
510.0423180.35910.360293
52-0.075-0.63640.736731
530.0457310.3880.349565
540.0542170.460.323435
55-0.026449-0.22440.58847
560.090450.76750.22265
57-0.094933-0.80550.788417
580.0005020.00430.498307
590.0741290.6290.265669
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t119627607775fd3ih13fhypvb/15u2z1196276633.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t119627607775fd3ih13fhypvb/15u2z1196276633.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t119627607775fd3ih13fhypvb/2lbbs1196276633.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t119627607775fd3ih13fhypvb/2lbbs1196276633.ps (open in new window)


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