Home » date » 2007 » Dec » 06 » attachments

Workshop 5: Q1

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 06 Dec 2007 07:48:42 -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/06/t1196952192q7cfpfwbirmt184.htm/, Retrieved Thu, 06 Dec 2007 15:43:14 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-14 -5 -1 0 0 13 0 6 -8 -17 -16 -13 -8 -13 -15 -23 -25 -36 -22 -27 -15 -21 -15 -21 -12 2 5 14 21 19 17 27 32 58 74 54 41 25 24 17 14 18 25 12 4 -16 -31 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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
016.92820
10.8855626.13540
20.7601765.26672e-06
30.6254214.3333.7e-05
40.5294153.66790.000306
50.4675923.23960.001088
60.4218272.92250.002641
70.3384732.3450.011605
80.2371421.6430.053463
90.0987460.68410.24859
10-0.076932-0.5330.701754
11-0.208513-1.44460.92247
12-0.299753-2.07670.978399
13-0.289141-2.00320.974592
14-0.295998-2.05070.977113
15-0.319807-2.21570.984255
16-0.356695-2.47130.991468
17-0.387173-2.68240.995003
18-0.397866-2.75650.995882
19-0.364767-2.52720.992577
20-0.311613-2.15890.982057
21-0.262829-1.82090.962573
22-0.215008-1.48960.928567
23-0.198601-1.37590.912388
24-0.200236-1.38730.914117
25-0.1888-1.3080.901456
26-0.136944-0.94880.826256
27-0.08216-0.56920.714069
28-0.039073-0.27070.606111
296e-0600.499982
30-0.013218-0.09160.536292
31-0.027485-0.19040.575108
32-0.050442-0.34950.635868
33-0.064206-0.44480.67078
34-0.055991-0.38790.650104
35-0.016451-0.1140.545134
360.0059650.04130.483604
370.0160090.11090.456074
38-0.007362-0.0510.520235
39-0.018641-0.12910.55111
40-0.019112-0.13240.552393
41-0.027761-0.19230.575853
42-0.010986-0.07610.530177
430.0011150.00770.496933
440.0106010.07340.470879
450.0226930.15720.437865
460.0221010.15310.439472
470.0007170.0050.498027


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.8855626.13540
1-0.111427-0.7720.778047
2-0.113081-0.78340.781393
30.1044340.72350.236429
40.0847160.58690.28
5-0.001675-0.01160.504604
6-0.216732-1.50160.93012
7-0.10275-0.71190.760006
8-0.200325-1.38790.914211
9-0.33468-2.31870.987643
100.0087210.06040.476037
11-0.0045-0.03120.512371
120.3438882.38250.010601
13-0.173815-1.20420.882797
14-0.099416-0.68880.75286
150.1324070.91730.181774
160.0395240.27380.392694
170.0430660.29840.383354
18-0.031017-0.21490.584618
190.0176660.12240.45155
20-0.186988-1.29550.899326
21-0.195082-1.35160.908575
220.0330390.22890.409958
23-0.074705-0.51760.696434
240.1288660.89280.188207
250.0181010.12540.450363
26-0.071855-0.49780.689559
27-0.027263-0.18890.574508
280.1331610.92260.180423
29-0.107403-0.74410.76978
300.0065210.04520.482077
31-0.099471-0.68920.752978
32-0.161353-1.11790.86541
33-0.034888-0.24170.594984
340.0995590.68980.246831
350.0409020.28340.389053
360.078770.54570.293887
37-0.064957-0.450.672644
380.0897070.62150.268603
39-0.062501-0.4330.666531
40-0.047045-0.32590.627056
41-0.042396-0.29370.614885
42-0.042041-0.29130.61395
43-0.082297-0.57020.714388
44-0.081009-0.56120.711381
45-0.002969-0.02060.508162
460.04350.30140.382214
47NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196952192q7cfpfwbirmt184/1y8vn1196952520.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196952192q7cfpfwbirmt184/1y8vn1196952520.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196952192q7cfpfwbirmt184/29dwu1196952520.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t1196952192q7cfpfwbirmt184/29dwu1196952520.ps (open in new window)


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