Home » date » 2007 » Nov » 29 » attachments

workshop3

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Nov 2007 11:10:44 -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/29/t1196359202kpbx0b27v7yj160.htm/, Retrieved Thu, 29 Nov 2007 19:00:04 +0100
 
User-defined keywords:
bridome
 
Dataseries X:
» Textbox « » Textfile « » CSV «
91.0 85.3 89.5 76.1 76.1 91.5 85.4 80.0 94.0 72.6 80.8 94.1 94.9 91.9 99.2 84.7 93.7 106.7 93.5 104.8 103.5 83.1 89.6 105.7 110.7 110.4 109.0 106.0 100.9 114.3 101.2 109.2 111.6 91.7 93.7 105.7 109.5 105.3 102.8 100.6 97.6 110.3 107.2 107.2 108.1 97.1 92.2 112.2 111.6 115.7 111.3 104.2 103.2 112.7 106.4 102.6 110.6 95.2 89.0 112.5 116.8 107.2 113.6 101.8 102.6 122.7 110.3 110.5 121.6 100.3 100.7 123.4 127.1 124.1 131.2 111.6 114.2 130.1 125.9 119.0 133.8 107.5 113.5 134.4 126.8 135.6 139.9 129.8 131.0 153.1 134.1 144.1 155.9 123.3 128.1 144.3 153.0 149.9 150.9 141.0 138.9 157.4 142.7 151.5 160.8 138.6
 
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
019.69540
10.5832995.65530
20.6410526.21520
30.582015.64280
40.4621054.48031e-05
50.4534884.39671.4e-05
60.3839313.72240.000168
70.3140973.04530.001508
80.3070362.97680.001852
90.2640622.56020.006028
100.108731.05420.147253
110.1175291.13950.128697
12-0.031762-0.30790.620597
130.0579580.56190.287754
140.0731940.70960.23984
150.0780240.75650.225629
160.0705350.68390.247874
170.0927210.8990.185485
180.1460631.41610.080021
19-0.004397-0.04260.516955
200.0856630.83050.204171
210.0033440.03240.487103
220.0395480.38340.351131
230.0958040.92890.177672
24-0.007096-0.06880.52735
25-0.036786-0.35670.638924
26-0.031287-0.30330.618848
27-0.154879-1.50160.931724
28-0.207795-2.01470.976601
29-0.183204-1.77620.960534
30-0.309119-2.9970.998257
31-0.245692-2.38210.990385
32-0.296962-2.87920.997531
33-0.30858-2.99180.998229
34-0.388697-3.76860.999857
35-0.365498-3.54360.999692
36-0.376122-3.64660.999782
37-0.346112-3.35570.999428
38-0.303965-2.94710.997977
39-0.32094-3.11160.998768
40-0.190333-1.84530.965932
41-0.226241-2.19350.984631
42-0.240552-2.33220.989089
43-0.161308-1.56390.939404
44-0.188802-1.83050.964828
45-0.182382-1.76830.959869
46-0.087976-0.8530.802076
47-0.122049-1.18330.880165


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.5832995.65530
10.4559444.42051.3e-05
20.2155012.08940.019688
3-0.07937-0.76950.778244
4-0.004283-0.04150.516516
5-0.001313-0.01270.505064
6-0.053619-0.51990.697808
70.0218990.21230.416161
80.0358240.34730.364563
9-0.246289-2.38790.990527
10-0.086453-0.83820.797976
11-0.162065-1.57130.940261
120.2184722.11820.0184
130.2747752.6640.004543
140.1950961.89150.030816
15-0.092984-0.90150.81519
16-0.100128-0.97080.832924
170.1280821.24180.108699
18-0.228527-2.21560.985435
19-0.015604-0.15130.559962
20-0.083883-0.81330.790944
21-0.093689-0.90840.816992
220.0768650.74520.228994
23-0.12482-1.21020.885376
24-0.084243-0.81680.791937
250.0601240.58290.28067
26-0.060233-0.5840.719683
27-0.159536-1.54680.93736
280.0334630.32440.373165
290.0192580.18670.426145
30-0.170808-1.6560.949476
31-0.092995-0.90160.815219
320.0909790.88210.189993
33-0.185964-1.8030.962703
340.0429890.41680.338891
350.0543470.52690.299746
360.0694130.6730.251304
370.0663180.6430.260901
38-0.04459-0.43230.666748
390.0227150.22020.413085
40-0.036166-0.35060.63668
41-0.073442-0.7120.760899
420.0168380.16320.435338
43-0.061496-0.59620.723772
440.0279450.27090.393519
45-0.050641-0.4910.687708
460.0218820.21220.416222
47-0.115379-1.11860.866928
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196359202kpbx0b27v7yj160/1qjwf1196359842.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196359202kpbx0b27v7yj160/1qjwf1196359842.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196359202kpbx0b27v7yj160/2tvht1196359842.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t1196359202kpbx0b27v7yj160/2tvht1196359842.ps (open in new window)


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