Home » date » 2010 » Aug » 19 »

Tijdreeks A - Stap 21

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 19 Aug 2010 15:03:20 +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/Aug/19/t1282230167mx3yv6jpkqwkmsj.htm/, Retrieved Thu, 19 Aug 2010 17:02:49 +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/Aug/19/t1282230167mx3yv6jpkqwkmsj.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:
Gregory Goris
 
Dataseries X:
» Textbox « » Textfile « » CSV «
159 158 157 155 175 174 159 149 150 150 151 153 146 156 154 151 171 167 144 138 138 132 132 132 125 131 129 131 145 156 126 123 127 116 114 114 109 110 113 114 138 155 126 123 124 124 134 131 126 128 128 124 148 174 146 137 152 159 170 166 165 168 175 180 199 228 206 193 201 214 225 224 215 222 238 248 262 288 261 240 248 260 266 268 256 261 287 295 304 331 299 275 293 309 311 311 289 298 319 325 331 348 320 305 322 337 346 343 321 331 343 345 347 363 322 304 323 340 352 351
 
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.97060510.08680
20.9461739.83290
30.924319.60570
40.8952029.30320
50.8659128.99880
60.8368598.69690
70.8048158.36390
80.7752128.05620
90.7510797.80540
100.7232397.51610
110.6962327.23550
120.6643486.90410
130.6303736.5510
140.5913216.14520
150.5475535.69030
160.5110285.31080
170.4661814.84472e-06
180.4175534.33931.6e-05
190.3630423.77280.000132
200.3132543.25540.000756
210.2644072.74780.003516
220.2146682.23090.013877
230.1691751.75810.04078
240.124371.29250.099473
250.0826830.85930.196047
260.0418820.43520.332126
270.0057140.05940.476378
28-0.032329-0.3360.368771
29-0.066203-0.6880.246464
30-0.102584-1.06610.144381
31-0.140327-1.45830.073827
32-0.176503-1.83430.034683
33-0.212852-2.2120.014535
34-0.248595-2.58350.005559
35-0.282578-2.93660.002028
36-0.314639-3.26980.000722
37-0.343678-3.57160.000266
38-0.373451-3.8819e-05
39-0.396676-4.12243.7e-05
40-0.415424-4.31721.8e-05
41-0.435632-4.52728e-06
42-0.446912-4.64445e-06
43-0.454357-4.72184e-06
44-0.465758-4.84032e-06
45-0.470246-4.88692e-06
46-0.468422-4.8682e-06
47-0.474258-4.92862e-06
48-0.48401-5.031e-06


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.97060510.08680
20.0707690.73550.231827
30.0390880.40620.342695
4-0.129165-1.34230.091154
5-0.037082-0.38540.350361
6-0.024333-0.25290.400421
7-0.055686-0.57870.281995
80.0205080.21310.415815
90.0842920.8760.191491
10-0.049008-0.50930.305787
11-0.010283-0.10690.457549
12-0.129522-1.3460.090555
13-0.064719-0.67260.251325
14-0.134958-1.40250.081813
15-0.118087-1.22720.111209
160.1037431.07810.14169
17-0.131199-1.36350.087786
18-0.09095-0.94520.173337
19-0.207244-2.15370.016742
200.0125510.13040.448234
21-0.015603-0.16220.435745
22-0.057708-0.59970.274974
230.0478570.49730.30998
240.0063820.06630.473619
250.0176440.18340.427427
26-0.030367-0.31560.376466
270.0231970.24110.404979
28-0.005833-0.06060.475886
290.0427970.44480.32869
30-0.043555-0.45260.32586
310.0102380.10640.457733
32-0.036035-0.37450.354386
33-0.023954-0.24890.401941
34-0.070365-0.73130.233103
350.0434850.45190.326119
36-0.010453-0.10860.456847
370.0137090.14250.44349
38-0.101266-1.05240.147486
390.0528760.54950.291899
400.0282720.29380.384732
41-0.091208-0.94790.172657
420.1328591.38070.085109
430.0273130.28380.388535
44-0.03391-0.35240.362611
450.0192150.19970.42105
460.1050711.09190.138648
47-0.105857-1.10010.136867
48-0.162793-1.69180.046784
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282230167mx3yv6jpkqwkmsj/1rqnh1282230198.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282230167mx3yv6jpkqwkmsj/1rqnh1282230198.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282230167mx3yv6jpkqwkmsj/2j0421282230198.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282230167mx3yv6jpkqwkmsj/2j0421282230198.ps (open in new window)


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