Home » date » 2010 » Aug » 02 »

Tijdreeks A stap 20

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 02 Aug 2010 12:10:45 +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/02/t1280751111ba8xfjxohjntfi2.htm/, Retrieved Mon, 02 Aug 2010 14:11:52 +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/02/t1280751111ba8xfjxohjntfi2.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:
Bogaerts Yannik
 
Dataseries X:
» Textbox « » Textfile « » CSV «
442 441 440 438 458 457 442 432 433 433 434 436 439 439 441 436 460 453 435 421 412 408 402 409 410 410 416 410 437 431 411 398 394 395 389 404 397 401 402 383 406 400 377 372 362 365 361 372 355 365 367 341 370 366 333 320 298 306 293 313 293 304 304 286 320 313 283 272 251 262 247 268 251 257 261 242 274 272 243 234 217 231 209 226 208 214 222 194 230 226 197 188 175 190 165 176 159 169 170 141 170 164 132 123 113 125 101 99 87 90 89 66 102 97 65 54 33 49 30 34
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.96761910.59970
20.93930710.28960
30.91313710.00290
40.8835159.67840
50.8575159.39360
60.8288839.080
70.810048.87350
80.7887328.64010
90.7641928.37130
100.7417568.12550
110.7186537.87240
120.6993057.66050
130.6668037.30450
140.6387736.99740
150.6134826.72040
160.5854136.41290
170.5592316.12610
180.530695.81340
190.5117315.60570
200.4914035.38310
210.4696515.14481e-06
220.4516154.94721e-06
230.4328664.74183e-06
240.4162444.55976e-06
250.3893454.26512e-05
260.3643483.99125.7e-05
270.3422773.74950.000137
280.3173073.47590.000355
290.2943263.22420.000814
300.2692192.94910.001916
310.2532.77150.003235
320.2355432.58020.005539
330.2153442.3590.00997
340.1982532.17180.015921
350.1795051.96640.025782
360.1620751.77540.03918
370.1372421.50340.06768
380.1120651.22760.110998
390.0901180.98720.162768
400.0665820.72940.233599
410.0454490.49790.309743
420.0228240.250.401497
430.0085770.0940.46265
44-0.007068-0.07740.469205
45-0.02467-0.27020.393719
46-0.040495-0.44360.329066
47-0.057184-0.62640.266115
48-0.073089-0.80070.212457
49-0.093784-1.02730.153161
50-0.116797-1.27940.101604
51-0.137389-1.5050.067473
52-0.158548-1.73680.042493
53-0.177579-1.94530.02704
54-0.197479-2.16330.016251
55-0.208523-2.28430.012057
56-0.219073-2.39980.00897
57-0.231452-2.53540.006258
58-0.24234-2.65470.004507
59-0.252426-2.76520.003294
60-0.264005-2.8920.002273


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.96761910.59970
20.047410.51940.302235
30.0229830.25180.400824
4-0.063614-0.69690.243619
50.0362530.39710.345989
6-0.052591-0.57610.282813
70.1412241.5470.062245
8-0.04201-0.46020.323102
9-0.048792-0.53450.296997
10-0.008235-0.09020.464137
11-0.003111-0.03410.486435
120.0390820.42810.334666
13-0.201466-2.2070.01461
140.0369760.4050.343082
15-0.002137-0.02340.490681
16-0.0153-0.16760.43359
17-0.019391-0.21240.41607
18-0.029162-0.31950.374968
190.0879750.96370.168563
20-0.012929-0.14160.443805
210.0037530.04110.483637
220.0031650.03470.4862
230.0043880.04810.48087
24-0.00389-0.04260.483039
25-0.116375-1.27480.102417
26-0.013667-0.14970.440621
27-0.005789-0.06340.474771
28-0.012794-0.14010.444389
29-0.015396-0.16870.433176
30-0.030379-0.33280.369939
310.061660.67540.250345
32-0.014404-0.15780.437445
33-0.016671-0.18260.4277
34-0.01858-0.20350.41953
35-0.015334-0.1680.433443
36-0.016801-0.1840.427145
37-0.066401-0.72740.234202
38-0.045777-0.50150.308481
39-0.01371-0.15020.440436
400.0061490.06740.473202
41-0.00202-0.02210.491189
42-0.024796-0.27160.393188
430.0497220.54470.293492
44-0.026961-0.29530.384122
45-0.000533-0.00580.497677
46-0.04128-0.45220.32597
47-0.002564-0.02810.488821
48-0.028792-0.31540.376501
49-0.024426-0.26760.394744
50-0.072118-0.790.21554
51-0.030624-0.33550.36893
520.0049530.05430.47841
53-0.002399-0.02630.489539
54-0.020602-0.22570.410915
550.054520.59720.275736
560.0005310.00580.497686
57-0.004232-0.04640.481553
58-0.029544-0.32360.373389
590.0200320.21940.413339
60-0.058172-0.63720.262592
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/02/t1280751111ba8xfjxohjntfi2/1g0eh1280751041.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/02/t1280751111ba8xfjxohjntfi2/1g0eh1280751041.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/02/t1280751111ba8xfjxohjntfi2/2g0eh1280751041.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/02/t1280751111ba8xfjxohjntfi2/2g0eh1280751041.ps (open in new window)


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