Home » date » 2010 » May » 03 »

opgave6bisoef2

*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, 03 May 2010 20:25:24 +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/May/03/t1272918414s2d4nh4eplqq96k.htm/, Retrieved Mon, 03 May 2010 22:26:56 +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/May/03/t1272918414s2d4nh4eplqq96k.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
196.9 192.1 201.8 186.9 218 214.4 227.5 204.1 225.8 223.7 244.7 243.9 257.3 234.5 251.4 243.8 247.4 245.3 262.5 270 259.9 262.2 244.9 249.3 268.2 231.2 264.3 252.7 275.5 261.5 275.5 272.3 268.6 270.4 267.7 275 272.6 248.6 279.4 270.5 292.8 297.8 296.8 290.9 282.8 312.8 303.2 301.4 289.8 279.6 302.2 299.1 319.7 310.9 315.2 338.5 315.6 321.2 318.5 342.7 261.4 287 331.5 326.9 338.6 337 358.4 344.5 345.7 344.1 317.4 354.5 345.2 314.1 352.5 361.2 365.9 332.5 364 359.1 345.6 366.9 370.2 359.9 366.6 336.3 368.5 374.2 384.3 358.9 407.7 433.3 404.7 392.7 409.7 416.5 414.3 404.3 421.4 372.6 404.7 420.2 438.4 449.1 445.8 413.8 420.5 442.3 438.9 394.5 416.8 402.9 424.5 432.3 484.1 492.7 496.3 471.9 491.2 512.9 482.4 407.9 448.5 431.1 498.8 497.1 517.1 487.7 512.5 550.1 532.5 524.1 515.7 461 529.3 467.4 559.8 536.5 531.9 546.5 547.4 536.1 482.8 551 532.9 484.1 554.8 537 558 5 etc...
 
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
1-0.363162-7.7380
2-0.050413-1.07420.14166
30.0014920.03180.487327
4-0.019836-0.42260.336377
50.0594371.26640.103003
6-0.174167-3.7110.000116
70.0935761.99390.023383
8-0.075367-1.60590.0545
9-0.039641-0.84460.19938
100.1215812.59060.004945
11-0.20925-4.45855e-06
120.3398257.24070
13-0.153489-3.27040.000578
140.0658931.4040.0805
15-0.052778-1.12460.130686
16-0.025138-0.53560.29624
170.116732.48720.006617
18-0.146333-3.1180.000968
190.0616021.31260.094995
20-0.060663-1.29260.098411
210.0046540.09920.460523
220.1348972.87430.00212
23-0.284051-6.05240
240.3147986.70750
25-0.166075-3.53860.000222
260.0438990.93540.17505
27-0.044741-0.95330.170468
280.0399880.8520.197322
290.0693711.47810.070036
30-0.070145-1.49460.067856
310.0415530.88540.18821
32-0.089773-1.91280.0282
33-0.022411-0.47750.316615
340.1463843.1190.000965
35-0.227612-4.84981e-06
360.262475.59250
37-0.252455-5.37910
380.1559673.32320.000481
390.029910.63730.262127
40-0.06196-1.32020.093718
410.0747041.59170.056069
42-0.104796-2.23290.013021
430.1036892.20930.013825
44-0.107018-2.28030.011527
45-0.022719-0.48410.314282
460.1200422.55780.005429
47-0.22698-4.83631e-06
480.2587115.51240


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.363162-7.7380
2-0.209995-4.47445e-06
3-0.116799-2.48870.00659
4-0.091305-1.94550.026168
50.0114150.24320.403971
6-0.186786-3.97994e-05
7-0.058624-1.24910.106135
8-0.136573-2.910.001896
9-0.168528-3.59090.000183
10-0.005613-0.11960.452427
11-0.247924-5.28260
120.1797063.8297.3e-05
13-0.001886-0.04020.483979
140.0845941.80250.036068
15-0.028833-0.61440.269644
16-0.016018-0.34130.366517
170.052751.1240.130814
180.0004050.00860.496559
190.0110370.23520.407094
20-0.029877-0.63660.262354
210.015160.3230.373416
220.095392.03250.021342
23-0.157985-3.36620.000413
240.1113812.37320.009025
25-0.054737-1.16630.122051
26-0.023789-0.50690.306246
27-0.077183-1.64460.050376
280.0432340.92120.178716
29-0.012069-0.25720.398589
300.0941222.00550.022752
310.0032840.070.47212
32-0.060132-1.28120.10038
33-0.062436-1.33030.092037
34-0.006681-0.14230.443436
35-0.085132-1.81390.035174
360.1095562.33430.010007
37-0.157286-3.35130.000436
380.0403550.85990.19516
390.076951.63960.050892
400.0038540.08210.467296
41-0.002817-0.060.476083
42-0.038179-0.81350.208181
430.0062340.13280.447193
44-0.038576-0.82190.205769
45-0.004327-0.09220.463291
46-0.048755-1.03880.149716
47-0.073519-1.56650.058965
480.0444020.94610.172302
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/03/t1272918414s2d4nh4eplqq96k/1xnel1272918323.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272918414s2d4nh4eplqq96k/1xnel1272918323.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/03/t1272918414s2d4nh4eplqq96k/2pwd51272918323.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/03/t1272918414s2d4nh4eplqq96k/2pwd51272918323.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