Home » date » 2007 » Nov » 27 » attachments

Workshop 3 Q2

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 06:19:04 -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/t11961689780q9t1uvcmhfmsv6.htm/, Retrieved Tue, 27 Nov 2007 14:09:40 +0100
 
User-defined keywords:
Q2, reeks 4
 
Dataseries X:
» Textbox « » Textfile « » CSV «
99,4 102,7 109,3 93,9 95,3 101,8 85,6 81,1 109,5 104,0 94,5 79,0 92,8 95,6 101,7 90,8 89,5 91,8 83,8 77,4 112,7 98,8 85,7 72,8 96,9 95,0 94,2 87,3 80,6 87,9 79,6 71,9 94,6 91,4 86,6 68,5 90,1 91,6 95,4 85,4 81,6 88,9 84,1 74,7 97,1 95,3 85,1 67,3 80,6 87,9 89,2 81,3 79,7 83,7 82,1 69,3 91,2 85,7 85,2 70,0 85,8 91,4 97,5 87,1 85,1 94,1 85,8 74,7 99,9 90,7 86,8 74,8 91,8 97,6 100,8 85,4 84,0 90,6 80,5 73,9 93,6
 
Text written by user:
d=0 D=0
 
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
0190
10.2181541.96340.026516
2-0.14527-1.30740.902617
3-0.03339-0.30050.61772
40.3546793.19210.001006
50.1632291.46910.072845
60.0958520.86270.195434
70.1618031.45620.074598
80.3157232.84150.002839
9-0.079249-0.71320.761127
10-0.192443-1.7320.956459
110.0536850.48320.315142
120.6708946.0380
130.0464830.41830.338399
14-0.244703-2.20230.984757
15-0.1378-1.24020.890759
160.2152951.93770.028075
170.0671660.60450.273603
180.0065890.05930.476428
190.055290.49760.310052
200.2056181.85060.033939
21-0.124351-1.11920.86681
22-0.214002-1.9260.971195
23-0.042262-0.38040.647663
240.4710464.23943e-05
250.0225680.20310.419778
26-0.255336-2.2980.98793
27-0.213913-1.92520.971144
280.0869820.78280.218004
290.0240180.21620.414704
30-0.082357-0.74120.769647
31-0.067094-0.60380.726183
320.0859190.77330.220806
33-0.169998-1.530.935042
34-0.246834-2.22150.985446
35-0.118087-1.06280.85448
360.31882.86920.002623
37-0.019012-0.17110.567718
38-0.22792-2.05130.978264
39-0.211118-1.90010.969509
400.0203810.18340.427461
41-0.01242-0.11180.544362
42-0.095039-0.85540.80256
43-0.107462-0.96720.831827
440.0389250.35030.363502
45-0.146845-1.32160.904989
46-0.230024-2.07020.979191
47-0.140101-1.26090.894519


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.2181541.96340.026516
1-0.202498-1.82250.963964
20.0535330.48180.315624
30.3520943.16880.00108
4-0.018381-0.16540.565491
50.1976641.7790.039498
60.1871481.68430.047984
70.2115761.90420.030218
8-0.225-2.0250.976919
9-0.166282-1.49650.9308
10-0.021619-0.19460.576892
110.5672095.10491e-06
12-0.402845-3.62560.999749
13-0.001328-0.0120.504754
14-0.106831-0.96150.830412
15-0.065905-0.59310.722632
160.1119361.00740.158366
17-0.023022-0.20720.581814
18-0.002757-0.02480.509867
190.0151370.13620.445987
200.0237780.2140.415542
21-0.014567-0.13110.551992
22-0.03109-0.27980.609833
23-0.011711-0.10540.54184
240.0703730.63340.264142
25-0.114893-1.0340.847903
26-0.096514-0.86860.80619
27-0.091528-0.82370.79375
280.0453450.40810.342138
29-0.140401-1.26360.895002
30-0.003788-0.03410.513555
31-0.045985-0.41390.659966
32-0.021755-0.19580.577371
330.0498990.44910.327282
340.0187330.16860.433266
350.0252650.22740.410347
36-0.063309-0.56980.714799
370.1506951.35630.089393
38-0.034985-0.31490.623161
39-0.063026-0.56720.713939
40-0.114294-1.02860.846647
410.0176770.15910.436996
42-0.122882-1.10590.863987
43-0.011428-0.10290.540834
44-0.017999-0.1620.564143
45-0.07403-0.66630.746434
460.0514220.46280.322375
47-0.078419-0.70580.758821
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t11961689780q9t1uvcmhfmsv6/1fwxy1196169542.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t11961689780q9t1uvcmhfmsv6/1fwxy1196169542.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t11961689780q9t1uvcmhfmsv6/2saud1196169542.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t11961689780q9t1uvcmhfmsv6/2saud1196169542.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