Home » date » 2010 » Jul » 02 »

Tijdreeks2-Stap18

*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:40:34 +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/t1278074532ayjb9fd8a81ju9g.htm/, Retrieved Fri, 02 Jul 2010 14:42:13 +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/t1278074532ayjb9fd8a81ju9g.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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3547533.2320.000882
2-0.002624-0.02390.490492
30.0760960.69330.245038
4-0.109679-0.99920.160295
5-0.224462-2.04490.022014
6-0.164161-1.49560.069278
7-0.237331-2.16220.016741
8-0.266118-2.42440.008751
9-0.016508-0.15040.44041
100.009430.08590.465873
110.237272.16160.016763
120.5902455.37740
130.2984522.7190.003986
140.0265730.24210.404655
15-0.01184-0.10790.45718
16-0.025019-0.22790.410128
17-0.118889-1.08310.140943
18-0.178957-1.63040.053406
19-0.283585-2.58360.005765
20-0.198772-1.81090.036887
21-0.122254-1.11380.134293
22-0.05635-0.51340.304528
230.2422042.20660.015053
240.3967933.6150.000257
250.1959811.78550.038919
260.0421240.38380.351068
270.0509510.46420.321865
28-0.010649-0.0970.461473
29-0.038018-0.34640.364975
30-0.054983-0.50090.308878
31-0.227404-2.07170.020697
32-0.192039-1.74960.041945
33-0.081929-0.74640.228765
34-0.0151-0.13760.445459
350.1269941.1570.125301
360.2721832.47970.007586
370.1281191.16720.123231
38-0.02481-0.2260.410868
390.0257360.23450.4076
40-0.007332-0.06680.473452
41-0.060451-0.55070.291648
42-0.029253-0.26650.395255
43-0.133491-1.21620.113686
44-0.183515-1.67190.049155
45-0.059657-0.54350.29412
460.006850.06240.475193
470.0772370.70370.241806
480.1301621.18580.119536


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3547533.2320.000882
2-0.14697-1.3390.092119
30.1511831.37730.086055
4-0.235142-2.14220.017552
5-0.08844-0.80570.211351
6-0.098187-0.89450.186814
7-0.185756-1.69230.047168
8-0.145027-1.32130.095023
90.0841450.76660.222747
10-0.103304-0.94110.17468
110.3442523.13630.001184
120.4060093.69890.000194
13-0.030654-0.27930.390366
14-0.033499-0.30520.380492
15-0.208263-1.89740.030628
160.081570.74310.229747
170.0276380.25180.400912
18-0.033666-0.30670.379916
19-0.08081-0.73620.231839
200.1373521.25130.107163
21-0.208589-1.90030.03043
220.0485810.44260.329605
230.049990.45540.324995
240.0578640.52720.299741
25-0.042637-0.38840.349341
26-0.047906-0.43640.331823
270.0495630.45150.326388
28-0.022708-0.20690.418305
290.0134560.12260.451362
300.1409461.28410.101343
310.0263920.24040.40529
32-0.045645-0.41580.339298
330.0572920.5220.301546
34-0.011079-0.10090.459922
35-0.023565-0.21470.415269
36-0.013941-0.1270.449621
37-0.03089-0.28140.389543
38-0.008424-0.07670.469506
39-0.051056-0.46510.321522
40-0.101609-0.92570.178643
41-0.008538-0.07780.469094
420.0721220.65710.256479
43-0.033625-0.30630.380057
440.0221640.20190.420234
450.0186640.170.432696
46-0.077587-0.70690.240819
47-0.002579-0.02350.490657
48-0.100416-0.91480.181465
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278074532ayjb9fd8a81ju9g/11lah1278074431.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278074532ayjb9fd8a81ju9g/11lah1278074431.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/02/t1278074532ayjb9fd8a81ju9g/21lah1278074431.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/02/t1278074532ayjb9fd8a81ju9g/21lah1278074431.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; 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