Home » date » 2010 » Aug » 02 »

Tijdreeks 2 -Stap 18

*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 14:45:17 +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/t1280760311varfc62067z3bwg.htm/, Retrieved Mon, 02 Aug 2010 16:45: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/Aug/02/t1280760311varfc62067z3bwg.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:
Van Puyenbroeck Cassandra
 
Dataseries X:
» Textbox « » Textfile « » CSV «
408 407 406 404 402 401 402 404 405 405 406 408 405 400 402 404 410 402 400 392 390 397 394 397 400 395 391 392 395 386 385 372 367 364 364 368 370 357 350 353 353 348 337 322 315 316 317 326 329 310 301 299 300 295 274 258 250 247 248 256 253 237 225 214 221 221 207 194 191 185 180 185 189 179 162 148 152 151 134 122 119 115 113 109
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3337633.04070.001579
2-0.230457-2.09960.019402
3-0.27801-2.53280.006599
4-0.053179-0.48450.31466
50.2235682.03680.022429
60.2844552.59150.005644
70.1581051.44040.076758
80.0048680.04440.482366
9-0.176353-1.60670.055964
10-0.279309-2.54460.006396
110.2068791.88480.031481
120.6765176.16340
130.3212632.92680.002208
14-0.084681-0.77150.221307
15-0.310713-2.83070.002912
16-0.179422-1.63460.052959
170.1328031.20990.114878
180.2125141.93610.02813
190.0899860.81980.207335
200.0841570.76670.222716
21-0.143997-1.31190.09659
22-0.246052-2.24160.013826
230.1081090.98490.163763
240.4055793.6950.000197
250.2738722.49510.007287
26-0.055982-0.510.305695
27-0.290288-2.64460.004889
28-0.217901-1.98520.025214
290.0769340.70090.242661
300.0698490.63640.263148
310.0181150.1650.434658
320.0598540.54530.293507
33-0.164694-1.50040.068649
34-0.164311-1.49690.069101
35-0.017419-0.15870.437148
360.1567681.42820.07849
370.1587381.44620.075947
38-0.033835-0.30830.379332
39-0.225089-2.05070.021728
40-0.158746-1.44620.075938
410.0189040.17220.431842
42-0.015224-0.13870.445013
43-0.001154-0.01050.49582
440.0243610.22190.412452
45-0.103264-0.94080.174774
46-0.11423-1.04070.150522
47-0.087603-0.79810.213543
480.0107590.0980.461077


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3337633.04070.001579
2-0.384711-3.50490.00037
3-0.056926-0.51860.302702
40.0074510.06790.473021
50.174591.59060.057752
60.1286321.17190.122296
70.1279811.1660.123485
80.0826570.7530.226779
9-0.117083-1.06670.144605
10-0.220629-2.010.023838
110.3922393.57350.000295
120.4769074.34482e-05
13-0.084098-0.76620.222875
140.1624611.48010.071317
15-0.089642-0.81670.208226
16-0.12682-1.15540.125623
17-0.096892-0.88270.189965
18-0.082744-0.75380.226541
19-0.127443-1.16110.124473
200.1554861.41650.080179
21-0.083067-0.75680.225664
220.1218911.11050.135
230.0173490.15810.437399
24-0.018172-0.16560.434457
25-0.052721-0.48030.316134
26-0.15249-1.38920.084237
270.0377310.34370.365954
28-0.06725-0.61270.270884
290.023530.21440.415392
30-0.101911-0.92850.177933
31-0.030179-0.27490.392023
32-0.082868-0.7550.226205
33-0.110129-1.00330.159311
340.0546190.49760.310039
35-0.148599-1.35380.089737
36-0.06718-0.6120.271093
37-0.033283-0.30320.381239
380.0070550.06430.474455
390.0881060.80270.212226
400.0835060.76080.224474
410.0051230.04670.481444
420.0771070.70250.242173
43-0.07819-0.71230.239126
440.065990.60120.274672
45-0.040769-0.37140.355634
46-0.085923-0.78280.217987
47-0.008854-0.08070.467951
48-0.068134-0.62070.268238
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/02/t1280760311varfc62067z3bwg/1c9kw1280760315.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/02/t1280760311varfc62067z3bwg/1c9kw1280760315.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/02/t1280760311varfc62067z3bwg/2c9kw1280760315.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/02/t1280760311varfc62067z3bwg/2c9kw1280760315.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