Home » date » 2010 » Jul » 02 »

Tijdreeks2-Stap17

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 02 Jul 2010 12:36:23 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jul/02/t12780742474vjy5boo2z2k0n7.htm/, Retrieved Fri, 02 Jul 2010 14:37:29 +0200
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Jul/02/t12780742474vjy5boo2z2k0n7.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
Steffi Poppe
 
Dataseries X:
» Textbox « » Textfile « » CSV «
59 58 57 55 53 52 53 55 56 56 57 59 68 68 68 70 66 64 72 80 84 82 83 86 99 100 95 98 103 107 114 123 132 137 141 146 156 156 143 143 151 149 156 166 177 180 189 195 205 209 199 191 198 200 208 224 234 243 249 258 274 270 261 258 261 258 264 270 267 287 297 306 322 323 309 303 306 301 316 327 330 342 359 379
 
Output produced by software:


Summary of computational 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
10.9608678.80650
20.92358.4640
30.8890278.14810
40.8555957.84170
50.8217787.53170
60.7904697.24480
70.7627786.9910
80.733916.72640
90.7059826.47040
100.6751116.18750
110.6391145.85760
120.6009195.50750
130.5638185.16751e-06
140.5261464.82223e-06
150.4896154.48741.1e-05
160.4574624.19273.4e-05
170.4227123.87420.000106
180.3885363.5610.000306
190.356813.27020.00078
200.3257022.98510.001856
210.2957692.71080.004069
220.2640762.42030.008832
230.2290852.09960.019382
240.1908431.74910.041963
250.1554711.42490.078944
260.1203811.10330.136521
270.0846610.77590.219984
280.0503080.46110.322966
290.0182650.16740.43373
30-0.009809-0.08990.464289
31-0.035433-0.32470.373089
32-0.058958-0.54040.29519
33-0.079184-0.72570.235009
34-0.101293-0.92840.177939
35-0.126361-1.15810.125049
36-0.151248-1.38620.084675
37-0.174288-1.59740.056969
38-0.197286-1.80820.03708
39-0.220657-2.02240.023161
40-0.244291-2.2390.013901
41-0.264616-2.42520.00872
42-0.28311-2.59470.005584
43-0.299317-2.74330.003717
44-0.314603-2.88340.002498
45-0.325834-2.98630.00185
46-0.336985-3.08850.001363
47-0.350975-3.21670.000921
48-0.365172-3.34690.000612


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9608678.80650
20.0030570.0280.488859
30.0187920.17220.431836
4-0.00305-0.0280.488883
5-0.021088-0.19330.423606
60.0150280.13770.44539
70.0309560.28370.388664
8-0.026971-0.24720.402681
9-0.000734-0.00670.497323
10-0.054177-0.49650.310405
11-0.085867-0.7870.216752
12-0.053097-0.48660.313889
13-0.01553-0.14230.443578
14-0.034927-0.32010.374838
15-0.010566-0.09680.461541
160.0259140.23750.406422
17-0.060445-0.5540.29053
18-0.015969-0.14640.441994
190.0077890.07140.471631
20-0.01122-0.10280.459172
210.0071890.06590.473813
22-0.038077-0.3490.36399
23-0.07205-0.66030.255419
24-0.070553-0.64660.259818
25-0.002097-0.01920.492356
26-0.033034-0.30280.381411
27-0.035221-0.32280.373822
28-0.018116-0.1660.434263
29-0.015051-0.13790.445309
300.0192720.17660.430112
310.0125060.11460.454509
320.005450.050.480139
330.0382170.35030.363508
34-0.03235-0.29650.383793
35-0.06153-0.56390.287152
36-0.023181-0.21250.416133
37-0.007328-0.06720.473306
38-0.030331-0.2780.390851
39-0.036587-0.33530.369106
40-0.045898-0.42070.337538
41-0.008237-0.07550.47
42-0.016271-0.14910.440906
430.0005640.00520.497944
44-0.007563-0.06930.472453
450.0461660.42310.336646
46-0.013658-0.12520.450341
47-0.056973-0.52220.301465
48-0.024964-0.22880.409792
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/02/t12780742474vjy5boo2z2k0n7/17el91278074181.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t12780742474vjy5boo2z2k0n7/17el91278074181.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/02/t12780742474vjy5boo2z2k0n7/27el91278074181.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t12780742474vjy5boo2z2k0n7/27el91278074181.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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 2:(par1+1)) {
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(abs(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,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(abs(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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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